secskills
secskills / defense / hardening-cloud-posture

hardening-cloud-posture

defense verified 2026-07-27

Proactively harden a cloud account or organization before an incident — prioritizing IAM and identity risk over checkbox findings, closing the exposures that become attack paths (public storage, over-broad roles, missing audit logging, unencrypted data), reading CSPM output critically, and enforcing guardrails at the org level. Use when reviewing a cloud environment's security posture, triaging a Prowler/ScoutSuite/Security Hub report, deciding which misconfigurations actually matter, or setting preventive controls across AWS, Azure, or GCP.

$ /plugin install secskills-defense $ /plugin install secskills-core

A CSPM scan returns a thousand findings. Almost none of them are the way in. The job is not to close a thousand findings; it is to find the handful that form an attack path and close those, then set guardrails so they cannot recur. Posture work that treats every finding as equal drowns the real one.

The organizing principle: identity is the perimeter. In cloud, the attack path is almost always a chain of IAM permissions, not a network hop. Rank by "what does this let a principal reach?", not by a scanner's severity label.

When to Use

When NOT to Use

investigating-azure-incidents, or investigating-gcp-incidents

exploiting-cloud-platforms

managing-vulnerabilities

Rank by Attack Path, Not Finding Count

Work findings in the order an attacker would exploit them, not the order the scanner lists them:

  1. Public exposure of data or compute. Public S3/GCS buckets and storage

accounts, publicly reachable databases, management ports open to 0.0.0.0/0. These need no credential — they are pre-authentication. Close first.

  1. Identity that over-reaches. Wildcard Action/Resource policies, roles

assumable by * or by external accounts without a condition, users with iam:PassRole to a privileged role, service principals with Owner. This is where a foothold becomes account-takeover.

  1. Missing or disabled audit logging. CloudTrail not multi-region, GCP Data

Access logs off, Azure diagnostic settings absent. This does not create the breach but it blinds the investigation — enable it now, because you cannot retroactively log the incident you are about to have.

  1. Unencrypted data and absent key management. Real, but rarely the entry

path. Fix after the above unless a compliance obligation reorders it.

A public bucket with customer data outranks a hundred "encryption not enabled" findings, even though the scanner may score them alike.

Read CSPM Output Critically

Prowler, ScoutSuite, Security Hub, and Defender for Cloud are the standard tools and they are useful — but their output is a starting point, not a verdict:

on a role assumable cross-account may be your worst finding; a "high" on an internal-only resource may be noise.

does not tell you that role is attached to an internet-facing function. You supply the reachability.

was accepted" may no longer be acceptable. Review the suppression list as carefully as the open findings.

with Data Access logging disabled has a large blind spot it will never report as a finding.

Map the top findings to CIS Benchmark controls where a compliance frame helps, but do not let the benchmark set your priority — the benchmark is comprehensive, your remediation budget is not.

Guardrails Beat Findings

A fixed misconfiguration recurs the next time someone provisions a resource. A guardrail prevents the whole class:

CloudTrail, restrict regions; s3:BlockPublicAccess at the account level.

required encryption, required diagnostic settings.

iam.disableServiceAccountKeyCreation, compute.requireOsLogin).

Prefer the org-level deny over the per-resource fix. The point-fix closes one finding; the guardrail closes the class and every future instance of it.

Rationalizations to Reject

about a generic environment. The finding that matters is the one on the attack path, whatever it is labelled.

Disabled logging, an over-broad role the tool rates low, and a suppressed finding are all invisible to a green result.

or a cross-account-assumable admin role outranks it unless compliance forces the order.

next team makes the same bucket public next week. Fix the class.

Stale acceptances are where real exposure hides.

first — PassRole, wildcard trust policies, cross-account assume — not nothing. Identity is the perimeter; it is not optional.

References

investigating-gcp-incidents — what the audit logging you enable here feeds