security-hardening
Skill0 starsChanged 7 months agoMITView on GitHub
Apply concrete security hardening to a codebase. Covers input validation, auth, secrets management, dependency audit, and common vulnerabilities. Use when doing security review, hardening before launch, after a security incident, or when user mentions "security", "OWASP", "vulnerability", or "harden".
- Reads credentials
31 other projects use a version of this.
Adopted by
Most recently taken up by
- tanbopp/ai-development-frameworktheir own version, first seen Nov 29, 2026
- ericgandrade/agentic-sdlctheir own version, first seen Nov 29, 2026
- hi-donwi/Donwi-Skillstheir own version, first seen Nov 22, 2026
- manishdashsharma/express-backend-skillstheir own version, first seen Nov 22, 2026
- revealui-studio/revskillstheir own version, first seen Nov 16, 2026
- RevealUIStudio/revskillstheir own version, first seen Nov 16, 2026
Used with
Projects with it also use data-engineering, observability and 8 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.
travisjneumanSkilldata-engineering
ETL/ELT pipelines, data warehousing (BigQuery, Snowflake, Redshift), stream processing (Kafka, Spark Streaming), orchestration (Airflow, Dagster, Prefect), dbt transformations, and data lake architecture. Use when building data pipelines, designing warehouse schemas, or implementing real-time data processing.
Also in 3 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 6 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
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 4 projects that use this
jarosser06Skilltest-strategy
Plans pytest test strategies for Drift's 90%+ coverage requirement using coverage analysis, edge case identification, and test suite design. Use when determining what tests to write, analyzing coverage gaps, or planning test strategies.
Also in 3 projects that use this
jamestorrevillasSkillthreat-modeling
Use this skill when identifying security threats, designing secure systems, thinking like an attacker, performing security assessments, or applying STRIDE threat modeling. Trigger on keywords: threat model, security design, attack surface, STRIDE, vulnerabilities by design, security review, who can attack this, what could go wrong security-wise.
Also in 3 projects that use this
Other versions31 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 31
- duyet/clickhouse-monitoring★ 306same name
- DevelopersGlobal/ai-agent-skills★ 220same name
- swyxio/skills★ 203same name
- ericgandrade/agentic-sdlc★ 109same name
- mn-youssef/security-skills★ 47same name
- wulaosiji/skills★ 28same name
- khuynh22/agent-dev-team★ 9same name
- alexderz/agentic-toolbox★ 5same name
- juanitourquiza/shipframe★ 5same name
- jx1100370217/my-openclaw-skills★ 4same name
21 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 repository59 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- cavemanSkill
- context-engineeringSkill
- deprecation-migrationSkill
- design-an-interfaceSkill
- domain-modelSkill
- edit-articleSkill
- git-guardrails-claude-codeSkill
- github-triageSkill
- grill-meSkill
- autoplanSkill
- benchmarkSkill
- browseSkill
- canarySkill
- carefulSkill
- codexSkill
- context-restoreSkill
- context-saveSkill
- csoSkill
- design-consultationSkill
- design-htmlSkill
- design-reviewSkill
- design-shotgunSkill
- devex-reviewSkill
- document-releaseSkill
- freezeSkill
- guardSkill
- healthSkill
- investigateSkill
- land-and-deploySkill
- learnSkill
- make-pdfSkill
- office-hoursSkill
- plan-ceo-reviewSkill
- plan-design-reviewSkill
- plan-devex-reviewSkill
- plan-eng-reviewSkill
- qa-onlySkill
- qaSkill
- retroSkill
- reviewSkill
- setup-deploySkill
- shipSkill
- unfreezeSkill
- improve-codebase-architectureSkill
- incremental-implementationSkill
- performance-optimizationSkill
- pr-triageSkill
- qaSkill
- request-refactor-planSkill
- setup-pre-commitSkill
- spec-driven-developmentSkill
- tddSkill
- to-issuesSkill
- to-prdSkill
- triage-issueSkill
- ubiquitous-languageSkill
- write-a-skillSkill
- zoom-outSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 28 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Before launching to production
- Distinctive: line 17
After a security incident or finding
- Distinctive: line 27
Every input from outside the system must be validated before use:
- Distinctive: line 40
Use allowlists, not denylists
- Distinctive: line 78
Update dependencies with known CVEs immediately
- Distinctive: line 84
Never log passwords, tokens, PII, or full credit card numbers
- Distinctive: line 85
Don't expose stack traces to users in production
- Distinctive: line 103
No rate limiting on authentication endpoints — brute force vulnerability
“Common” is measured: kept by at least 6 in 10 of the 28 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
Security Hardening
Apply concrete, actionable security practices — not vague advice. Every item here is a specific check with a specific fix. Security isn't a phase; it's a property of every line you write.
When to Use
- Before launching to production
- After a security incident or finding
- During code review for security-sensitive code (auth, payments, PII)
- Regular security audit cadence
- NOT for threat modeling (use a dedicated threat model process)
- NOT for compliance documentation (this produces code changes, not docs)
Process
1. Input validation at system boundaries
Every input from outside the system must be validated before use:
- HTTP request bodies, query params, headers
- File uploads (type, size, content)
- Environment variables at startup
- External API responses
- Database query results (when schema could drift)Rules:
- Validate at the boundary, trust internally
- Reject invalid input early (fail fast)
- Use allowlists, not denylists
- Parameterize all SQL — never concatenate user input
2. Authentication and secrets
| Always Do | Never Do |
| Hash passwords with bcrypt/scrypt/argon2 (cost factor ≥ 12) | Store passwords in plaintext or reversible encryption |
| Use httpOnly, secure, sameSite cookies | Store tokens in localStorage |
| Rotate secrets on suspected compromise | Hardcode secrets in source code |
| Use environment variables or secret managers | Commit .env files or credentials |
| Implement rate limiting on auth endpoints | Allow unlimited login attempts |
3. Output encoding
- HTML: encode before rendering (prevents XSS)
- SQL: use parameterized queries (prevents SQLi)
- Shell: never pass user input to shell commands
- URLs: encode path and query parameters
4. Headers and transport
Content-Security-Policy: default-src 'self'
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Frame-Options: DENY5. Dependencies
# Check for known vulnerabilities
npm audit # Node.js
pip audit # Python
cargo audit # Rust- Update dependencies with known CVEs immediately
- Pin major versions to prevent supply chain attacks
- Review new dependencies before adding (check maintainership, download count, last update)
6. Logging and error handling
- Never log passwords, tokens, PII, or full credit card numbers
- Don't expose stack traces to users in production
- Log authentication failures with enough context to detect attacks
- Implement structured logging for security events
Common Rationalizations
| Shortcut | Why It Fails |
| "It's just an internal tool, security doesn't matter" | Internal tools get exposed. Credentials get reused. Attackers pivot through internal systems. Internal ≠ safe. |
| "We'll add security later before launch" | Security is architectural. Bolting it on later means redesigning auth flows, rewriting database queries, and retrofitting validation. It's 10x more expensive after the fact. |
| "This input comes from our own frontend, it's safe" | Frontends can be bypassed. Anyone can send arbitrary HTTP requests. Server-side validation is the only validation that counts. |
| "The framework handles security for us" | Frameworks provide tools, not guarantees. You still need to use them correctly — enable CSRF protection, configure CORS, use parameterized queries. Default isn't always secure. |
Red Flags
- User input concatenated directly into SQL queries — SQL injection
dangerouslySetInnerHTMLor equivalent without sanitization — XSS- Secrets in source code or git history — credential exposure
- No rate limiting on authentication endpoints — brute force vulnerability
eval()or shell exec with user input — code injection
Verification Checklist
- All user inputs validated at system boundary (not just client-side)
- Passwords hashed with bcrypt/scrypt/argon2 (cost ≥ 12)
- No secrets in source code or git history
- SQL queries use parameterization (no string concatenation)
- Security headers configured (CSP, HSTS, X-Content-Type-Options)
npm audit/ equivalent shows no high/critical vulnerabilities- Auth endpoints have rate limiting
- Error responses don't leak internal details to users
Anti-patterns
- DO NOT validate only on the client — server-side validation is the real boundary
- DO NOT roll your own crypto — use established libraries (bcrypt, libsodium, etc.)
- DO NOT store secrets in code, environment variable files committed to git, or client-side storage
- DO NOT trust "internal" traffic — validate at every service boundary
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.

