Atomic Red Team
repository·master·Indexed 11 days ago
https://github.com/redcanaryco/atomic-red-teamA library of security tests mapped to the MITRE ATT&CK framework, enabling security teams to test their environments against specific adversary techniques quickly and reproducibly. The project includes a wide array of atomic tests, including specialized tests for containerized environments (e.g., Kubernetes pods) across tactics such as Execution, Privilege Escalation, and Defense Impairment.
What's inside Atomic Red Team
- This collection contains macOS Atomic Red Team tests organized by MITRE ATT&CK tactics and techniques. These tests are designed to simulate specific adversary behaviors on macOS systems to validate detection and response capabilities.
T1053.005 - Scheduled Task/Job: Scheduled Task
masterThis Atomic Red Team test covers techniques where adversaries abuse the Windows Task Scheduler to perform task scheduling for initial or recurring execution of malicious code. This can be used for persistence, remote execution (Lateral Movement), or running processes under specific account contexts (e.g., SYSTEM).
Common methods for interacting with the Task Scheduler include:
- Using the
schtaskscommand-line utility. - Using the Task Scheduler GUI via Administrator Tools.
- Using .NET wrappers for the Windows Task Scheduler.
- Using the Windows
netapi32library. - Using Windows Management Instrumentation (WMI).
- Using the PowerShell Cmdlet
Invoke-CimMethod(leveraging thePS_ScheduledTaskWMI class via an XML path).
Adversaries may also attempt to hide tasks from enumeration tools like
schtasks /queryby deleting associated Security Descriptor (SD) registry values or altering metadata (e.g.,Indexvalues) within registry keys.- Using the
Linux Atomic Tests by ATT&CK Tactic & Technique
masterThis index provides a collection of Linux-based Atomic Red Team tests, organized by MITRE ATT&CK tactics and techniques. These tests are designed to simulate adversary behavior on Linux systems to validate security controls and detection capabilities.T1082 - System Information Discovery
masterT1082 is an Atomic Red Team technique focused on System Information Discovery. This technique involves an adversary attempting to gather detailed information about the operating system and hardware, such as version, patches, hotfixes, service packs, and architecture. This information is used to shape follow-on behaviors and determine if specific actions or payloads are appropriate for the target environment.
Common methods for this discovery include:
- Using tools like
systeminfoon Windows. - Using
systemsetupon macOS (requires privileged access). - Using Network Device CLIs (e.g.,
show version). - Using
esxcliutilities on ESXi servers (e.g.,system hostname get,system version get). - Leveraging IaaS APIs (AWS, GCP, Azure) to retrieve instance and virtual machine metadata.
- Using tools like
T1574.001 - Hijack Execution Flow: DLL
masterThis Atomic Red Team test covers techniques where adversaries abuse Dynamic-Link Library (DLL) files to achieve persistence, escalate privileges, or evade defenses. The techniques included in this category are:
- DLL Sideloading: Planting a malicious DLL alongside a legitimate application so that when the application is executed, it loads the malicious payload instead of (or in addition to) the intended library.
- DLL Search Order Hijacking: Exploiting the specific sequence Windows uses to search for DLLs by placing a malicious DLL in a directory that is checked before the legitimate library's location.
- DLL Redirection: Modifying the search order via the Registry or redirection files to force a program to load a DLL from an unexpected location.
- Phantom DLL Hijacking: Targeting references to DLL files that do not exist on the system and planting a malicious DLL with the expected name in the location where the system would look for it.
- DLL Substitution: Replacing an existing, valid DLL file with a malicious one of the same name in the same directory.
These techniques are often used to mask malicious activity under the guise of a trusted, legitimate, or elevated process.
Browse ESXi Atomic Tests by ATT&CK Tactic
masterThe ESXi index provides a categorized list of Atomic Red Team tests specifically designed for VMware ESXi environments, mapped to MITRE ATT&CK tactics and techniques. You can use this index to identify which security controls to validate for specific adversary behaviors on ESXi hosts.
Available tactics include:
- Stealth: Techniques for hiding presence, such as masquerading, indicator removal, and obfuscation.
- Impact: Actions that disrupt service, destroy data, or inhibit system recovery.
- Execution: Methods for running malicious code, including scheduled tasks (Cron), ESXi administration commands, and various scripting interpreters (Bash, Python).
- Lateral Movement: Techniques for moving through the network, such as using SSH or remote services.
- Initial Access: Methods for gaining entry, including exploiting public-facing applications and using valid accounts.
- Exfiltration: Methods for moving data out of the environment via web services, C2 channels, or alternative protocols.
- Defense Impairment: Actions taken to disable security tools, modify permissions, or prevent command logging.
T1685.002 - Disable or Modify Cloud Log
masterThis Atomic test covers techniques where an adversary disables or modifies cloud logging capabilities (such as AWS CloudTrail, Azure Eventhub, or Office 365 Audit Logs) to limit data collection and avoid detection. This technique falls under MITRE ATT&CK T1685.002.T1047 - Windows Management Instrumentation (WMI)
masterT1047 refers to the abuse of Windows Management Instrumentation (WMI) for malicious purposes. WMI is a Windows administration feature providing a uniform environment to access system components. Adversaries use it for:
- Discovery: Gathering information about local or remote systems (e.g., reconnaissance of users, processes, or software).
- Execution: Running commands or payloads locally or remotely.
- Inhibit System Recovery: For example, using
wmic.exe Shadowcopy Deleteto delete shadow copies.
Connectivity Details:
- Remote WMI over DCOM: Uses port
135. - WMI over WinRM (HTTP): Uses port
5985. - WMI over WinRM (HTTPS): Uses port
5986.
Note on Deprecation:
wmic.exeis deprecated as of January 2024 and is disabled by default on Windows 11+. It is being replaced by PowerShell as the primary WMI interface. Other methods for interacting with WMI includewbemtool.exeand COM APIs (C++, .NET, VBScript, etc.).Browse Atomic Tests by Impact Tactic
masterThe Atomic Red Team repository provides a categorized index of tests mapped to MITRE ATT&CK tactics. Under the Impact tactic, you can find tests designed to simulate various disruptive activities, such as service disruption, data destruction, encryption, and system shutdown.
Many techniques in this category currently lack specific test implementations and are marked with
[CONTRIBUTE A TEST]. For techniques that do have tests, you can navigate to the specific technique page (e.g.,T1489) to see a list of available Atomic Tests categorized by platform (e.g.,[windows],[linux],[macos],[azure-ad]).Browse Linux Atomic Tests by ATT&CK Tactic
masterThe
linux-index.mdfile serves as a directory for finding Atomic Red Team tests specifically designed for Linux environments, organized by MITRE ATT&CK Tactics and Techniques.Users can navigate this index to find specific simulation tests for discovery, evasion, and other adversary behaviors. Each entry provides a link to the technique's main page and lists specific Atomic Test numbers available for Linux.
Key categories of Linux tests available in this index include:
- Discovery: System, account, network, and service discovery.
- Evasion: Virtualization/sandbox evasion and time-based evasion.
- Network: Sniffing, share discovery, and service discovery.
- Information Gathering: System information, file/directory discovery, and browser bookmark discovery.
T1016 - System Network Configuration Discovery
masterT1016 is an Atomic Red Team test suite covering techniques where adversaries look for details about network configuration and settings, such as IP addresses, MAC addresses, and routing information. This is used to gather information about local or remote systems to shape follow-on behaviors during automated discovery.View ESXi Atomic Tests by ATT&CK Tactic
masterThe
esxi-index.mdfile provides a categorized index of Atomic Red Team tests specifically designed for VMware ESXi environments. Tests are organized by MITRE ATT&CK tactics, allowing security practitioners to identify and execute simulations for specific adversary behaviors on ESXi hosts.Available tactics in this index include:
- persistence: Techniques to maintain access (e.g., Scheduled Tasks, Account Manipulation).
- privilege-escalation: Techniques to gain higher permissions (e.g., Escape to Host).
- command-and-control: Communication techniques (e.g., Protocol Tunneling, DNS, Proxying).
- credential-access: Methods to steal credentials (e.g., Brute Force).
- discovery: Methods to gather information about the system (e.g., Account Discovery, Network Configuration).
- collection: Methods to gather data (e.g., Data Staging).
- stealth, impact, execution, lateral-movement, and initial-access (further details available in subsequent segments).