Security review workflow
The security-review skill audits application changes for common security risks and helps prevent those risks before release. It focuses on server-side trust, access control, secrets, abuse limits, payments, mobile use, AI services, deployment, and data input.
Operating model
The skill treats every client-controlled value as untrusted. It checks that the server validates or enforces prices, user identity, roles, subscription state, feature flags, and rate limits instead of accepting them from a browser, mobile app, or request body.【vibe-security/SKILL.md#L15-L17】
Review triggers
The skill can start from an explicit security request such as an audit or vulnerability review. It can also start implicitly when a change handles authentication, payments, database access, API keys, or user data. The configured OpenAI agent allows this implicit invocation and exposes the skill through its default audit prompt; see OpenAI agent configuration.【vibe-security/SKILL.md#L1-L3】【vibe-security/agents/openai.yaml#L1-L8】
References: vibe-security/SKILL.md• L1-3 vibe-security/…/openai.yaml• L1-8
Review scope
The review covers only security issues that apply to the project. The skill loads guidance for a technology or pattern only when the codebase uses it, and it skips unrelated areas. A focused review can load only the guidance for the requested area.【vibe-security/SKILL.md#L20-L22】【vibe-security/SKILL.md#L42-L42】
References: vibe-security/SKILL.md• L20-22 vibe-security/SKILL.md• L42
Review sequence
The review moves from exposed trust boundaries to protected operations and then to deployment risks. Each stage uses the matching reference guidance so the final result reflects the technologies and flows that the change actually uses.
Review stages
The skill examines the change in this order:
- Secrets and environment variables — Find exposed credentials and unsafe client-side configuration.
- Database access control — Check row or document access rules and server-side guards.
- Authentication and authorization — Check identity proof, session handling, and permission checks.
- Rate limiting and abuse prevention — Check limits on sensitive or costly actions.
- Payment security — Check server-owned prices, webhook proof, and subscription state.
- Mobile security — Check token storage, backend protection for keys, and deep links.
- AI and LLM integration — Check key protection, usage caps, prompt injection, and output safety.
- Deployment configuration — Check production settings, response headers, source maps, and environment separation.
- Data access and input validation — Check query safety and validation of incoming data.
The stages are conditional rather than a fixed checklist. A project that has no mobile client or payment flow does not receive unrelated findings.【vibe-security/SKILL.md#L20-L42】
References: vibe-security/SKILL.md• L20-42
Guidance selection
Each review stage points to a focused reference file. This keeps the review specific to the project while preserving the same high-level checks across supported technologies such as Supabase, Firebase, Convex, Stripe, React Native, and AI services.【vibe-security/SKILL.md#L24-L40】【vibe-security/SKILL.md#L112-L122】
References: vibe-security/SKILL.md• L24-40 vibe-security/SKILL.md• L112-122
Change application
The skill applies the same review model both after code exists and while code is being generated. This makes security guidance a design constraint for new work instead of only a late defect report.【vibe-security/SKILL.md#L45-L52】【vibe-security/SKILL.md#L107-L109】
Finding treatment
The review reports genuine security issues only. It puts the most exploitable and harmful issues first and raises critical problems such as exposed secrets, disabled database protection, or authentication bypasses at the top of the response.【vibe-security/SKILL.md#L45-L51】
Findings use a consistent severity order:
| Order | Meaning in the review |
|---|---|
| Critical | Immediate, severe compromise such as exposed secrets or an authentication bypass |
| High | A direct path to major abuse or loss |
| Medium | A meaningful weakness with narrower impact |
| Low | A lower-impact security issue |
Each finding identifies the affected file and lines, names the vulnerability, explains the concrete attacker impact, and gives a before-and-after fix. The response ends with a prioritized summary and omits categories with no issues.【vibe-security/SKILL.md#L54-L64】
References: vibe-security/SKILL.md• L45-64
Preventive use
When a change touches authentication, payments, database access, API keys, or user data, the skill consults the relevant guidance before code is written. The goal is to keep unsafe client trust and missing server checks out of the change rather than only finding them afterward.【vibe-security/SKILL.md#L49-L50】【vibe-security/SKILL.md#L107-L109】
References: vibe-security/SKILL.md• L49-50 vibe-security/SKILL.md• L107-109
Change checklist
When these files or sections are changed, remember to consider these:
- Changes that add a new technology or sensitive flow may require a new review stage and its matching reference guidance.
- Changes to client-visible configuration must be checked against the server-trust rule, especially for secrets and access decisions.
- Changes to finding severity or output structure must preserve the critical-to-low ordering and the concrete fix guidance.
- Changes to the OpenAI agent configuration must preserve both the audit prompt and implicit invocation behavior; see OpenAI agent configuration.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A secret or privileged key is exposed to a client | An attacker can use the key outside the intended access boundary | Keep secrets server-side and run the secrets review stage |
| A client supplies a price, role, user ID, or subscription state that the server accepts | An attacker can change access or financial outcomes | Validate or enforce the value on the server |
| A relevant technology stage is skipped | A technology-specific vulnerability can remain unseen | Load the matching reference only when the project uses that technology |
| A critical finding is buried among lower-severity items | Remediation of the most urgent risk can be delayed | Put critical findings at the top and order all findings by severity |
Key files
| File | Why to read it |
|---|---|
| vibe-security/SKILL.md | Defines the trust model, review sequence, finding rules, and preventive use |
| vibe-security/…/openai.yaml | Defines the configured OpenAI agent name, prompt, and invocation policy |
vibe-security/references/ | Provides the focused guidance selected for each technology or security area |