Security Check

Security checklist for code changes Use when this capability is needed.

tomevault-io Updated

File contents

Security Checklist

Input Validation

  • Validate all user/external input before processing
  • Never interpolate user input into SQL — use prepared statements
  • Never interpolate user input into shell commands
  • Sanitize file paths — resolve and check they stay within expected directories

Secrets

  • No hardcoded API keys, tokens, or passwords
  • All secrets via environment variables (Config service)
  • Never log secrets or include in error messages
  • ANTHROPIC_API_KEY must be stripped from child process env

Dependencies

  • No new dependencies without justification
  • Check better-sqlite3 uses prepared statements (stmts pattern)
  • Wrap execSync calls with explicit cwd and timeout

Data

  • JSON columns: validate structure on read, not just parse
  • Foreign keys enabled (PRAGMA foreign_keys = ON)
  • No raw SQL string concatenation

Converted and distributed by TomeVault — claim your Tome and manage your conversions.

tomevault-io/skills-registry/tree/main/twlines--maslow--security-check commit bcea5aa3a5

Frequently asked questions

npx skillmds@latest add tomevault-io/security-check-2