/claude-kit:security-verification [component, page, or "all"]from Claude Kit SDLC
Audits code for input validation and sanitization across forms, textareas, URL params, and external data sources. Run on components, pages, or entire projects.
Ships in Claude Kit SDLC. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run security verification on: $ARGUMENTS.
Identify all input surfaces: Search the target code for every point where user input enters the application.
Adjust patterns to match your project's framework/language:
# Search for all input surfaces (examples for web frontends)
grep -rn '<Input\|<input\|<textarea\|<Textarea' src/
grep -rn 'useForm\|useSearchParams\|useParams\|queryParam' src/ # React/React Router
grep -rn 'params\|request.args\|request.form' . # Flask/Django/FastAPI
grep -rn 'dangerouslySetInnerHTML\|innerHTML\|outerHTML' src/
grep -rn 'window.location\|document.cookie\|localStorage\|sessionStorage' src/
grep -rn 'eval\|new Function\|document.write' src/
Audit each input source against the checklist:
<input>, <Input>, or framework equivalents)| Check | Status | Fix |
|---|---|---|
| Schema validation on submit (Zod/Joi/Yup/Pydantic/etc.) | Add validation schema with .trim().min(1) or equivalent | |
maxLength attribute/constraint set | Add length limit | |
| HTML entities escaped (auto in most modern frameworks) | Verify template engine auto-escapes | |
No raw value used in href or src | Validate URL format before use | |
| Input type matches expected data | Use semantic types (email, number, etc.) |
| Check | Status | Fix |
|---|---|---|
| Schema validation on submit with max length | Add .trim().max(N) or equivalent | |
maxLength attribute/constraint set | Add length limit | |
| Content not rendered as raw HTML | Use text rendering, never HTML injection |
| Check | Status | Fix |
|---|---|---|
| Schema validation attached to form handler | Add validator integration | |
| All fields validated before processing | Use framework's validation wrapper | |
| Error messages shown for invalid input | Display validation errors to user | |
| Submit button disabled during submission | Use framework's submission state |
| Check | Status | Fix |
|---|---|---|
| Parsed with safe API (URLSearchParams, framework request parsers) | Never parse window.location or raw query strings manually | |
| Values validated/cast before use | Coerce to expected type with validation | |
| Default values for missing params | Use .get('key', default) or equivalent | |
Not used in href/src without validation | Validate URL format |
| Check | Status | Fix |
|---|---|---|
| Type-checked after extraction | Cast/validate params after extraction | |
| Validated against expected pattern | Check format/range before use | |
| Not interpolated into URLs unsafely | Use URL encoding (encodeURIComponent or equivalent) |
| Pattern | Risk | Fix |
|---|---|---|
dangerouslySetInnerHTML (React), {% autoescape off %} (Jinja), {!! $var !!} (Blade) | XSS | Remove or sanitize with DOMPurify/bleach/equivalent |
innerHTML / outerHTML | XSS | Use framework's safe template rendering |
document.write | XSS | Never use |
eval() / new Function() / exec() / system() | Code injection | Never use with user input |
window.location = userInput | Open redirect | Validate against allowlist |
Template literals in href without validation | XSS via javascript: protocol | Validate URL scheme |
Check for OWASP Top 10 frontend/API concerns:
| # | Vulnerability | Check |
|---|---|---|
| A03 | Injection (XSS, SQL, Command) | No raw HTML rendering of user input; parameterized queries; no shell command interpolation |
| A05 | Security Misconfiguration | No secrets in client-side code or version control |
| A07 | Cross-Site Scripting | All outputs escaped, no unsafe HTML injection |
| A08 | Software Integrity | Dependencies from trusted sources, audit tools clean (npm audit, pip-audit, etc.) |
| A09 | Logging Failures | No sensitive data in logs (passwords, tokens, PII) |
Verify sanitization utilities exist: Check the project's utility module for sanitization helpers. If missing, add stack-appropriate versions:
Example (TypeScript/JavaScript):
// Sanitize user input for display
export function sanitizeInput(input: string): string {
return input.trim().replace(/[<>]/g, '');
}
// Validate URL is safe (no javascript: protocol)
export function isSafeUrl(url: string): boolean {
try {
const parsed = new URL(url, window.location.origin);
return ['http:', 'https:'].includes(parsed.protocol);
} catch {
return false;
}
}
// Encode value for URL parameter
export function safeParam(value: string): string {
return encodeURIComponent(value.trim());
}
Example (Python):
from urllib.parse import urlparse, quote
from bleach import clean
def sanitize_input(input: str) -> str:
return clean(input.strip(), tags=[], strip=True)
def is_safe_url(url: str) -> bool:
try:
parsed = urlparse(url)
return parsed.scheme in {'http', 'https'}
except Exception:
return False
def safe_param(value: str) -> str:
return quote(value.strip(), safe='')
Report findings: Output a security audit table:
| File | Line | Input Source | Vulnerability | Severity | Fix |
|---|
Severity levels:
Apply fixes: For each finding, apply the recommended fix. Prioritize Critical and High first.
Verify: Run the project's linter, type checker, and build to confirm the changes are valid.
import { useForm } from 'react-hook-form';
import { zodResolver } from '@hookform/resolvers/zod';
import { z } from 'zod';
import { Input } from '@/components/ui';
const schema = z.object({
name: z.string().trim().min(1, 'Name is required').max(100),
email: z.string().trim().email('Invalid email').max(255),
notes: z.string().trim().max(1000).optional(),
});
type FormData = z.infer<typeof schema>;
function SecureForm() {
const { register, handleSubmit, formState: { errors, isSubmitting } } = useForm<FormData>({
resolver: zodResolver(schema),
});
const onSubmit = (data: FormData) => {
// data is validated and typed — safe to use
};
return (
<form onSubmit={handleSubmit(onSubmit)}>
<Input {...register('name')} maxLength={100} />
{errors.name && <p className="text-sm text-red-600">{errors.name.message}</p>}
<Input {...register('email')} type="email" maxLength={255} />
{errors.email && <p className="text-sm text-red-600">{errors.email.message}</p>}
<textarea {...register('notes')} maxLength={1000} />
{errors.notes && <p className="text-sm text-red-600">{errors.notes.message}</p>}
<button type="submit" disabled={isSubmitting}>Submit</button>
</form>
);
}
from pydantic import BaseModel, EmailStr, Field
class UserCreate(BaseModel):
name: str = Field(min_length=1, max_length=100)
email: EmailStr = Field(max_length=255)
notes: str | None = Field(None, max_length=1000)
@router.post("/users", response_model=UserRead, status_code=201)
async def create_user(payload: UserCreate) -> UserRead:
# payload is validated and typed — safe to use
# Pydantic auto-trims and validates
...
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
input-validation, sanitization, security-audit, xss-prevention
npx claudepluginhub ajyadav013/claude-kit --plugin claude-kit127 skills in this plugin
/accessibility-reviewUI accessibility (WCAG) review — keyboard operability, focus, ARIA semantics, color contrast, touch targets. Returns prioritized fixes. Distinct from performance/visual review./alembic-migrationsAlembic migration setup and patterns for async SQLAlchemy — async engine + run_sync in env.py, autogenerate, RLS/multi-tenant migrations. Use for alembic init, writing migrations, or debugging migration errors./anthropic-vertex-integrationClaude on Vertex AI via the AnthropicVertex SDK — lazy ADC client init, env-based project/region resolution, async helpers, backoff retry. Use when calling Claude via GCP Vertex AI (not direct Anthropic API)./api-and-interface-designStable API and interface design patterns. Use when designing REST/GraphQL endpoints, module boundaries, type contracts between modules or frontend/backend, or changing public interfaces./api-integrationWire the app to a backend API — data fetching, caching, error handling, loading states. Use when connecting to an endpoint, adding a fetch layer, or fixing API error and loading behaviour. React-query detail lives in tanstack-react-query-patterns./api-pagination-filtering-sortingHTTP query parameter conventions for pagination, filtering, sorting, and search with standardized response metadata. Use when designing list endpoints or building repositories that turn query params into SQL.Other plugins' skills for the same job