Data remanence in embedded memory matters wherever a microcontroller stores cryptographic keys, configuration data, or other information that must remain confidential and available. Removing power does not necessarily erase SRAM immediately, while EEPROM and Flash can lose stored charge over time. These behaviors create two distinct engineering concerns: an attacker may recover data that was assumed erased, or an aging device may stop operating correctly because stored information has changed.
For industrial automation engineers and system owners, the implications extend beyond cybersecurity. Controllers and other embedded devices can remain in service for years, sometimes in environments with substantial temperature variation. Understanding how memory behaves after power loss and over its service life can inform component evaluation, security design, and maintenance planning.
Data remanence: what happens after power loss
SRAM is volatile, but its contents do not always disappear the instant its supply is removed. For a period after shutdown, residual electrical conditions can preserve some of the previous bit states. The length of that period varies with the device and its operating conditions. An attacker who can access the hardware may be able to restore power while useful data remains, potentially recovering part of a secret such as a cryptographic key.
Temperature is an important factor. Experiments on several microcontrollers found that SRAM data persisted longer at low temperatures, including at temperatures down to −30 °C. In the tested devices, retention ranged from seconds to minutes at that temperature, while higher temperatures shortened the interval. Results also varied among samples, including devices from the same family. These findings are specific to the tested components; engineers should not assume identical behavior across other chips.
Partial recovery can still matter. An attacker may not need to retrieve every bit of a key if the remaining possibilities can be searched. Consequently, security assessment should consider how much information could remain recoverable, not just whether the memory appears completely intact.
Reducing SRAM remanence and protecting secrets
Secure devices commonly respond to tamper detection by erasing or destroying key material. Conventional approaches include a tamper-resistant enclosure with sensors, or SRAM designed with a dedicated destruction mechanism. Such measures can add cost, design complexity, or constraints on component choice. Simply cutting power may not be enough if data persists long enough for an attacker to intervene.
The reported research examined a short, controlled power glitch rather than a smooth power-down. In the tested microcontrollers, a negative glitch on the supply caused SRAM contents to move to a random state much faster; a pulse as short as 5 microseconds was sufficient in those experiments. The proposed explanation is that the electrical behavior of the SRAM cell’s transistors quickly discharges stored states. This is a reported experimental result, not a universal capability or a substitute for validating a specific device and circuit.
Remanence also affects designs that use SRAM characteristics for security functions. SRAM-based physical unclonable functions (PUFs) rely on device-specific startup behavior to derive a unique response, while pseudorandom number generators (PRNGs) use changing or unpredictable state to produce random values. If previous contents influence startup behavior, assumptions about freshness or unpredictability may be weakened. Designers should account for initialization intervals and test the actual memory behavior across representative devices and temperatures.
Nonvolatile memory: retention is a reliability issue
EEPROM and Flash store information differently from SRAM. Their cells represent data through electrical charge, which can gradually change through mechanisms such as electron loss or charge trapping. A cell may eventually be read incorrectly. Higher operating temperatures can accelerate this aging, and manufacturing variation can leave some cells weaker than others.
Memory retention matters for firmware, calibration values, security settings, and configuration bits. If a critical stored value changes, a controller may behave unexpectedly or fail to start. Some configuration cells may be based on the same memory technology as ordinary EEPROM but have retention characteristics that are not clearly specified. A change to a configuration register can affect memory mapping or device operation, even when the main program memory remains readable.
The paper describes failures involving older industrial and automotive electronics, including SCADA controllers and vehicle modules. In some investigated cases, refreshing or reprogramming embedded memory resolved the problem. These examples illustrate a possible aging mechanism; they do not establish that every unexplained controller fault is caused by memory retention.
Practical steps for engineering teams
Memory security and long-term reliability benefit from deliberate evaluation rather than assumptions based on a data sheet alone. For critical or long-lived applications, teams can:
- Assess the whole memory lifecycle. Identify where keys, firmware, configuration, and security settings are stored, and consider both power-loss behavior and long-term retention.
- Test representative samples. Remanence can vary between individual devices, so a single sample may not reflect the range of behavior. Include relevant temperature conditions in evaluation.
- Review erase and tamper sequences. Verify that sensitive data is cleared before access protections are removed, and test the sequence under realistic power disturbances.
- Check retention specifications and assumptions. Confirm the operating conditions associated with stated guarantees, and seek clarification for configuration or factory-use memory where parameters are not documented.
- Plan for service life. For equipment expected to remain in operation for many years, include memory integrity in risk assessments, maintenance, and upgrade planning.
These measures do not eliminate every hardware attack or aging failure. They help teams identify where memory behavior could undermine a security control or affect system availability.
Conclusion
Data remanence and data retention describe different effects, but both can have real consequences for embedded systems. SRAM may preserve data briefly after shutdown, while EEPROM and Flash can lose stored information as they age, particularly under demanding conditions. For industrial automation and other long-life applications, engineers should validate the behavior of the selected devices, examine secure erase and configuration mechanisms, and treat embedded-memory integrity as part of both cybersecurity and reliability engineering.