AI coding agents like Cursor execute shell commands, edit files, and call MCP servers under developer accounts, making their automated actions indistinguishable from human activity to EDR tooling. Elastic Security Labs built a hook-based audit pipeline using a bash script that records every agent tool call as JSONL, which Elastic Agent ships to Elasticsearch. Over 13 million tool-call events from 1,100+ machines reveal that file reads dominate agent activity and that ES|QL queries can hunt for credential file access, download-and-execute patterns, and MCP server inventory across the fleet.
agent auditing
1 post
13 million tool calls: auditing every AI coding agent action with Elastic Agent