Most quality professionals were trained to treat defects as the output of variation: a worn tool, a drifting oven, a tired operator on nights. Cybersecurity demands a different mental model — a defect that an intelligent adversary deliberately designs into your product and then hides. The variation is not random. It has intent, patience, and knowledge of your inspection regime.
I first took this seriously when a supplier's flashing station was found running a copied version of the calibration software, installed by a contractor who had been given administrator rights and no supervision. Nothing had failed any test. The firmware was unsigned where it should have been signed, and nobody in the quality organisation had a route to detect it. That is the core problem: our inspection methods assume unintentional causes.
The automotive quality system and the cybersecurity system — typically run under ISO/SAE 21434 by a separate engineering team — are usually staffed by people who have never sat in the same meeting. That separation is itself a defect pathway. A tampered firmware image, a compromised diagnostic endpoint or a forged update package will pass every dimensional and functional check you have, because those checks were never designed to look for it. The two systems must share one product, and eventually one audit trail.
The attacker as a hidden process input
Threat analysis and risk assessment (TARA, in 21434 vocabulary) is structurally close to the failure-mode thinking quality people already do, but the causation runs backwards. In a PFMEA you ask what can go wrong; in a TARA you ask who wants it to go wrong, what they gain, and what path costs them least. Attack feasibility scoring considers elapsed time, specialist equipment and knowledge of the target — a workable analogue to severity, occurrence and detection.
The detection leg is where automotive practice is weakest. Detection controls in classic quality work rely on measurement after the fact. Against an adversary who studies your inspection regime, that assumption collapses: whatever you check routinely, they avoid. Detection has to be designed as independent confirmation, not as another inspection point the attacker can model.
Run the TARA against your build process, not just the vehicle architecture. The assets in scope on a production line include the golden firmware images, the signing keys, the flash toolchain, the diagnostic credentials and the traceability database. Damage scenarios at that level are concrete: an attacker replaces a signed image with an older signed build containing a known vulnerability — a rollback that survives every signature check because both images are legitimate.
What to measure: coverage of the line's assets in the TARA, the number of flash-path components with unverified integrity, and time-to-detect for an unauthorised software change. Check whether every flashing station validates the full chain — image hash, signature, certificate revocation status — or whether it trusts whatever the server pushed. In my experience the latter is common, and it means a single compromised build server owns your entire fleet's software baseline.

Production-line security is process control
Treat flashing and programming stations as critical process steps subject to tighter control than anything dimensional. The tool that writes ECU software is more dangerous than a torque wrench: its failure propagates to every unit until someone notices, and its failure can be designed not to be noticed. Apply the discipline you would give a safety-critical characteristic — documented setup, restricted access, verified inputs, independent confirmation of output.
Access control on the line deserves engineering detail, not a policy memo. Each station should run a non-administrator account; the flash tool should authenticate to the build server with a station-specific credential, not a shared one; and the signing operation should live on an HSM or a segregated signing host that line operators cannot reach. Segment the plant network so the flashing VLAN is unreachable from the office side or from vendor maintenance laptops.
I have audited plants where a supplier's remote diagnostics box was bridged directly onto the programming subnet. That is a standing open door, and it existed because the network was outside the quality system's control plan entirely. Segmentation and credential design are process controls, and they belong in the same documents as torque specifications and gauge calibration schedules.
For internal audits, check whether the golden image repository has change control with two-person approval, whether station credentials rotate, whether USB ports on flash PCs are disabled, and whether there is a log of every image hash written, per VIN. The last item matters because it converts a fleet-wide software recall question into a query. If you cannot answer which vehicles received image X within minutes, you do not have traceability for software at all — and software is now most of the product.
Update integrity: the defect delivered after ship
Over-the-air and workshop updates extend your production process into the field, indefinitely, without the physical controls of the plant. A malicious or corrupted update is the highest-leverage defect available to an attacker: one package, delivered at scale, self-installing. Integrity of that path is a quality requirement, not an IT requirement, and it belongs on the product's critical characteristic list.
The engineering minimum is end-to-end verification. The vehicle must validate the package signature against a key held in hardware-protected storage, verify the hash before installation, and refuse to run anything that fails either check. Partial-write tolerance needs an A/B scheme or a rollback region, so a bricked ECU mid-update does not become a warranty line item.
Metadata checks matter as much as signatures. A legitimate package for the wrong variant, wrong ECU or out-of-sequence version is a defect your signature check will happily wave through. Validation must bind the package to the target: variant, hardware revision, dependency chain, monotonic version.
Update verification chain
- 01Signature checkValidates the package against a key anchored in hardware-protected storage.
- 02Hash verificationConfirms the bytes received match the bytes signed, before installation begins.
- 03Metadata bindingRejects valid packages targeted at the wrong variant, ECU or sequence.
- 04Anti-rollbackRejects older signed builds containing known vulnerabilities.
- 05Attestation logRecords what actually runs, so escapes are detectable after the fact.
Rollback protection deserves its own line item. Rejecting version numbers lower than currently installed blocks the attacker's favourite trick: re-installing an old, correctly signed build that contains a vulnerability they know how to exploit. On the server side, verify that your update infrastructure checks the signing keys' certificate status, that revocation actually propagates to vehicles, and that the build pipeline producing packages is the same hardened chain you control in-plant. Measure update success rates, verification failure counts and time from compromise detection to fleet-wide revocation.
Detection: where both systems fail together
The uncomfortable truth shared by quality and cybersecurity practice in automotive is that detection is the weak leg everywhere. An attacker who controls firmware can spoof sensor readings, fake diagnostic responses and report healthy status on the exact communication channel you would use to interrogate the ECU. This is the functional equivalent of a gauge that lies to your MSA study. Trusting self-reported status is an architectural flaw, not a procedural one.
Whatever you check routinely, the adversary avoids. Detection must be independent confirmation, not another inspection point they can model.
Build independent confirmation paths. Compare the firmware version and image hash reported by the ECU against the value recorded at the plant for that VIN, at every service event. Use a physically distinct interface for verification where the platform allows it. Log cryptographic attestations from ECUs periodically, not only during diagnosis, and route those logs somewhere the infotainment stack — the most compromised surface in most vehicles — cannot alter.
Where the architecture permits, boot-time measurement with a hardware root of trust gives you a fresh attestation each ignition cycle. That converts detection from a scheduled event into a standing property of the product, which is the only posture that survives an adversary who knows your diagnostic calendar.
Audit measures for this area: percentage of ECUs in the architecture that support remote attestation, percentage of service events where software state is actually compared to plant records, and mean time between an unauthorised change and its detection in your test scenarios. Run a red-team exercise against a development vehicle with your own engineers attempting rollback, spoofed diagnostics and forged attestations. Document findings as defect records with owners and closure dates, exactly as you would a dimensional escape.
Governance: making one product out of two systems
Two disciplines, three shared metrics
Governance is where the merger happens or fails. Cybersecurity assurance evidence — the TARA, the incident response plan, the vulnerability management records — should sit alongside quality records in the same audit calendar, reviewed by people who know both languages. Escalation of a suspected software integrity escape must trigger the same containment logic as a physical safety escape: quarantine stock, trace affected units, notify customers, stop shipment.
If your cyber team has no path into the quality escalation process, a compromised build will circulate for weeks while it is handled as an IT ticket. I have seen this pattern in plants where the escalation matrix was well built for physical defects and silent on software. The fix is structural: one matrix, one set of severity definitions, one stop-shipment authority.
Supplier management is the same story at one remove. Tier ones now ship ECUs, connectivity modules and update services with their own software pipelines. Supplier-quality engineers need to ask different questions: how are signing keys protected, who approves image releases, what attestation evidence arrives with each lot, and can the supplier produce per-unit software traceability on demand? Add software integrity items to supplier audits and to incoming inspection criteria for anything with a programmable component.
Cyber findings as first-class defect data
Treat cybersecurity findings as defect data with full standing. Feed them into the same corrective-action discipline — 8D, containment, root cause, effectiveness verification — the same escalation matrix and the same management review agenda as any other nonconformity. The moment a pen-test finding enters a ticketing system the quality organisation cannot see, it has left the defect management system entirely.
The discipline that decades of quality work build — rigour, traceability, containment, honest measurement — is precisely what vehicle software security has historically lacked. The inverse is also true: security engineering contributes controls quality never had, such as cryptographic verification and continuous attestation. A merged system is stronger than either parent.
The attacker's structural advantage is that two organisations each assume the other owns the boundary. Close that assumption, and the defect they create has nowhere to hide. That is not a technology programme; it is a change to the control plan, the escalation matrix and the audit calendar. Quality owns all three, which is why quality should own the merger.
Start small and concretely: pick the flash path, map its assets, run a TARA on it, and put image-hash traceability per VIN into the audit this quarter. One product, one audit trail. Everything else follows from that decision.
