What about the bootloader?

The bootloader can upload new binary files from a mass storage device.

The bootloader is overwritten presumably through a ISP, Arduino Due Mini/Nano - #7 by pYro_65 - Arduino Due - Arduino Forum