| name | security-review |
| description | Pre commit and pre PR security review for k9-punsj-frontend with focus on secrets, workflows, auth, telemetry, and frontend data exposure |
Security review skill
Merk: Denne varianten er tilpasset k9-punsj-frontend.
Backend tunge eksempler for Kotlin, SQL og generiske tjenestemønstre er fjernet med vilje.
Hvis skillen skal gjenbrukes i et annet repo, oppdater hotspots, auth flyt, deploy kontekst og sikkerhetsregler først.
Use this skill before commit, pull request, or merge when the change affects frontend data flow, auth, workflows, dependencies, runtime config, or logging.
For broader threat modeling or architecture decisions, use @k9-punsj-front-security-agent.
Automated checks
Run relevant checks from repo root:
trivy repo .
zizmor .github/workflows/
git log -p --all -S 'secret' -- '*.ts' '*.tsx' '*.js' '*.yml' '*.yaml' | head -100
git log -p --all -S 'token' -- '*.ts' '*.tsx' '*.js' '*.yml' '*.yaml' | head -100
Repo specific hotspots
Review these areas together when they are touched:
server/server.js
server/src/reverse-proxy.js
nais/**
.github/workflows/**
src/app/App.tsx
src/app/index.html
src/build/scripts/sentry-release.js
What to look for
Secrets and sensitive data
- No hardcoded tokens, credentials, or internal secrets.
- No personopplysninger or sensitive values in logs, prompts, fixtures, screenshots, or telemetry payloads.
- No secrets copied into generated config or browser visible runtime state.
Auth and access boundaries
- Auth flow changes keep Azure and Wonderwall behavior intentional.
- OBO forwarding in
server/src/reverse-proxy.js is not loosened accidentally.
- Nais
accessPolicy stays minimal and task driven.
Workflows and supply chain
- Workflow permissions stay minimal.
- New external actions or scripts are justified and pinned appropriately.
- Dependency changes do not introduce obvious risk without need.
Telemetry and observability
- Sentry and Faro setup do not expose user sensitive data.
- Errors, tags, or custom metadata avoid personopplysninger.
- Release or deploy scripts do not leak secrets into logs.
Review checklist