1. An electronic component comprising: reference-obtaining means for obtaining a physical magnitude referred to as a reference magnitude, which magnitude is dynamically adjustable and representative of the expected activity of said component; comparator means suitable for comparing said reference magnitude with a magnitude of the same type representative of the real activity of said component; and detector means suitable for detecting an attack as a function of the result of said comparison.