Check a change for security problems - a fresh-context security review, the dependency audit, secrets, and protected zones that need a human. Use before merging a change that touches authentication, authorization, input handling, data access, payments, secrets or dependencies, and on "sécurité", "audit de sécurité", "is this safe?".
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Security?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sycatle-security-senior-mode)
---
name: security
description: Check a change for security problems - a fresh-context security review, the dependency audit, secrets, and protected zones that need a human. Use before merging a change that touches authentication, authorization, input handling, data access, payments, secrets or dependencies, and on "sécurité", "audit de sécurité", "is this safe?".
disable-model-invocation: true
---
# Security
A security bug is the one kind of defect where being mostly right is not good enough: an attacker only
needs the one path you missed. So this check does not rely on the author's sense that the code is safe.
It looks from outside, with a reviewer who never saw the reasoning.
## Steps
1. **Pin the change** as for a review: a base, a non-empty diff. Done when you have both.
2. **Protected zones.** `senior-mode protected <base>` lists the changed files inside the globs of
`.senior-mode/protected` (authentication, payments, migrations, CI, infrastructure: whatever the project
lists). Any hit means a human approves the merge, whatever else this check finds. Say which files and
why they are protected.
3. **Dependencies.** `senior-mode audit` runs the auditor of each ecosystem (npm, pnpm, yarn, cargo,
govulncheck, pip-audit) for high and critical vulnerabilities. A missing auditor is a finding too:
nothing proves the dependencies are clean. For each vulnerable package: is it reachable from this
project's code, and what is the smallest upgrade that fixes it?
4. **Secrets.** The pre-commit hook scans each commit. Also look at what it cannot see: secrets in logs,
error messages, URLs, client-side bundles, or test fixtures copied from production.
5. **The review**, in a fresh context: the `security` subagent where the harness has subagents, otherwise
`senior-mode review <base> --agent security`. Give it the base and the paths that matter.
6. **Brief.** Check each high finding against the code before passing it on. Then say what blocks (a
critical or high finding, a protected zone without a human), what should be fixed soon, and what was
checked and found clean. Done when someone could decide to merge from your summary alone.
## Severity, plainly
- **Critical:** exploitable from outside without credentials, or exposes other users' data or money.
- **High:** exploitable by any logged-in user, or by an attacker with a plausible foothold.
- **Medium and low:** defence in depth, hardening, things that need an unlikely chain.
Critical and high block the merge and need a human to accept any exception.