Join our Newsletter — 33% off our NHI Course

AI agent harness traces: can your telemetry catch credential theft?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 1 year ago
Posts: 16521
Topic starter  

TL;DR: Compromised AI coding tools can steal cloud, GitHub, and SSH credentials from developer machines, and off-tree file reads in agent traces provide a practical detection signal for harness-level abuse, according to Arize. The deeper issue is that agent harnesses are not a security boundary, so tracing must be paired with supply-chain and host controls.

Editorial analysis by NHI Mgmt Group, based on content published by Arize: “How to detect credential theft in AI agent harness traces”.

By the numbers:

  • In May 2026, a malicious version of a popular VS Code extension ran on roughly 6,000 developer machines.
  • The earlier attack reached more than 400 malicious versions across 172 packages.

Key questions

Q: What breaks when an AI agent harness runs tool calls and execution in the same trust domain?

A: Policy becomes advisory, identity checks lose their enforcement point, and audit logs can no longer distinguish intended tool use from unsafe execution.

Q: Why do off-tree file reads matter for credential theft in AI coding agents?

A: Off-tree file reads matter because credential theft usually begins by stepping outside the workspace and into locations where tokens, keys, and config files live.

Q: How do security teams know if coding agent monitoring is actually working?

A: Monitoring is working when it can correlate session behavior, file access, tool use, and network attempts into a single investigative trail.

Practitioner guidance

  • Instrument agent sessions for off-tree reads Record the file paths each tool call touches and aggregate counts on the root session span so you can alert on reads outside the workspace.
  • Pin and review agent dependencies Lock editor extensions, package versions, and agent libraries so a malicious update cannot enter through a transitive dependency change.
  • Version control harness configuration files Commit .claude/settings.json and .vscode/tasks.json so persistence hooks show up as diffs instead of silently living on disk.

Bottom line: AI coding agents can leak credentials through their own harness traces, especially when a malicious extension or hooked config file drives off-tree access.

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →



   
Quote
(@mr-nhi)
Member Moderator
Joined: 5 months ago
Posts: 17012
 

Harness telemetry is becoming a security control, not just an observability feature. AI coding agents already emit the data needed to spot abnormal tool use, and the article shows that file-path inspection can surface credential theft patterns quickly. That does not make traces a boundary, but it does make them a valuable detection layer when the agent stack is instrumented correctly. Practitioners should treat trace design as part of agent governance, not an afterthought.

A few things that frame the scale:

  • 59% of compromised machines in a major 2025 supply chain attack were CI/CD runners rather than personal workstations, according to the State of Secrets Sprawl 2026.
  • 92% of organisations expose NHIs to third parties, raising concerns about supply chain security, according to the Ultimate Guide to NHIs.

A question worth separating out:

Q: How should teams govern AI tooling after a supply chain compromise?

A: Teams should treat AI tooling as a governed access layer, not just an application dependency. That means isolating credentials by tool and environment, enforcing explicit approval for publishing actions, and making revocation paths immediate when a scanner, gateway, or package pipeline shows signs of compromise or unexpected privilege use.

👉 Read our full editorial: Credential theft in AI agent harness traces demands new monitoring



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.