security-injection-and-validation
/security-injection-and-validation
Diagnose and fix untrusted input and output handling, including XSS, injection, unsafe DOM sinks, URLs, and templates. Use for web injection risks.
- Author
- rschuft ↗
- Repository
- ai-frontend-skill-packs ↗
- Licence
- MIT
- Last repository change
- 11.11.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 11.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Diagnose and fix untrusted input and output handling, including XSS, injection, unsafe DOM sinks, URLs, and templates. Use for web injection risks.
Original author description
Diagnose and fix untrusted input and output handling, including XSS, injection, unsafe DOM sinks, URLs, and templates. Use for web injection risks.
How it works
- Scope
- Procedure
- Failure discipline
SKILL.md preview
--- name: security-injection-and-validation description: "Diagnose and fix untrusted input and output handling, including XSS, injection, unsafe DOM sinks, URLs, and templates. Use for web injection risks." --- # Untrusted-data and interpreter risks ## Scope Use when the task concerns **injection prevention, contextual output handling, validation and untrusted content**. Common triggers include XSS, SQL injection, template injection, unsafe HTML, untrusted URL, command input, SSRF. Do not classify unrelated symptoms as this category or expand the authorized scope. A client-side implementation may not reveal server-side enforcement. ASVS 5.0.0 chapters: **V1, V2**. For exact requirement wording and levels consult `../security-diagnose/references/asvs/5.0.0/index.json` and the version-pinned official ASVS source. Do not treat the index as the full standard. The local reference is `references/playbook.md`. ## Procedure 1. Establish the user action, attacker/actor, sensitive asset, trust boundary, affected runtime, and actual observed evidence. 2. Read `references/playbook.md` and the relevant ASVS chapter entries. Resolve baseline using `../security-diagnose/references/standard-selection.md` (explicit task > project policy > planning fallback). 3. Differentiate the underlying cause from superficial symptoms; select a specific applicable requirement only after checking the authoritative source text. 4. Implement or recommend the smallest verified control with the project’s existing security architecture. Prefer server-side enforcement when the failure crosses the browser trust boundary. 5. Test normal and denied paths with synthetic or approved fixtures, documenting exact methods and evidence. Record residual unknowns; route broad assessments to `security-review`, implementation to `security-build` and retesting to `security-validate`. ## Failure discipline - Do not use HTML escaping for JavaScript, URL or SQL contexts. - Sanitization alone is not an authorization check. - CSP helps reduce impact but is not a replacement for safe sinks. No active probing of live systems, aggressive scanning, credential handling or cross-tenant requests without explicit authorization. Never report security certification from this skill alone.
Files in this package (2)
- SKILL.md 2 KB
- references/playbook.md 2 KB
Versions
The database has no other skills named security-injection-and-validation.
Database snapshot: 13.11.2026 · package version ab7d6e4b6530 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100drupal-security-review
Use when auditing Drupal 11 custom modules/themes for security issues such as unsafe input handling, XSS risks, SQL injection, and access control gaps. - 100php-security
PHP-only security standards for database access, password handling, and input validation. Use when securing PHP apps against SQL injection, XSS, or weak password storage; defer Laravel middleware and security questions in other languages. - 100scanning-input-validation-practices
Scan for input validation vulnerabilities and injection risks. Use when reviewing user input handling. Trigger with 'scan input validation', 'check injection vulnerabilities', or 'validate sanitization'. - 100scanning-input-validation-practices
Scan for input validation vulnerabilities and injection risks. Use when reviewing user input handling. Trigger with 'scan input validation', 'check injection vulnerabilities', or 'validate sanitization'. - 100xss-prevention
XSS attack prevention with input sanitization, output encoding, Content Security Policy. Use for user-generated content, rich text editors, web application security, or encountering stored XSS, reflected XSS, DOM manipulation, script injection errors. - 100frontend-mobile-security-xss-scan
Detect and remediate XSS risks in React, Vue, Angular, and browser JavaScript. Use when inspecting injection sinks, untrusted markup, sanitization, or frontend security checks.