Method for putting in place security means in an electronic device comprising at least one memory, i.e. a device such as a chip card, following reception by said device of a command specifying a process that must be launched by said device, characterized in that it comprises the following steps: - a step of reading the value of a confidence index stored in a counter that said device comprises, said counter retaining the last value that it stored even if the power supply of said device has been cut, - a step of putting in place specific security means depending on the value of the confidence index read in the reading step, - a first step of modifying the value of the confidence index, which passes from an initial value to a modified value, said modified value corresponding to a confidence given by the card to its environment lower than that of the initial value, said value of the confidence index being able to take any value comprised between 0 and N, the first modifying step being a step of incrementing the value of the confidence index stored in said counter, said increment being equal to n for safe processes and equal to m > n for sensitive processes, - a step of launching the process targeted by said command, and, if the process proceeded without interruption, - a second step of modifying the value of the confidence index, the second modifying step being a step of decrementing the value of the confidence index stored in said counter, said decrement being equal to n for safe processes or for sensitive processes that are not control processes, equal to or lower than m for sensitive control processes the outcome of which is negative, and equal to p > m for sensitive control processes the outcome of which is positive: or - a first step of modifying the value of the confidence index, which passes from an initial value to a modified value, said modified value corresponding to a confidence given by the card to its environment lower than that of the initial value, said value of the confidence index being able to take any value comprised between 0 and N, the first modifying step being a step of decrementing the value of the confidence index stored in said counter, said decrement being equal to n for safe processes and equal to m> n for sensitive processes - a step of launching the process targeted by said command, and, if the process proceeded without interruption, - a second step of modifying the value of the confidence index, the second modifying step being a step of incrementing the value of the confidence index stored in said counter, said increment being equal to n for safe processes or for sensitive processes that are not control processes, equal to or lower than m for sensitive control processes the outcome of which is negative, and equal to p > m for sensitive control processes the outcome of which is positive. - a step of reading the value of a confidence index stored in a counter that said device comprises, said counter retaining the last value that it stored even if the power supply of said device has been cut, - a step of putting in place specific security means depending on the value of the confidence index read in the reading step, - a first step of modifying the value of the confidence index, which passes from an initial value to a modified value, said modified value corresponding to a confidence given by the card to its environment lower than that of the initial value, said value of the confidence index being able to take any value comprised between 0 and N, the first modifying step being a step of incrementing the value of the confidence index stored in said counter, said increment being equal to n for safe processes and equal to m > n for sensitive processes, - a step of launching the process targeted by said command, and, if the process proceeded without interruption, - a second step of modifying the value of the confidence index, the second modifying step being a step of decrementing the value of the confidence index stored in said counter, said decrement being equal to n for safe processes or for sensitive processes that are not control processes, equal to or lower than m for sensitive control processes the outcome of which is negative, and equal to p > m for sensitive control processes the outcome of which is positive: or - a first step of modifying the value of the confidence index, which passes from an initial value to a modified value, said modified value corresponding to a confidence given by the card to its environment lower than that of the initial value, said value of the confidence index being able to take any value comprised between 0 and N, the first modifying step being a step of decrementing the value of the confidence index stored in said counter, said decrement being equal to n for safe processes and equal to m> n for sensitive processes - a step of launching the process targeted by said command, and, if the process proceeded without interruption, - a second step of modifying the value of the confidence index, the second modifying step being a step of incrementing the value of the confidence index stored in said counter, said increment being equal to n for safe processes or for sensitive processes that are not control processes, equal to or lower than m for sensitive control processes the outcome of which is negative, and equal to p > m for sensitive control processes the outcome of which is positive.