Fault 1_4 - Authenticated AES Bootloader - ... no attribute ‘inverse_sbox_output_alt’

I am getting an error. Looks like “alt” model doesn’t exist?


AttributeError Traceback (most recent call last)
/tmp/ipykernel_26559/2752317354.py in
1 import chipwhisperer.analyzer as cwa
2 print(cwa.file)
----> 3 leak_model = cwa.leakage_models.inverse_sbox_output_alt
4 attack = cwa.cpa(project, leak_model)
5 results = attack.run(cwa.get_jupyter_callback(attack))

AttributeError: ‘EightBitAES128LeakageModels’ object has no attribute ‘inverse_sbox_output_alt’

Whoops, you’re right that that one doesn’t exist.

I’ve added it on the latest commit on develop.

By the way, the attack should be done with an ADC offset of 0, not 10000. It also seemed to need around 100 traces for me instead of the 50 in the lab.

Alex

Hi @Alex_Dewar,

Thank you for the quick fix. Worked for me!

By the way, the attack should be done with an ADC offset of 0, not 10000. It also seemed to need around 100 traces for me instead of the 50 in the lab.

So then this is interesting. I just ran it with the default settings of ADC offset of 10000 and 50 traces and it found the key for me…?!?. It seems it only needed 25 traces also (It said “Finished traces 25 to 50” which I assume means it only used 25 of the 50 traces?). I am using STM32F3 target.

Thanks!