К основному содержанию
скилл CX Codex

auditing-cloud-with-cis-benchmarks — скилл для Claude Code

Скилл auditing-cloud-with-cis-benchmarks проверяет окружения AWS, Azure и GCP по стандартам CIS Benchmarks с помощью Prowler и ScoutSuite. Помогает находить уязвимости конфигурации и готовиться к аудитам.

Apache-2.0 282 установок ★ 36 511 обновлён 2026-08-31

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill auditing-cloud-with-cis-benchmarks -a claude-code
Открыть на GitHub

Что делает auditing-cloud-with-cis-benchmarks

Скилл содержит инструкции и команды для аудита инфраструктуры в AWS, Azure и GCP по стандартам CIS Foundations Benchmarks (CIS v5.0 для AWS, v4.0 для Azure и v4.0 для GCP). Процесс разбит на пять этапов. Сюда входят запуск сканеров Prowler или ScoutSuite, разбор отчётов через jq, разделение проверок на Level 1 и Level 2, а затем исправление через CLI или Terraform.

Для сбора данных понадобятся роли только для чтения: SecurityAudit в AWS, Reader в Azure или Viewer в GCP. Если учётная запись аудита имеет права на запись, это нарушает принцип изоляции. Для внесения исправлений нужен отдельный доступ.

Скилл не предназначен для перехвата атак в реальном времени или тестирования веб-приложений. Инструмент проверяет базовую конфигурацию. Он покрывает шифрование S3, настройки CloudTrail, правила фаерволов и отсутствие постоянных ключей у пользователя root.

Какие задачи решает

  • Провести автоматическое сканирование облака через Prowler по правилам CIS
  • Разобрать отчёт аудита и сгруппировать непройденные проверки по критичности
  • Устранить уязвимости базовой конфигурации в AWS, Azure и GCP
  • Настроить непрерывный мониторинг соответствия стандартам в AWS Security Hub

Примеры запросов агенту

  • Просканируй аккаунт AWS через Prowler на соответствие CIS v5.0 и сохрани отчёт в JSON
  • Разбери результаты аудита Prowler и покажи непройденные проверки первого уровня
  • Помоги исправить нарушение CIS 1.4 и удалить ключи доступа для root в AWS

Как установить auditing-cloud-with-cis-benchmarks

1Через Skills CLI (Vercel)

npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill auditing-cloud-with-cis-benchmarks -a claude-code

2Вручную: положить файлы

~/.claude/skills/auditing-cloud-with-cis-benchmarks/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/auditing-cloud-with-cis-benchmarks/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы об auditing-cloud-with-cis-benchmarks

Как установить auditing-cloud-with-cis-benchmarks в Claude Code?

Выполните команду npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill auditing-cloud-with-cis-benchmarks -a claude-code. Скилл сохранится в ~/.claude/skills/auditing-cloud-with-cis-benchmarks/SKILL.md.

Что делает auditing-cloud-with-cis-benchmarks?

Он предоставляет пошаговый процесс аудита облачных аккаунтов на соответствие стандартам CIS. Внутри описаны запуск сканеров Prowler и ScoutSuite, фильтрация отчётов и команды для исправления уязвимостей.

Какие права доступа требуются для аудита?

Для аудита нужны роли только для чтения: SecurityAudit для AWS, Reader для Azure или Viewer для GCP. Для применения исправлений требуется отдельная учётная запись с правами на запись.

Исходный текст

SKILL.md · Apache-2.0
---
name: auditing-cloud-with-cis-benchmarks
description: Audit AWS, Azure, and GCP environments against the CIS Foundations Benchmarks by running automated scans with tools like Prowler and ScoutSuite, interpreting failed controls, and tracking remediation for continuous compliance. Use when conducting a cloud security audit, validating CIS benchmark compliance (CIS v5 AWS, v4 Azure, v4 GCP), or setting up continuous cloud compliance monitoring.
domain: cybersecurity
subdomain: cloud-security
tags:
- cis-benchmarks
- cloud-audit
- compliance-assessment
- prowler
- security-hardening
version: 1.0.0
author: mahipal
license: Apache-2.0
nist_ai_rmf:
- GOVERN-1.1
- GOVERN-4.2
- MAP-2.3
nist_csf:
- PR.IR-01
- ID.AM-08
- GV.SC-06
- DE.CM-01
mitre_attack:
- T1078.004
- T1530
- T1098.003
- T1685.002
- T1580
---

# Auditing Cloud with CIS Benchmarks

## When to Use

- When performing initial security audits of cloud environments against industry-standard benchmarks
- When preparing for SOC 2, ISO 27001, or regulatory audits that reference CIS controls
- When establishing a measurable security baseline for new cloud accounts or subscriptions
- When tracking compliance improvement over time with periodic reassessment
- When evaluating the security posture of acquired or inherited cloud environments

**Do not use** for runtime threat detection (see detecting-cloud-threats-with-guardduty), for application-level security testing (see conducting-cloud-penetration-testing), or for compliance frameworks not based on CIS (refer to specific regulatory skill files).

## Prerequisites

- Read-only access to target cloud accounts (AWS SecurityAudit policy, Azure Reader role, GCP Viewer role)
- Prowler, ScoutSuite, or cloud-native CSPM tools installed and configured
- Understanding of CIS benchmark structure: sections, controls, profiles (Level 1 and Level 2)
- Remediation access for implementing fixes (separate from audit credentials)

## Workflow

### Step 1: Select Appropriate CIS Benchmark Version

Choose the correct benchmark version for each cloud provider. Current versions as of 2025 include CIS AWS Foundations Benchmark v5.0, CIS Azure Foundations Benchmark v4.0, and CIS GCP Foundations Benchmark v4.0.

```
CIS Benchmark Coverage Areas:
+-------------------+-------------------------+------------------------+
| Section           | AWS v5.0                | Azure v4.0             |
+-------------------+-------------------------+------------------------+
| Identity & Access | IAM policies, MFA, root | Azure AD, RBAC, PIM    |
| Logging           | CloudTrail, Config      | Activity Log, Diag     |
| Monitoring        | CloudWatch alarms       | Defender, Sentinel     |
| Networking        | VPC, SG, NACLs         | NSG, ASG, Firewall     |
| Storage           | S3 encryption, access   | Storage encryption     |
| Database          | RDS encryption          | SQL TDE, auditing      |
+-------------------+-------------------------+------------------------+

CIS Profile Levels:
  Level 1: Practical security settings that can be implemented without significant
           performance impact or reduced functionality
  Level 2: Defense-in-depth settings that may reduce functionality or require
           additional planning for implementation
```

### Step 2: Run Automated Assessment with Prowler

Execute comprehensive CIS benchmark scans using Prowler for automated control evaluation across AWS, Azure, and GCP.

```bash
# AWS CIS v5.0 assessment
prowler aws \
  --compliance cis_5.0_aws \
  --profile audit-account \
  --output-formats json-ocsf,html,csv \
  --output-directory ./cis-audit-$(date +%Y%m%d)

# Azure CIS v4.0 assessment
prowler azure \
  --compliance cis_4.0_azure \
  --subscription-ids "sub-id-1,sub-id-2" \
  --output-formats json-ocsf,html,csv \
  --output-directory ./cis-audit-azure-$(date +%Y%m%d)

# GCP CIS v4.0 assessment
prowler gcp \
  --compliance cis_4.0_gcp \
  --project-ids "project-1,project-2" \
  --output-formats json-ocsf,html,csv \
  --output-directory ./cis-audit-gcp-$(date +%Y%m%d)

# Multi-account AWS scan using ScoutSuite
scout suite aws \
  --profile audit-account \
  --report-dir ./scout-report \
  --ruleset cis-5.0 \
  --force
```

### Step 3: Interpret Results and Prioritize Remediation

Analyze audit results by section and severity. Prioritize Level 1 controls first as they represent fundamental security hygiene, then address Level 2 controls for defense in depth.

```bash
# Parse Prowler results for failed controls
cat ./cis-audit-*/prowler-output-*.json | \
  jq '[.[] | select(.StatusExtended == "FAIL")] | group_by(.CheckID) |
  map({control: .[0].CheckID, description: .[0].CheckTitle,
  failed_resources: length, severity: .[0].Severity}) |
  sort_by(-.failed_resources)'

# Generate compliance score by section
cat ./cis-audit-*/prowler-output-*.json | \
  jq 'group_by(.Section) | map({
    section: .[0].Section,
    total: length,
    passed: [.[] | select(.StatusExtended == "PASS")] | length,
    failed: [.[] | select(.StatusExtended == "FAIL")] | length,
    score: (([.[] | select(.StatusExtended == "PASS")] | length) / length * 100 | round)
  })'
```

### Step 4: Remediate Critical and High Controls

Address failed controls starting with the highest impact items. Use AWS Config remediation, Azure Policy, or Terraform to apply fixes systematically.

```bash
# CIS 1.4: Ensure no root account access key exists
aws iam list-access-keys --user-name root
# If keys exist, delete them
aws iam delete-access-key --user-name root --access-key-id AKIAEXAMPLE

# CIS 2.1.1: Ensure S3 bucket default encryption is enabled
for bucket in $(aws s3api list-buckets --query 'Buckets[*].Name' --output text); do
  aws s3api put-bucket-encryption --bucket "$bucket" \
    --server-side-encryption-configuration '{
      "Rules": [{"ApplyServerSideEncryptionByDefault": {"SSEAlgorithm": "AES256"}}]
    }' 2>/dev/null && echo "Encrypted: $bucket" || echo "FAILED: $bucket"
done

# CIS 3.1: Ensure CloudTrail is enabled in all regions
aws cloudtrail create-trail \
  --name organization-trail \
  --s3-bucket-name cloudtrail-logs-bucket \
  --is-multi-region-trail \
  --enable-log-file-validation \
  --kms-key-id arn:aws:kms:us-east-1:123456789012:key/key-id

aws cloudtrail start-logging --name organization-trail

# CIS 4.x: Configure CloudWatch metric filters and alarms
aws logs put-metric-filter \
  --log-group-name CloudTrail/DefaultLogGroup \
  --filter-name UnauthorizedAPICalls \
  --filter-pattern '{ ($.errorCode = "*UnauthorizedAccess*") || ($.errorCode = "AccessDenied*") }' \
  --metric-transformations metricName=UnauthorizedAPICalls,metricNamespace=CISBenchmark,metricValue=1
```

### Step 5: Establish Continuous Compliance Monitoring

Deploy automated compliance monitoring to detect configuration drift between periodic audits. Use AWS Security Hub, Azure Policy, or GCP Security Command Center.

```bash
# AWS: Enable CIS v5.0 in Security Hub
aws securityhub batch-enable-standards \
  --standards-subscription-requests '[
    {"StandardsArn": "arn:aws:securityhub:::ruleset/cis-aws-foundations-benchmark/v/5.0.0"}
  ]'

# Azure: Assign CIS benchmark policy initiative
az policy assignment create \
  --name cis-azure-benchmark \
  --scope "/subscriptions/<sub-id>" \
  --policy-set-definition "1a5bb27d-173f-493e-9568-eb56638dbd0e" \
  --params '{"effect": {"value": "AuditIfNotExists"}}'

# Schedule periodic Prowler assessments
# Run weekly via cron or CI/CD pipeline
0 2 * * 1 prowler aws --compliance cis_5.0_aws --output-formats csv --output-directory /opt/audits/weekly-$(date +\%Y\%m\%d)
```

## Key Concepts

| Term | Definition |
|------|------------|
| CIS Benchmark | Prescriptive security configuration guidelines developed by the Center for Internet Security through community consensus |
| Level 1 Profile | Practical security controls implementable without significant performance or functionality impact, representing security hygiene |
| Level 2 Profile | Defense-in-depth controls that may restrict functionality and require careful planning before implementation |
| Foundations Benchmark | CIS benchmark specifically for cloud providers covering IAM, logging, monitoring, networking, and storage security |
| Control ID | Unique numerical identifier for each CIS recommendation (e.g., 1.4 for root access key checks, 2.1.1 for S3 encryption) |
| Compliance Score | Percentage of CIS controls in a passing state, tracked over time to measure security posture improvement |
| Automated Assessment | Tool-driven evaluation of CIS controls using cloud provider APIs to check resource configurations against benchmark requirements |
| Remediation Runbook | Documented step-by-step procedure for fixing a specific failed CIS control, including pre-checks and validation |

## Tools & Systems

- **Prowler**: Open-source cloud security tool performing 300+ checks including CIS benchmark assessments for AWS, Azure, and GCP
- **ScoutSuite**: Multi-cloud security auditing tool with CIS benchmark rule sets generating HTML reports
- **AWS Security Hub**: Native AWS service supporting CIS AWS Foundations Benchmark as a security standard
- **Azure Policy**: Governance service with built-in CIS benchmark policy initiatives for automated compliance monitoring
- **GCP Security Command Center**: Native GCP service evaluating configurations against CIS GCP Foundations Benchmark

## Common Scenarios

### Scenario: Pre-Audit CIS Assessment for SOC 2 Certification

**Context**: A SaaS company pursuing SOC 2 Type II certification needs to demonstrate cloud security controls aligned to CIS benchmarks. The auditor requires evidence of continuous compliance monitoring across 45 AWS accounts.

**Approach**:
1. Run Prowler CIS v5.0 assessment across all 45 accounts to establish the baseline compliance score
2. Export results to CSV and categorize failures by section (IAM, Logging, Monitoring, Networking)
3. Map each CIS control to the relevant SOC 2 Trust Services Criteria (CC6.1, CC6.6, CC7.1, etc.)
4. Remediate all Level 1 control failures within 30 days and Level 2 within 60 days
5. Enable CIS v5.0 in AWS Security Hub for continuous monitoring and automated drift detection
6. Generate weekly compliance reports showing improvement trajectory for the auditor
7. Document exceptions for controls intentionally not implemented with risk acceptance justification

**Pitfalls**: Remediating controls without testing in a staging environment first can break production workloads. Ignoring Level 2 controls entirely weakens the audit narrative even if they are not strictly required.

## Output Format

```
CIS Benchmark Audit Report
============================
Cloud Provider: AWS
Benchmark Version: CIS AWS Foundations Benchmark v5.0
Accounts Assessed: 45
Assessment Date: 2025-02-23
Tool: Prowler v4.3.0

OVERALL COMPLIANCE SCORE: 74%

COMPLIANCE BY SECTION:
  1. Identity and Access Management:  68% (41/60 controls passed)
  2. Storage:                         82% (28/34 controls passed)
  3. Logging:                         91% (20/22 controls passed)
  4. Monitoring:                      55% (18/33 controls passed)
  5. Networking:                      78% (32/41 controls passed)

TOP FAILED CONTROLS (by affected accounts):
  [1.4]   Root account has active access keys           - 3/45 accounts
  [1.5]   MFA not enabled for root account              - 2/45 accounts
  [2.1.1] S3 default encryption not enabled             - 12/45 accounts
  [3.1]   CloudTrail not multi-region                   - 8/45 accounts
  [4.3]   No alarm for root account usage               - 28/45 accounts
  [5.1]   VPC flow logs not enabled                     - 15/45 accounts
  [5.4]   Security groups allow 0.0.0.0/0 ingress      - 22/45 accounts

REMEDIATION PRIORITY:
  Critical (Fix within 7 days):  Root access keys, missing root MFA
  High (Fix within 30 days):     S3 encryption, CloudTrail, VPC flow logs
  Medium (Fix within 60 days):   CloudWatch alarms, security group restrictions
  Low (Fix within 90 days):      Level 2 controls, informational items
```

© mahipal · Apache-2.0 · mukul975/Anthropic-Cybersecurity-Skills

Похожие скиллы

Все скиллы по теме «Безопасность» →
cis-benchmarks devops-skills Скилл cis-benchmarks помогает проверять систему на соответствие стандартам CIS и исправлять найденные уязвимости. Пригодится при настройке базовой безопасности серверов или подготовке к аудиту. CX Codex +1 420установок prowler-sdk-check prowler-cloud Скилл prowler-sdk-check для Claude Code, Codex, Cursor и других IDE помогает писать проверки безопасности Prowler по архитектурным паттернам SDK. CX Codex +1 ★ 15 302звёзд репо cloud-audit briiirussell Скилл cloud-audit проверяет облачную инфраструктуру и PaaS на открытые доступы, лишние права и проблемы с деплоем. Нужен перед разбором cloud security. CX Codex +1 452установок cloud-containers transilienceai Скилл cloud-containers проверяет настройки AWS, Azure, GCP, Docker и Kubernetes на уязвимости. Он пригодится для атаки на облачную цель или отдельной проверки конфигурации с доступом только на чтение. CX Codex +1 197установок cloud-defense transilienceai Скилл cloud-defense для Claude Code сопоставляет этапы атаки после компрометации облака с сигналами журналов и мерами защиты. Аудирует AWS, Azure и GCP. CX Codex +1 133установок hybrid-cloud-architect sickn33 Скилл hybrid-cloud-architect для Claude Code проектирует гибридную инфраструктуру с AWS, Azure, GCP и частными облаками. Разбирает сети, миграции, Kubernetes и аварийное восстановление. CX Codex +1 1установок

Из того же набора152

Весь набор →
implementing-jwt-signing-and-verification implementing-jwt-signing-and-verification — скилл для Claude Code, который помогает писать и проверять JWT. Подключается при настройке аутентификации или аудите проверки токенов. CX Codex +1 294установок analyzing-supply-chain-malware-artifacts Скилл analyzing-supply-chain-malware-artifacts помогает расследовать артефакты атак через цепочку поставок: троянизированные обновления, сборки и зависимости. CX Codex +1 293установок scanning-network-with-nmap-advanced Скилл scanning-network-with-nmap-advanced для продвинутого сканирования сетей через Nmap: поиск хостов, определение версий сервисов, обход фаерволов, проверка уязвимостей через NSE-скрипты и парсинг результатов в XML. CX Codex +1 286установок achieving-cmmc-level-2-compliance Скилл achieving-cmmc-level-2-compliance помогает подготовить инфраструктуру к сертификации CMMC Level 2, разметить границы CUI, оценить 110 требований NIST SP 800-171 Rev 2 и рассчитать балл SPRS. CX Codex +1 284установок implementing-api-schema-validation-security Скилл implementing-api-schema-validation-security настраивает проверку контрактов API через OpenAPI и JSON Schema на шлюзе и в коде. Защищает от инъекций, массового присвоения и утечек данных. CX Codex +1 280установок detecting-ai-model-prompt-injection-attacks Скилл detecting-ai-model-prompt-injection-attacks выявляет попытки инъекции в запросы к ИИ-моделям через регулярные выражения, анализ структуры и трансформатор DeBERTa. CX Codex +1 280установок analyzing-tls-certificate-transparency-logs Скилл analyzing-tls-certificate-transparency-logs ищет фишинговые домены и теневые TLS-сертификаты через логи Certificate Transparency и crt.sh. Помогает SOC выявлять тайпосквоттинг по расстоянию Левенштейна. CX Codex +1 280установок auditing-terraform-infrastructure-for-security Скилл auditing-terraform-infrastructure-for-security настраивает аудит Terraform-кода через Checkov, tfsec, Terrascan и OPA. Он помогает закрыть открытые порты, избыточные права IAM и отсутствие шифрования до деплоя в облако. CX Codex +1 279установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой