navikt/copilot/security-review
Claude Code and agent skill by navikt/copilot
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Bruk før commit, push eller pull request for å sjekke at koden er trygg å merge
Install
npx vskill@latest install navikt/copilot/security-reviewSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as navikt/copilot/security-review.
Security Review Skill
This skill provides pre-commit and pre-PR security checks for Nav applications. Covers secret scanning, vulnerability scanning, and Nav-specific requirements.
For architecture questions, threat modeling, or compliance decisions, use @security-champion instead.
Automated Scans
Run with run_in_terminal:
Parameterized SQL (Never Concatenate)
No PII in Logs
Secrets from Environment, Never Hardcoded
Network Policy (Nais)
Only expose what must be exposed:
OWASP Top 10 Checks
A01: Broken Access Control
A03: Injection
A05: Security Misconfiguration
A07: Cross-Site Scripting (XSS)
A08: Insecure Deserialization
A09: Logging & Monitoring
File Upload Security
Dependency Management
Expanded Checklist
- [ ] SQL queries are parameterized (no string concatenation)
- [ ] No PII in logs (fnr, name, address)
- [ ] Secrets only from environment/secrets
- [ ] Nais accessPolicy is explicit (no open inbound)
- [ ] CORS is restricted to known domains
- [ ] Input is validated and sanitized
- [ ] Access control checks ownership (not just auth)
- [ ] File upload validates type, size, and content
- [ ] Dependencies are up to date and vulnerability-scanned
- [ ] No
dangerouslySetInnerHTMLwithout sanitization
Dependency Management
Security Checklist
- [ ] No secrets, tokens, or API keys hardcoded in source
- [ ] No PII (FNR, name, address) in log statements
- [ ] All SQL queries use parameterized statements
- [ ] Nais
accessPolicylimits inbound/outbound to only what is needed - [ ] Token validation on all protected endpoints (see
@security-champion) - [ ] M2M tokens validate
azpagainstAZURE_APP_PRE_AUTHORIZED_APPS - [ ] Auth code matches
.nais/accessPolicy inbound rules (no dead code or missing rules) - [ ]
trivy repo .passes without HIGH/CRITICAL findings - [ ]
zizmorpasses on all GitHub Actions workflows - [ ] Git history clean of committed secrets (
git logscan above) - [ ] HTTPS enforced – no plain HTTP calls to external services
- [ ] Dependencies up to date (
dependencyUpdates/npm audit)
Related
| Resource | Use For | |
|---|---|---|
@security-champion | Threat modeling, compliance questions, Nav security architecture | |
$nav-auth | JWT validation, TokenX, ID-porten, Maskinporten | |
$nais | Nais manifest, accessPolicy, secrets setup | |
| sikkerhet.nav.no | Nav Golden Path, authoritative security guidance |
Review contract
Axes: the Expanded Checklist and the Security Checklist above, plus whatever the automated scans returned.
The review ends here, in this shape. A review with no output section has not run.
Judge primary evidence. The diff, the file, the EXPLAIN output, the rendered page — never your own summary of the change, and never your memory of what you meant to write. Resolve the base first, then cover committed, staged, unstaged and untracked changes. Read untracked files in full: diff output omits them.
Every axis reports. Each axis produces at least one finding, or one line saying what it inspected and what that evidence does not prove. An axis that says nothing has not looked.
Report what you inspected. "No findings in the two files I opened" and "no findings in the change" are different claims, and only the first one is ever true.
BLOCK— at least one finding that, shipped as written, risks data loss, a security or privacy breach, a production incident, or a wrong answer to a user.CONCERNS— no blocking finding, but at least one a maintainer should fix or answer first.CLEAN— every axis inspected against primary evidence, nothing at either bar.CLEANclaims only the axes above and the files on theInspectedline, and it is wrong if a defect is later found in them.
Not a review: LGTM; restating what the change does; cosmetic findings only; reading the changed lines without the code they call.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/security-review/SKILL.md
Popularity
- Repository stars
- 52
- Repository forks
- 13
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 30 Apr 2026, 7 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/navikt/copilot/security-review)