跳到主要内容
知仓学习社ZHICANG

performing-threat-emulation-with-atomic-red-team

Executes Atomic Red Team tests for MITRE ATT&CK technique validation

执行命令写文件严重 0 · 高危 6mukul975/Anthropic-Cybersecurity-Skills

它会碰到什么

扫了多少4 个文本文件,23 KB
它会碰到什么执行命令写文件
命中总数7 处
命中统计严重 0 · 高 6 · 中 1 · 低 0
逐条看命中(6 条严重或高危)
  • scripts/agent.py:98exec-shell-true
    # shell=True required: Atomic Red Team commands are shell scripts by design
  • scripts/agent.py:99exec-spawn
    result = subprocess.run(
  • scripts/agent.py:100exec-shell-true
    command, shell=True, capture_output=True, text=True, timeout=60,
  • scripts/agent.py:130exec-shell-true
    # shell=True required: Atomic Red Team cleanup commands are shell scripts by design
  • scripts/agent.py:131exec-spawn
    subprocess.run(cleanup_cmd, shell=True, capture_output=True, timeout=30)
  • scripts/agent.py:131exec-shell-true
    subprocess.run(cleanup_cmd, shell=True, capture_output=True, timeout=30)

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Performing Threat Emulation with Atomic Red Team

When to Use

  • When conducting security assessments that involve performing threat emulation with atomic red team
  • When following incident response procedures for related security events
  • When performing scheduled security testing or auditing activities
  • When validating security controls through hands-on testing

Prerequisites

  • Familiarity with threat intelligence concepts and tools
  • Access to a test or lab environment for safe execution
  • Python 3.8+ with required dependencies installed
  • Appropriate authorization for any testing activities

Instructions

Use atomic-operator to execute Atomic Red Team tests and validate detection coverage

against MITRE ATT&CK techniques.

from atomic_operator import AtomicOperator

operator = AtomicOperator()
# Run a specific technique test
operator.run(
    technique="T1059.001",  # PowerShell execution
    atomics_path="./atomic-red-team/atomics",
)

Key workflow:

  1. Clone the atomic-red-team repository for test definitions
  2. Select ATT&CK techniques matching your detection rules
  3. Execute atomic tests using atomic-operator
  4. Check SIEM/EDR for corresponding alerts
  5. Document detection gaps and update rules

Examples

# Parse atomic test YAML definitions
import yaml
with open("atomics/T1059.001/T1059.001.yaml") as f:
    tests = yaml.safe_load(f)
for test in tests.get("atomic_tests", []):
    print(f"Test: {test['name']}")
    print(f"  Platforms: {test.get('supported_platforms', [])}")

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。