IoT Penetration Testing: Process, CRA and Effort

What is an IoT penetration test and how does it differ from a vulnerability scan?

An IoT penetration test examines a connected device, including its firmware, communication and backend, manually and the way an attacker would. It shows which vulnerabilities can actually be exploited in your specific product. Embedded pentest and IoT security test usually mean the same thing. A firmware penetration test is one part of it. The device level and the cloud connection belong together.

A vulnerability scan is automated and finds known patterns. A pentest chains individual weaknesses together and assesses what an attacker can achieve with them. A classic IT pentest covers networks and applications. The device level and firmware usually fall outside its scope.

The Cyber Resilience Act (CRA, Regulation (EU) 2024/2847) defines its scope broadly. It covers products with a direct or indirect logical or physical data connection to a device or network (Art. 2(1)). For the basics, see our article What is a penetration test?.

Which layers does an IoT pentest cover and what does it find there?

A test covers four layers. Each layer has its own typical weaknesses.

Hardware: This layer is about physical access to the device and the protection of stored data. A typical finding: on the production board of a sensor, a maintenance interface is accessible and opens a console without any login. The development team had enabled it for the prototype and did not switch it off before series production.

Firmware: The test covers the firmware image and the components it contains. The image of a gateway, for example, may contain default credentials and a component with a known vulnerability. Neither item was on any checklist during development.

Communication: The test covers radio and network protocols between device, app and backend. Typical findings are unencrypted connections or devices that do not verify the party they talk to.

App and cloud backend: The backend belongs in the test scope. Remote data processing solutions without which a product function cannot be performed count as part of the product (Art. 3 nos. 1 to 2). A typical pattern: the cloud interface only checks whether a device is logged in, not whether it is allowed to see the requested data. With a foreign device ID, an attacker can then retrieve other customers’ data. You can find more in our services for API pentesting, mobile pentesting and cloud pentesting.

Test layerCRA requirement (Annex I, Part I, No. 2)Typical findingEvidence (Annex VII, No. 6)
HardwareLimited attack surfacePhysically accessible debug and maintenance interfacesTest report, device level
FirmwareNo known exploitable vulnerabilities at delivery, secure default configurationDefault credentials in the image, components with known vulnerabilitiesTest report, firmware
CommunicationConfidentiality and integrity of dataUnencrypted or weakly protected connections, counterpart is not verifiedTest report, interfaces and protocols
App and backendAccess protectionPermissions are not checked per object, other users’ data is reachableTest report, backend and app

This mapping is an editorial guide and not an official concordance.

Does the CRA require a penetration test?

No. The CRA does not name a specific type of test. However, manufacturers must test and review the security of their products regularly and effectively (Annex I, Part II, No. 3). The technical documentation must also contain reports of tests and reviews (Annex VII, No. 6). In our view, a pentest report is an obvious way to meet this. That is our assessment, not a requirement of the law.

On scope: exempt are, among others, products covered by the medical device Regulations (EU) 2017/745 and 2017/746, motor vehicles under (EU) 2019/2144 and aviation products certified under (EU) 2018/1139 (Art. 2(2) and (3)).

The conformity assessment also affects your planning. Products without a classification can be assessed through internal control (Module A). Important products of Class II (Annex III) require Module B+C, Module H or a certificate (Art. 32).

Infringements of Annex I and of Art. 13 and 14 can lead to fines of up to EUR 15 million or up to 2.5% of worldwide annual turnover, whichever is higher (Art. 64(2)).

If you work according to ISO/IEC 27001:2022, control A.8.29 fits here. It requires security testing during development and acceptance.

The primary source is Regulation (EU) 2024/2847 on EUR-Lex (German version). The source is the Official Journal version of 20.11.2024.

When should you test, and does the CRA also apply to products already sold?

Test several times during the product life, not just once before launch. For products already sold, the CRA applies in part: the obligations under Art. 14 apply, while the remaining requirements apply only after a substantial modification.

PhasePurposeCRA reference and deadline
DevelopmentFind architecture and interface weaknesses early, before they become expensiveAnnex I, Part I, No. 2
Before series releaseTest report for the technical documentationAnnex VII, No. 6, Regulation applies from 11.12.2027 (Art. 71(2))
RetestProve that findings have been fixedAnnex VII, No. 6
After a substantial modificationRe-test new functions or componentsProducts placed on the market before 11.12.2027 are subject to the requirements only after a substantial modification (Art. 69(2) to (3))
Support periodTest regularlyAnnex I, Part II, No. 3. The period is at least five years; where the expected use time is shorter, it matches that time (Art. 13(8))

Products already sold are therefore not fully exempt. The obligations under Art. 14 apply to them as well.

Three deadlines matter. On 11.06.2026, Chapter IV on the notification of conformity assessment bodies began to apply. Since 11.09.2026, the reporting obligations under Art. 14 have applied. On 11.12.2027, the Regulation applies in full.

The deadlines in Art. 14 run in three steps. For an actively exploited vulnerability, the early warning is due within 24 hours and the notification within 72 hours. The final report follows no later than 14 days after a corrective measure becomes available. For a severe security incident, the same 24 and 72 hours apply. The final report is then due within one month of the notification (Art. 14(2) and (4)).

How does an IoT pentest work from scoping to retest?

The process follows six steps:

  1. Scoping: Define devices, firmware versions, apps, backend, interfaces and test depth.
  2. Provisioning: Hand over devices and access to the test team.
  3. Testing by layer: Test hardware, firmware, communication, app and backend.
  4. Report: Document findings with a risk rating and recommended measures.
  5. Remediation: Your development team closes the vulnerabilities.
  6. Retest: The fix is verified and documented.

Before you start, agree which tests could damage a device. Plan for spare devices.

Do you need to provide source code? Not necessarily. A test without code shows what an external attacker can achieve. With code, the test depth increases. For this we offer the source code audit.

Figure 1: The layers of an IoT pentest

What this means for you

First, check whether your product falls under the CRA and whether it is classed as an important product (Art. 2, Art. 32, Annex III). The conformity procedure depends on this. Then define the test cycle: development, series release, retest and changes. After that, prepare the scoping.

This checklist helps with preparation:

  • Devices for each hardware variant, including spare devices
  • Firmware images and update packages
  • Architecture and interface documentation
  • API specification
  • Test accounts and a test environment for the backend
  • Contact persons in development
  • Approvals from hosting providers for backend tests
  • Source code, where applicable

The effort depends mainly on these factors: the number of hardware variants, the number and type of radio protocols, the test depth with or without source code and documentation, the scope of app and backend, the retest, and the response time of your development team. We deliberately do not quote a flat duration. It only emerges from your scope.

Your next step: open the Configurator. Based on your scope and goals, it provides an effort estimate. For background on the scope of services, see the page Pentest for OT and IoT.

Frequently asked questions

Is an internal conformity assessment (Module A) enough?

For products without an important or critical classification, yes (Art. 32). Important products of Class II (Annex III) require Module B+C, Module H or a certificate. Even with Module A, test reports belong in the technical documentation (Annex VII, No. 6).

Do pentest findings count as reportable vulnerabilities?

What must be reported is an actively exploited vulnerability. This requires reliable evidence of exploitation without the consent of the owner (Art. 3 no. 42). According to recital 68, vulnerabilities found in good-faith testing are not subject to reporting. Fixing them remains the manufacturer’s responsibility.

Is source code required?

Not necessarily. Source code does increase the test depth, though. The source code audit is a suitable addition.

How long does a test take and what drives the cost?

Duration and cost depend on variants, protocols, test depth, the scope of app and backend, and the retest. You can get an estimate for your scope in the Configurator.

Sources

Similar Posts