agentleFS
awarexoneawarexone/AXguard/cloud-security/SKILL.md

cloud-security

Skill18 starsChanged 3 months agoMITView on GitHub

Review cloud and CORS misconfiguration in app code and IaC-adjacent configs — metadata URLs, public buckets, wildcard origins (CWE-918 / CWE-942 / A05:2021 / A10:2021).

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use malware-analysis.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • tsaleSkill

    malware-analysis

    Professional malware analysis workflow for PE executables and suspicious files. Triggers on file uploads with requests like "analyze this malware", "analyze this sample", "what does this executable do", "check this file for malware", or any request to examine suspicious files. Performs static analysis, threat intelligence triage, behavioral inference, and produces analyst-grade reports with reasoned conclusions.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    After axguard hits cloud.* (or ssrf.* near metadata).

    line 41
  2. Distinctive:

    Read/write objects in misconfigured buckets or queues.

    line 58
  3. Very specific:

    Run axguard scan / audit; collect cloud.* and related ssrf.* / secrets.*.

    line 64
  4. Very specific:

    Search for metadata endpoints (169.254.169.254, metadata.google.internal) and confirm whether URLs are user-influenced.

    line 65
  5. Very specific:

    Check cloud SDKs: hard-coded keys (hand off to secrets-detection), overly broad default credentials assumptions.

    line 68
  6. Distinctive:

    Prefer IMDSv2 / provider SDK role assumption over any app-initiated metadata HTTP fetch.

    line 69
  7. Distinctive:

    Do not exercise stolen credentials or scan third-party cloud tenants.

    line 70
  8. Distinctive:

    Test fixtures that never deploy

    line 84

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “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

Purpose

Guide pre-ship review of cloud exposure and CORS/trust-boundary mistakes in application code and nearby config — especially SSRF-to-metadata paths, overly open origins, and public object storage hints.

When to Use

  • Apps deployed on AWS/GCP/Azure or using object storage / serverless.
  • After axguard hits cloud.* (or ssrf.* near metadata).
  • PR review of CORS middleware, bucket ACL/policy snippets, or metadata URL references.

When Not to Use

  • Pure client-side SPA with no server egress and no cloud SDK/config in repo.
  • Unauthorized probing of someone else’s cloud account or metadata service.

Security Concepts

Cloud risk in app repos often appears as egress to privileged link-local endpoints, permissive cross-origin policies, and world-readable storage. Instance metadata (e.g. 169.254.169.254) can yield temporary credentials if reachable via SSRF. Wildcard CORS (*) with credentials, or reflected origins without allowlists, widens browser-side data theft.

Threat Model

Attacker goals:

  1. Steal cloud credentials via metadata (often chained from SSRF).
  2. Read/write objects in misconfigured buckets or queues.
  3. Abuse permissive CORS to exfiltrate authenticated browser sessions.
  4. Expand blast radius via overly broad IAM roles assumed by the app.

Analysis Workflow

  1. Run axguard scan / audit; collect cloud.* and related ssrf.* / secrets.*.
  2. Search for metadata endpoints (169.254.169.254, metadata.google.internal) and confirm whether URLs are user-influenced.
  3. Review CORS: Access-Control-Allow-Origin, credentials, origin reflection vs allowlist.
  4. Hunt public ACL / policy markers (public-read, AllUsers, wildcard principals) in code or infra-as-code snippets present in the repo.
  5. Check cloud SDKs: hard-coded keys (hand off to secrets-detection), overly broad default credentials assumptions.
  6. Prefer IMDSv2 / provider SDK role assumption over any app-initiated metadata HTTP fetch.
  7. Do not exercise stolen credentials or scan third-party cloud tenants.

Evidence Requirements

  • File:line for metadata URL, CORS policy, or public ACL hint
  • Whether the URL/origin is attacker-influenced
  • Deployment context if known (IMDSv1 vs v2, public CDN vs private API)
  • Confidence: CONFIRMED only with clear shipped config + reachability story

False Positive Controls

  • Docs/examples with placeholder bucket names and no ship path
  • CORS * on truly public, unauthenticated static assets without credentials
  • Metadata string in comments or vendor SDK constants never called with user input
  • Test fixtures that never deploy

Remediation

  • Block metadata and link-local destinations in SSRF defenses; use instance roles + IMDSv2.
  • Allowlist CORS origins; never pair * with Access-Control-Allow-Credentials: true.
  • Make buckets private by default; use signed URLs / IAM for access.
  • Least-privilege roles for the workload; no long-lived keys in source.
  • Harden related misconfig via configuration-security.

Verification

Re-run axguard audit / /axguard-cloud. Confirm metadata fetches and wildcard credentialed CORS are gone. Manually review remaining cloud policy snippets for public principals.

Related Skills

ssrf-analysis, secrets-detection, configuration-security, security-triage, security-remediation

Framework Mapping

  • CWE-918 (SSRF / metadata adjacency)
  • CWE-942 (permissive cross-domain policy)
  • CWE-284 (improper access control — broad cloud exposure)
  • OWASP A01:2021 Broken Access Control
  • OWASP A05:2021 Security Misconfiguration
  • OWASP A10:2021 SSRF
  • OWASP API8:2023 Security Misconfiguration

References

Research Provenance

Primary: OWASP Top 10:2021 A01/A05/A10; CWE-918/942/284; OWASP API Security Top 10:2023 API8 (2026-09-15).
Internal: AXGuard rules/cloud.json, /axguard-cloud.
Secondary: methodology concepts from OWASP CheatSheetSeries / WSTG (no verbatim dump).

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.