Tracekit detects all log edits and flags many malicious tool calls
Tracekit provides tamper-evident auditing that reliably detects log modifications and unsafe agent actions
Security & privacy arXiv 28 Sep 2026 Method Prototype evidence
Published as “Tracekit: Tamper-Evident Intent-Reasoning-Action Auditing for Autonomous Coding Agents”
Why it matters
Provides a lightweight, dependency-free way to obtain tamper-evident logs for coding agents, but operators must supply external anchors and cannot rely on self-report for security guarantees.
Summary
Tracekit can make autonomous coding agents’ activity tamper-evident and auditable, detecting every in-place edit, deletion, reordering, forged insertion and torn write, while requiring external anchors to catch tail truncation or full re-chains. The overhead is low, with a median hook latency of 23.9 ms and flat performance up to 100 k records, and it scales to 2 k concurrent writes. However, the built-in regex policy gate blocks only 41% of harmful tool calls and misses false-success faults, and the self-report channel is often unavailable, limiting its usefulness for reasoning verification.
What they found 3
- The hash chain alone detects every in-place edit and torn write
“The chain alone detects every in-place change and torn writes.”
- Hook latency remains low and flat as the ledger grows
“The median is 23.9 ms for PreToolUse on an empty ledger and 24.6 ms at 100,000 records.”
- Rule-based flags catch 82% of spliced faults
“Rule flags caught 40/49 (82%) of faulted traces through policy flags (network, destructive, side effect, secrets access) and the unmentioned-file check.”
Caveats 7
- The gate blocked 18/44 (41%) of harmful calls; blocking or flagging together covered 40/44 (91%) (fig. 5). No exfiltration command was blocked. It wrongly blocked 3 benign calls (7.5%): a grep for the word sudo, an echo containing it, and writing .env.example.
- Tail truncation and full re-chaining pass chain verification in every trial and are detected only via the anchor.
- the provider withheld the text of all 27 thinking blocks, so self-report was limited to visible prose.
- hash chains need anchors
- syntactic gates are tripwires
- in practice the reasoning channel may simply not be there.
- The rule flag for actions without visible explanation fired in every run, which makes it informational rather than actionable.
What’s new here 4
- Three-channel audit (intent, self-report, actions) recorded in a hash-chained ledger with external anchoring
- SDK and HTTP API allowing any agent to contribute events to the same tamper-evident log
- Seeded-fault splicing evaluation method that injects concealed misbehaviour into real agent traces
- Live browser-based observer that re-verifies the ledger client-side without external dependencies