Authorised use only. Use accounts you own. A cloud "lab" is a real account. Use a new, empty sandbox account that holds no production data, never your employer's tenant without written permission from its owner, and never anyone else's. See Stage 1.
Goal. By the end you can emulate a few cloud and identity techniques in an account you own, find them in the audit logs, and keep cost and blast radius small.
Why it matters#
Many intrusions now run through identities and cloud control planes: a stolen password or access key, a new key, a changed policy, a consent grant. There is no endpoint to put Sysmon on. The evidence lives in audit logs, so you can only test by calling the real cloud API in a real account. That makes mistakes costly. A leftover resource keeps billing you, and a test in the wrong account touches real systems.
What you will learn#
A cloud lab is an account, not a virtual machine#
Your isolation is the account boundary plus least privilege. Before any test:
- Create a separate sandbox (an AWS account, an Azure subscription and tenant, or a Google Cloud project) that you own, with no production data and no link to anyone else's.
- Set a budget alert first. See the budget pages in the resources.
- Turn on audit logging and keep it. CloudTrail's event history shows only the last 90 days of management events, so create a trail that writes to storage you control. Azure and Google Cloud have their own audit logs. Defaults and retention differ between providers and change, so read each current page.
- Protect the identity the tool uses. Stratus Red Team's documentation recommends an administrator role in a sandbox account. That is safe only because the account is empty and isolated, so protect that identity with MFA.
- Know how to delete everything, and check the console and the bill the next day.
Cloud providers publish what customers may test in their own accounts: see the policies linked in stage 1. Emulation in the cloud gets no exemption from those rules.
Stratus Red Team#
Stratus Red Team is an open-source tool from Datadog that describes itself
as the cloud counterpart of Atomic Red Team. It is one binary. Its technique reference covers AWS, Azure,
Microsoft Entra ID, Google Cloud, Kubernetes and Amazon EKS, each mapped to ATT&CK. A technique run has
four steps: warm-up creates prerequisites, detonate performs the technique, revert undoes it where
possible, and cleanup removes the prerequisites. The main commands are stratus list, stratus show,
stratus detonate, stratus status and stratus cleanup. Detonate warms up first if needed.
Each technique page is written for defenders. It gives the ATT&CK mapping, what warm-up and detonation do,
detection guidance, and sample CloudTrail events. In those samples the user agent begins with
stratus-red-team_. Use that to find and exclude your own tests, never as a detection, because a real
attacker will not send it.
Example 1: aws.defense-evasion.cloudtrail-stop. Warm-up creates a trail, and detonation stops logging
on that trail. The page names the CloudTrail event StopLogging and a GuardDuty finding type,
Stealth:IAMUser/CloudTrailLoggingDisabled. That page cites T1562.008, but the live ATT&CK site now
redirects that ID to T1685.002, "Disable or Modify Cloud Log", under the Defense Impairment tactic. Tools lag
the matrix, so map by behaviour and check. This small Sigma rule is written for this roadmap. SigmaHQ's
aws_cloudtrail_disable_logging.yml covers much the same calls:
title: CloudTrail Logging Stopped or Trail Changed (lab validation)
id: 8c3d1e52-4a6b-4f0d-b7a1-9e2c5d6f1a34
status: experimental
description: >
Detects API calls that stop logging on, delete or change a CloudTrail trail.
Used in the Threat Emulation roadmap to validate the Stratus Red Team technique
aws.defense-evasion.cloudtrail-stop in a sandbox account.
references:
- https://stratus-red-team.cloud/attack-techniques/AWS/aws.defense-evasion.cloudtrail-stop/
author: RoadMaps contributors
date: 2026-11-23
tags:
- attack.t1685.002
logsource:
product: aws
service: cloudtrail
detection:
selection:
eventSource: 'cloudtrail.amazonaws.com'
eventName:
- 'StopLogging'
- 'DeleteTrail'
- 'UpdateTrail'
- 'PutEventSelectors'
condition: selection
falsepositives:
- Planned changes to logging by the cloud platform team
level: highsigma convert -t splunk --without-pipeline cloudtrail_stop_lab.ymleventSource="cloudtrail.amazonaws.com" eventName IN ("StopLogging", "DeleteTrail", "UpdateTrail", "PutEventSelectors")That output (sigma-cli 3.1.0, Splunk backend 2.1.0, 2026-11-26) uses CloudTrail's own field names and has no index or sourcetype. Your SIEM may name the fields differently, and there is no bundled pipeline for AWS, so map the fields yourself and add the index. As written, the search suits a SIEM that stores raw CloudTrail JSON.
Example 2: aws.persistence.iam-create-admin-user. It creates an IAM user and attaches the
AdministratorAccess policy, which is T1136.003 (Create Account: Cloud Account). It leaves CreateUser,
AttachUserPolicy and CreateAccessKey events. The page warns that alerting on each event alone is noisy and
suggests a CreateUser call closely followed by an AttachUserPolicy call with an administrator policy.
Detection design in one line: one event is weak, a short sequence by one actor is strong.
CloudGoat#
CloudGoat from Rhino Security Labs builds "vulnerable by design" scenarios in your own AWS or Azure account. Its README warns that it creates intentionally vulnerable resources, so never deploy it in production or beside anything sensitive. It needs Linux or macOS, Python, Terraform and the cloud command-line tools, and it can only remove what it created. Its aim is attacker practice. Use it the defender's way: run one easy scenario by its own guide, destroy it, and then read your own CloudTrail. List the API calls you made, find them in the log, and pick the one or two that would have given you away best. This roadmap does not repeat the scenario walkthroughs.
Identity emulation#
When the account is the perimeter, identity systems are the target. Two safe shapes:
- A throwaway Active Directory domain in your stage 3 lab. Run atomic tests such as Kerberoasting (T1558.003) and read the domain controller's logs, for example event 4769. Never against a real domain.
- A cloud identity tenant you own. For Microsoft Entra, create a separate test tenant (check Microsoft's
current options) and never use your employer's. Stratus has Entra ID techniques, such as creating a guest
user or an application, and
stratus listshows the current IDs. The evidence is in Entra's audit and sign-in logs.
Identity detections usually need context: who normally does this, and from where. Score "logged" generously and "alerted" strictly. Useful techniques to consider include Additional Cloud Credentials (T1098.001), Additional Cloud Roles (T1098.003) and Valid Accounts: Cloud Accounts (T1078.004).
After every session#
Run stratus status and confirm nothing is left. Look in the console. Delete anything you created by hand.
Confirm logging is back as you want it. Check the bill the next day.
Do this#
- Build the sandbox (2 hours). New account, budget alert, audit logging to storage you control, and a written list of guardrails.
- Install Stratus (1 hour). Follow its Getting Started page, run
stratus list, and read two technique pages. - Detonate
aws.defense-evasion.cloudtrail-stop(2 hours). FindStopLoggingin CloudTrail, test the converted Sigma search against it, then clean up and confirm nothing is left. - Detonate
aws.persistence.iam-create-admin-user(1.5 hours). Find the three events. Write, in plain words, a rule that needs two of them from the same actor within a few minutes. - Identity (3 hours). Run a Kerberoasting test in your lab domain, or an Entra technique in your test tenant. Find the evidence and write the expected-versus-observed table from stage 4.
- Optional: one CloudGoat scenario (3–4 hours). Then write the defender's note described above.
- Teardown audit (30 minutes). Console, bill the next day, nothing left.
Resources#
Free first
- Stratus Red Team: getting started - installation, the steps of a run, and how to connect to each cloud.
- Stratus technique: Stop CloudTrail Trail - a model technique page, with detection advice and sample events.
- AWS CloudTrail user guide and Amazon GuardDuty - the logs and the managed findings.
- Microsoft Entra monitoring and health - sign-in and audit logs.
- Google Cloud audit logs - the equivalent for Google Cloud.
- AWS Budgets, Azure budgets and Google Cloud budgets - set one before you start.
- CloudGoat - read its warnings before anything else.
Paid or needs an account
- A cloud account (pay as you go). Free-tier terms change, so read the provider's current offer and set a budget alert before you create anything.
Checkpoint#
You are ready to move on when you can:
Go deeper (optional)#
- Run Stratus's Kubernetes techniques against a throwaway local cluster, then read the cluster's audit logs (Kubernetes auditing).
- Compare GuardDuty's finding for a technique with your own rule and note what each one misses.
- Hunt for the same behaviours in Threat Hunting stage 6.