THREATOPS
THREAT OPS › Threat News › Monitoring AI agent sessions: Leveraging embedding models to aid threat hunting and attack discovery workflows

Monitoring AI agent sessions: Leveraging embedding models to aid threat hunting and attack discovery workflows

medelastic_securityPublished 2026-11-04

<p>Query rules find behavior you can define, but agent sessions contain unstructured behaviors you can only describe. I stored six months of my own Claude Code and Cursor sessions as semantic vectors in Elastic and searched them instead of handing every session to a large language model (LLM). One in seven sessions came back requiring triage of suspicious actions. We can then create rules to detec

MITRE ATT&CK techniques

Indicators of compromise

Original source: https://www.elastic.co/security-labs/blog/ai-agent-session-monitoring-embedding-models