
Cybersecurity / Red Team
Adversary Emulation vs Endpoint Detection
Structured adversary emulation exercises test endpoint detection and response (EDR) capabilities by simulating real-world attack behaviors, enabling organizations to measure detection efficacy and improve security controls through iterative purple-team collaboration.
Adversary emulation replicates adversary tactics, techniques, and procedures (TTPs) to evaluate how well EDR solutions detect and respond to threats. Unlike generic penetration testing, emulation focuses on specific threat actors or campaigns, providing actionable insights into detection gaps. Effective emulation requires clarity on objectives, safe execution guards, and collaboration between red teams (emulation) and blue teams (detection) to optimize defensive capabilities without disrupting business operations.
Overview and context
Endpoint detection and response (EDR) systems monitor endpoint telemetry for signs of malicious activity, relying on behavioral analysis, signature matching, and anomaly detection to identify threats. Adversary emulation takes a proactive approach: instead of waiting for alerts, it deliberately executes known attack sequences to test whether defenses trigger as expected. This controlled simulation reveals detection gaps that passive monitoring might miss, allowing organizations to tune rules, enhance telemetry collection, or invest in additional controls before facing actual threats.
The relationship between emulation and detection is inherently collaborative. Red teams design emulation scenarios based on threat intelligence, blue teams monitor and respond to detected activity, and both sides share findings to improve detection engineering and response playbooks. Successful programs treat emulation not as a one-time test but as an iterative process: each exercise informs detection enhancements, which are then validated through follow-up emulation cycles. This continuous feedback loop strengthens defensive capabilities while fostering mutual understanding between offensive and defensive security perspectives.
Technical and feature breakdown
Detection-Engineering View
Detection engineering focuses on converting raw endpoint telemetry into actionable security alerts through rule creation, tuning, and validation. Engineers analyze telemetry streams to identify characteristics that distinguish benign from malicious activity, then develop detection logic that captures those characteristics while minimizing false positives. This process requires deep understanding of both attacker behaviors and endpoint operating systems, as well as proficiency with the query languages and frameworks used by specific EDR platforms.
Effective detection engineering balances sensitivity and specificity: rules must be sensitive enough to catch malicious variants but specific enough to avoid alert fatigue. Teams often employ a hierarchy of detection controls — from broad behavioral alerts to highly specific indicators of compromise (IOCs) — ensuring that threats are caught at multiple stages of an attack cycle. Validation involves testing detection logic against emulated adversary behaviors to confirm coverage and refine thresholds before deployment to production environments.
The table sets the detection hierarchy the section describes beside what each layer catches and what it costs in analyst attention.
| Layer | What it catches | Cost |
|---|---|---|
| Broad behavioral alert | Malicious variants across an attack stage | Higher false-positive volume |
| Specific indicator match | Known tools and artifacts | Low volume, easily evaded |
| Validated rule set | Coverage confirmed against emulation | Engineering time before deployment |
Three layers — sensitivity and specificity traded against analyst attention.
The validation loop — the section's rule lifecycle, restated as the order an engineer works in.
# Detection-engineering loop
1. pick a telemetry stream and a behavior to detect
2. write logic sensitive to the malicious variant
3. test it against emulated behavior
4. tune thresholds to suppress false positives
5. deploy, monitor, and revalidate on the next cycle
# A rule untested against emulation is a hypothesis.
Evasion vs Telemetry
Adversaries employ evasion techniques to prevent EDR systems from collecting meaningful telemetry or to distort collected data into benign appearances. Common evasion includes process injection to hide malicious code within legitimate processes, timestamp modification to confuse timeline analysis, and certificate signing to bypass trust checks. Effective telemetry collection requires anticipating these evasion methods and implementing controls that either prevent evasion or detect its occurrence — such as monitoring for unusual process relationships, validating code signatures independently of file timestamps, or cross-verifying telemetry from multiple sources.
The telemetry-evasion dynamic creates constant pressure on both sides: attackers refine evasion to blind defenders, while defenders enhance telemetry resilience to maintain visibility despite evasion attempts. Key telemetry sources that resist common evasion techniques include kernel-level drivers that monitor system calls regardless of user-space manipulation, hardware-assisted tracing that captures CPU-level events, and encrypted logs that prevent tampering with collected data. Understanding which telemetry sources remain reliable under specific evasion techniques helps defenders prioritize investments in monitoring capabilities that maintain visibility even when faced with sophisticated adversaries.
MITRE ATT&CK Emulation
The MITRE ATT&CK framework provides a comprehensive knowledge base of adversary tactics and techniques based on real-world observations, serving as the foundation for structured adversary emulation programs. Emulation exercises map specific threat actor behaviors to ATT&CK techniques, enabling systematic coverage of relevant attack sequences and consistent reporting of results. Organizations use ATT&CK to define emulation scopes, select techniques that align with threat models targeting their industry or geography, and measure detection coverage across the framework's tactic and technique hierarchy.
Emulation fidelity varies based on available resources and objectives: some exercises focus on high-impact techniques likely to cause significant damage, while others attempt comprehensive coverage of an actor's entire repertoire. The ATT&CK Evaluations program conducted by MITRE Engenuity provides independent assessments of how well commercial security products detect emulated ATT&CK techniques, offering benchmark data for comparing detection capabilities across vendors. These evaluations help organizations understand whether their EDR solutions can detect techniques at the technique level (providing contextual details) or only at coarser telemetry or general behavior levels.
The table separates the two uses of ATT&CK the section describes, because scoping an exercise and comparing vendors ask different things of the framework.
| Use | What it asks | Output |
|---|---|---|
| Scoping an emulation | Which techniques match the threat model? | A bounded, reported exercise |
| Benchmarking detection | Which techniques does a product detect, and at what detail? | Comparable coverage data |
Two uses — one plans the test, the other compares the result.
Reading a coverage claim — the section's distinction between technique-level and coarser detection, restated as questions.
# Coverage questions
- is the detection at technique level, with context?
- or only at telemetry or general-behavior level?
- which techniques were in scope, and which were not?
- does the benchmark match this estate's threat model?
# Coverage is a scope statement, not a score.
Purple-Team Loops
Purple-team collaboration integrates red team (adversary emulation) and blue team (defense) activities to continuously improve detection and response capabilities through shared learning and iterative refinement. Unlike traditional siloed approaches where red teams report findings after completion, purple-team operations maintain constant communication during exercises: blue teams provide real-time feedback on detected activity, allowing red teams to adjust emulation parameters to test specific detection boundaries, while red teams share execution details that help blue teams understand evasion techniques affecting their controls.
Successful purple-team loops require clear objectives, established communication channels, and predefined rules of engagement to prevent accidental disruption or escalation. Sessions typically begin with threat intelligence briefings to align emulation scenarios with relevant adversary behaviors, followed by controlled execution phases where red teams implement emulation steps while blue teams monitor and respond. Debriefs focus on comparing expected versus observed outcomes, identifying detection gaps or false positives, and agreeing on specific improvements to detection rules, telemetry collection, or response playbooks before the next iteration.
The table follows the purple-team session the section describes, pairing each phase with what the red and blue sides contribute.
| Phase | Red team | Blue team |
|---|---|---|
| Briefing | Aligns scenarios with threat intelligence | Confirms monitoring coverage |
| Execution | Implements emulation steps | Monitors and responds in real time |
| Debrief | Explains execution detail and evasion | Compares expected and observed outcomes |
| Iteration | Adjusts emulation parameters | Updates rules, telemetry, and playbooks |
Four phases — constant communication is what separates a purple loop from a report delivered after the fact.
Loop discipline — the section's requirements, restated as the conditions for a safe session.
# Before a purple-team session
- objectives agreed and written
- communication channel open between both sides
- rules of engagement cover disruption and escalation
- rollback and stop conditions understood by all
# The loop is collaborative, not a surprise test.
The encryption example, annotated
This section provides educational examples of adversary emulation techniques that simulate specific attack behaviors to test endpoint detection and response (EDR) capabilities while maintaining safety and control. All examples are simplified illustrations intended for defensive security learning — they do not represent complete production emulation frameworks and should not be used for unauthorized access or harmful activities.
The first example demonstrates simulating a common credential access technique through PowerShell to test whether detection systems monitor for suspicious authentication patterns. The second example shows emulating defense evasion via process injection to evaluate telemetry collection around unusual process relationships. Both examples emphasize preserving system integrity while generating detectable behaviors that help validate detection engineering effectiveness.
Credential access emulation example — PowerShell script simulating suspicious authentication activity for detection testing.
// credential-access-emulation.js
const { exec } = require('child_process');
// Simulate suspicious credential access activity
function testCredentialAccess() {
// Example: Enumerate local users (common reconnaissance step)
exec('net user', (error, stdout, stderr) => {
if (error) {
console.error(`Execution error: ${error}`);
return;
}
console.log(`Output: ${stdout}`);
// In a real emulation, this would be part of a larger attack sequence
// designed to test detection of credential access techniques
});
}
// Execute the test
testCredentialAccess();
// Note: For defensive testing only. Always obtain proper authorization.
// Replace with actual emulation frameworks like Caldera or Atomic Red Team
// for comprehensive, controlled adversary emulation scenarios.
Defense evasion emulation example — Process injection simulation to test detection of unusual process relationships.
// defense-evasion-emulation.js
const { spawn } = require('child_process');
// Simulate process injection behavior (educational only)
function testProcessInjection() {
// Example: Create a suspended process and modify its memory
// NOTE: This is a conceptual demonstration only
// Actual process injection requires advanced Windows API knowledge
// and should never be attempted on production systems
console.log('Simulating process injection behavior...');
console.log('This would involve:');
console.log('1. Creating a target process in suspended state');
console.log('2. Allocating memory in the target process');
console.log('3. Writing shellcode to the allocated memory');
console.log('4. Creating a remote thread to execute the shellcode');
console.log('5. Resuming the target process');
// In a real emulation framework, this would use safe simulations
// that mimic behavioral patterns without actual memory modification
}
// Execute the test
testProcessInjection();
// Note: For defensive testing only. Always obtain proper authorization.
// Use established emulation platforms that provide controlled, safe
// simulations of adversary behaviors for detection validation.
The table pairs the two emulation examples with the EDR question each one is built to ask.
| Example | Behavior simulated | Detection question |
|---|---|---|
| Credential access | Local account enumeration with a common administrative command | Does the EDR flag suspicious authentication reconnaissance? |
| Defense evasion | Process injection into a suspended process | Does the EDR see unusual process relationships? |
Two examples — each is a safe stand-in for a behavior the page says detection must catch.
Comparative data and specs
The table below compares analytic coverage percentages from MITRE ATT&CK Evaluations, representing the proportion of techniques detected with technique-level detail (providing contextual information on intention and approach). Higher percentages indicate better detection capabilities that enable analysts to understand not just that malicious activity occurred, but how and why it happened — facilitating effective response and hunting.
These measurements demonstrate the improvement in detection capabilities across evaluation iterations as vendors enhance their telemetry collection, analysis engines, and rule sets. The data shows that while early evaluations revealed significant gaps in technique-level detection, focused efforts on detection engineering and telemetry resilience have substantially improved the ability to detect adversary behaviors with sufficient context for informed decision-making.
| Evaluation | Analytic Coverage (Technique-Level) |
|---|---|
| Carbanak+Fin7 (2021) | 69.8% |
| Wizard Spider+Sandworm (2022) | 85.5% |
Average analytic coverage percentages from MITRE ATT&CK Evaluations.
Analytic coverage improvements across MITRE ATT&CK Evaluations. Later evaluations show increased technique-level detection as vendors enhance detection engineering and telemetry collection.
Reading — Analytic coverage increased from 69.8% to 85.5% between evaluations, reflecting improved detection engineering that provides richer context for security analysts responding to emulated adversary behaviors.
Actionable steps for analysts
-
Define clear objectives
Specify which adversary behaviors or techniques to emulate based on threat intelligence and organizational risk assessment, ensuring alignment with defensive priorities.
-
Employ safe execution guards
Use containment mechanisms, approval workflows, and rollback plans to prevent emulation activities from causing unintended disruption or damage to production systems.
-
Monitor and share detection feedback
Maintain real-time communication between emulation and detection teams during exercises, exchanging observed behaviors and alert triggers to refine both offensive and defensive approaches.
-
Validate detection coverage
Test detection rules and telemetry collection against emulated behaviors to confirm coverage levels and identify gaps before considering the exercise complete.
-
Iterate and improve
Use exercise findings to update detection engineering, enhance telemetry sources, and refine response playbooks, then validate improvements through follow-up emulation cycles.
Additional context — measuring detection efficacy
Measuring detection efficacy through adversary emulation requires moving beyond simple alert counts to evaluate the quality and timeliness of detections. Key metrics include: analytic coverage (percentage of techniques detected with technique-level detail), detection latency (time from technique execution to alert generation), and false positive rate during emulation exercises. Organizations should establish baselines before initiating emulation programs and track improvements across iterations to ensure investments in detection engineering yield measurable returns.
The MITRE ATT&CK Evaluations program provides independent benchmark data for comparing detection capabilities across vendors, helping organizations understand whether their EDR solutions detect techniques at the technique level (providing contextual details) or only at coarser telemetry or general behavior levels. When combined with internal emulation exercises, these benchmarks inform decisions about detection rule enhancements, telemetry investments, or supplemental controls needed to achieve desired detection states. Remember that detection efficacy is not a static state but an ongoing capability requiring continuous validation and adaptation to evolving adversary behaviors.
The table sets the three metrics the section names beside what each reveals that a raw alert count does not.
| Metric | What it reveals |
|---|---|
| Analytic coverage | The share of techniques detected with technique-level detail |
| Detection latency | The time from technique execution to alert |
| False positive rate | How much analyst attention the detection consumes |
Three metrics — quality and timeliness rather than volume.
Baseline, then iterate — the section's method for showing that detection investment works.
# Measuring detection efficacy
1. establish a baseline before the emulation program
2. run the exercise and record all three metrics
3. compare against the baseline, not against a vendor claim
4. pair internal results with the independent benchmark
5. track the change across iterations
# Efficacy is a trend line, not a snapshot.
Quick reference — the rules at a glance
The page's rules rest on the difference between emulation and testing. Adversary emulation executes known attack sequences to see whether defenses fire, and it is judged by whether the detection is timely and specific, not by whether an alert exists at all. Detection engineering supplies the rules; telemetry resilience keeps those rules supplied with evidence even when an adversary tries to blind the sensor; ATT&CK supplies the shared vocabulary that lets an exercise be scoped and a result compared. Purple-team loops keep the red and blue sides talking during the exercise rather than after it, which is what turns a finding into a rule change.
Four habits follow. Define objectives and rules of engagement before execution. Test detection logic against emulated behavior rather than assuming coverage. Measure analytic coverage, latency, and false positives against a baseline, and pair internal results with the independent MITRE ATT&CK Evaluations. Iterate: update rules, telemetry, and playbooks, then validate the change in the next loop. The table collects the rules with their basis; the code block restates the exercise order.
The table gathers the page's rules, the documented basis for each, and the failure it prevents.
| Rule | Basis on this page | Failure it prevents |
|---|---|---|
| Define objectives and rules of engagement | The purple-team loop's requirements | Disruption or an unscoped exercise |
| Test rules against emulated behavior | Detection engineering's validation step | Coverage that exists only on paper |
| Protect telemetry sources | The evasion-versus-telemetry section | Blind spots under process injection or timestomping |
| Measure against a baseline | The three efficacy metrics | Judging success by alert volume |
| Iterate and revalidate | The continuous feedback loop | A one-time test that ages out |
Five rules, five documented bases — the page's discipline in one view.
Exercise order — the page's rules as a sequence from briefing to the next iteration.
# Working order
1. brief the scenario against the threat model
2. confirm rules of engagement, stop conditions, and rollback
3. execute the emulated techniques while blue monitors
4. debrief expected versus observed outcomes
5. update rules, telemetry, and playbooks, then retest
# The loop ends only when the improvement is validated.
A second view separates what the page documents about current detection performance from what it recommends, since the page reports both.
| Statement | Status in the page |
|---|---|
| Technique-level coverage rose from 69.8 to 85.5 percent | Reported evaluation figures |
| Hypervisor-focused ransomware is rising | Not on this page; scoped out |
| Detection efficacy is ongoing, not static | The page's conclusion |
| Emulation reveals gaps passive monitoring misses | The page's argument |
Reading — the quick reference keeps reported figures and conclusions in separate rows.
Telemetry integrity: the events that record a sensor's own removal
The evasion-versus-telemetry section above treats blinding as a contest without naming the technique. ATT&CK now records it as a category in its own right. Impair Defenses carries the identifier T1685 in the current release, was created on 14 April 2026 and last modified on 11 September 2026, and holds seven sub-techniques, among them T1685.001 Disable or Modify Windows Event Log, T1685.005 Clear Windows Event Logs and T1685.007 Impair Autonomous Defenses. Its description covers stopping services, modifying tool configuration, disabling or redirecting Event Tracing for Windows, altering event-log configuration and interfering with forwarding pipelines such as SIEM ingestion, and it names Sysmon among the tools targeted.
Sysmon's event catalogue shows why that interference is observable. Microsoft's documentation lists Event ID 4, service state changed, which reports whether the service started or stopped; Event ID 16, ServiceConfigurationChange, which logs filter-rule updates; and Event ID 255, error, generated when the service cannot perform a task. On the behaviour side, Event ID 8 records CreateRemoteThread and Event ID 10 records ProcessAccess, the two events associated with the process injection discussed above. A rule written against Event ID 8 therefore depends on a service whose start, stop and configuration changes are logged in the same stream. Emulation libraries make the same dependency explicit: Atomic Red Team maps each test to an ATT&CK technique, so a technique can be exercised and its detection checked, but the test does not establish that the sensor recording it was healthy.
The consequence for detection engineering is that coverage claims have two parts: whether a rule matches when telemetry arrives, and whether telemetry arrived at all. An estate that forwards Sysmon but never alerts on Event ID 4 or 16 cannot distinguish a quiet endpoint from one whose sensor was stopped, which is precisely the gap the ATT&CK entry describes. The multi-agency guidance released on 21 August 2024 by the Australian Cyber Security Centre with CISA, the FBI, the NSA, the UK National Cyber Security Centre, the Canadian Centre for Cyber Security and the New Zealand National Cyber Security Centre defines a baseline for event logging intended to mitigate cyber threats, placing sensor integrity inside the detection programme rather than beside it. NIST Special Publication 800-92, published in September 2006, frames log management as an enterprise-wide process rather than a host setting, which is the older form of the same argument.
The table lists the Sysmon events that document both the behaviour under test and the health of the sensor observing it.
| Event ID | What it records | Relevance to evasion |
|---|---|---|
| 4 | Sysmon service state changed | Shows a sensor stopped or restarted |
| 8 | CreateRemoteThread | Records a thread created in another process |
| 10 | ProcessAccess | Records one process opening another |
| 16 | ServiceConfigurationChange | Shows filter rules altered |
| 255 | Sysmon error | Shows the service failed to perform a task |
Reading — the same log carries the attack and the evidence of the attack on the log, which is what makes a missing event meaningful.
- Decoding the MITRE Engenuity ATT&CK Enterprise Evaluation: An Analysis of EDR Performance in Real-World Environments
- Figure source: Security operations center monitoring (Wikimedia Commons)
- Figure source: Telemetry collection overview (Wikimedia Commons)
- MITRE ATT&CK — Impair Defenses (T1685), seven sub-techniques, created 14 April 2026, last modified 11 September 2026
- Microsoft Learn — Sysmon v15.22 event reference, published 10 September 2026
- ASD's ACSC with CISA, FBI, NSA, NCSC-UK, CCCS and NCSC-NZ — Best Practices for Event Logging and Threat Detection, 21 August 2024
- NIST Special Publication 800-92 — Guide to Computer Security Log Management, September 2006
- Red Canary — Atomic Red Team, a library of tests mapped to MITRE ATT&CK