Hi @spiderman ,
There are three security boot level, HAB boot, HAB encrypted boot and OTFAD encrypted boot.
If it is only HAB boot, it can't prevent this kind of attack. HAB boot only verify the image is authentic. But after that, the right of control is pass to application. To prevent this attack, you can run in internal SRAM instead of XIP. HAB encrypted boot doesn't support XIP because the image is encrypted.
OTFAD is a hardware which can decrypt on-the-fly. So, the data on the SPI bus is encrypted. It can prevent such attack when XIP.
Regards,
Jing