agentleFS
mchittinenimchittineni/cloud-platform-skills/.agents/skills/cloud-security-posture-cspm-cis/SKILL.md

cloud-security-posture-cspm-cis

Skill1 starsChanged 4 months agoMITView on GitHub

Cloud Security Posture Management: Prowler and ScoutSuite multi-cloud audits, CIS Benchmark baselines for AWS, Azure and GCP, over-permissive IAM discovery, and exception workflow. Use when auditing an account or organization's security posture, finding unused and over-permissive permissions across hundreds of roles, preparing for a CIS or compliance review, or triaging misconfiguration findings.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Least privilege as a measurable target: Read access-analyzer/policy-simulator output and compare granted actions against actions actually …

    line 74
  2. Distinctive:

    Exception register: Every accepted risk is a record with: finding ID, business justification, compensating control, named owner, and an …

    line 78
  3. Distinctive:

    Run one continuous native service and one independent scanner: native services score their own provider's defaults generously, and an …

    line 97

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Cloud Security Posture Management (CSPM) & CIS Benchmarks

When to Use This Skill

Triggers — load this skill when:

  • A cloud account or organization needs a posture audit against CIS benchmarks
  • Findings must be triaged, prioritized, and tracked to remediation
  • Compliance evidence for control coverage is required

Route elsewhere when:

  • Preventive policy gates before deploy -> enterprise-iac-governance-terragrunt
  • Identity policy authoring -> aws-iam-zero-trust-policies
  • Active intrusion response -> secops-incident-triage-forensics

1. Automated Multi-Cloud Audit with Prowler

# Run AWS CIS Foundation Benchmark audit
prowler aws --compliance cis_2.0_aws -M json,csv,html -o /tmp/prowler-output

# Run Azure CIS Benchmark audit
prowler azure --compliance cis_2.0_azure

# Run GCP CIS Benchmark audit
prowler gcp --compliance cis_2.0_gcp

2. Top CIS Benchmark Critical Baselines

AWS CIS Hardening Checklist

  • Root account MFA enabled and access keys deleted.
  • AWS CloudTrail enabled in all regions with log file validation and KMS encryption.
  • Default VPC security groups restrict all inbound and outbound traffic.
  • AWS GuardDuty and Security Hub enabled organization-wide.

Azure CIS Hardening Checklist

  • Microsoft Defender for Cloud enabled on all subscriptions.
  • Storage accounts require secure transfer (https) and TLS 1.2+.
  • Disable public blob access across all storage accounts.

GCP CIS Hardening Checklist

  • OS Login enabled across all Compute Engine instances.
  • Disallow default service account assignment to VMs with full API access.
  • Uniform bucket-level access enabled on all Cloud Storage buckets.

3. Finding Triage, Least Privilege & Exceptions

A raw scanner report is not a plan. Rank every finding by exploitability × blast radius:

RankShape of the findingAction window
P0Internet-reachable + credential/data exposure (public bucket with PII, 0.0.0.0/0 to a database)Same day
P1Privilege escalation path (iam:PassRole + wildcard, admin role without MFA)1 week
P2Detection/logging gaps (CloudTrail off in a region, no flow logs)1 sprint
P3Hygiene (missing tags, unused keys, weak password policy)Backlog

Least privilege as a measurable target. Read access-analyzer/policy-simulator output and compare granted actions against actions actually used in the last 90 days; drive the unused share toward zero rather than chasing a "no wildcards" rule that teams will route around.

Exception register. Every accepted risk is a record with: finding ID, business justification, compensating control, named owner, and an expiry date that reopens the finding automatically. An exception without an expiry is a silent policy change.


4. Choosing the Scanner

ToolStrengthUse it for
ProwlerBroadest CIS/NIST/PCI check library across AWS, Azure, GCP, Kubernetes; machine-readable outputThe recurring, pipeline-run compliance audit
ScoutSuiteMulti-cloud, produces a browsable HTML attack-surface report with rich contextPoint-in-time review and handing findings to non-specialists
Cloud-native (Security Hub, Defender for Cloud, SCC)Continuous, no scanning infrastructure to runAlways-on drift detection and alert routing
scout aws --report-dir ./scout-report --no-browser   # then review the HTML attack surface
scout gcp --organization-id 123456789012

Run one continuous native service and one independent scanner: native services score their own provider's defaults generously, and an independent tool catches what the provider's checks omit. Feed both into one findings register so the same misconfiguration is not tracked twice.


5. Anti-Patterns

Anti-patternWhy it fails in production
Reporting the raw finding count as the security metricThe number is dominated by low-severity hygiene items; it moves when the scanner updates its rule pack, not when risk changes. Track time-to-remediate for P0/P1 instead.
Enabling every check on day one and paging on all of themThe first week produces thousands of findings, the channel gets muted, and the programme is dead. Start with the P0 class (internet-reachable + data or credential exposure), then widen.
Treating a passing CIS score as "we are secure"CIS covers configuration baselines only. It says nothing about a valid credential in an attacker's hands, a vulnerable application, or an over-broad but technically compliant IAM policy.
Auto-remediating findings without an ownerAuto-closing a public S3 bucket that fronts a static site causes the outage the team remembers, and auto-remediation gets switched off permanently. Auto-remediate only classes that are provably safe, and notify the owner either way.
Silent, permanent exceptionsAn exception with no expiry is a policy change nobody approved. Every accepted risk carries a justification, a compensating control, a named owner, and a date that reopens it.
Running only the cloud provider's native scannerNative services grade their own provider's defaults generously. Pair one continuous native service with one independent scanner, and merge findings into a single register.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.