Request a Consultation

Insights · Cybersecurity

Detection engineering: building and measuring MITRE ATT&CK coverage

By the Cystem X Engineering Team - Published - 5 min read

Buying a SIEM does not give you detection. Detection is a body of logic that has to be written, tested, tuned and maintained against how attackers actually behave. Detection engineering applies software discipline to that work, and MITRE ATT&CK gives teams a shared vocabulary for tracking where they are strong and where they are blind.

Start from behavior, not signatures

Indicators such as file hashes and addresses expire quickly. Behaviors, such as a process spawning an unexpected child, a service account authenticating from a new location, or a script enumerating directory groups, are much harder for an attacker to change. Detections built on behavior age better and catch variations of the same technique.

Each detection should begin with a written hypothesis: what malicious activity are we trying to see, and what would it look like in our telemetry?

Check that the data exists first

The most common reason a detection fails is that the required log source is missing, incomplete or not retained long enough. Before writing logic, confirm that the events you need are collected from the relevant systems, parsed consistently and searchable.

Maintain a data source inventory mapped to the techniques it can support. It makes gaps in visibility obvious and gives infrastructure teams a concrete reason to fix logging.

Coverage you have not tested is a hypothesis, not a capability.
Dense source code on a dark monitor
Detections are code: versioned, reviewed and tested.

Write detections as code

Store detection rules in version control with peer review, a consistent format and metadata such as owner, severity, mapped technique and known false positives. Deploy through a pipeline rather than by editing rules in a console.

This approach gives you history, rollback and the ability to test changes before they reach production. It also makes it possible to migrate between platforms without losing institutional knowledge.

Test with real techniques

A rule that has never fired on malicious activity is an assumption, not a control. Use adversary emulation tools or scripted atomic tests to generate the behavior, confirm the telemetry appears and verify that the rule fires with the expected output.

Purple team exercises are especially valuable here. Testers and defenders work together, so each technique ends with either a working detection or a documented decision about why not.

Python-style code displayed on a monitor
Pipelines deploy and test rules the same way as application code.

Tune relentlessly

A noisy rule trains analysts to ignore it. Track the false positive rate of each detection, and refine conditions with allow-lists that are specific, documented and reviewed. Consider whether a noisy low-confidence detection is better used as enrichment for another alert instead of as an alert itself.

Retire detections that no longer match your environment. A smaller set of well-maintained rules usually beats a large library nobody understands.

Track coverage honestly

An ATT&CK heat map is useful only if it reflects tested capability. Distinguish between techniques with a tested detection, techniques with an untested rule, techniques where telemetry exists but no rule does, and techniques with no visibility.

Prioritize gaps using threat intelligence relevant to your sector and the techniques that appear most in real intrusions affecting organizations like yours, rather than trying to color every cell.

Analyst at a workstation with multiple monitors in an operations room
Feedback from analysts drives tuning.

Close the loop with incidents

Every incident and every exercise is a free test of your detection program. Ask which stage of the attack was detected, how long that took, and what earlier detection would have shortened it. Feed those answers back into the backlog.

Over time this builds a program that improves because of real events rather than in spite of them.

Key takeaways

  • Write each detection from a behavioral hypothesis.
  • Confirm the required telemetry exists before writing logic.
  • Keep rules in version control with owners, metadata and tests.
  • Validate detections with emulated techniques and purple team exercises.
  • Report coverage by tested status, not by the number of rules.

Sources and further reading

This article reflects general practice and publicly available guidance. Teams should consult primary sources, including the MITRE ATT&CK knowledge base, Sigma rule format documentation, and the guidance published by your SIEM vendor, and adapt the guidance to their own environment, risk appetite and legal obligations.

Managed SOC & MDR

Strengthen the detections behind your SOC.

We build and test detection content for your environment and track coverage against the techniques that matter to you.

Explore Managed SOC & MDR

Let’s engineer what’s next.

Tell us about your initiative - a solution architect will respond within one business day.