hack23/cia/input-validation
Claude Code and agent skill by hack23/cia
- community
Checking that the SKILL.md file is still in the repository.
Implement comprehensive input validation to prevent XSS, SQL injection, and command injection attacks with sanitization strategies
Install
npx vskill@latest install hack23/cia/input-validationSKILL.md
The same SKILL.md was published earlier as hack23/cia/input-validation.
Input Validation Skill
Purpose
This skill provides systematic approaches to validate, sanitize, and encode all user inputs to prevent injection attacks, XSS, and data corruption. It implements defense-in-depth validation at multiple layers aligned with OWASP best practices and Hack23 ISMS secure coding standards.
When to Use This Skill
Apply this skill when:
- ✅ Processing any user-provided input (forms, APIs, URL parameters)
- ✅ Handling data from external systems (Riksdagen API, World Bank)
- ✅ Constructing database queries or commands
- ✅ Rendering user-generated content in UI
- ✅ Processing file uploads
- ✅ Implementing search functionality
- ✅ Building dynamic SQL, LDAP, or OS commands
Validation Principles
Principle #1: Validate Early, Validate Often
Multi-Layer Validation:
Principle #2: Allowlist Over Blocklist
❌ INSECURE - Blocklist Approach:
✅ SECURE - Allowlist Approach:
Principle #3: Fail Securely
Input Validation Patterns
Pattern #1: Bean Validation (JSR-380)
Pattern #2: Custom Validators
Pattern #3: Sanitization for XSS Prevention
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/input-validation/SKILL.md
Popularity
- Repository stars
- 235
- Repository forks
- 56
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hack23/cia/input-validation)