Master cylinder it is then. If there's any corrosion in the bore, then it will tend to compress the plastic sleeve that the piston slides in and so restrict its movement.
If you're of a curious nature like me, you might want to strip down the old master cylinder to see if you can positively identify the problem and this is a useful article showing the disassembly process
http://www.atomicalex.com/?p=139
The master in the pictures is the rear exit model whereas ours is side exit but I think all the internals should be the same. The problem you'll have, if the piston is stuck, is that you can't easily drift it out as they advise because the exit isn't at the end, it's at 90°.
If you wanted to refurbish it, repair kits are available, not from Brembo or Ducati of course - that would be too easy - but from BMW or KTM. I think this is the kit you'd need
https://www.motorworks.co.uk/vlive/S...T=6&Q=BRA36241
Hopefully you'll soon have a fully functioning rear brake again, Ryan, and I'd be interested to know what you find if you do strip down the old cylinder.