Automotive pentesting: penetration testing for vehicles, ECUs and the vehicle ecosystem

How penetration tests on ECUs, in-vehicle networks, wireless interfaces, backends and charging infrastructure work, what UN R155, ISO/SAE 21434 and Germany’s KBA expect, and how to plan an automotive pentest from the TARA and the Automotive Threat Matrix.

Last updated: November 2026 · Valeri Milke, ISO 27001 & ISO 42001 Lead Auditor

76unique zero-days at Pwn2Own Automotive 2026 in Tokyo, including in infotainment systems and charging stations (ZDI)
1.4 millionvehicles recalled by FCA in July 2015 after Miller and Valasek’s remote attack on a Jeep
14 · 75tactics and techniques in the Auto-ISAC Automotive Threat Matrix, as of November 2026
up to 2×a failed test may be repeated after rework, according to the KBA

Automotive penetration testing is commissioned security testing of vehicles, electronic control units (ECUs) and the vehicle ecosystem – backend, apps, update chain and charging infrastructure – modeled on real-world attacks. ISO/SAE 21434 describes penetration tests as tests that mimic real-world attacks to find ways to compromise cybersecurity goals. UN R155 requires appropriate and sufficient testing of the security measures before type approval; in addition, the approval authority or technical service tests a vehicle of the type. Germany’s Federal Motor Transport Authority (Kraftfahrt-Bundesamt, KBA) recommends penetration tests but does not mandate them – yet purely document-based evidence is generally considered insufficient. This page covers attack surfaces, test levels, methods, planning based on the TARA and the Automotive Threat Matrix, legal questions, the rating of findings and how to commission a test. As of November 2026.

From research attacks to testing requirements

Documented attacks and regulatory milestones – tap an entry.

Automotive pentesting: key points at a glance

Eight topic blocks – tap to expand.

Four groups of attack surfaces

What is tested in each group and at which test level – select a tab.

In the vehicle
  • On CAN, LIN and FlexRay, testers check whether forged messages are accepted and whether the gateway separates the networks; for Ethernet, SOME/IP and DoIP are key.
  • For UDS and OBD, the focus is on Security Access, authentication, flash routines and dongles.
CAN FDDoIPUDS
Interactive

Which test scope fits your project?

Up to three yes/no questions lead to the right test level. Guidance only, not legal advice; the binding scope is determined by your TARA and your evidence objective.

Your path
  1. ?

1: Is a drivable vehicle available for testing – prototype or production vehicle?

1

Is a drivable vehicle available for testing – prototype or production vehicle?

Suppliers with a single ECU usually answer no.

Deep dive

Automotive pentesting in practice: nine chapters from trigger to retest

The chapters follow the path of a vehicle pentest – from triggers and obligations through attack surfaces, test levels, methods, planning, safety and law to the rating of findings, public cases and commissioning a test.

01Triggers and obligations

Why and when an automotive pentest is needed

No regulation strictly mandates penetration tests – but UN R155 requires testing before type approval, ISO/SAE 21434 names them for verification and validation, and the KBA recommends them.

UN R155: testing before type approval

Alongside the cyber security management system (CSMS), UN R155 requires the manufacturer, for each vehicle type, to “perform, prior to type approval, appropriate and sufficient testing to verify the effectiveness of the security measures implemented”, as the official English text puts it; without such testing, approval is refused. In addition, the authority or technical service tests a vehicle of the type, focusing on the risks rated highest.

ISO/SAE 21434: verification and validation

ISO/SAE 21434 defines a penetration test as testing that mimics real-world attacks to find ways to compromise cybersecurity goals. For product development, it recommends tests such as vulnerability scanning, fuzzing and penetration testing; in validation, pentests can demonstrate that the goals have been achieved. The informative cybersecurity assurance levels (CAL) do not create an obligation to pentest.

What the KBA expects

The KBA lists penetration testing as a recommended, not mandatory, test method. Other methods are permitted if they achieve the objective; purely document-based evidence is generally considered insufficient. After rework, a failed test may be repeated up to twice under at least the same conditions.

02Test object

Attack surfaces: from the debug interface to the charging station

A connected vehicle offers attack surfaces on four levels: in-vehicle network, ECU, wireless and ecosystem. The table maps each interface to its test focus and to tactics of the Automotive Threat Matrix.

With seven categories, 30 threats and around 70 examples, the UN R155 threat catalog is the mandatory list; the Automotive Threat Matrix (ATM) describes attacker behavior in 14 tactics and 75 techniques. The catalog says what must be covered, the matrix how attackers proceed.

InterfaceTest focusATM mapping
Debug interfaces (JTAG, SWD, UART)Locking in the production configuration, readout protection, fault injectionPrivilege Escalation, Credential Access (technique: ECU Credential Dumping)
FirmwareEmbedded keys, outdated components, boot chainCredential Access (technique: Unsecured Credentials), Persistence
CAN, CAN FD, CAN XL, LIN, FlexRayForged messages, overload, gateway filters, authenticationAffect Vehicle Function (technique: Modify Bus Message), Lateral Movement (technique: Bridge Vehicle Networks)
Automotive Ethernet (SOME/IP, DoIP)Unprotected services, open ports, diagnostic routingDiscovery, Lateral Movement (technique: Remote Services)
Diagnostics via UDSSessions, Security Access, authentication, flash routinesDefense Evasion (technique: Bypass UDS Security Access)
OBD port and donglesAccess control, secure gatewayInitial Access (technique: Aftermarket, Customer, or Dealer Equipment)
Cellular, Bluetooth, Wi-FiRemote functions, protocol stacks, rogue base stationsManipulate Environment (technique: Rogue Cellular Base Station), Initial Access
Infotainment, apps, USBApp vulnerabilities, crafted media, pivot into the vehicle networkInitial Access, Privilege Escalation
Key fob, digital keyRelay attacks, distance measurement (e.g., UWB)Manipulate Environment (technique: Relay Communications)
V2X and GNSSForged messages, certificate validationManipulate Environment, Initial Access
OTA update chainSignature verification, rollback protection, recoveryPersistence, Defense Evasion
Backend, APIs, dealer portalsPermissions, account takeover, data leakageBarely covered; UN R155 threat catalog
Charging (ISO 15118, OCPP)Plug & Charge, PKI, charging station firmwareDepends on the path; the catalog names charging parameters

Tactic and technique names as in the English original of the matrix, as of November 2026; the table does not replace a TARA.

More important than any single row are the transitions: known attack chains start at a remote interface or a portal and end in the in-vehicle network. Testing wireless, infotainment and gateway only in isolation misses them.

Since June 23, 2026, an EU delegated regulation has governed how manufacturers may restrict OBD access with certificates or tool authentication; a pentest checks that unauthorized parties fail and that the unlocking paths do not open a back door. According to the KBA, aftermarket dongles do not usually put type approval at risk – but their vulnerabilities do.

03Test setup

Test levels: test bench, HIL, complete vehicle and ecosystem

Automotive pentests take place on four levels: on the ECU, in a HIL setup, on the complete vehicle and in the ecosystem. Each level finds issues that the others cannot see.

The levels follow verification and validation under ISO/SAE 21434 and vehicle testing under UN R155; “test bench” and “HIL” are terms from testing practice, not from the standard.

Test levelSetupStrengthsLimitations
Test benchSingle ECU, several samplesAvailable early, in-depth hardware and firmware analysisNo chains across the vehicle
HIL setupECUs with restbus simulationRepeatable, gateway and routing tests without riskWireless and ecosystem usually missing
Complete vehiclePrototype or production vehicle, chassis dynamometer, proving groundRealistic paths up to the vehicle functionAvailable late, labor-intensive, safety concept required
EcosystemBackend, apps, OTA servers, charging infrastructureCaptures remote attacks on entire fleetsOperators’ consent required

A finding only applies to the version tested. Reports therefore identify software versions unambiguously – for type-approval-relevant software, for example, via the RXSWIN software identifier under UN R156; tests on a development version with open debug access say little about the production vehicle.

In the supply chain, the work is distributed: suppliers test on the test bench or in a HIL setup and hand over evidence; the manufacturer tests the vehicle and the ecosystem and, according to the KBA, remains responsible for supply chain risks.

Samples, access and safety concept depend on the level.

04Approach

Methods: what testers actually do on the vehicle

An automotive pentest combines hardware and firmware analysis, network and diagnostic tests, wireless and key tests, fuzzing and backend tests; what follows describes test areas, not attack instructions.

The level of knowledge determines the depth. For vehicle projects, there is a strong case for gray-box or white-box testing: without the architecture and diagnostic specification, testers spend a lot of time on reconstruction that an attacker with a long lead time can afford. A black-box component shows what outsiders can achieve.

Hardware analysis

Check debug interfaces for locks, assess readout protection, test robustness against fault injection.

Firmware analysis

Obtain firmware, examine it for embedded keys, match components against the SBOM.

Network and diagnostics

Check the response to forged messages, gateway filters, Ethernet and UDS services.

Wireless and keys

Test pairing, protocol stacks, relay scenarios and distance measurement in a shielded environment.

Fuzzing

Stress protocols automatically with malformed inputs, monitor crashes, analyze findings.

Backend and API

Check roles, remote functions, update servers and charging backends for access control.

UDS: Security Access and authentication

Via UDS under ISO 14229-1, in its fourth edition since June 2026, tools read and write data and reprogram ECUs. Security Access unlocks protected functions with a seed-key mechanism – without mutual verification and without session authentication; since the 2020 edition, there has also been an authentication service using certificates or challenge-response. Testers check which mechanisms are active and how keys are generated and stored.

A pentest also checks detection: UN R155 requires measures to detect attacks and to provide data for forensic analysis. Whether a simulated attack leaves traces belongs in the report.

05Planning and scoping

Threat-led planning: test cases from the TARA and the Automotive Threat Matrix

An automotive pentest is meaningful when its test cases come from the TARA’s attack paths and cover the risks rated highest first – which is also where the authority’s sample testing starts.

The TARA provides damage scenarios, attack paths with rated attack feasibility and risk values from 1 to 5. Every path with a relevant risk is a candidate test case, and the pentest answers a precise question: with the implemented measures in place, is the path as hard to exploit as the TARA assumes?

The Automotive Threat Matrix adds attacker knowledge; Auto-ISAC explicitly names penetration testing as an intended use. Expressing path steps as ATM techniques reveals alternatives that are missing from the TARA. Every relevant entry in the UN R155 threat catalog should receive a test case or a justified exclusion.

TARA elementDigital key example
Damage scenarioUnauthorized opening and starting
Attack pathRadio link to the smartphone is relayed (Relay Communications)
Test caseDoes the distance measurement detect the extended range?
Passed ifaccess is not granted and the event is logged

Simplified, manufacturer-neutral example.

Scoping: what belongs in the quote

  • Test objects, software versions, test levels and exclusions
  • Documentation: TARA, architecture, communication matrix
  • Access, test accounts and number of samples
  • Rating scheme, report and retest
06Framework conditions

Testing on vehicles safely, lawfully and in coordination

Tests on vehicles can damage ECUs, trigger driving functions and touch data; the test environment, approvals and data protection therefore belong in the contract in advance.

  • Tests affecting powertrain, brakes or steering only on a test bench or a closed site, with an emergency stop and abort criteria.
  • Radio tests with rogue base stations, relay setups or GNSS signals only in shielded rooms.
  • Return vehicles to a documented, approved software version after testing.

Written authorization from the entitled party is indispensable. Third parties are often involved, such as backend service providers or suppliers. The KBA’s FAQ even addresses whether a manufacturer needs the consent of its supply chain for pentests on its own product – clarify this contractually in advance.

The cybersecurity interface agreement under ISO/SAE 21434 defines who tests which level, who provides samples and keys, and how findings are handled. Under UN R155, necessary information must be provided even if it concerns suppliers’ intellectual property; it is treated confidentially.

Data protection

Vehicles and backends process locations, movement profiles and owner data. Tests therefore work with test vehicles and synthetic accounts; if contact with real data is unavoidable, data minimization and deletion under the GDPR belong in the agreement.

07Outcome

From finding to action: report, rating and feedback into TARA and CSMS

A pentest finding only has an effect once it changes the risk assessment: it corrects the TARA, triggers vulnerability management and provides evidence for type approval.

  • Management summary with one statement per tested cybersecurity goal
  • Scope, methods and unambiguous hardware and software versions
  • Test cases with results and links to TARA attack paths
  • For each finding: prerequisites such as access, time and equipment, evidence and a recommendation

Findings are easiest to trace back when they are rated as in the TARA: attack feasibility is derived from the attack potential – elapsed time, specialist expertise, knowledge of the item, window of opportunity, equipment –, from CVSS exploitability or from the attack vector.

ResultWhere it goes
Path easier to exploit than assumedTARA: new goals and measures
Vulnerability in your own softwareVulnerability management, update, disclosure in line with ISO/IEC 29147
Vulnerability at the supplierCybersecurity interface agreement
Measure is effectiveCybersecurity case, type approval
Relevant vulnerability in the fieldCSMS, report to the KBA

UN R155 requires manufacturers to keep the risk assessment current, to fix vulnerabilities within a reasonable timeframe and to report at least once a year. The KBA expects relevant vulnerabilities to be reported without delay and additional test material to be retained for at least ten years after the end of production.

08Real-world examples

What publicly documented cases teach about test scope

Publicly documented vehicle attacks target all four levels; each case stands for a test area that should not be missing from the scope.

DateCaseLesson
July 2015Remote attack by Miller and Valasek on a Jeep Cherokee; recall of around 1.4 million vehiclesTest remote access and in-vehicle network together
May 2022NCC Group: BLE relay against the phone-as-a-key system of a Tesla Model 3Relay tests for each model
April 2023Theft of a Toyota RAV4 via CAN injection at the headlightCheck bus wiring and authentication
September 2024Kia web portal: remote functions via the license plateBring backend and portals into scope
December 202438C3: location data of around 800,000 electric vehicles from the Volkswagen Group openly accessibleTest cloud and data protection
July 2025“PerfektBlue”: four flaws in the BlueSDK Bluetooth stack, code execution in infotainmentCheck supplier stacks and patches
January 2026Pwn2Own Automotive: 76 unique zero-daysInfotainment and charging stations remain targets

Five rules follow from this: chains run across levels; physical access is realistic; backends are part of the attack surface; supplier components carry flaws to many manufacturers; and remediation needs a secure update chain – this is how Tesla closed, by OTA update, the remote access to a Model S that Keen Lab demonstrated in 2016.

Each of these cases can be described as an attack path using ATM techniques and transferred to your own product as a test template.

The cases illustrate test areas, not the manufacturers’ current security posture. The Jeep case predates UN R155 by years; the recall was a US procedure.

09Step by step

Commissioning an automotive pentest: eight steps

An automotive pentest can be commissioned in eight steps from trigger to retest; what matters is that the objective, test levels, access and rating logic are fixed before testing begins.

  1. Clarify the trigger and evidence objective

    Type approval, verification or a change in the field – who is the evidence for?

  2. Provide documentation

    TARA, architecture, communication matrix, software versions.

  3. Define test levels

    Test bench, HIL, vehicle, ecosystem; justify exclusions.

  4. Derive test cases

    Enrich TARA paths with ATM techniques, check against the catalog.

  5. Agree on the framework

    Authorization, third-party consent, data protection, safety rules.

  6. Test and coordinate

    Report critical findings immediately.

  7. Rate and report

    Feasibility using the TARA method, link to the goals.

  8. Fix and retest

    Retest, then update the TARA and the evidence.

UN R155 does not specify a fixed test interval, but it does require the risk assessment to be kept current and the effectiveness of the measures to be verified – including after first registration. Triggers for new tests are significant changes, new services and newly known attack techniques.

How to recognize a robust quote

  • Reference to your TARA and the UN R155 threat catalog, named test levels and methods
  • Experience with in-vehicle networks, diagnostic protocols and vehicle radio systems
  • Safety concept, rating compatible with ISO/SAE 21434, retest

A pentest replaces neither the TARA nor monitoring in the field: it is a snapshot in the cycle of risk assessment, measures, testing and monitoring.

Glossary

Glossary: automotive pentesting terms

16 terms from regulations, standards and testing practice.

Automotive pentestVehicle penetration test, automotive security testing
Commissioned security assessment that mimics real-world attacks on vehicles, ECUs or the vehicle ecosystem to find ways to violate cybersecurity goals.
ECUElectronic control unit
Embedded computer that controls a vehicle function such as braking or infotainment and communicates via in-vehicle networks such as CAN; the central test object on the test bench.
UN R155UN Regulation No. 155
UNECE regulation on vehicle cyber security with a CSMS and tests for each vehicle type; in the EU, mandatory for categories M and N for new types since July 6, 2022, and for all new registrations since July 7, 2024.
CSMSCyber security management system
Risk-based processes with which a vehicle manufacturer handles cyber risks across the lifecycle, including testing processes; the certificate of compliance is valid for no more than three years.
Technical service
Testing body designated by the approval authority – in Germany, by the KBA; it audits the CSMS and, under UN R155, tests a vehicle of the type on a sample basis.
ISO/SAE 21434Road vehicles – Cybersecurity engineering
2021 standard for cybersecurity engineering in road vehicles; it defines penetration testing and provides for testing in verification and validation, but does not cover backends.
TARAThreat Analysis and Risk Assessment
The threat analysis and risk assessment under ISO/SAE 21434 – from damage scenarios via attack paths to risk values; the most important source of test cases.
Attack feasibilityAttack feasibility rating
Measure of how easily an attack path can be carried out, rated by attack potential, CVSS exploitability or attack vector; pentests check these assumptions.
Automotive Threat MatrixATM
Auto-ISAC knowledge base modeled on MITRE ATT&CK, public since March 2024: 14 tactics and 75 techniques, also intended for penetration testing.
UN R155 threat catalog
List of threats and attack methods in UN R155: seven categories, 30 threats, around 70 examples (67 numbered entries); mandatory for the risk assessment.
UDSUnified Diagnostic Services, ISO 14229
Diagnostic protocol for reading and writing data, starting routines and reprogramming ECUs; ISO 14229-1 has been available in its fourth edition since June 2026.
Security AccessUDS service 0x27
UDS service that unlocks protected functions with a seed-key mechanism; since the 2020 edition, it has been complemented by an authentication service (0x29) using certificates or challenge-response.
HIL test benchHardware in the loop
Test setup in which real ECUs operate with a simulated environment of restbus, sensors and actuators – repeatable, risk-free and without a vehicle.
Relay attackRelay station attack
Forwarding of the radio communication between key and vehicle over a greater distance so that the vehicle believes the key is present; demonstrated on 10 models in 2011.
FuzzingFuzz testing
Automated test method that stresses interfaces with malformed inputs to uncover unknown faults; ISO/SAE 21434 names it as a test method.
Cybersecurity interface agreementCSIA
Agreement between customer and supplier under ISO/SAE 21434 on distributed cybersecurity activities – including who takes on which test level and who fixes findings.
FAQ

Frequently asked questions about automotive penetration testing

Short answers for manufacturers, suppliers and homologation teams – as of November 2026, not legal advice.

Automotive penetration testing is a commissioned security assessment that mimics real-world attacks on a vehicle, an ECU or the vehicle ecosystem – from the debug port to the backend. Unlike a vulnerability scan, an automotive pentest chains individual findings together and demonstrates whether an attack path is viable.

No, not by the letter of the regulation. UN R155 requires appropriate and sufficient testing of the security measures before type approval, and the authority or technical service tests a vehicle of the type. The KBA lists penetration testing as a recommended, not mandatory, test method and generally considers purely document-based evidence insufficient.

In product development, ISO/SAE 21434 names penetration testing as a test method alongside vulnerability scanning and fuzzing, and in vehicle-level validation as a means of demonstrating that the cybersecurity goals have been achieved. The standard does not prescribe specific test procedures; since November 2026, ISO/SAE TR 8477 has provided guidance.

An ECU penetration test (ECU pentest) examines hardware, firmware and interfaces, usually on the test bench: locked debug interfaces, embedded keys, outdated components, the response to forged bus messages, access control for the UDS diagnostic services, and the protection of updates and the boot chain.

CAN bus security is tested on the test bench or in a HIL setup, with attack chains additionally tested on the vehicle. Testers check whether ECUs accept forged messages, whether overload can paralyze the bus, whether the gateway separates the networks and whether message authentication is effective. A theft via CAN injection in 2023 showed how realistic this is.

Security Access is a UDS diagnostic service that unlocks protected functions such as reprogramming via a seed-key mechanism – without mutual verification and without session authentication. Testers examine how keys are generated and stored and whether the protection can be bypassed; the Automotive Threat Matrix lists bypassing it as a technique of its own.

An automotive pentest should take place in several stages: on the ECU as soon as hardware samples are available, in a HIL setup, on the complete vehicle before type approval and in the ecosystem as soon as backend and apps can be tested. After that, significant changes, new services and newly known attack techniques trigger new tests.

UN R155 directly obliges only the vehicle manufacturer; there is no separate certificate for suppliers. However, the manufacturer must manage supply chain risks and passes requirements on through contracts and the cybersecurity interface agreement. Test bench and HIL tests are therefore an obvious form of evidence for suppliers.

Yes, if they belong to the vehicle’s functions. ISO/SAE 21434 does not cover backends, but the UN R155 threat catalog explicitly addresses them. The 2024 Kia portal flaws and the openly accessible location data of around 800,000 electric vehicles from the Volkswagen Group show that such vulnerabilities affect entire fleets.

An automotive pentest uses the same hardware and firmware methods as an IoT pentest but adds in-vehicle networks, diagnostic protocols such as UDS, key fobs and V2X, safety consequences for driving functions and type approval under UN R155 – as well as HIL setups and the complete vehicle as test levels.

Standards & Sources

The content on this page is based on the following publicly available guides and studies.

Publications Office of the EU · 2025

UN-Regelung Nr. 155 – Cybersicherheit und Cybersicherheitsmanagementsystem (ABl. L 2025/5)

UN Regulation No. 155 – Cyber security and cyber security management system, official German version (in German): paragraphs 3.2.2, 5.1.2, 5.1.3, 7.2.2.2–7.2.2.4, 7.3.6, 7.3.7, 7.4.1, Annex 5.

Federal Motor Transport Authority (KBA) · 2026

Cyber-Security & Software-Update

Pentests recommended, not mandatory; up to two retests; accessed on November 23, 2026.

ISO / SAE International · 2021

ISO/SAE 21434:2021 – Road vehicles – Cybersecurity engineering

Clauses 10, 11 and 15; status “to be revised” since October 2, 2026.

Black Duck · 2021

Secure automotive software development following ISO/SAE 21434

Secondary source on RC-10-12 and RQ-11-01.

ISO / SAE International · 2026

ISO/SAE TR 8477:2026 – Road vehicles – Cybersecurity verification and validation

Technical report, published on November 6, 2026.

Auto-ISAC · 2026

Automotive Threat Matrix (ATM)

14 tactics, 75 techniques; accessed on November 23, 2026.

Auto-ISAC · 2024

Auto-ISAC launches Automotive Threat Matrix (ATM) tool

Press release of March 27, 2024; intended uses include penetration testing.

Embedded Computing Design · 2024

New UDS Authentication: Enhanced Security, Familiar Challenges

Secondary source on Security Access (0x27) and Authentication (0x29).

Noerr · 2026

Delegated Regulation (EU) 2026/699: secure gateways, OBD access and RMI

Secondary source on Delegated Regulation (EU) 2026/699, applicable since June 23, 2026.

Official Journal of the EU / EUR-Lex · 2019

Regulation (EU) 2019/2144 (General Safety Regulation)

Annex II, row D4: July 6, 2022 (new types), July 7, 2024 (registration), categories M and N.

IEEE Spectrum · 2015

Fiat Chrysler Recalls 1.4 Million Vehicles to Patch Software’s Security Flaw

Report of July 24, 2015, on the Jeep case.

Canis Automotive Labs (Ken Tindell) · 2023

CAN Injection: keyless car theft

Analysis of April 3, 2023.

Sam Curry · 2024

Hacking Kia: Remotely Controlling Cars With Just a License Plate

Reported on June 11, 2024, published on September 26, 2024.

Chaos Computer Club (38C3) · 2024

Wir wissen wo dein Auto steht – Volksdaten von Volkswagen

Talk (“We know where your car is parked – people’s data from Volkswagen”) of December 27, 2024 (in German).

SecurityWeek · 2025

Millions of Cars Exposed to Remote Hacking via PerfektBlue Attack

Report of July 10, 2025 (CVE-2024-45431 to -45434).

Zero Day Initiative · 2026

Pwn2Own Automotive 2026 – Day Three Results and the Master of Pwn

76 unique zero-days, January 21–23, 2026.

How robust is your test evidence for UN R155?

In a no-obligation initial consultation, we clarify the trigger, test levels and access, derive test cases from your TARA and the Automotive Threat Matrix, and show how the results feed into type approval documentation, the cybersecurity case and vulnerability management.