security-audit
Skill31 starsChanged 15 days agoApache-2.0View on GitHub
Read-only AWS and GitHub security-posture audit (detective controls, live findings, data protection) with a prioritized remediation plan. Infrastructure posture, not code review. Use for \"security audit\", \"security posture\", \"what is GuardDuty finding\", or ahead of the SOC 2 review.
191 other projects use a version of this.
Adopted by
Most recently taken up by
- mfish-qf/mfish-nocodetheir own version, first seen Nov 30, 2026
- aykyusuf/crew-chieftheir own version, first seen Nov 29, 2026
- gromov0737/skillstheir own version, first seen Nov 29, 2026
- nurmdrafi/pi-nativetheir own version, first seen Nov 29, 2026
- aakash1552005/universal-agent-skillstheir own version, first seen Nov 29, 2026
- eea/eea.agent.skillstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use asset-spec, create-stories and 10 more.
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.
lilangMaxSkillasset-spec
Generate per-asset visual specifications and AI generation prompts from GDDs, level docs, or character profiles. Produces structured spec files and updates the master asset manifest. Run after art bible and GDD/level design are approved, before production begins.
Also in 12 projects that use this
lilangMaxSkillcreate-stories
Break a single epic into implementable story files. Reads the epic, its GDD, governing ADRs, and control manifest. Each story embeds its GDD requirement TR-ID, ADR guidance, acceptance criteria, story type, and test evidence path. Run after /create-epics for each epic.
Also in 14 projects that use this
adybaSkillteam-coordination
Agent Teams orchestration patterns for multi-agent SAFe workflows. Use when spawning agent teams, coordinating teammates, enforcing quality gates via task dependencies, or orchestrating the 11-agent SAFe pipeline. Covers team creation, messaging, shared task lists, and SAFe gate enforcement. Do NOT use for single-agent or simple subagent workflows.
Also in 5 projects that use this
nicepkgSkillcommunity-led-growth
Expert in community-led growth (CLG) - leveraging user communities to drive acquisition, retention, and expansion. Covers building developer communities, user groups, ambassador programs, and turning customers into advocates. Knows the difference between community as a feature vs community as a growth engine, and how to measure community ROI. Use when "community-led, CLG, ambassador program, champion program, user community, developer community, word of mouth, user group, " mentioned.
Also in 5 projects that use this
nicepkgSkillph-community-outreach
Engage Reddit, Indie Hackers, Hacker News and other communities for Product Hunt launches. Use this skill to identify relevant communities, craft appropriate posts, and drive cross-platform engagement without appearing spammy.
Also in 5 projects that use this
- +5 more from lilangMax
- +2 more from nicepkg
Other versions191 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 191
- ruvnet/claude-flow★ 83ksame name
- ruvnet/ruflo★ 83ksame name
- PostHog/posthog★ 41ksame name
- Donchitos/Claude-Code-Game-Studios★ 39ksame name
- cloudflare/security-audit-skill★ 18ksame name
- rommapp/romm★ 15ksame name
- kubeshark/kubeshark★ 12ksame name
- maximhq/bifrost★ 9.6ksame name
- mono/SkiaSharp★ 5.6ksame name
- MaxMiksa/Auto-Company★ 3.2ksame name
181 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- cost-reviewSkill
- create-issueSkill
- create-prSkill
- deploySkill
- devSkill
- hotfixSkill
- incidentSkill
- log-reviewSkill
- migrateSkill
- pr-reviewSkill
- release-notesSkill
- reliability-reviewSkill
- soc2-reviewSkill
- testSkill
- vuln-triageSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 174 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Run a read-only AWS + GitHub security-posture review, then produce a findings report and a prioritized remediation plan.
- Very specific: line 46
Check fix availability (fixAvailable filter) — if ~100% have fixes, it's a stale-image backlog, not an incident.
- Very specific: line 49
Check the Inspector rescan configuration — that, not the ECR lifecycle policy, is the real scan-surface knob.
- Very specific: line 123
Read SECURITY.md (control catalog) and the robosystems/security/ modules.
- Distinctive: line 142
If the result is worth sharing visually, offer to render it as an Artifact (a readiness dashboard).
“Common” is measured: kept by at least 6 in 10 of the 174 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.
Files
Run a read-only AWS + GitHub security-posture review, then produce a findings report and a prioritized remediation plan.
Scope boundary. This is an infrastructure/cloud posture audit — detective controls, live findings, data protection. It is not a code review. /security-review reviews pending code changes on the current branch; /pr-review covers a PR's diff. Those look at what the code does; this looks at what the account is running. Keep them separate — don't fold diff review into this sweep.
Pairs with the security-posture-audit runbook in the private design vault's runbooks/ — read it alongside this file. This file is the public, generic methodology; the runbook is the live, account-specific record of what's currently enabled, suppressed, accepted, or retired, and it is authoritative for this environment.
Scope & guardrails
- Read-only by default. Use only
describe-*/list-*/get-*andghreads. Never runget-secret-value. Any change — enabling a service, creating a suppression/archive rule, deleting a resource, deploying a stack — requires explicit in-the-moment user confirmation, and destructive/CloudFormation actions are the user's to run. One carve-out:generate-credential-reportis technically a write (it produces a report) but carries no configuration change — it's in scope for Phase 4. - Outputs are sensitive — never commit them. This skill (the methodology) is safe in a public repo; its output — a report of live findings, exposed resources, and disabled controls — is a reconnaissance roadmap for an attacker. Write reports to a git-ignored path (
local/, the scratchpad) or an ephemeral private Artifact. Never commit a findings report, account ID, resource ARN, or CVE inventory to the repo. - Never state live posture in this file. Naming the configuration — a stack, a log group, an ECR repo, a GitHub variable — is fine and makes the sweep usable; it's already in the public IaC. Naming its current value is not: no "X is enabled", no finding counts, no account IDs or ARNs. Those rot silently and are a disclosure besides. Every posture question below resolves to a command you run now; anything you learn from running it belongs in the runbook, not here.
- Context. Discover the account at runtime (
aws sts get-caller-identity); region defaults tous-east-1; the robosystems deployment runsprod+stagingin one shared account, so expect per-environment resource pairs. Detective services are account-global singletons gated by GitHub variables (see Phase 6). Frontend images live in ECR reposrobosystems-app/roboledger-app/roboinvestor-app; the backend image isrobosystems. Confirm what's actually deployed withaws cloudformation list-stacks --stack-status-filter CREATE_COMPLETE UPDATE_COMPLETE. - Parallelize the sweep. Phases 1–6 are independent read-only sweeps — fan them out with the Agent tool (one agent per phase) and synthesize the results in the main loop. A denied/empty CLI call is itself a finding (service not enabled, or the role lacks the read perm — say which).
Phase 1 — Detective controls: are they ON?
The core question. For each, report ENABLED / PARTIAL / MISSING with the value seen:
aws sts get-caller-identity
aws cloudtrail describe-trails --region us-east-1 # + get-trail-status: IsLogging, multi-region, log-file validation
aws configservice describe-configuration-recorders --region us-east-1 # recorder running?
aws guardduty list-detectors --region us-east-1
aws securityhub describe-hub --region us-east-1 # InvalidAccessException = not subscribed
aws inspector2 batch-get-account-status --region us-east-1
aws accessanalyzer list-analyzers --region us-east-1
aws s3control get-public-access-block --account-id <ACCOUNT_ID> # account-level BPA
aws ec2 get-ebs-encryption-by-default --region us-east-1
aws ec2 describe-flow-logs --region us-east-1 # per VPC (check the default VPC too)Phase 2 — Triage the live findings
For each detective service that IS on, pull and triage findings (don't just dump counts):
Amazon Inspector (usually the loudest — container/host CVEs):
- Aggregate by severity, by repo (
list-finding-aggregations --aggregation-type REPOSITORY), and by CVE (--aggregation-type TITLE). Dedup: the same CVE is replicated across many image copies — N findings ≈ a handful of distinct CVEs × many images. - Inspector also scans Lambda when enabled — check
batch-get-account-statusfor which resource types are on, and don't assume container-only. - Check fix availability (
fixAvailablefilter) — if ~100% have fixes, it's a stale-image backlog, not an incident. - Classify each CVE: base-image OS/runtime (openssl, glibc, node) → one base-image bump clears many at once (stay in-major when the runtime/
enginesconstrains it); language deps (npm/pip) → if the flagged dep is a devDependency-only transitive (test/build tooling — jsdom, vitest, eslint), exclude it from the runtime image (npm ci --omit=dev, don't copy devnode_modulesinto the runner stage) rather than override it — that clears the whole devDep CVE class; only override a genuine runtime transitive; no upstream fix (fixedInVersion=NotAvailable) → suppress. - Watch for inert vendored lockfiles (e.g. a
package.json/package-lock.jsonbundled in a non-node image with nonode_modules) — Inspector flags declared deps that never run; strip the lockfile from the image instead of chasing the CVE. - Check the Inspector rescan configuration — that, not the ECR lifecycle policy, is the real scan-surface knob. Mind the nesting: the value sits one level deeper than it looks, and the shallow path returns
nullwhile appearing to succeed.aws inspector2 get-configuration --region us-east-1 \ --query 'ecrConfiguration.{rescan:rescanDurationState.rescanDuration,pullDate:rescanDurationState.pullDateRescanDuration,mode:rescanDurationState.pullDateRescanMode}'
IAM Access Analyzer (external/public exposure — the highest-signal, fastest-actionable):
list-findings-v2requires--analyzer-arn— resolve it first:ANALYZER=$(aws accessanalyzer list-analyzers --region us-east-1 --query 'analyzers[0].arn' --output text) aws accessanalyzer list-findings-v2 --analyzer-arn "$ANALYZER" --region us-east-1- Classify each ACTIVE finding: by-design (SSO/OIDC federation roles, intentionally-public content/CDN buckets) → archive; real exposure (a resource that shouldn't be public/shared) → fix or retire.
- Confirm "intentional" against IaC/source before accepting — grep the CloudFormation/config that defines the resource.
GuardDuty: list-findings requires --detector-id:
DETECTOR=$(aws guardduty list-detectors --region us-east-1 --query 'DetectorIds[0]' --output text)
aws guardduty list-findings --detector-id "$DETECTOR" --region us-east-1GuardDuty flags activity, not configuration, so a freshly enabled detector may be baselining — but don't assume zero. Read the count, and pull get-findings on anything present.
Security Hub: get-enabled-standards — FSBP INCOMPLETE with NO_AVAILABLE_CONFIGURATION_RECORDER is expected when Config is off (the control-scoring half is dormant); note it, don't treat it as failure.
Phase 3 — Data protection & resilience
aws rds describe-db-instances --region us-east-1 # StorageEncrypted, BackupRetentionPeriod, MultiAZ, DeletionProtection, PubliclyAccessible
aws elasticache describe-replication-groups --region us-east-1 # AtRest + Transit encryption
aws s3api list-buckets # per relevant bucket: get-bucket-encryption, get-public-access-block, get-bucket-versioning
aws secretsmanager list-secrets --region us-east-1 # RotationEnabled (never read values)
aws backup list-backup-plans --region us-east-1 # centralized backup vs service-native snapshots onlyKMS — list-keys returns bare key IDs with no manager distinction, so it can't answer "CMK vs AWS-managed" on its own. Loop into describe-key:
aws kms list-keys --region us-east-1 --query 'Keys[].KeyId' --output text | tr '\t' '\n' | while read -r k; do
aws kms describe-key --key-id "$k" --region us-east-1 --query 'KeyMetadata.{id:KeyId,mgr:KeyManager,usage:KeyUsage}'
done
# then get-key-rotation-status on each CUSTOMER-managed keyManaged search — list-domain-names returns only {DomainName, EngineType}; the encryption fields require describe-domain:
aws opensearch list-domain-names --region us-east-1
aws opensearch describe-domain --domain-name <d> --region us-east-1 \
--query 'DomainStatus.{enc:EncryptionAtRestOptions.Enabled,n2n:NodeToNodeEncryptionOptions.Enabled,https:DomainEndpointOptions.EnforceHTTPS,policy:AccessPolicies}'Edge protection — check WAF association on both scopes; a regional ACL does not protect CloudFront:
aws wafv2 list-web-acls --scope REGIONAL --region us-east-1
aws wafv2 list-web-acls --scope CLOUDFRONT --region us-east-1
aws cloudfront list-distributions --query 'DistributionList.Items[].{id:Id,enabled:Enabled,waf:WebACLId}'An enabled distribution with an empty waf is an unprotected public edge — report it.
Lambda & DynamoDB — often skipped, and both sit on critical paths (secret rotation, volume management, graph routing registries):
aws lambda list-functions --region us-east-1 --query 'Functions[].{n:FunctionName,role:Role,runtime:Runtime}'
aws dynamodb list-tables --region us-east-1
aws dynamodb describe-table --table-name <t> --region us-east-1 --query 'Table.SSEDescription'Phase 4 — IAM hygiene
get-account-summary, get-account-password-policy, list-users, and the credential report (generate-credential-report → get-credential-report) for: root MFA, root access keys, IAM users without MFA, oldest active access-key age. If these reads are blocked by the session's permission policy, mark them "verify", not "gap".
Phase 5 — GitHub posture (optional; gh)
Org 2FA (gh api orgs/<org>), branch protection / rulesets on main (required approvals, admin bypass, strict checks, signed commits), secret scanning + push protection, Dependabot alerts + updates, CodeQL. For a single-member org, "require independent review" is structurally unmet — document as a compensating control, don't assert it.
Phase 6 — Codebase controls inventory (optional)
Read SECURITY.md (control catalog) and the robosystems/security/ modules.
The optional compliance stacks and their GitHub-variable toggles: SECURITY_ENABLED (cloudformation/security.yaml — the detective baseline; needs just bootstrap re-run first so the deploy role carries the IAM), SECURITY_CONFIG_ENABLED (AWS Config — the cost outlier, and the one most often left off deliberately), CLOUDTRAIL_ENABLED (cloudformation/cloudtrail.yaml), AUDIT_ENABLED_*, VPC_FLOW_LOGS_ENABLED, SECRETS_ROTATION_ENABLED_*, WAF_ENABLED_*.
Which of these are currently on is a runtime question — read it, don't assume it:
gh variable list | grep -iE 'security|cloudtrail|audit|flow_log|rotation|waf|endpoint'Cross-check against what's actually deployed (aws cloudformation list-stacks), since a variable can be flipped without the stack having been redeployed. Where a control is off, determine why before filing it as a gap — the runbook records which have been formally accepted as risk decisions.
Output — report + prioritized plan
Produce two things:
- Report — a per-control table (ENABLED / PARTIAL / MISSING / VERIFY) grouped by area, plus a triaged findings summary (deduped counts by severity, what's actionable vs suppress vs accepted). Call out what's already solid so it isn't re-litigated.
- Prioritized remediation plan — ranked by impact × effort, each item with the concrete action. Where SOC 2 is in play, tag each item "before" (technical toggles you flip yourself — do these early so evidence accrues; the Type II clock only counts time a control was running) vs "with the auditor" (scoping, policies, attestation). Flag which items are one-variable toggles vs real work.
If the result is worth sharing visually, offer to render it as an Artifact (a readiness dashboard).
Remediation patterns (the playbook)
- Detective services off → enable via the gated compliance stacks (flip the GH var + deploy; re-run the bootstrap first where the deploy role needs new IAM). Turn the cheap/free-trial ones (GuardDuty, Access Analyzer, Security Hub, Inspector) on and leave them on; gate Config separately (cost).
- Inspector no-fix CVE → suppress with a filter that auto-un-suppresses when a patch ships. Note
create-filterrequires--nameand--filter-criteria, and each criterion is an object withcomparison/value— not a bare string (this is a write; the user runs it):aws inspector2 create-filter --action SUPPRESS --name "suppress-<cve>-nofix" --region us-east-1 \ --filter-criteria '{"vulnerabilityId":[{"comparison":"EQUALS","value":"<CVE>"}], "fixAvailable":[{"comparison":"EQUALS","value":"NO"}]}' - Inspector base-image CVEs → bump the base image, staying in-major when
engines/runtime constrain it (e.g. node>=22→ latest22.x); verify the lockfile churn is scoped. - Inspector inert vendored lockfile → strip it from the image (
RUN find … -name 'package*.json' -delete), don't bump a dep that never runs. - Access Analyzer intentional finding →
create-archive-rulescoped to the resource ARN / path, thenapply-archive-ruleto clear existing. - Access Analyzer orphaned exposed resource → confirm migration/references, then retire it (delete removes the exposure at the source — user runs the delete).
- Stale-image drift → the deployed image lags the lockfile; a rebuild alone clears already-fixed deps.
Notes
- Detective services are account-global singletons — a per-env stack would collide; they live in one shared stack (
cloudformation/security.yaml, likecloudtrail.yaml). AWS::SecurityHub::Hubauto-enables default standards — setEnableDefaultStandards: falseif the stack also declares explicitStandardresources, or they collide.- Security Hub's FSBP standard reports
INCOMPLETEwithNO_AVAILABLE_CONFIGURATION_RECORDERwhenever Config is off. That's expected, not a failure — the control-scoring half is simply dormant. Note it and move on. - A
CREATE_FAILED→ROLLBACK_COMPLETEstack must be deleted before redeploy;DeletionPolicy: Retainbuckets survive and must be cleaned up manually.
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
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.

