Detection Engineering: Turning Logs Into Security Signals

Collecting logs is easy.

Well, relatively easy. Applications, endpoints, firewalls, identity providers and cloud platforms happily generate enormous amounts of telemetry every day. Put enough of it into a SIEM and you can build dashboards impressive enough to make almost anyone feel secure.

Unfortunately, attackers are rarely defeated by dashboards.

The real challenge is deciding which behaviors matter, how they appear in telemetry, and when those signals should become an alert.

That is where Detection Engineering begins.

What Is Detection Engineering?

Detection Engineering is the process of designing, testing, deploying and continuously improving security detections.

Its goal is not simply to search logs for suspicious strings. A detection engineer starts with a behavior worth identifying and works backwards toward the evidence that behavior would leave behind.

If you are unfamiliar with where all that telemetry usually goes, our article on SIEM and how it turns logs into security visibility covers that foundation.

Detection Engineering is what happens after the logs arrive.

A simplified flow looks like this:

Threat behavior → Observable activity → Telemetry → Detection logic → Alert → Investigation

Each step matters. If the required telemetry does not exist, even brilliant detection logic has nothing to analyze.

Logs Are Not Detections

A log is a record that something happened.

An alert says that something matched a condition.

A detection is the logic and context that determine why that activity may represent a security-relevant behavior.

Suppose an endpoint records every PowerShell execution. That telemetry alone does not tell us whether the activity was malicious.

Blocking or alerting on every PowerShell process would certainly detect attackers.

It would also detect administrators, automation scripts, developers and probably half of IT. Technically successful, operationally disastrous.

Detection Engineering tries to identify the characteristics that make behavior interesting without turning the SOC into an alert notification factory.

From Behavior to Detection

Good detections usually begin with a hypothesis.

For example:

An attacker attempting credential dumping may execute processes or access system components in ways that legitimate users rarely do.

The engineer then asks what telemetry could expose that behavior and which conditions make it sufficiently unusual to investigate.

Frameworks such as MITRE ATT&CK help by organizing known adversary behaviors into techniques and detection strategies. ATT&CK’s current model connects detection strategies with analytics and the telemetry required to observe those behaviors. (MITRE ATT&CK)

That creates a much stronger starting point than simply writing queries for whatever looks suspicious.

Detection Engineering becomes threat-informed: first understand what an attacker may do, then determine whether your environment can see it.

Why Detection Quality Matters

A detection that fires constantly for legitimate activity creates false positives.

A detection that is too restrictive may miss actual attacks.

Neither extreme is useful.

Too much noise creates alert fatigue, where analysts spend their time repeatedly closing harmless alerts. Eventually, truly important activity can disappear inside the volume.

Context improves this dramatically.

A process executed by a domain administrator on a management server may mean something very different from the same process launched by an unexpected account on a workstation.

This is why good detection logic considers not only individual events but also identity, asset importance, frequency, sequence and surrounding activity.

The goal is not the largest number of alerts.

It is the highest number of useful alerts.

Detection Engineering Is a Lifecycle

Detection rules should not be created and forgotten.

Infrastructure changes. Applications change. Logging formats change. Attackers change their techniques. Normal behavior inside the company changes too.

Elastic describes this principle simply: detections are never truly finished; shipping a rule is the beginning of its lifecycle rather than the end. Elastic’s Detection Engineering philosophy (GitHub)

A healthy lifecycle looks like:

Hypothesis → Build → Test → Deploy → Monitor → Tune → Validate again

Testing is especially important. A rule should be validated against expected malicious behavior and normal activity before anyone assumes it provides meaningful coverage.

What Good Detection Engineering Looks Like

A mature detection program combines reliable telemetry with clear hypotheses, documented detection logic and continuous validation.

Rules should explain what behavior they detect, which data they require, what their known false positives are and what an analyst should investigate when they fire.

Coverage can also be mapped against frameworks such as MITRE ATT&CK to reveal an important distinction: having hundreds of detection rules does not necessarily mean having broad detection coverage.

Ten variations of the same detection are still ten variations of the same detection.

The objective is to understand which adversary behaviors your environment can observe, identify the gaps and deliberately improve them.

Conclusion

Detection Engineering is what turns security telemetry into an actual defensive capability.

A SIEM can collect billions of events, but those events only become useful when someone understands what attackers do, identifies the evidence they leave behind and creates reliable logic to surface it.

Good detections are tested, contextualized, measured and improved continuously.

Because storing every log in existence without knowing what to look for is technically observability.

It is also an extremely expensive way to admire JSON.


Discover more from VSec

Subscribe now to keep reading and get access to the full archive.

Continue reading