← Lab /AI/ML

Hardware keystores eliminate AI agent key-exfiltration attacks in tests

Using a hardware-confined keystore with a zero-trust enforcement stack reduces attack success rate to zero

AI/ML arXiv 6 Aug 2026 Defense Prototype evidence Threat model

Published as “Hardware Keystores for AI Agent Signing Workflows: A Zero-Trust MCP Enforcement Architecture”

Why it matters

Operators can secure AI-agent signing pipelines against key exfiltration and unauthorized signing with a single configuration change and without modifying existing tooling.

Summary

The protected deployment blocks all 12 injection scenarios, achieving a 0% attack success rate (Wilson 95% CI upper bound 2.0%) compared to a 19.3% baseline ASR across three LLMs. This zero-failure result comes from hardware-confined keys plus a five-layer zero-trust stack that enforces identity, scope, deterministic commitment checks, and semantic validation. The evaluation covers 192 combined trials with zero false positives on benign tasks. Evidence is strong but limited to synthetic injection benchmarks and a software HSM emulator plus a single TPM model.

What they found 1

  1. Protected attack success rate is 0% (CI upper bound 2.0%) versus 19.3% baseline across three models.

    “protected ASR: 0% (Wilson 95% CI upper bound 2.0%).”

Caveats 3

  • The RAV alone reduces baseline attacks to 0% but with a wide confidence interval (upper bound 27.8%) due to the small ablation sample.
  • The current prototype does not rate-limit the escalations that do reach the operator (UNSURE verdicts, tainted payloads, no-commitment calls); this is a documented limitation.
  • The taint model does not propagate taint to files written during that session... this is deferred to future work.

What’s new here 4

  • Integrates vendor-neutral PKCS#11 hardware keystores (HSM/TPM) into MCP-based AI agent workflows, eliminating software-resident private keys.
  • Introduces a five-layer zero-trust enforcement stack (SAGA, Smax, Chist commitment, RAV, taint tracking) that surrounds the hardware boundary.
  • Provides deterministic payload-hash commitment (Chist) that blocks substitution attacks without relying on model alignment.
  • Adds a Runtime Alignment Validator (RAV) LLM judge that evaluates structured intent tuples, reducing HITL escalation rates.

Threat model stated by the source

AdversaryLLM System Agent subject to indirect prompt injection, hallucination, and identity spoofing
Capabilitycan issue tool calls, read external content, and attempt to exfiltrate keys
AssumesOS kernel not compromised; hardware keystore not physically attacked; no PKCS#11 timing side-channels