security-hardening
Skill1 starsChanged 5 months agoApache-2.0View on GitHub
Hardens server, container, and cloud infrastructure against common attacks. Use when preparing infrastructure for production or after a security audit.
25 other projects use a version of this.
Adopted by
Most recently taken up by
- valentinesamuel/claude-skillstheir own version, first seen Nov 8, 2026
- Mehul72/skillstheir own version, first seen Nov 8, 2026
- looties-io/looties-skillstheir own version, first seen Nov 1, 2026
- Kin9Zeus/senior-engineer-skillstheir own version, first seen Nov 1, 2026
- DevelopersGlobal/ai-agent-skillstheir own version, first seen Oct 25, 2026
- juanitourquiza/shipframetheir own version, first seen Oct 23, 2026
Used with
Projects with it also use coordinate, incident-response 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.
swyxioSkillcoordinate
Coordinate focused Luna helpers for bounded work and Astra advisers for difficult design questions while doing the main work yourself.
Also in 3 projects that use this
AnthropicSkillincident-response
Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.
Also in 5 projects that use this
OpenAISkillobservability
Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.
Also in 4 projects that use this
barisariburnuSkillperformance-optimization
Complete performance optimization guide for Next.js applications including frontend, backend, database, caching, and general optimization strategies. Use when improving performance, reducing bundle size, optimizing queries, or implementing caching.
Also in 4 projects that use this
GitHubSkillaccessibility-audit
Audits actual components and routes against applicable WCAG 2.2 A/AA criteria using consumer-owned design-system evidence and repository tools. Use when asked for an accessibility audit, a11y check, keyboard or focus review, contrast check, or screen-reader verification.
Also in 3 projects that use this
MicrosoftSkillapi-design
Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.
Also in 5 projects that use this
Other versions25 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 25
- duyet/clickhouse-monitoring★ 303same name
- DevelopersGlobal/ai-agent-skills★ 216same name
- swyxio/skills★ 194same name
- mn-youssef/security-skills★ 47same name
- wulaosiji/skills★ 28same name
- khuynh22/agent-dev-team★ 9same name
- alexderz/agentic-toolbox★ 5same name
- juanitourquiza/shipframe★ 4same name
- jx1100370217/my-openclaw-skills★ 4same name
- thejordanleopold/claude-code-skills-distilled★ 4same name
15 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 repository58 other files it gives its agents.
- agent-chain-designerSkill
- api-wrapper-builderSkill
- embeddings-builderSkill
- evaluation-harnessSkill
- fine-tuning-preparerSkill
- llm-router-builderSkill
- ml-model-trainerSkill
- model-benchmarkerSkill
- prompt-engineerSkill
- rag-pipeline-builderSkill
- synthetic-data-generatorSkill
- vector-db-integratorSkill
- csv-processorSkill
- database-schema-designerSkill
- data-pipeline-builderSkill
- etl-workflow-designerSkill
- json-transformerSkill
- pandas-data-cleanerSkill
- report-generatorSkill
- sql-query-optimizerSkill
- time-series-analyzerSkill
- visualization-generatorSkill
- backup-strategySkill
- ci-cd-optimizerSkill
- docker-compose-generatorSkill
- github-actions-pipelineSkill
- kubernetes-deploymentSkill
- load-balancer-configSkill
- log-aggregator-setupSkill
- monitoring-dashboardSkill
- nginx-config-generatorSkill
- ssl-certificate-managerSkill
- terraform-module-builderSkill
- api-security-auditorSkill
- compliance-checkerSkill
- dependency-checkerSkill
- incident-responderSkill
- jwt-security-auditorSkill
- owasp-checkerSkill
- penetration-test-plannerSkill
- secret-detectorSkill
- threat-model-designerSkill
- vulnerability-scannerSkill
- accessibility-auditorSkill
- api-route-builderSkill
- auth-flow-builderSkill
- css-animation-crafterSkill
- form-validatorSkill
- graphql-schema-designerSkill
- html-component-builderSkill
- nextjs-app-scaffoldSkill
- performance-auditorSkill
- pwa-setupSkill
- react-component-generatorSkill
- responsive-layout-systemSkill
- seo-optimizerSkill
- tailwind-design-systemSkill
- websocket-integrationSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 8 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 22 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
After a penetration test or vulnerability scan highlights infrastructure issues.
- Very specific: line 37
Run as non-root user (create user in Dockerfile, USER instruction).
- Distinctive: line 38
Read-only root filesystem + tmpfs for writable dirs.
- Distinctive: line 41
Use distroless or minimal base images.
- Distinctive: line 45
Use IAM roles for EC2 / service accounts instead of long-lived keys.
- Distinctive: line 50
Never in env vars or code.
- Distinctive: line 51
Use AWS Secrets Manager / Parameter Store / GCP Secret Manager / HashiCorp Vault.
- Distinctive: line 72
Legacy apps that require root: Document the risk and isolate them as much as possible.
- Distinctive: line 77
Run CIS benchmarks or a scanner (Lynis, Docker Bench, Prowler, ScoutSuite).
“Common” is measured: kept by at least 6 in 10 of the 22 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
Overview
Provides a prioritized hardening checklist and implementation guide for OS, containers, and cloud accounts. Covers unattended upgrades, SSH key-only access + fail2ban, firewall (ufw or security groups), Docker non-root + read-only FS + no privileged, cloud IAM least-privilege + SCPs, secret management, network segmentation, and a severity-based checklist.
When to Use This Skill
- Preparing infrastructure for production or a security review.
- After a penetration test or vulnerability scan highlights infrastructure issues.
- Onboarding a new cloud account or server.
Prerequisites
- Servers or containers you control.
- Cloud account (AWS/GCP/Azure) admin access for IAM work.
- Ability to rebuild or update existing infrastructure.
Steps
- OS hardening (Linux):
- Automatic security updates (unattended-upgrades on Debian/Ubuntu, dnf-automatic on RHEL).
- SSH: key-only auth, disable password, disable root login, change port or use fail2ban.
- Firewall: ufw or firewalld — allow only necessary ports from specific sources.
- Docker / container hardening:
- Run as non-root user (create user in Dockerfile,
USERinstruction). - Read-only root filesystem + tmpfs for writable dirs.
- Drop all capabilities, add only needed ones.
- No
--privileged, no--network hostunless absolutely required. - Use distroless or minimal base images.
- Run as non-root user (create user in Dockerfile,
- Cloud IAM:
- Least privilege: start with zero and grant only required actions/resources.
- Use IAM roles for EC2 / service accounts instead of long-lived keys.
- Enable MFA for all human users.
- Service control policies (SCPs) / organization policies to prevent dangerous actions at scale.
- Secrets:
- Never in env vars or code.
- Use AWS Secrets Manager / Parameter Store / GCP Secret Manager / HashiCorp Vault.
- Rotate regularly.
- Network:
- Private subnets for app/DB tiers.
- Security groups / NACLs / firewall rules with least exposure.
- WAF in front of public endpoints.
- Output:
- Hardening checklist by severity (Critical / High / Medium).
- Dockerfile snippet showing hardened user + read-only.
- Terraform / cloudformation snippets for IAM roles and security groups.
- Ansible / cloud-init for OS hardening.
- Verification commands (
ss -tuln,docker inspect,aws iam simulate-principal-policy).
Examples
A hardened Dockerfile, ufw + SSH config, least-privilege IAM role for a web app, and a full checklist with commands are included.
Edge Cases & Error Handling
- Legacy apps that require root: Document the risk and isolate them as much as possible.
- Break-glass access: Maintain emergency procedures with additional approvals.
Verification
- Run CIS benchmarks or a scanner (Lynis, Docker Bench, Prowler, ScoutSuite).
- Attempt SSH with password — denied.
- Container runs as non-root and read-only FS (test by trying to write to /).
- IAM policy simulation shows only allowed actions.
- Success: Infrastructure passes automated hardening scanners with minimal or no critical findings, and manual tests confirm reduced attack surface.
References
- CIS Benchmarks
- Docker Security
- AWS Well-Architected Security Pillar
- Prowler (cloud security scanner)
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.

