Extracting EEPROM and memory data through I2C
Extracting EEPROM and memory data through I2C concerns the internal device bus or serial interface and the access conditions under which the device exposes information or performs an operation. Understanding EEPROM and memory data through I2C helps establish which security property the feature needs and where that property is actually enforced.
What does this involve?
Device security spans processing, storage and interfaces that may be physically accessible outside the operator's control. Access conditions matter: opening a case, attaching a peripheral and sending a network request represent different attacker capabilities.
I2C is frequently used to connect EEPROMs and other non-volatile memory devices to a microcontroller. These memory chips often store sensitive data such as firmware, configuration parameters, cryptographic keys, or device credentials. Since the I2C bus provides no authentication or encryption by default, an attacker with physical access to the bus can directly read the contents of attached memory devices using standard tooling.
Sensitive data stored in EEPROM or other I2C-attached memory must be encrypted. Cryptographic keys and credentials should not be stored on devices accessible via an unprotected bus. Where possible, cryptographic memory modules with built-in access control (e.g., Microchip ATECC608) should be used instead of general-purpose EEPROMs.
Why it matters
Consider a realistic failure: an accessible internal interface exposes a command, data or debugging path outside the normal user controls.
A device weakness can reveal local data, change operations or expose credentials used by the wider service. Assessment should distinguish what is obtained from the device itself from any separately demonstrated backend access.
Device findings need explicit access conditions. Record the hardware and software version, relevant interface exposure and whether the test assumes network access, an attached peripheral or access inside the enclosure.
How penetration testers check for it
Assess the stated device access level and verify the particular information, command or state change reachable through this component.
- Based on ISTG-INT[I2C]-INFO-001, I2C devices at known EEPROM address ranges (e.g., 0x50-0x57 for 24Cxx series EEPROMs) must be identified.
- Extracted data must be analysed for sensitive information, including firmware images, configuration files, cryptographic keys, and credentials.
- It must be determined whether the extracted data is stored in plaintext or is protected by encryption.
- If write access to the EEPROM is possible, the state of the write-protect (WP) pin must be verified. An improperly grounded WP pin allows an attacker to overwrite EEPROM contents, which may enable persistent compromise of device configuration or credentials.
- Use representative device states and controlled inputs.
- Record the actual information or behaviour reached.
How to fix it
Reduce unnecessary exposure and enforce the intended operation and data boundary at the device component that controls it.
- Remove unnecessary interfaces and capabilities.
- Enforce access checks at meaningful device boundaries.
- Protect sensitive storage and device credentials.
- Verify normal operation and recovery after changes.
Physical access is neither an automatic exemption nor proof of total compromise. The intended deployment, assets and realistic access prerequisites determine the relevance of the result.
Recheck the changed behaviour against the original failure conditions and the legitimate user journey. Keep enough evidence to show which release and configuration were verified, and include related entry points that depend on the same security decision.
Related issues
- Invalid I2C data and unsafe device behaviour
- Sensitive data exposed in IoT I2C communication
- Enumerating components on an IoT I2C bus
Read about our methodology or contact pentested.com to discuss your connected devices.