# Detection engineering meets AI-driven adversary emulation

DevFeed: [Detection engineering meets AI-driven adversary emulation](<https://devfeed.tech/articles/detection-engineering-meets-ai-driven-adversary-emulation-87989.md>)

Original publisher: [Read original article](<https://1password.com/blog/ai-driven-adversary-emulation>)

Author: info@1password.com (Taiga Walker)

Published: 2026-10-15T00:00:00Z

Content type: article

Language: en

Sources: [1Password](<https://devfeed.tech/sources/blog-on-1password-blog.md>)

Topics: [Detection engineering](<https://devfeed.tech/topics/detection-engineering.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [Threat Research](<https://devfeed.tech/topics/threat-research.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ci](<https://devfeed.tech/tags/ci.md>), [detection](<https://devfeed.tech/tags/detection.md>), [detection-engineering](<https://devfeed.tech/tags/detection-engineering.md>), [emulation](<https://devfeed.tech/tags/emulation.md>), [security](<https://devfeed.tech/tags/security.md>), [software](<https://devfeed.tech/tags/software.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>)

## AI overview

The article describes a detection-as-code pipeline that tests security detections in CI by mapping each changed rule to an adversary technique, running that technique, and checking for its events in logs. It explains the distinction between technique-based validation and checks against existing logs, along with limitations such as skipped rule types, advisory failures, and the SaaS coverage gap.

## Source excerpt

In the first post in this series, Wade shared how our team laid the foundation for using AI in detection engineering. The short version is that an LLM doesn't know your stack. Without documentation and workflow context, it can produce plausible results that are difficult to trust, regardless of which model you use. That post closed with an instruction: Validate before you ship, because the output can look completely right and still be wrong. Every detection an agent writes still needs to go through the same review and testing as a human-written detection. Let's discuss that last part, because it's harder than it sounds. We'd built a detection-as-code pipeline, and we were proud of it. Rules live in a repository. Changes arrive as pull requests, and they get peer-reviewed, planned, and applied through CI. We had the structure of a software engineering team, and we tested queries against the logs we had. For everything else, we had never watched the detections fire. We shipped those because they looked right. Validating a detection without the logs in your environment means running the attack technique yourself and watching it fire. We didn't have time to do that manually for every rule, and we had no automated way to do it. So here's the question. How many of your deployed detections have you watched fire? Not reviewed - actually watched fire. You don't want to be answering that question the day an incident happens. Now that detections are code, they need to be tested like code. This post is about what it took to give our detections tests. An AI model did one job to make that possible, which is picking the attack technique to run against each detection. Why "it looks right" is not proof Before we get to the pipeline, it helps to see how a detection that looks right can still be broken. Reading a detection tells you what the query says, not what it actually does. It doesn't tell you whether the query matches any real logs, or whether the detection catches what you wro