IoT security

Unauthorised devices interacting with IoT I2C buses

Device bus: chip, network, memory arranged to illustrate unauthorised devices interacting with iot i2c buses.

Unauthorised devices interacting with IoT I2C buses concerns the internal device bus or serial interface and the access conditions under which the device exposes information or performs an operation. Understanding unauthorised devices interacting with IoT I2C buses 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.

The I2C communication bus supports multiple masters and multiple slaves. In IoT hardware, different components on a circuit board (PCB) can communicate with each other over the I2C bus to exchange data and perform tasks. When assessing the system, it's important not only to monitor the communication, but also to actively interact with it. This can be done by acting as an additional master on the bus, for example, to engage with the slaves and control the communication.

Proper checks need to be implemented to prevent unauthorised interaction with I2C components. As I2C does not feature authentication/authorisation mechanisms by design, the bus and interfaces must be protected physically to be only accessible for authorised individuals.

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.

  • The master and slave components on the IoT device must be identified.
  • Information about the messages and actions supported by those components must be collected (vendor datasheets).
  • In order to interact with the I2C components, a dedicated hardware tool (e.g., Bus Pirate, HydraBus) or a microcontroller (e.g., Raspberry Pi with smbus2, Arduino with Wire.h) should be used.
  • The reaction/response of the components must be analysed.
  • 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.

Read about our methodology or contact pentested.com to discuss your connected devices.

See your first test report this week.

Book a 30 minute demo. We will verify one of your targets with you and run a test against it, so you can judge the results on your own systems.

Book a demo