Modernising threat hunting: Using Semantic Search to Find Risky AI Agent Behavior

We use query rules find behavior we can define. This is behavior you can only find through describing. How can we find behaviors we can only describe? In this article, we review using vector search to hunt risky AI sessions. 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 an LLM. One in seven came back needing a human review. The ones that matter become rules for the SOC, and we keep the vectors stored forever, so we can answer questions nobody thought to ask at ingest.Finding successful logins after multiple failed attempts is an easy query to make, because the log records every action a human
…