AI Detection Engineering Basics

By Ambuj Kumar, CEO

Part of AI Detection Engineering: How AI Tunes and Writes Detection Rules, which gives a short answer to every question in the guide.

What is AI detection engineering?

AI detection engineering is the use of AI agents to tune existing detection rules so they throw fewer false positives and to write new rules for attacks that currently raise no alert. Those are two of the core jobs of a detection engineer. The rules still live in a SIEM (security information and event management) system such as Microsoft Sentinel or Splunk, or in an EDR (endpoint detection and response) tool such as CrowdStrike.

An AI agent can go through every rule the SIEM exposes, the alert history behind each rule, and the logs the organization collects. Few teams have the hours for that reading. The agent can then map the rules to MITRE ATT&CK, the public catalog of attacker techniques, so the team can see which techniques have no rule at all.

The same term is also used for writing detections for AI systems themselves, such as a rule that fires when an employee's AI agent session has been hijacked and is pulling data it normally wouldn't.

With the AI Detection Engineering Agent, a rule stays a candidate until a human approves it, and once it is approved the push to the SIEM is automated. The one exception is a rule written because a pentest proved an attack that raised no alert, which deploys automatically or after human approval, whichever the customer chooses.

The practice itself is covered in our guide to detection engineering.

What is agentic detection engineering?

Agentic detection engineering is detection engineering in which an AI agent plans and carries out the steps of tuning and writing detection rules itself, and a person reviews the result.

The steps are the ones a detection engineer would otherwise do by hand: pulling the alert history for a rule, working out why it fires on benign activity, drafting the change, and testing it against past logs. An agent differs from a script in that nobody lays out the sequence in advance. Given a goal like "cut the noise on this rule", the agent decides which logs to query, reads what comes back, and picks the next step from there. If the telemetry a new rule would need isn't being collected in the SIEM (security information and event management) system, a well-built agent stops and says so.

"Agentic" is a market term. Vendors use it for anything between a chat assistant that drafts a query when asked and a system that runs the whole tuning cycle on a schedule, so the word alone tells you very little about a product. It's more useful to check which steps the product runs without being prompted and what evidence it attaches to each proposed change. Then ask whether a rule can reach production before a human has approved it.

Is detection engineering the same as threat detection?

No. Detection engineering, which job postings also call threat detection engineering, is the work of building and maintaining detection rules, and threat detection is what those rules do once they are running in production.

Threat detection happens when a rule in the SIEM (security information and event management) system matches activity in the logs and raises an alert, such as one that fires when an account is added to the Domain Admins group (Windows Security event ID 4728). Analysts in the SOC (security operations center) then decide whether the alert is real. The engineering happened earlier. Someone chose that technique to cover, checked the group-change events were being logged, wrote the query, tested it, and will fix it when it gets noisy or goes quiet.

If alerts fire and nobody trusts them, or an attack technique leaves logs and raises no alert, that is a detection engineering problem. If good alerts fire and sit unopened, the problem is in the SOC.

What is detection coverage?

Detection coverage is the share of attacker techniques an organization could face that its detection rules would actually alert on. It is usually measured against MITRE ATT&CK, the public catalog of attacker techniques, by mapping each rule in the SIEM (security information and event management) system to the technique or sub-technique it detects.

The count is easy to inflate. A rule tagged T1059.001 (PowerShell) puts a mark on the map even when it is disabled, points at a log source that stopped arriving, or only matches one encoded-command pattern out of the many ways PowerShell gets abused. So a stricter definition counts a technique only once it has been tested and the rule fired.

The AI Detection Engineering Agent maps every synced rule to ATT&CK and rolls the rules up into a covered / not-covered map. When the Agent runs alongside Simbian's AI Pentest, AI Threat Hunt, and AI SOC Agents, the map shows four states and counts a technique as covered only after a test.

State What it means
Covered Tested, an alert fired, and it was triaged correctly
Triage Gap The alert fired and was triaged wrongly
Detection Gap The technique ran and nothing fired
Untested Not yet tested

The coverage score is the share of in-scope techniques at Covered, and scope sets the denominator: an organization with no macOS fleet shouldn't be marked down for macOS techniques.

What is detection gap analysis?

Detection gap analysis is the process of finding the attacker techniques an organization cannot currently detect and working out why. A detection gap in the narrow sense means the logs are there and no rule covers the behavior, but a real analysis usually turns up telemetry gaps and configuration gaps underneath it.

A telemetry gap means you own the asset and collect nothing from it, as when sign-in logs show the laptops exist and no EDR (endpoint detection and response) sensor reports from them. A configuration gap means the control exists and is set up so it can't help, such as custom detection rules that were written and left inactive. With a detection gap the telemetry is arriving and no rule matches the behavior, so a new user can be created and granted top-level privileges without anything alerting.

The Gaps view of the AI Detection Engineering Agent lists gaps in fix order (telemetry, then configuration, then detection), and they are re-analyzed periodically. The Agent points at the missing telemetry. It doesn't set up collectors or parsers, so that part stays with the team.

That order applies whatever tool does the analysis, because a rule can't match events that never reach the SIEM (security information and event management) system.

What is the difference between false positives and detection gaps?

A false positive is an alert that fired on harmless activity, and a detection gap is an attack technique that would raise no alert at all. In measurement terms, false positives lower precision, the share of alerts that are real, and detection gaps lower recall, the share of real attacks that raise an alert.

False positives land in the analyst queue every day, get closed as benign, and can be counted per rule. A detection gap produces no ticket and no number, and teams tend to learn about one from a pentest report, a threat hunt, or an incident review. The fixes differ too: tuning removes false positives by narrowing an existing rule, for example excluding a backup service account on the hosts where it runs, and authoring closes a detection gap with a new rule once the needed logs are confirmed to be arriving.

One can cause the other. An exclusion written in a hurry to quiet a noisy rule, say on a whole subnet or on every process signed by one vendor, can hide the attack the rule was built for, and the new gap gets no alert to announce it.

What is detection tuning?

Detection tuning is the practice of adjusting an existing detection rule so it fires less on benign activity and keeps firing on the attack it was written for. Most of it is false positive work. A rule that looked fine in testing meets a production network full of admin scripts, backup jobs, and vulnerability scanners, and starts alerting on them.

An engineer can add an exclusion, raise a threshold (ten failed logons in five minutes becomes twenty), tighten a field match from a wildcard to an exact path, or shorten the time window on a correlation. Tuning also covers the rule that has gone quiet because a log source stopped arriving.

A tuning change is easier to trust when it arrives with its evidence: the reason the rule was noisy, the alerts that show it, a diff of the old and new query, and a backtest of both versions over the same stretch of stored logs. Every tuning suggestion from the AI Detection Engineering Agent carries all four. The tuned rule is still a candidate at that point, and it is pushed to the SIEM (security information and event management) system only after a person approves it.

Switching a noisy rule off isn't tuning, since the technique it covered goes back to being a gap.

What is the difference between visibility and detection coverage in ATT&CK?

MITRE ATT&CK coverage has two layers: visibility means the logs needed to see a technique are being collected, and detection coverage means a rule exists that fires on that technique. ATT&CK, the public catalog of attacker techniques, describes, for each technique, the kinds of data that can reveal it, which is how a team can score visibility from its log inventory before writing a single rule. DeTT&CT, an open-source framework, keeps the two scores in separate layers, and a technique can be filled in on one and empty on the other.

Take T1003.001, credential dumping from LSASS (Local Security Authority Subsystem Service) memory. Visibility asks whether process-access events are reaching the SIEM (security information and event management) system, for example Sysmon event ID 10 or the equivalent telemetry from an EDR (endpoint detection and response) sensor. Detection coverage asks whether an enabled rule matches a suspicious process opening lsass.exe, and whether that rule has fired in a test.

Often the logs exist and the rule doesn't. The events sit in an index where a hunter can query them, and nobody is alerted when the technique happens. A rule mapped to a technique whose log source was never onboarded does more damage, because it shows as covered on a heatmap and can never fire.

Sign up for Simbian's Newsletter

By submitting this form, you agree to our Privacy Policy.

Ask AI about Simbian