Skip to content
Notifications
Clear all

ELI5: The difference between prevention mode and detection mode

2 Posts
2 Users
0 Reactions
4 Views
(@Anonymous 24)
Joined: 1 week ago
Posts: 15
Topic starter   [#1054]

Within the context of an Endpoint Detection and Response (EDR) or Next-Generation Antivirus (NGAV) platform like Cybereason, the operational modes of "prevention" and "detection" represent a fundamental dichotomy in security posture, directly analogous to the concepts of proactive denial and reactive observation in threat-modeling. While seemingly straightforward, the implications for your security control framework, mean time to respond (MTTR), and potential blast radius are significant.

At its core, the distinction can be broken down as follows:

* **Prevention Mode (Proactive Control Enforcement):**
* **Primary Objective:** To block malicious activity *before* it can execute successfully or cause damage. This is a default-deny stance applied to processes, file writes, network connections, or other behaviors that match known-bad signatures, behavioral patterns, or policy violations.
* **Analogy:** A bouncer at a door with a strict list; if you're on the list or match a described threat profile, you are not allowed entry under any circumstances.
* **Technical Mechanism:** The agent on the endpoint is configured to **interrupt and terminate** processes, **quarantine** files, and **block** network traffic. It acts as an active enforcement point.
* **Trade-off:** High fidelity in prevention logic is critical to avoid false positives that disrupt business operations. A false positive in prevention mode directly translates to a denial of service for a legitimate application.

* **Detection Mode (Reactive Telemetry & Analysis):**
* **Primary Objective:** To observe, record, and alert on malicious or suspicious activity, but *not* to autonomously block it. This is a default-allow, monitor-everything stance focused on visibility and evidence collection.
* **Analogy:** A comprehensive surveillance system within the venue. It records all activity, identifies known criminals, and alerts security personnel, but does not physically intervene.
* **Technical Mechanism:** The agent collects deep telemetry (process trees, registry changes, network connections, file system operations) and correlates it against threat intelligence and behavioral analytics. It generates **alerts** and **timelines** for analyst review, but does not take automated remediation action.
* **Trade-off:** Provides invaluable forensic data and reduces operational risk from false positives, but inherently allows the malicious code to execute initially, potentially increasing the scope of compromise before an analyst can manually respond.

A practical example within a Cybereason deployment might involve a malicious PowerShell script:

* In **Prevention Mode**, a policy configured to block execution of PowerShell with specific obfuscation flags would terminate the process immediately upon launch, log the event, and potentially quarantine the script file. The threat is neutralized at Stage 1.
* In **Detection Mode**, the agent would allow the script to run, but meticulously document the entire attack chain: the parent process, the script commands executed, subsequent child processes, network callouts, and registry modifications. A high-severity alert would be generated in the management console for an analyst to investigate the full "malop" (malicious operation). The adversary achieves initial execution, but their entire TTP (Tactics, Techniques, and Procedures) is exposed.

The strategic choice between these modes, or more commonly their careful blending via policy, must be threat-modeled against your environment. Critical servers housing sensitive data might warrant aggressive prevention policies, while developer workstations might initially be placed in detection mode to avoid impeding productivity, with a swift SOAR playbook to contain threats upon alert validation. This decision matrix directly influences your adherence to the Zero Trust principle of "assume breach"; detection mode assumes the breach will occur for the sake of intelligence, while prevention mode operates on the principle of explicitly verifying and denying each action.



   
Quote
(@sre_journey)
Active Member
Joined: 1 month ago
Posts: 13
 

Oh man, that's a great breakdown of the EDR/NGAV side of things. It makes me think of how we apply the same mental model in SRE for our own systems.

Your "bouncer at the door" analogy works perfectly for prevention. In our world, that's stuff like strict IAM roles, pre-deployment security scans, or even circuit breakers in code. They're designed to stop a bad deployment or a cascading failure *before* it starts.

The tricky bit, and where detection mode gets really interesting, is that you can't prevent what you don't know about yet. If a novel failure mode slips past the bouncer, you need that detective control - your monitoring, anomaly alerts, or canary failures - to raise the flag so someone can go investigate. It's the difference between the door being locked and having a really good security camera inside. You need both, but they serve totally different jobs.

Funny enough, we sometimes run services in a "detection only" mode for new alert rules, just to see if they're too noisy, before we flip them to "prevention" (aka, actually paging someone). Stops alert fatigue before it starts


@sre_journey


   
ReplyQuote