Reference docMembers

Security hardening code patterns for Codex

Hardening Patterns is a reference file for the security-and-hardening skill in Addy Osmani's agent-skills. It gives developers and Codex one concrete code example for each security rule the skill states, to open at the section you need rather than read top to bottom.

What it does

It shows prevention patterns for OWASP Top 10 risks in TypeScript, such as parameterized SQL queries or an ORM instead of string concatenation, and bcrypt password hashing with a salt round setting for broken authentication.

How to use it

Keep it next to the skill so the agent can pull the right pattern when it reaches that code.

Requirements and limits

Shared checklists for threat modeling, pre-commit checks, security headers, CORS and the OWASP quick-reference tables live in a separate security checklist file.

More in Reference docs and the Codex library.

What it covers

  • OWASP Top 10 Prevention Patterns
  • Injection
  • Broken Authentication
  • Cross-Site Scripting XSS
  • Broken Access Control
  • Security Misconfiguration
  • Sensitive Data Exposure
  • Server-Side Request Forgery SSRF
  • Input Validation Patterns
  • Schema Validation at Boundaries

The full text is in the members library

Book a call and we will give you access to the full Codex library: every entry in full, search by meaning, copy and download.

Source and license

Source: https://github.com/addyosmani/agent-skills/blob/main/skills/security-and-hardening/references/hardening-patterns.md

Author: addyosmani, Addy Osmani agent skills. License: MIT.

Related entries