These Engineers Are Cleaning Up Connected Cars’ Security Flaws

Marcus Vance

Marcus Vance

Engineering Team

10 min read
Index(9 sections)

A connected-car vulnerability rarely belongs to one component. A mobile authorization defect can expose a cloud command API. That API can reach a telematics gateway, which mediates access to in-vehicle networks. Firmware, dealership tools, identity services, and supplier credentials extend the same trust graph.

This reference case combines patterns from public disclosures and automotive security guidance. It does not represent a named manufacturer or claim access to private production benchmarks. Where evidence is unavailable, I mark it as unavailable instead of manufacturing a result.

The remediation group included firmware engineers, backend teams, SREs, vehicle security specialists, release engineers, and supplier managers. Their task was not simply to close findings. They had to replace unsafe trust relationships while vehicles and digital services remained operational.

The Legacy Baseline

The incident pattern started as disconnected tickets: excessive mobile API permissions, long-lived supplier credentials, weak separation between firmware metadata and operational data, and dealership access that bypassed normal command policies. Each team could patch its local defect. None owned the complete command path.

The engineers reconstructed five flows:

  • Commands: Driver or operator requests moving from cloud services to the vehicle.
  • Telemetry: Vehicle state moving into OEM analytics and operations systems.
  • Diagnostics: Dealership or support access crossing external and vehicle boundaries.
  • Software artifacts: Supplier binaries and metadata entering the OTA release process.
  • Credentials: User tokens, vehicle certificates, signing keys, and supplier identities.

This followed the fault-containment principles in NHTSA’s Cybersecurity Best Practices for the Safety of Modern Vehicles: limit exposed services, segment vehicle networks, protect cryptographic material, and retain evidence for incident response.

The legacy backend combined identity, vehicle ownership, remote commands, telemetry ingestion, diagnostic access, and firmware catalogs in one deployment. A shared database linked every release to the same persistence and scaling boundary. Telemetry bursts competed with command authorization queries. Supplier integrations used broad service accounts. A backend rollback could also revert security policy.

The team built its remediation backlog around evidence rather than ticket severity alone:

  • Can an attacker reach the component under real deployment conditions?
  • Can the defect cross from infotainment or telematics into a safety-relevant domain?
  • Which hardware, firmware, service, and credential versions are affected?
  • Can operations detect exploitation and recover through OTA, or is physical service required?
  • Who owns verification when the vulnerable component comes from a supplier?

CVSS data remained useful, but it could not answer vehicle-state, fleet-reach, or recovery questions. Every backlog item therefore required an affected-component record, abuse case, containment action, permanent fix, verification owner, and rollback plan.

Target State Architecture (PlantUML)

The target state applied a strangler pattern to the OEM backend. It separated command, telemetry, diagnostics, identity, and OTA domains. Each domain received its own persistence boundary and service identity. The vehicle gateway remained the enforcement point between externally reachable systems and safety-relevant ECUs.

System Architecture Specification

Immediate containment preceded this migration. The team disabled unused gateway operations, revoked exposed credentials, isolated supplier routes, and added alerts for abnormal command and diagnostic activity. Containment reduced reachability while engineers repaired root causes.

Phased Cutover Playbook

Phase 1: Dual-Write & Shadow Traffic

The legacy application remained authoritative. A transactional outbox emitted identity, entitlement, artifact, and command-state changes to the new domain stores. Idempotent consumers performed the logical second write, avoiding two independent database commits in the request path.

The gateway mirrored eligible traffic to the new services. Shadow command requests terminated at a non-actuating adapter. They could evaluate authentication, policy, serialization, and latency, but they could not send a second command to a vehicle. Secrets and unnecessary location data were removed from shadow records.

Phase 2: Parity Verification & Reconciliation SQL

Parity meant more than equal row counts. Engineers compared authorization decisions, policy versions, canonical payload hashes, ownership state, and revocation state. They replayed cases involving ownership transfers, stale firmware, revoked dealership access, and disconnected vehicles.

This PostgreSQL query identifies missing or divergent command decisions after the caller binds the time-window parameters:

WITH legacy_rows AS (
    SELECT vehicle_id, command_id, decision,
           policy_version, payload_hash
    FROM legacy.command_decisions
    WHERE decided_at >= :window_start
      AND decided_at < :window_end
),
modern_rows AS (
    SELECT vehicle_id, command_id, decision,
           policy_version, payload_hash
    FROM modern.command_decisions
    WHERE decided_at >= :window_start
      AND decided_at < :window_end
)
SELECT
    COALESCE(l.vehicle_id, m.vehicle_id) AS vehicle_id,
    COALESCE(l.command_id, m.command_id) AS command_id,
    l.decision AS legacy_decision,
    m.decision AS modern_decision
FROM legacy_rows l
FULL OUTER JOIN modern_rows m
  ON l.vehicle_id = m.vehicle_id
 AND l.command_id = m.command_id
WHERE l.command_id IS NULL
   OR m.command_id IS NULL
   OR ROW(l.decision, l.policy_version, l.payload_hash)
      IS DISTINCT FROM
      ROW(m.decision, m.policy_version, m.payload_hash);

A clean query result was necessary but insufficient. Security engineers still verified gateway behavior and adverse vehicle states on representative hardware.

Phase 3: Weighted Route Shifting with Circuit Breakers

The gateway shifted stable vehicle cohorts rather than random requests. This prevented one vehicle from alternating between policy engines. Cohorts accounted for hardware, firmware, geography, and connectivity characteristics.

Circuit breakers watched authorization mismatches, signature failures, event lag, error rates, and tail-latency regressions. Remote actuation failed closed when policy state was uncertain. Telemetry could buffer and retry. Local vehicle safety functions did not depend on cloud availability.

OTA releases used signed metadata, staged cohorts, vehicle-state checks, and recoverable installation states. The design followed the compromise-resilient principles in the Uptane Standard.

Phase 4: Legacy Deprecation & Teardown

Engineers removed legacy routes only after route logs showed no valid consumers. They revoked service identities, supplier tokens, certificates, signing permissions, DNS records, and firewall exceptions. Retained audit data moved to controlled storage according to legal and incident-response requirements.

Teardown also covered operational knowledge. Runbooks, dashboards, release approvals, and supplier escalation paths had to reference the new owners. Otherwise, an emergency could reactivate the obsolete path.

Production Metrics & Business ROI

The available evidence does not contain publishable production measurements. The table therefore distinguishes required measurement from verified results. Methods reference the OpenTelemetry metrics data model, AWS Cost and Usage Reports, and AWS blue/green deployment guidance.

Production measureLegacy baselineRemediated-state gate
Command authorization p95 latencyValue not publicly availableCompare production histograms by route and vehicle cohort
End-to-end command p99 latencyValue not publicly availableSeparate cloud processing from vehicle acknowledgement time
Cloud cost ($/1M requests)Verified amount unavailableNormalize attributed compute, gateway, event, observability, and egress spend
Downtime during cutoverNo supplied incident record0 seconds of planned downtime is the acceptance target, not a claimed observation
Authorization parityFindings require reconciliationNo unexplained policy or ownership mismatch before route expansion

The architecture can reduce cost because telemetry and command services scale independently. That saving is not automatic. Event infrastructure, HSM-backed signing, audit retention, and fleet observability add legitimate costs.

The defensible ROI comes from smaller fault domains, narrower regression testing, faster credential containment, and fewer releases that require coordinated changes across the full backend. Finance should not book avoided recall or incident costs without traceable operational evidence.

Architectural Lessons & Gotchas

Dual-write logic must remain temporary. If both systems accept independent changes, entitlement and vehicle-ownership records will diverge. One authoritative writer and stable operation identifiers are required throughout migration.

OTA rollback also conflicts with anti-rollback protection. A vehicle should not accept an older vulnerable binary merely because operations selected “rollback.” Teams need a signed recovery artifact with an allowed version progression and a tested recovery partition.

Artifact signatures prove integrity and release authorization. They do not prove that the software is safe. Static analysis, hardware testing, threat modeling, and supplier verification remain separate controls.

Fleet observability creates its own exposure. VINs, location records, diagnostic output, and credentials must not leak into unrestricted logs. Security teams need useful forensic evidence, but access, redaction, and retention must remain explicit.

An SBOM improves component discovery; it does not prove exploitability or remediation. The supplier program must connect inventory data to deployed versions, reachability analysis, disclosure deadlines, and fix validation. CISA maintains practical SBOM guidance for this purpose.

Finally, ownership must follow the system boundary. UN Regulations No. 155 and No. 156 frame cybersecurity and software-update management as lifecycle processes. ISO/SAE 21434 provides the corresponding engineering risk-management structure.

The cleanup becomes durable when every command, credential, artifact, supplier component, and vehicle release has an accountable owner and reproducible evidence. Patching closes a finding. Controlled architecture prevents the same trust failure from returning through another route.

Share This Article

More Engineering Architecture Playbooks

Deep dives and blueprints from our senior engineering team

Microsoft 365 outage leads to chlorine gas poisoning of 15 hotel guests
Architecture•10 min read

Microsoft 365 outage leads to chlorine gas poisoning of 15 hotel guests

A cloud productivity outage should never be capable of disabling the controls needed to operate hazardous hotel systems safely. This paper will distinguish chronology from causation, examine how digital dependencies and human factors could allow an outage to propagate into physical operations, and define an architecture in which local safeguards, offline procedures, and emergency authority remain available independently of Microsoft 365.

When the Cloud Goes Dark: What Microsoft
Architecture•10 min read

When the Cloud Goes Dark: What Microsoft

Microsoft's outage should be treated as a stress test of the wider digital operating model, not merely as an isolated vendor failure. The core thesis is that resilience depends on identifying shared failure domains, preserving independent operational access, and designing critical business journeys to degrade safely when cloud dependencies become unavailable. The paper will separate verified incident facts from architectural inference and translate both into production-engineering actions.

Alpine Linux Security Advisory: OpenSSH-server password authentication bypass
Architecture•10 min read

Alpine Linux Security Advisory: OpenSSH-server password authentication bypass

Organizations should treat the advisory as an identity-boundary incident until package inventory, SSH configuration, network exposure, and access records establish otherwise. The paper will translate verified Alpine guidance into a production-safe workflow covering exposure analysis, containment, upgrades, validation, threat hunting, and recovery.