Loading...
Loading...
Generate secure code following OWASP Secure Coding rules. Automatically detects the security domain and produces code with inline Rule ID citations (e.g., [INPUT-04], [AUTH-07]) plus a rules-applied summary.
npx skill4agent add vchirrav/owasp-secure-coding-md secure-coding-generaterules/| Code Type | Rule Files to Load |
|---|---|
| Login, auth, passwords, MFA | |
| API routes, controllers, REST/GraphQL | |
| Dockerfile, container config | |
| Kubernetes manifests, Helm charts | |
| CI/CD pipelines (GitHub Actions, Jenkins, GitLab CI) | |
| Terraform, CloudFormation, Pulumi | |
| File upload/download handlers | |
| Database queries, ORM code | |
| Frontend, React, HTML templates | |
| Encryption, hashing, key/cert handling | |
| Environment variables, secrets, vaults | |
| Error handling, logging, monitoring | |
| RBAC, permissions, authorization | |
| PII, data storage, retention | |
| Dependencies, package management, SBOM | |
| C/C++, memory-unsafe languages | |
| Server config, hardening | |
| General (no specific domain) | |
rules/rules/// [INPUT-04] Reject invalid input — allowlist validation
// [AUTH-07] Hash passwords with bcrypt, cost factor 12
// [SESS-01] Generate session ID with cryptographic PRNG| Rule ID | How Applied |
|---------|-------------|
| [INPUT-01] | Server-side validation middleware on all endpoints |
| [AUTH-03] | Passwords hashed with bcrypt before storage |
| [SESS-05] | HttpOnly + Secure + SameSite flags on session cookie |