security
Deep security review of a Rust off Rails app or change: threat model, the full security checklist, scanners (cargo-deny, secret scan, ZAP baseline)…
от rust-off-rails★ 55 звёзд на GitHub
Установить security в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/offrails:security: security is the gold standard
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'sAGENTS.md(mode, accounts, tenancy, API, deploy target).Threat model the scope. For each feature spec in scope, fill or update its
## Securitysection (see.offrails/blueprints/feature-spec.md):- assets;
- actors (anonymous, user, other user, other tenant, admin, a compromised account);
- entry points (routes, sockets, jobs, inbound email, webhooks, uploads);
- STRIDE threats, with the control for each and the test that proves it.
Any threat without a control and a test is a finding.
Run the scanners (install them if missing; report versions):
cargo deny checkfor advisories, licenses, bans and duplicate sources;- a secret scan of git history and the working tree (
gitleaks git .andgitleaks dir .; gitleaks 8.30+); pnpm audit --prodin TS modes;- the ZAP baseline against the release build running locally with
APP_ENV=production(docker run … zaproxy … zap-baseline.py -t http://host.docker.internal:$PORT; development binds 127.0.0.1 and refuses thatHost, see.offrails/guides/testing.mdCI). 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):
- a strict CSP with no
unsafe-inlineorunsafe-eval,frame-ancestors 'none',base-uri 'self'andform-action 'self'; - HSTS in production (
max-age=63072000; includeSubDomains),X-Content-Type-Options: nosniff,Referrer-Policy,Permissions-Policy, COOPsame-originand CORPsame-origin; Cache-Control: no-storeon authenticated and kernel pages;- cookies
HttpOnly; Secure (prod); SameSite=Lax, with the__Host-prefix where possible. - development is this machine only:
lsof -nP -iTCP:$PORT -sTCP:LISTENshows127.0.0.1, not*, andcurl -H 'Host: evil.test' $URL/devis 403 (DNS rebinding;.offrails/guides/security.md#development-is-this-machine-only).
- a strict CSP with no
Walk the checklist in
security.mditem by item against the code, withfile:lineevidence for each verdict. Go hard on:- authorization on every route and every socket join and push;
- tenant scoping on every query;
- IDOR via guessable ids;
- mass assignment;
- CSRF and Origin checks (including the WebSocket upgrade);
- rate limits (login, magic link, API tokens, socket frames);
- upload validation;
- SSRF on any outbound fetch;
- open redirects (
return_to); - timing-safe token comparison;
- token storage (digests only) and expiry;
- sessions revoked on logout and password change, including open sockets and streams;
- secrets in logs, job args or error pages;
- dependencies pinned.
Attack it. For each finding you suspect, write the failing test first (
tests/app/security_test.rsor 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.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл security?
Deep security review of a Rust off Rails app or change: threat model, the full security checklist, scanners (cargo-deny, secret scan, ZAP baseline), header/CSP verification and WebSocket checks. Use before shipping, after auth/payments/uploads/realtime/API changes, or when the user asks about security, hardening or a pentest-style review.
Как установить скилл security?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл security запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…