security-engineering

Cross-stack security review — auditing vulnerabilities across infrastructure, smart contracts, CI/CD pipelines, and AI agent systems, plus auth/sessions/crypto and validating user input at API and inf

SKILL.md

GitHub

Security Engineering

Cross-stack security rules covering API security, infrastructure hardening, Web3 smart contracts, CI/CD review automation, and agentic AI risks. Aligned to OWASP Top 10:2025, ASVS 5.0, and OWASP Agentic Security Initiative 2026.

When reviewing code, think like a senior security researcher: trace user input through to sensitive operations, prefer fail-closed designs, and never trust the client.

Universal Rules

  • Validate every input server-side with Zod (or equivalent) at the API boundary.
  • Parameterize all queries — Prisma/Drizzle, never string concatenation.
  • Authorize on every request — deny by default, verify ownership.
  • Hash passwords with Argon2 or bcrypt — never MD5/SHA1, never plaintext.
  • No hardcoded secrets — env vars validated at startup, secrets in vault, .env in .gitignore.
  • TLS everywhere, encryption at rest on all data stores.
  • Fail-closed on auth/permission errors. Never expose stack traces to users.
  • Log security events with sanitization — redact authorization, cookie, CSRF headers.
  • Least-privilege IAM — scope to specific actions and resource ARNs, not *.
  • OIDC for CI/CD — no long-lived credentials in GitHub.
  • Smart contracts: ReentrancyGuard, SafeERC20, signed data must include chainid + address(this) + deadline, replay-prevention via usedHashes.

References

Related skills

  • web3-smart-contract-engineering — Solidity patterns, signature verification, replay protection (consult alongside references/web3-smart-contracts.md when auditing contracts)
  • deployment-pipelines — pipeline hardening, OIDC, untrusted-input handling in CI
  • godot-engineer (games pack) — multiplayer games have real security concerns: cheating, save tampering, server-side validation, anti-replay. Pull this in for any networked game.