security-posture
Skill0 starsChanged 5 months agoMITView on GitHub
Assess and improve the security posture of infrastructure and services. Use when conducting access reviews, responding to a security alert, preparing for a compliance audit, reviewing secrets management, or hardening infrastructure. Trigger keywords: security, access review, IAM, permissions, least privilege, secrets, vulnerability, CVE, compliance, SOC2, ISO27001, audit, hardening, exposure, attack surface, breach, security incident, leaked credentials, security review, penetration test, pentest finding.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- MortisDei/hermaeustheir own version, first seen Oct 8, 2026
- DanSessions/security-posture-skilltheir own version, first seen Jun 30, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- DanSessions/security-posture-skill★ 1same name
- MortisDei/hermaeus★ 1same name
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 repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- capacity-planningSkill
- chaos-engineeringSkill
- cost-optimizationSkill
- deployment-safetySkill
- iac-reviewSkill
- import-rcaSkill
- incident-responseSkill
- knowledge-captureSkill
- observabilitySkill
- oncall-handoffSkill
- oncall-runbookSkill
- postmortemSkill
- production-readiness-reviewSkill
- rca-summarySkill
- rfcSkill
- root-cause-analysisSkill
- runbook-generatorSkill
- slo-monitoringSkill
- toil-trackingSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Before loading context files, check if context/CONTEXT.md exists in the current directory.
- Distinctive: line 29
Use the answers inline for this session.
- Very specific: line 38
Read context/company/tech-stack.md for cloud provider, secrets manager, and compliance frameworks.
- Distinctive: line 80
Check for secrets exposure:
- Distinctive: line 89
If a leaked secret is suspected:
- Distinctive: line 102
Verify each public endpoint is intentional and documented
- Distinctive: line 103
Check security group rules: are any database ports (3306, 5432, 6379, 27017) open to 0.0.0.0/0?
- Distinctive: line 104
Verify WAF is in place for public-facing web applications
- Distinctive: line 105
Check that admin interfaces (Kubernetes API, database admin, CI/CD) are not publicly accessible
- Distinctive: line 145
Always rotate first, investigate second — when a secret is suspected leaked.
- Distinctive: line 146
Never log or output plaintext secrets in skill output.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Security Posture Skill
Setup Check
Before loading context files, check if context/CONTEXT.md exists in the current directory.
If context/CONTEXT.md exists — read it and proceed normally.
If context/CONTEXT.md does not exist — this skill was installed standalone (e.g. via npx skills add). Ask the user these questions before proceeding:
- Role —
junior-sre/senior-sre/sre-manager(shapes output depth and tone) - Cloud provider —
aws/gcp/azure/on-prem/hybrid - Observability stack — e.g. Datadog, Prometheus+Grafana, New Relic
- Company name and primary services affected (if relevant to this task)
Use the answers inline for this session. For persistent setup across all skills, suggest:
pipx install sre-agent
sre-agent initInstructions
Step 1: Load Context
Read context/company/tech-stack.md for cloud provider, secrets manager, and compliance
frameworks. Determine the scope of the review.
Step 2: Determine Scope
Classify the request into one or more review areas:
- IAM / Access review — who can do what
- Secrets management — are secrets handled safely
- Network exposure — what is reachable from the internet
- Container security — are containers hardened
- Compliance — mapping to SOC 2, ISO 27001, PCI-DSS, etc.
- Vulnerability triage — prioritizing CVEs and security findings
Mode: IAM / Access Review
Principle of least privilege audit:
- List all IAM roles/service accounts and their policies
- Flag any role with
*(wildcard) actions or resources - Flag any human user with programmatic access keys (prefer temporary credentials)
- Check access key age: rotate any key > 90 days old
- Review cross-account access: are all trust relationships intentional?
- Check for unused roles/users (no activity in 90+ days) → deactivate
Service account audit (Kubernetes):
- Are pods using the default service account? (should be a dedicated one)
- Do service accounts have cluster-admin or overly broad RBAC roles?
- Are service account tokens mounted where not needed? (
automountServiceAccountToken: false)
Findings format:
IAM Finding — CRITICAL
Resource: arn:aws:iam::123456789:role/app-role
Issue: Policy allows s3:* on resource: *
Risk: Any service using this role can read/write/delete any S3 bucket in the account
Remediation: Restrict to s3:GetObject on arn:aws:s3:::app-data-bucket/*Mode: Secrets Management
Check for secrets exposure:
- Scan recent git history for hardcoded secrets (API keys, passwords, tokens)
- Verify application config uses a secrets manager (AWS Secrets Manager, Vault, GCP Secret Manager)
- Check environment variables in Kubernetes manifests — no plaintext secrets in
env:blocks - Verify secrets are not logged (grep logs for common secret patterns)
- Check secrets rotation policy: are secrets rotated automatically or manually?
- Verify secrets are encrypted at rest in the secrets manager
- Check who has access to read secrets in production (least privilege)
If a leaked secret is suspected:
- Rotate the credential immediately (before investigation).
- Revoke the old credential.
- Audit access logs for the time window the secret was exposed.
- Determine what the secret had access to and assess data exposure.
- Report per your company's incident response plan.
Mode: Network Exposure
Internet-facing inventory:
- List all public-facing resources: ALBs, API Gateways, S3 buckets with public access
- Verify each public endpoint is intentional and documented
- Check security group rules: are any database ports (3306, 5432, 6379, 27017) open to 0.0.0.0/0?
- Verify WAF is in place for public-facing web applications
- Check that admin interfaces (Kubernetes API, database admin, CI/CD) are not publicly accessible
Zero-trust network review:
- Are service-to-service calls using mTLS or IAM-based auth?
- Is there a network policy in Kubernetes limiting pod-to-pod traffic?
Mode: Vulnerability Triage
Prioritize CVEs using this framework:
| Priority | Criteria | Action |
| P0 — Fix in 24h | CVSS ≥ 9.0 AND exploitable in your environment | Emergency patch |
| P1 — Fix in 1 week | CVSS ≥ 7.0 AND exploitable | Planned patch |
| P2 — Fix in 1 month | CVSS 4.0–7.0 OR not directly exploitable | Scheduled update |
| P3 — Fix in quarter | CVSS < 4.0 | Backlog |
Exploitability factors (increase priority):
- The vulnerable component is internet-facing
- There is a known public exploit (check CISA KEV catalog)
- The vulnerability allows remote code execution or privilege escalation
Mode: Compliance Mapping
For SOC 2 Type II readiness:
- CC6: Logical and physical access controls
- CC7: System operations (change management, incident response)
- CC8: Change management (IaC, deployment controls)
- CC9: Risk mitigation (vendor management, business continuity)
Map each finding to its applicable control. Flag gaps that would be findings in an audit.
Guidelines
- Always rotate first, investigate second — when a secret is suspected leaked.
- Never log or output plaintext secrets in skill output.
- A finding is actionable only if it is exploitable in this environment — avoid theoretical risks.
- Persona (sre-manager): output a risk register format with likelihood, impact, and remediation effort for each finding. Include a compliance impact column.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

