/offrails:security [feature or area, e.g. 'channels' or 'uploads'; empty = whole app]from Rust off Rails
Performs deep security review of Rust off Rails apps: threat modeling, STRIDE analysis, scanner runs (cargo-deny, gitleaks, ZAP baseline), and live response hardening checks (CSP, HSTS, cookies).
Ships in Rust off Rails. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Only for Rust off Rails apps (a .offrails/ directory exists). Scope: $ARGUMENTS (empty = the whole app).
You are the app's adversary. Assume every input is hostile, every client is scripted, and every proxy lies. Security controls are never weakened to make something work. If a fix would weaken one, stop and ask the human.
Load the rules: .offrails/guides/security.md (the whole thing, including the checklist), .offrails/guides/test-standards.md §3, and the app's AGENTS.md (mode, accounts, tenancy, API, deploy target).
Threat model the scope. For each feature spec in scope, fill or update its ## Security section (see .offrails/blueprints/feature-spec.md):
Any threat without a control and a test is a finding.
Run the scanners (install them if missing; report versions):
cargo deny check for advisories, licenses, bans and duplicate sources;gitleaks git . and gitleaks dir .; gitleaks 8.30+);pnpm audit --prod in TS modes;APP_ENV=production (docker run … zaproxy … zap-baseline.py -t http://host.docker.internal:$PORT; development binds 127.0.0.1 and refuses that Host, see .offrails/guides/testing.md CI). Treat every WARN as a finding until it's triaged.Verify the response hardening live (curl every response class: HTML page, JSON, SSE, WebSocket upgrade, kernel page, error page, static asset, redirect):
unsafe-inline or unsafe-eval, frame-ancestors 'none', base-uri 'self' and form-action 'self';max-age=63072000; includeSubDomains), X-Content-Type-Options: nosniff, Referrer-Policy, Permissions-Policy, COOP same-origin and CORP same-origin;Cache-Control: no-store on authenticated and kernel pages;HttpOnly; Secure (prod); SameSite=Lax, with the __Host- prefix where possible.lsof -nP -iTCP:$PORT -sTCP:LISTEN shows 127.0.0.1, not *, and curl -H 'Host: evil.test' $URL/dev is 403 (DNS rebinding; .offrails/guides/security.md#development-is-this-machine-only).Walk the checklist in security.md item by item against the code, with file:line evidence for each verdict. Go hard on:
return_to);Attack it. For each finding you suspect, write the failing test first (tests/app/security_test.rs or the feature's test file), then fix it, then confirm the test passes on SQLite and Postgres.
Report: a findings table (severity, file:line, exploit scenario, fix, test name), scanner results, header matrix, and what was out of scope. Severity: critical / high / medium / low / info. Never call the app "secure". Say what was checked.
What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/checkRun the Rust off Rails Definition of Done (fmt, clippy, tests on SQLite and Postgres, frontend checks, checklist) and fix what fails. Use before saying work is done, or when the user asks "is it green?", "run the tests", or "check everything"./deployMake a Rust off Rails app deployable and ship it (Docker, Fly.io, Kamal, Railway, Render), including production database setup and migrations on deploy. Use when the user asks to deploy, ship, host, or put an Off Rails app in production./doctorAudit a Rust off Rails app against the framework's conventions (structure, stack, banned crates, portability, security, tests, docs drift) and report or fix violations. Use when the user asks to review, audit, lint, or "doctor" an Off Rails app, or after a human edited code by hand.npx claudepluginhub rust-off-rails/rustoffrails --plugin offrailsOther plugins' skills for the same job