Purple Teamby OneToSecure
Book a call

Chapter 02 · Emulation

Adversary emulation: playing the attacker who really targets you

Testing random techniques says little about your real exposure. Adversary emulation faithfully reproduces the behaviour of a group that targets your sector, from first access to final objective. Method, plans, libraries and examples.

Chapter 02 of 094 min readUpdated

Glass chessboard with translucent red and blue pieces facing each other, lit by a violet glow
Starting point
Intelligence
Reference
CTID Adversary Emulation Library
Granularity
Procedures

Emulation or simulation?

The two terms are often confused. They do not mean the same thing:

Attack simulationAdversary emulation
PrincipleReproduce generic techniquesReproduce the behaviour of a specific actor
SourceCatalogue of techniquesIntelligence on a real group (reports, incidents)
FidelityVariableHigh: same chains, same procedures
Question"Do we detect this technique?""Would we detect this group at every step of its attack?"
UseBroad coverage, automated tests (BAS)Purple team exercises, Red Team, TLPT

Building an emulation plan

  1. Choose the adversary

    Based on threat intelligence: groups active in your sector and region, motivations aligned with your assets (data, money, disruption). See Threat intelligence.

  2. Gather intelligence

    Public reports, CERT advisories, the group's MITRE ATT&CK page, incident analyses. Identify the TTPs and how they are chained.

  3. Extract the TTPs

    Map each observed behaviour to an ATT&CK technique, with procedure details: tools, commands, parameters, order and timing.

  4. Analyse and organise

    Rebuild the operational flow: initial access, foothold, discovery, escalation, lateral movement, objective. Identify decision points.

  5. Develop the procedures

    Turn each step into executable, safe actions in your environment, keeping the adversary's logic (and replacing anything dangerous).

  6. Emulate and measure

    Run the plan in a purple session (transparent) or as a Red Team (covert), and record detection at each step.

Reference libraries

ResourcePublisherContent
Adversary Emulation LibraryCenter for Threat-Informed Defense (MITRE Engenuity)Complete, documented emulation plans for real groups (APT29, FIN6, FIN7, menuPass, Sandworm…)
MITRE ATT&CK GroupsMITREPages on attacker groups and the techniques they use, with references
Atomic Red TeamRed CanaryMore than a thousand unit tests, each mapped to an ATT&CK technique
Micro Emulation PlansCenter for Threat-Informed DefenseShort chains of techniques representing common compound behaviours
MITRE ATT&CK EvaluationsMITRE EngenuityPublic evaluations of security products against adversary emulations

Example: simplified emulation plan of a ransomware group

The plan below is inspired by publicly documented modus operandi of criminal groups running ransomware. It is deliberately simplified and contains only safe and reversible steps.

  1. 01Initial accessValid VPN credentials bought from a broker
  2. 02DiscoveryAD and network enumeration
  3. 03CredentialsKerberoasting, LSASS dump
  4. 04Lateral movementRDP, admin tools
  5. 05Defence evasionSimulated antivirus shutdown
  6. 06ExfiltrationArchive to cloud storage
  7. 07ImpactSimulated encryption of decoy files
Emulated operational flow
StepATT&CK techniqueEmulated procedure (safe)Expected detection
1T1133, T1078VPN login with a test account from a hosting provider IPUnusual login (geolocation, ASN, time)
2T1087.002, T1482LDAP enumeration queries of accounts, groups and trustsAbnormal LDAP volume from one host
3T1558.003Service ticket requests for several accountsBurst of RC4-encrypted TGS requests
4T1003.001LSASS memory dump on a test serverSuspicious access to the LSASS process
5T1021.001RDP login to a server with an obtained accountService account used interactively
6T1562.001Attempt to stop the security service (on a test machine, tamper protection on)Alert on a disabling attempt
7T1560, T1567.002Compressing decoy files and uploading them to test cloud storageUnusual outbound volume to a sharing service
8T1486Mass renaming of decoy files in a test directoryMass file modification detection

From unit tests to chains

Atomic Red Team provides unit tests that are easy to run and automate. For example, with the PowerShell module Invoke-AtomicRedTeam:

Controlled execution of an Atomic Red Team test (test machine)
# Show the details of a test before any execution
Invoke-AtomicTest T1087.002 -TestNumbers 1 -ShowDetails

# Check then install the test prerequisites
Invoke-AtomicTest T1087.002 -TestNumbers 1 -CheckPrereqs
Invoke-AtomicTest T1087.002 -TestNumbers 1 -GetPrereqs

# Run the test, then clean up its artefacts
Invoke-AtomicTest T1087.002 -TestNumbers 1
Invoke-AtomicTest T1087.002 -TestNumbers 1 -Cleanup

These unit tests validate each detection in isolation. Full emulation adds the chain dimension: an analyst who sees AD discovery, then Kerberoasting, then an unusual RDP login from the same host must link these signals and escalate. End-to-end emulation is what tests this correlation.

Varying procedures

The same technique can be carried out in many ways. To avoid overestimating your coverage, test at least two or three variants:

Variant testedWhat it checks
  1. Well-known public tool, default parameters
    Signatures and basic rules
  2. Abused native system tool (living off the land)
    Behavioural detection without signatures
  3. Custom or recompiled tool
    Robustness against an attacker who adapts their tooling
  4. Slow execution, low volume, office hours
    Thresholds and correlation over time
  5. Execution from an account and host that are legitimate for the activity
    The ability to distinguish abuse from normal use

Frequently asked questions

How do you choose the adversary to emulate?

Start from intelligence: which groups target your sector and country, with which motivations? Without a CTI team, national CERT annual reports and ATT&CK group pages provide a good base. A generic ransomware group is rarely a bad choice to start with.

Is adversary emulation risky?

It is designed not to be: safe procedures, test machines and accounts, no destructive action, systematic clean-up. The final impact (encryption, sabotage) is always simulated on decoy files.

Can emulation be automated?

Partly, with platforms such as CALDERA or BAS (Breach and Attack Simulation) tools. Automation is excellent for regression; humans remain essential for creativity, variants and analysis. See Tools.

What if your next attack were already detected?

In 45 minutes, let's see how a purple team programme can improve your detection coverage, technique by technique, with measurable results from the very first session.

Book a meeting