When the Clock Lies: How Capability Cards Lost Their Freshness Anchor

The cabin agent lost every capability it had, including reading the HVAC state, the moment the vehicle woke up in an underground car park with no GNSS fix and no cellular link. The recovery path made it worse: a fallback written to keep the agent useful accepted the last card it had cached, and one of those cards carried a grant that had already been revoked. Nothing in the code was wrong in the narrow sense. The specification assumed that card freshness could always be judged against trustworthy wall clock time, and that assumption stopped holding underground.

Trigger versus assumption

The trigger is easy to name: a cold start with no external time source, a real-time clock that had drifted while the car sat parked, and a central compute that therefore read every card's notBefore and notAfter fields against the wrong instant. Triggers like this come from the environment and will recur; you do not fix an underground car park, you survive it. The assumption underneath is different in kind. Capability cards were designed as signed statements with absolute validity windows, a habit borrowed from web PKI, where a synchronized clock is a precondition nobody questions. In a vehicle, time is a service delivered by other ECUs and external links, and any of them can be absent at the exact moment the agent is asked to act. Framing the postmortem this way keeps the discussion on the design: the engineer who wrote the fallback implemented the spec faithfully, and the spec carried a dependency nobody had listed as one.

Why the fallback failed open

Once every card looked expired, the agent registry had two exits, refuse everything or trust what it saw last. The team chose availability, a defensible instinct for a voice assistant that should at least report cabin temperature. The flaw was granularity. A “last valid card” is a whole bundle in which discovery metadata, trust chain and authorization grants arrive together, so reviving it revived the grants too, among them a remote unlock delegation that the fleet operator had revoked while the vehicle was offline. Discovery data tolerates hours of staleness; an authorization grant in this architecture was meant to live 60 s. Applying one freshness rule to both is where the design let a degraded state turn into a permissive one.

The decision rule that came out of it

If an enforcement point cannot prove a grant is fresh against a vehicle-local epoch, it executes only the baseline capability set signed into its own firmware and never falls back to the last grant it observed.

What keeps working when one part fails

The redesign splits the card into layers with independent lifetimes and moves the final check to the zonal controllers that own the actuators. Freshness is now measured against a monotonic epoch that the vehicle's secure time master advances on every authenticated boot and wake cycle, so a missing GNSS fix no longer invalidates anything; it only prevents mapping the epoch to UTC, which matters for audit trails, not for authorization. Each zone keeps a small baseline set of read-only state queries and comfort functions with no safety or security impact, and serves it to an authenticated agent even when the central registry is unreachable. Revocation travels as an epoch-stamped list, and a zone that has not seen a list newer than its own epoch refuses every grant above baseline. This fits what cybersecurity engineering standards such as ISO/SAE 21434 expect from a threat analysis, because the degraded mode is now an explicit, analysed state instead of an accident of fallback code. The price is real: on an underground cold start the agent is visibly less capable, by our estimate for the first few minutes until a link returns, and product teams have to accept an assistant that sometimes says no.

Why not simply trust the real-time clock on the central compute?

Because its drift while parked is unbounded from the authorization point of view, and an attacker who can keep the vehicle offline also controls how stale the cached cards appear; a monotonic epoch advanced by authenticated boots cannot be wound back the same way, so the zone gets a freshness signal that depends on no external link.

Back to A2HumanCard · Domains

← Back to A2HumanCard
Engineering & Architecture Brief

When the Clock Lies: How Capability Cards Lost Their Freshness Anchor

The cabin agent lost every capability it had, including reading the HVAC state, the moment the vehicle woke up in an underground car park with no GNSS fix and no cellular link. The recovery path made it worse: a fallback written to keep the agent useful accepted the last card it had cached, and one of those cards carried a grant that had already been revoked. Nothing in the code was wrong in the narrow sense. The specification assumed that card freshness could always be judged against trustworthy wall clock time, and that assumption stopped holding underground.

Trigger versus assumption

The trigger is easy to name: a cold start with no external time source, a real-time clock that had drifted while the car sat parked, and a central compute that therefore read every card's notBefore and notAfter fields against the wrong instant. Triggers like this come from the environment and will recur; you do not fix an underground car park, you survive it. The assumption underneath is different in kind. Capability cards were designed as signed statements with absolute validity windows, a habit borrowed from web PKI, where a synchronized clock is a precondition nobody questions. In a vehicle, time is a service delivered by other ECUs and external links, and any of them can be absent at the exact moment the agent is asked to act. Framing the postmortem this way keeps the discussion on the design: the engineer who wrote the fallback implemented the spec faithfully, and the spec carried a dependency nobody had listed as one.

Why the fallback failed open

Once every card looked expired, the agent registry had two exits, refuse everything or trust what it saw last. The team chose availability, a defensible instinct for a voice assistant that should at least report cabin temperature. The flaw was granularity. A “last valid card” is a whole bundle in which discovery metadata, trust chain and authorization grants arrive together, so reviving it revived the grants too, among them a remote unlock delegation that the fleet operator had revoked while the vehicle was offline. Discovery data tolerates hours of staleness; an authorization grant in this architecture was meant to live 60 s. Applying one freshness rule to both is where the design let a degraded state turn into a permissive one.

The decision rule that came out of it

If an enforcement point cannot prove a grant is fresh against a vehicle-local epoch, it executes only the baseline capability set signed into its own firmware and never falls back to the last grant it observed.

What keeps working when one part fails

The redesign splits the card into layers with independent lifetimes and moves the final check to the zonal controllers that own the actuators. Freshness is now measured against a monotonic epoch that the vehicle's secure time master advances on every authenticated boot and wake cycle, so a missing GNSS fix no longer invalidates anything; it only prevents mapping the epoch to UTC, which matters for audit trails, not for authorization. Each zone keeps a small baseline set of read-only state queries and comfort functions with no safety or security impact, and serves it to an authenticated agent even when the central registry is unreachable. Revocation travels as an epoch-stamped list, and a zone that has not seen a list newer than its own epoch refuses every grant above baseline. This fits what cybersecurity engineering standards such as ISO/SAE 21434 expect from a threat analysis, because the degraded mode is now an explicit, analysed state instead of an accident of fallback code. The price is real: on an underground cold start the agent is visibly less capable, by our estimate for the first few minutes until a link returns, and product teams have to accept an assistant that sometimes says no.

Technical FAQ: Why not simply trust the real-time clock on the central compute?

Because its drift while parked is unbounded from the authorization point of view, and an attacker who can keep the vehicle offline also controls how stale the cached cards appear; a monotonic epoch advanced by authenticated boots cannot be wound back the same way, so the zone gets a freshness signal that depends on no external link.

Related Architecture Specifications (AUTOMOTIVESDV): sdvsafe.com · selfdrivingtwin.com · vehicle2infrastructure.com

More Technical Articles on a2humancard.com

Allocating Legal Liability in Software-Defined Vehicles with Autonomous Agents →Hardening In-Cabin Voice Biometrics Against Acoustic Replay Attacks →