Product

Vehicle Security Test Cases: Why Your ECU Needs More Than a Test Library

Beacon
Published on Dec 01, 2026
December 1, 2026
Gouache travel-poster view from above of a rowboat on a clear turquoise sea, one fisher lowering a single line toward a school of silver fish while a pile of unused lines sits coiled in the boat.

A vehicle security test case is only useful if it tests something your ECU actually does.

There is no shortage of automotive security test-case libraries. There are also plenty of tools that can generate tests with AI. Neither solves the harder problem: knowing what to test, how a particular ECU behaves, and where its security controls are likely to fail.

Every ECU is different. Proprietary UDS services, custom implementations, exposed interfaces and configuration decisions create an attack surface that a generic library cannot fully describe. A collection of standard protocol checks gives you a starting point, not evidence that your specific target is secure.

The difference comes from experience testing real vehicles and ECUs. At Block Harbor, we've performed more than 150 hands-on penetration tests since 2015, and we've turned what those engagements uncovered into protocol knowledge and test cases that go beyond what you'll find in public specifications.

VSEC Test puts that experience behind AI that builds tests for your specific target, runs them through hardware on your desk, and keeps every finding for the next release.

Generic vehicle security test cases have a target problem

Most test libraries organize cases around protocols and interfaces. That's useful, but it assumes you already know which services your target exposes and how to interpret its responses.

Consider UDS. A library can include security access checks, memory read attempts and memory write attempts. But your ECU might expose proprietary services, implement standard services differently, or have configuration-specific behavior that changes what an attacker can reach. The same applies to XCP, CCP, CAN and automotive Ethernet. Knowing the protocol is not the same as knowing how a particular implementation behaves under attack.

Two-column comparison. A generic test-case library starts with known protocol checks, tests common service behaviors, relies on public protocol knowledge, produces results for individual test runs and leaves engineers to decide what matters. Tests built from pentest knowledge start with what the target actually exposes, account for proprietary services and implementation details, include findings from hands-on ECU testing, turn findings into repeatable regression tests and use target discovery and accumulated testing knowledge to focus the work.
A library gives you protocol checks; tests built from pentest knowledge start from what your ECU actually exposes.

A test library should give your team reusable building blocks. It should not be mistaken for a complete assessment of an ECU. The missing ingredient is practical knowledge of how these systems break, and that only comes from testing actual targets.

150+ pentests behind the test cases

Since 2015, Block Harbor engineers have run more than 150 penetration tests by hand. Those engagements cover the details that matter on real vehicle systems: how implementations behave, which interfaces expose useful attack paths, and where security assumptions don't hold up.

We turn that experience into reusable protocol knowledge and test cases. The library covers:

  • UDS security access
  • Memory read and write over UDS, CCP and XCP
  • CAN flooding
  • TLS and mutual TLS configuration checks
  • SSH and Telnet checks

The value isn't the number of tests in the library. It's the experience behind them and the ability to apply it to your target. 400 TARAs sit behind that experience too, so the testing connects to the risks you've identified, the mitigations you've selected and the evidence you need for a release decision.

Discovery makes the tests relevant to your ECU

Before running tests, VSEC Test discovers what the target actually exposes. Its discovery scan maps UDS and XCP servers, identifies the services they answer, detects CAN and CAN FD, and finds hosts and open ports on automotive Ethernet.

That gives the testing a map of the actual target instead of a generic list of possible interfaces. Tests focus on the services and interfaces that respond, rather than treating every ECU as interchangeable. The public specification tells you what a service can do. Testing tells you what your ECU actually does.

From there, VSEC Test combines its existing cases with tests written for the target. Custom Python test cases are written in an editor inside VSEC, covering behavior that doesn't fit a standard library case.

Put the testing hardware beside the ECU

Vehicle security testing needs access to the actual hardware. VSEC Test uses a VSEC Bench: a stock Raspberry Pi flashed with our image, placed beside the device under test and connected to VSEC over a VPN.

One Bench brings several interfaces into the same test:

  • CAN and automotive Ethernet
  • A JTAG debugger
  • UART, with a shell on the target's own operating system

Because the Bench runs Linux, any Linux tool runs alongside the testing. Your team gets every interface it needs without building separate test infrastructure for each engagement, and the ECU never leaves your building. See Remote ECU Security Testing.

From a pentest finding to a test on every release

The most useful security test isn't the one that finds a problem once. It's the one that makes sure the problem doesn't come back.

A customer believed a JTAG port on its hardware was disabled. We connected through the VSEC Bench and confirmed that the port was protected. That check didn't disappear into a pentest report. It became a test that runs against every unit and every release.

That is the difference between a one-time assessment and repeatable security validation:

  1. Discover the target's exposed interfaces and services.
  2. Generate and select the tests that fit the target.
  3. Run them through the VSEC Bench.
  4. Review results with Block Harbor engineers or your own team.
  5. Keep findings as test cases and evidence for the next run.

Each run maps results to R155 mitigations and exports a PDF report. You can compare a new run with the previous one to see what changed, and findings land as evidence on the risks they prove in VSEC. Your ECU's software and configuration change; the security evidence keeps pace. More on why: Your ECU Pen Test Expires at the Next Release.

Pentesting, fuzzing and repeatable tests do different jobs

A penetration test investigates the target, follows attack paths and finds weaknesses nobody anticipated. Fuzz testing explores how software handles unexpected or malformed input. Repeatable test cases check specific behaviors and controls over time.

A mature validation program uses all three. The pentest expands your understanding of the attack surface, fuzzing explores implementation behavior, and repeatable test cases preserve what you've learned so you can check it again after every change. For a closer look, read Fuzz Testing vs. Penetration Testing in Automotive Cybersecurity.

Start testing without connecting hardware

You don't need an ECU or a VSEC Bench to see how this works. The free UDS & XCP Starter Challenge gives your team a simulated target, so you can run discovery and protocol tests before bringing your own device in.

Vehicle security test cases should reflect the systems you actually ship, not just the protocols they happen to use. We've spent years finding out how real ECUs fail, and VSEC Test puts that knowledge behind tests your team can review and carry from release to release.

Try the free UDS & XCP Starter Challenge, or bring us your own ECU and we'll run it against your hardware.

Explore VSEC Test

Subject expert

Jesse Wasen
Jesse Wasen
Director of Labs

Jesse Wasen is Director of Red Team and Operations at Block Harbor, where she oversees the company’s business operations and leads client engagements from scoping through delivery. Her combined red team and incident response background ties findings to real-world impact and practical defense. A PMP-certified project manager, she also serves as a Director with DEF CON’s Car Hacking Village and has been involved with FIRST, the global incident response community.

Join our Mailing List

Get a monthly digest of what we're working on.

One email a month. Unsubscribe anytime. Privacy policy

Read More

Explore more automotive cybersecurity insights from our experts. Discover best practices, case studies, and emerging trends to strengthen your organization's security posture.

Risograph print of a tall parts cabinet whose drawers carry tiny machine silhouettes; amber threads run from one microchip on the workbench to the five drawers that hold it.
Industry
PSIRT for Equipment Manufacturers: Why Your Product Inventory Comes Before Fleet Monitoring

For most equipment makers, the first product-security capability that pays for itself is a PSIRT, built on an inventory of what's in every machine.

Learn More
Scale models of a sedan, a tractor, a delivery van and a warehouse robot on a workbench, each with the same glowing module inside, threads running from all four to one loose copy of the module under a magnifying lamp.
Product
The Living Product Twin Behind a Better TARA

A living product twin connects TARA, ECU testing and vulnerability response, keeping cybersecurity risks attached to the components and products they affect.

Learn More
Woodblock-print style illustration of a heavy off-road work machine in a workshop at dusk, its control cabinet open with a laptop cable plugged into the controller and an intact wire tamper seal with a blank lead disc hanging from the latch.
Regulatory
EN 50742: What Machine Manufacturers Need to Know About the EU's New Anti-Tampering Standard

EN 50742 introduces new requirements for machine cybersecurity. Learn what manufacturers selling into the EU need to record, protect and prepare.

Learn More
A high-jump crossbar set on a rusted upright at an empty test track at dusk, with a car waiting in the background, headlights on.
Regulatory
The NHTSA Cybersecurity Best Practices Update Moves the Bar for "Reasonable"

NHTSA is reopening its vehicle cybersecurity best practices. Where the update is headed, and what we think risk management should look like now.

Learn More

Try Block Harbor Today

Start protecting your vehicles with the same platform the world’s best hackers and defenders use.