Authorised use only. Isolated lab only. Everything you install here runs only on machines you own, on a network that cannot reach anything else. See Stage 1.
Goal. By the end you have an isolated lab with working logging and snapshots, and your first emulation framework installed from its official documentation, ready to use in stage 4.
Why it matters#
Emulation tools do real things: they create accounts, scheduled tasks and registry values, and they open network connections. In a lab that is the point. On your everyday computer or any shared network it is a risk. A lab also lets you undo everything with one click. And without telemetry from the lab machines, a test tells you nothing, because you cannot see what it left behind.
What you will learn#
Design the lab#
Diagram source (Mermaid)
flowchart LR
ME["You at the host computer"] -- "management network only" --> SIEM
subgraph LAB["Isolated lab network: no route to your LAN or the internet"]
WIN["Windows target<br/>Sysmon + log agent"]
DC["Domain controller<br/>(optional)"]
LIN["Linux target<br/>(optional)"]
SIEM["Log collector and SIEM<br/>(never reverted)"]
WIN --> SIEM
DC --> SIEM
LIN --> SIEM
endAs a rough guide, a host with 16 GB of memory runs a Windows target, a log server and one spare machine. With 32 GB you can add a domain controller. Plan on 100 to 200 GB of fast disk. Choose one hypervisor you can run: VirtualBox, Hyper-V, Proxmox VE or similar. All offer snapshots and internal-only networks.
Isolation checklist#
- Put every lab machine on an internal or host-only network with no route to your home or work network and no internet. Use a separate update adapter that you switch on only for a maintenance window.
- No bridged adapters. No shared folders, shared clipboard or drag and drop on target machines.
- Never join a lab machine to a real domain. Build a throwaway one if you need a domain.
- Use throwaway accounts and passwords that exist nowhere else.
- Prove isolation. From a target, try to reach your router and a public website. Both must fail. Repeat after every network change.
Snapshots#
Take a baseline snapshot once the operating system, logging and log agent work, and before any emulation tool is installed. Take another once the tools are in, and one before each session. Revert after each session. Name snapshots with a date and a purpose. Reverting erases the machine's own logs, so ship them to the log server, which you never revert. Keep the clocks of every machine on one time source, in UTC. You will match test times to log times, and a skewed clock wastes hours.
Targets and telemetry#
Use Windows evaluation editions from the Microsoft Evaluation Center for evaluation in the lab, and respect their terms. Any mainstream Linux distribution will do. On the targets:
- Sysmon from Microsoft Sysinternals records process creation with the command line and, depending on its configuration, network connections and file and registry changes. Version 15.22 was published on 10 September 2026. Windows 11 and Windows Server 2025 also offer it as an optional built-in feature, so check what a machine already has before installing the standalone tool. Start from a community configuration: SwiftOnSecurity's template is a long-standing base, though its last update was July 2024, and sysmon-modular was updated in October 2026.
- Security log auditing. Turn on process-creation auditing and the setting that adds the command line to event 4688. Microsoft's pages explain both.
- PowerShell logging, including script block logging (event 4104).
- Linux: the audit daemon, or Sysmon for Linux.
Detection Engineering stage 3 (Data and telemetry) goes deeper on what each log contains.
A minimal logging pipeline#
You need three parts: an agent on each target, a collector, and somewhere to search. Free options include
Elastic, Wazuh and
Security Onion. Pick one and learn it. Prove the pipeline before
anything else: run a harmless command such as whoami as a test user, then find that event in your search
tool within a minute or two. If you cannot, stop and fix it. Every later stage depends on it.
The frameworks#
| Framework | What it is | Used in | Maintenance snapshot (checked 2026-11-26) |
|---|---|---|---|
| Atomic Red Team and Invoke-AtomicRedTeam | Red Canary's library of small tests mapped to ATT&CK, and its PowerShell runner (Windows, and Linux or macOS through PowerShell Core) | Stages 4 and 7 | MIT licence. Library changed in November 2026. Runner last changed September 2025. |
| Apache Caldera (incubating) | A server plus agents. You build adversary profiles and run operations. Plugins add Atomic Red Team tests and CTID plans. | Stages 5 and 7 | Apache licence. Latest release 5.3.0 (April 2025), code changed in November 2026. Now an Apache Software Foundation incubating project. |
| Stratus Red Team | Granular cloud techniques run from one binary | Stage 6 | Apache licence. Changed November 2026. |
| VECTR | Tracks exercises and results | Stage 5 | Free Community Edition under its own licence. Release ce-9.14.1 (August 2026). |
| Splunk Attack Range | Builds an instrumented lab in AWS, Azure or GCP | Optional | Apache licence. It runs in a cloud account, so it costs money and is not an isolated local lab. |
Third-party tutorials may mention the Python runner atomic-operator. Its repository is archived, so choose
the maintained runner instead.
Install safely#
- Use the project's own documentation (linked below), not a blog's copy of it.
- Check you are on the real project. Look at the organisation in the address:
redcanaryco,apache,DataDog. Beware lookalikes and forks. - Prefer a package manager or a tagged release to a script piped from the internet. Read any script before you run it.
- Install on lab machines only. Keep the tools off your host.
- Write down the version.
- Expect endpoint protection to react. It may flag test files or block actions. In a lab that is normal, and a blocked test is a result: record it as "prevented". The framework's own documentation explains its options. Make a deliberate choice and write it in your lab notes.
The Invoke-AtomicRedTeam wiki gives this install command for the module:
Install-Module -Name invoke-atomicredteam,powershell-yaml -Scope CurrentUserThe test definitions (the "atomics folder") are a separate step on the same wiki page. Once they are in place, list a technique's tests without running anything:
Invoke-AtomicTest T1053.005 -ShowDetailsBriefCaldera's core is a command-and-control server by design. Install it on a Linux machine inside the lab, follow its documentation (its README recommends a Python virtual environment), and never expose it to another network.
Do this#
- Build the network and prove isolation (2–3 hours). Create the internal network, attach a target, and show that it cannot reach your router or the internet.
- Build a Windows target and the pipeline (3–4 hours). Install Sysmon and your chosen agent, run
whoamias a test user, and find the event in your search tool. - Practise the snapshot drill (30 minutes). Take the baseline, create a file, revert, and confirm the file is gone but the log server still holds the event.
- Install Invoke-AtomicRedTeam and list tests (1 hour). Do not run any test yet.
- Optional: start Caldera (1–2 hours). Install the server on a Linux lab machine, open its web interface, then stop it. Do not run an operation yet.
- Write the lab README (1 hour). A diagram, versions, accounts, snapshot names and your isolation proof.
Resources#
Free first
- Atomic Red Team: getting started and installing Invoke-AtomicRedTeam - the official install steps, with the AV note and the atomics folder.
- Apache Caldera documentation - installation, plugins and the concepts of agents, abilities and operations.
- Sysmon - what it logs, and every event ID.
- Command line process auditing - how to add the command line to process-creation events.
- about_Logging_Windows - PowerShell logging options.
- Splunk Attack Range - a ready-made cloud lab, if you accept the cost.
- Foundations - its stage 7 covers lab setup and ethics.
Paid or needs an account
- A cloud account is needed only for Attack Range and for stage 6. Both cost money, so set a budget alert first.
Checkpoint#
You are ready to move on when you can:
Go deeper (optional)#
- Compare the Sysmon community configurations and note which events each one drops.
- Add a Linux target and collect its audit logs into the same pipeline.