New advertisers: 50% off your first month with code FIRSTMONTHSee slots
addyosmani avatar

Security And Hardening

Hardening guidance for untrusted input, authentication, sessions, and third-party integrations, anchored to a threat model first.

skills.sh installs
86.6K
GitHub stars
119.7K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers threat modeling with trust boundaries, assets, and STRIDE, then the OWASP Top Ten controls for injection, XSS, access control, and sessions
  • Includes a three-tier rule set (Always Do, Ask First, Never Do) and a reference file of concrete code patterns for each control
  • Enforces parameterized queries, schema validation at boundaries, httpOnly, secure, sameSite cookies, and SSRF blocking of private and reserved addresses
  • Designed for developers building features that accept untrusted data, manage sessions, or call external services, and for dependency audits

Install

$ npx -y skills add addyosmani/agent-skills --skill security-and-hardening -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Security and Hardening

Overview

Security-first development practices for web applications. Treat every external input as hostile, every secret as sacred, and every authorization check as mandatory. Security isn't a phase — it's a constraint on every line of code that touches user data, authentication, or external systems.

When to Use

  • Building anything that accepts user input
  • Implementing authentication or authorization
  • Storing or transmitting sensitive data
  • Integrating with external APIs or services
  • Adding file uploads, webhooks, or callbacks
  • Handling payment or PII data

Process: Threat Model First

Controls bolted on without a threat model are guesses. Before hardening, spend five minutes thinking like an attacker:

Details

Repository
github.com/addyosmani/agent-skills
Categories
Security, Backend & APIs
First seen
Apr 16, 2026

More from addyosmani/agent-skills

All 25

Similar to Security And Hardening

More Security