Agentic Detection Engineering Framework (ADEF)
Detection engineering with durable memory, a five-stage lifecycle, and an agentic surface — the sibling of ATHF.
ADEF wraps the detection rules you already have in a per-detection journal and
a five-stage lifecycle — Find → Observe → Refine → Govern → Evolve (FORGE) — so
that every threshold, every tuning decision, and every keep-or-retire call has a
dated written reason the next engineer can read. It's a CLI and an MCP server.
It reads your rule repo and never writes to it, and it never connects to your
SIEM.
Throughout: a rule is the query you already have, in whatever file your repo
keeps it in. A detection (D-XXXX) is ADEF's view of it — the rule plus its
journal, its ATT&CK mapping, its stage, and its history. ADEF adds detections;
it never edits rules.
Requires Python 3.10+: pip install agentic-detection-engineering-framework.
See Install.
Contents · The problem · See it · Install · How you'd actually use it · Building blocks · Skills & MCP · Is ADEF for you? · ADEF and ATHF · Contributing
The problem
Your detection repo says what each rule looks for. Almost nothing says why.
So the questions that actually come up have no owner:
- This rule fires 200 times a week and nobody has closed one as a true positive in four months. Does it still earn its keep?
- We have 40 rules tagged T1059. Is that depth, or is it one
process_create feed wearing 40 hats?
- The person who wrote this threshold left. Why 15 and not 5?
- An intel report just landed. Do we already cover this, or does it feel familiar because we looked at it in March?
Teams answer these in Slack threads, in a spreadsheet someone maintains by hand,
and from memory — and the answers leave when people do. The rules are
version-controlled. The reasoning isn't.
ADEF is the memory-and-lifecycle layer over the detections you already have.
It never touches your rule repo, never connects to your SIEM, and doesn't ask
you to migrate anything.
What you get:
- A catalog of every detection you have — walked read-only from a repo or a one-time SIEM export, in any mix of Sigma, Splunk, Panther (metadata only), KQL/SQL/CQL, or your in-house format
- An honest coverage report — solid vs. fragile ATT&CK coverage, single points of failure, and fictional technique IDs, exportable as a scored MITRE Navigator layer
- Schema-grounded authoring — new rules scaffolded against the fields and values that actually exist in your data, not guesses
- A journal per detection — the reasoning, tuning history, and review cadence that normally lives in chat threads and leaves with the person who wrote it
- Keep/tune/deprecate verdicts from measured numbers — you hand over the counts, ADEF does the arithmetic and writes the verdict down with a date on it
Where each of those four questions gets answered:
| The question | What answers it |
|---|
| Does this noisy rule still earn its keep? | adef ingest → adef detection evolve — a keep/tune/deprecate verdict computed from counts you supply |
| Is 40 rules on T1059 depth, or one feed wearing 40 hats? | adef coverage — solid vs. fragile, and which techniques ride a single log source |
| Why 15 and not 5? | the journal — every stage transition timestamped, with the evidence that forced it |
| Do we already cover this, or did we just look at it in March? | adef detection search / adef detection refine — retrieval over reasoning and rule logic, across query languages |
See it — the bundled demo, real output