emulating-cloud-attacks-with-stratus-red-team

mukul975/Anthropic-Cybersecurity-Skills

Запуск детальных техник атак на AWS, Azure, GCP и Kubernetes для проверки защищённости.

Звёзды36 321
Авторmukul975
Установок47

Установка

SKILL.md

Emulating Cloud Attacks with Stratus Red Team

Legal Notice: This skill is for authorized security testing and detection-validation purposes only. Stratus Red Team spins up and modifies real cloud infrastructure in the account whose credentials you supply. Only run it in accounts you own or are explicitly authorized to test. Always cleanup afterwards to avoid orphaned, billable, or insecure resources. Unauthorized use against systems you do not control is illegal.

Overview

Stratus Red Team is an open-source "Atomic Red Team for the cloud," maintained by Datadog. It is a self-contained Go binary that programmatically detonates granular, well-documented offensive techniques against AWS, Azure, GCP, and Kubernetes, then lets you cleanly revert and remove everything it created. Unlike a full exploitation framework, Stratus is purpose-built for detection engineering and purple teaming: each technique maps to a MITRE ATT&CK tactic and ships with a precise description of the cloud API calls it generates, so a blue team can confirm whether their CloudTrail/GuardDuty/Sentinel/Falco detections actually fire.

Every technique has a deterministic lifecycle. Stratus first provisions any prerequisite infrastructure with embedded Terraform (the warmup phase), then performs the malicious actions (detonate), optionally reverts the side effects so you can detonate again, and finally cleanups the prerequisite infrastructure. Because the prerequisites and the attack are decoupled, you can iterate on a detection by detonating the same technique repeatedly without re-provisioning. The tool uses your standard cloud SDK credential chain (AWS profiles/env vars, az login, GCP ADC, kubeconfig), so it operates with exactly the permissions of the identity you authenticate as.

This skill covers installing Stratus, listing and filtering the technique catalog, running the full warmup-detonate-revert-cleanup lifecycle, mapping detonations to the telemetry they produce, and wiring the results into a detection-validation workflow. Source: github.com/DataDog/stratus-red-team and stratus-red-team.cloud official documentation.

When to Use

  • Validating that a new or existing cloud detection rule (CloudTrail, GuardDuty, Microsoft Sentinel, GCP SCC, Falco) actually triggers on real attacker activity
  • Building a repeatable purple-team exercise for cloud TTPs without writing bespoke attack scripts
  • Generating realistic, MITRE-mapped telemetry to test SIEM ingestion and alert routing
  • Measuring detection coverage of a cloud environment against a known catalog of techniques
  • Onboarding analysts with safe, reversible hands-on cloud attack simulations

Prerequisites

  • Stratus Red Team binary (Go 1.23+ to build from source, or Homebrew/Docker):<!-- -->
    # Go install
    go install -v github.com/datadog/stratus-red-team/v2/cmd/stratus@latest
    
    # Homebrew
    brew tap datadog/stratus-red-team https://github.com/DataDog/stratus-red-team
    brew install datadog/stratus-red-team/stratus-red-team
    
    # Docker
    docker run --rm -v $HOME/.stratus-red-team/:/root/.stratus-red-team/ \
      -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_SESSION_TOKEN \
      ghcr.io/datadog/stratus-red-team list
    
  • Authenticated cloud credentials for the target provider:<!-- -->
    # AWS — verify identity before detonating
    export AWS_PROFILE=stratus-lab
    aws sts get-caller-identity
    
    # Azure
    az login
    
    # GCP
    gcloud auth application-default login
    
    # Kubernetes
    kubectl config current-context
    
  • A dedicated, non-production lab account or subscription (techniques create real resources)
  • Terraform is embedded; no separate install is required, but outbound HTTPS to download provider plugins on first warmup is needed

Objectives

  • Install Stratus Red Team and confirm the target cloud identity
  • Enumerate and filter techniques by platform and MITRE ATT&CK tactic
  • Execute the warmup -> detonate -> revert -> cleanup lifecycle safely
  • Map each detonation to the cloud API calls and log sources it generates
  • Validate detection rules against the produced telemetry and track coverage
  • Guarantee no residual infrastructure remains after testing

MITRE ATT&CK Mapping

IDNameUse in this skill
T1078Valid AccountsEmulation runs as a valid cloud identity; many techniques abuse legitimate credentials/API access
T1078.004Valid Accounts: Cloud Accountse.g. aws.credential-access.ec2-steal-instance-credentials produces cloud-account abuse telemetry
T1580Cloud Infrastructure DiscoveryDiscovery-tactic techniques such as aws.discovery.*
T1530Data from Cloud StorageExfiltration techniques such as aws.exfiltration.ec2-share-ebs-snapshot
T1098Account ManipulationPersistence techniques such as aws.persistence.iam-create-admin-user

Workflow

1. Confirm identity and list the technique catalog

Always confirm which account you are about to attack, then browse the catalog.

aws sts get-caller-identity
stratus list
# Filter to a single platform
stratus list --platform aws
# Filter by MITRE ATT&CK tactic
stratus list --mitre-attack-tactic credential-access

2. Inspect a specific technique before running it

Read exactly what a technique will do and which detonation/telemetry it produces.

stratus show aws.credential-access.ec2-steal-instance-credentials

3. Warm up prerequisite infrastructure

Provision the prerequisites with embedded Terraform without performing the attack yet.

stratus warmup aws.credential-access.ec2-steal-instance-credentials
stratus status

4. Detonate the technique

Execute the malicious actions; this is what your detections must catch. Warmup is implicit if not already done.

stratus detonate aws.credential-access.ec2-steal-instance-credentials
# Detonate and force a re-warmup in one step
stratus detonate aws.persistence.iam-create-admin-user --force

5. Inspect status and the telemetry generated

Check lifecycle state, then pull the corresponding control-plane logs to confirm the attack landed.

stratus status
# Pull recent CloudTrail events to verify the detonation
aws cloudtrail lookup-events \
  --lookup-attributes AttributeKey=EventName,AttributeValue=CreateAccessKey \
  --max-results 10

6. Validate the detection

Confirm your SIEM/detection fired. Example: query Athena/CloudTrail or check GuardDuty findings.

aws guardduty list-findings --detector-id "$DETECTOR_ID" \
  --finding-criteria '{"Criterion":{"updatedAt":{"GreaterThanOrEqual":'"$(date -d '-1 hour' +%s)"'000}}}'

7. Revert side effects to re-detonate

Undo the detonation while keeping prerequisites so you can iterate on a detection.

stratus revert aws.credential-access.ec2-steal-instance-credentials
stratus detonate aws.credential-access.ec2-steal-instance-credentials   # run again

8. Clean up all infrastructure

Tear down everything a technique created. Always finish here.

stratus cleanup aws.credential-access.ec2-steal-instance-credentials
# Nuke everything Stratus ever provisioned in this account
stratus cleanup --all
stratus status   # confirm COLD state for all techniques

9. Drive it programmatically for coverage runs

Loop over a tactic to measure detection coverage, then clean up. See scripts/agent.py.

python scripts/agent.py --platform aws --tactic credential-access --detonate --cleanup

Tools and Resources

ResourcePurposeLink
Stratus Red Team GitHubSource, releases, technique sourcehttps://github.com/DataDog/stratus-red-team
Stratus Red Team docsTechnique catalog and lifecycle referencehttps://stratus-red-team.cloud
Attack technique listFull per-platform technique IDshttps://stratus-red-team.cloud/attack-techniques/list/
MITRE ATT&CK CloudTactic/technique reference for mappinghttps://attack.mitre.org/matrices/enterprise/cloud/
Atomic Red TeamComplementary endpoint emulationhttps://github.com/redcanaryco/atomic-red-team

Detection-Validation Mapping

For purple-team value, pair each detonation with the telemetry and detection it should trigger:

TechniqueExpected telemetryDetection to validate
aws.credential-access.ec2-steal-instance-credentialsCloudTrail use of role creds from a non-EC2 IPGuardDuty UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration
aws.persistence.iam-create-admin-userCreateUser + AttachUserPolicy (AdministratorAccess)CloudTrail/Sentinel rule on admin-policy attach
aws.exfiltration.ec2-share-ebs-snapshotModifySnapshotAttribute sharing to external accountGuardDuty Exfiltration:EC2/... / custom rule
aws.discovery.ec2-enumerate-from-instanceBurst of Describe* from instance roleEnumeration-burst detection

After detonation, confirm the alert fired end-to-end (source -> SIEM -> ticket). If it did not, you have found a coverage gap; document it before cleaning up.

Cost and Safety Notes

  • Some techniques provision billable resources (EC2 instances, EBS snapshots). Always run stratus cleanup --all and verify stratus status returns COLD.
  • Never run Stratus with production credentials; use a dedicated lab account/subscription.
  • The state directory ~/.stratus-red-team/ holds Terraform state — preserve it until cleanup completes, or you may strand resources.

Lifecycle State Reference

StateMeaning
COLDNo prerequisites provisioned; nothing to clean up
WARMPrerequisites provisioned but not yet detonated
DETONATEDAttack actions performed; side effects present

Validation Criteria

  • <!-- -->Stratus installed and stratus list returns the technique catalog
  • <!-- -->Target cloud identity confirmed via sts get-caller-identity / equivalent
  • <!-- -->Technique inspected with stratus show before detonation
  • <!-- -->Warmup completed and status shows WARM
  • <!-- -->Detonation completed and status shows DETONATED
  • <!-- -->Generated telemetry located in CloudTrail/GuardDuty/SIEM
  • <!-- -->Detection rule confirmed to fire (or coverage gap documented)
  • <!-- -->Technique reverted and re-detonated to confirm repeatability
  • stratus cleanup --all run and status returns COLD for every technique
  • <!-- -->No orphaned billable resources remain in the account

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: emulating-cloud-attacks-with-stratus-red-team](https://darkplay.ru/ai/skills/mukul975-anthropic-cybersecurity-skills-emulating-cloud-attacks-with-stratus-red-team)

Описание

Запуск детализированных техник атак на AWS, Azure, GCP и Kubernetes для валидации защитных мер.

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

ruflo-agentruvnet · Среды выполнения агентов: локальные агенты в песочнице WASM (rvagent) и Anthropic Claude…
240 комп.
agentic-bundle-aas-devops-cloudsickn33 · Установите набор редакционных навыков "AAS DevOps & Cloud" для Claude Code.
49 917 ★
agentic-bundle-azure-ai-cloudsickn33 · Установите набор редакционных навыков "Azure AI & Cloud" для Claude Code.
49 917 ★
agentic-bundle-devops-cloudsickn33 · Установите набор редакционных навыков «DevOps & Cloud» для Claude Code.
49 917 ★
astronomer-data-agentsanthropics · Инженерия данных для Apache Airflow и Astronomer: написание DAG по лучшим практикам…
100 комп.
cds-mcpanthropics · Разработка проектов SAP Cloud Application Programming Model (CAP) с помощью AI. Поиск по…
100 комп.
clickhouseanthropics · Подключение Claude к базам данных ClickHouse Cloud. Просмотр организаций, сервисов, баз…
100 комп.
cloud-sql-mysqlanthropics · Подключение и работа с базой данных Cloud SQL for MySQL и её данными.
100 комп.
cloud-sql-postgresqlanthropics · Создание, подключение и работа с базой данных Cloud SQL for PostgreSQL и её данными.
100 комп.
cloud-sql-sqlserveranthropics · Подключение к Cloud SQL for SQL Server.
100 комп.

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8