In a security module and a method for protecting a security module,
wherein security-relevant data are stored in a memory in the module,
proper insertion of the security module on a device motherboard is
monitored with a first function unit and a second function in the
security module. The first function unit signals the status of the
security module. The second function unit detects improper use or
improper replacement of the security module, and upon detection of
improper use or improper replacement, the second function unit causes the
security-relevant data to be erased.