Skip to content
Skills Library
Security · Review & audit

security-audit

/security-audit

Use when conducting security reviews, vulnerability assessments, threat modeling, auditing authentication/authorization logic, reviewing secrets handling, or verifying remediation of security defects.

Licence
MIT
Last repository change
13.11.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when conducting security reviews, vulnerability assessments, threat modeling, auditing authentication/authorization logic, reviewing secrets handling, or verifying remediation of security defects.

Original author description

Use when conducting security reviews, vulnerability assessments, threat modeling, auditing authentication/authorization logic, reviewing secrets handling, or verifying remediation of security defects.

How it works

  1. Purpose
  2. Activation criteria
  3. Non-activation guidelines
  4. Required context and inputs
  5. Operating procedure
  6. Technical and engineering standards
  7. Verification and evidence requirements
  8. Expected outputs and deliverables
  9. Risks, boundaries and failure modes
  10. Progressive disclosure references
Original SKILL.md headings · 90 lines, 839 words
SKILL.md preview
---
name: "security-audit"
description: "Use when conducting security reviews, vulnerability assessments, threat modeling, auditing authentication/authorization logic, reviewing secrets handling, or verifying remediation of security defects."
---

# Security Audit — Application Security Review and Vulnerability Assessment

> Generated from `specs/skills/security-audit.md` by `scripts/generate-antigravity-skills.ts`. Edit the canonical specification, not this file.

## Purpose

The Security Audit skill provides a systematic, evidence-based methodology for identifying, classifying, and remediating software security vulnerabilities. It guards applications against the OWASP Top 10, insecure authorization, secret leaks, and architectural flaws by requiring concrete exploit scenarios and verified remediations rather than theoretical assertions.

## Activation criteria

Activate this skill when:

- Authoring or modifying authentication, session management, or password reset logic.
- Adding or altering authorization middleware, role-based access controls (RBAC), or multi-tenant filters.
- Exposing new public API endpoints, webhooks, or file upload handlers.
- Ingesting untrusted user data into persistence engines, template renderers, or system shells.
- Conducting pre-deployment security reviews or dependency vulnerability audits.

## Non-activation guidelines

Do not activate this skill when:

- Modifying UI layouts, CSS themes, or visual component state transitions that do not handle user inputs or credentials.
- Writing unit tests for deterministic mathematical algorithms.
- Updating developer documentation or internal code comments.
- Refactoring internal private functions without changing security posture or external interfaces.

## Required context and inputs

Before initiating a security audit, inspect and assemble:

1. **Threat Model & Architecture:** Application topology, public entry points, internal service boundaries, and external third-party dependencies.
2. **Authentication Mechanisms:** Session cookies, JWTs, OAuth2 providers, and API token validation logic.
3. **Authorization Models:** User roles, tenant IDs, permission checks, and database query filters.
4. **Data Flows:** Ingestion points for user input, file uploads, external webhooks, and outbound network calls.
5. **Configuration & Secrets:** Environment variables, Dockerfiles, CI/CD pipelines, and secret manager configurations.

## Operating procedure

Execute the following thirteen-step security auditing workflow:

1. **Understand Application Architecture:** Map all public, internal, and administrative network boundaries.
2. **Establish the Threat Model:** Identify potential adversaries, assets of value (PII, financial data, admin tokens), and plausible attack vectors.
3. **Identify Attack Surfaces:** Enumerate all public routes, RPC methods, WebSocket handlers, and webhook receivers.
4. **Inspect Authentication:** Audit password hashing algorithms (bcrypt/Argon2id), session invalidation on logout, token expiration, and MFA enforcement.
5. **Inspect Authorization:** Test for Insecure Direct Object References (IDOR), missing function-level access control, and tenant isolation at the database layer.
6. **Inspect API Endpoints:** Check rate limiting, request size limits, CORS policies, and HTTP security headers (`Content-Security-Policy`, `X-Content-Type-Options`).
7. **Inspect Input Validation:** Verify schema enforcement, data sanitization, type coercion, and rejection of unexpected fields.
8. **Inspect Database Interactions:** Check for raw string interpolation in SQL/NoSQL queries, unescaped queries in ORMs, and mass assignment vulnerabilities.
9. **Inspect Secrets and Configuration:** Scan repository for hardcoded API keys, certificates, or default credentials. Verify that secrets are injected via secure runtime variables.
10. **Identify Vulnerabilities:** Document every potential vulnerability with code references and realistic exploit mechanics.
11. **Classify Severity:** Assign severity ratings (Critical, High, Medium, Low, Informational) based on exploitability and business impact.
12. **Recommend Concrete Remediation:** Provide exact code patches or configuration directives that eliminate the vulnerability without introducing regressions.
13. **Verify Remediations:** Re-inspect modified code or execute non-destructive proof-of-concept tests to confirm the vulnerability is closed.

## Technical and engineering standards

- **Never Trust Client Claims:** All authorization checks must be enforced server-side. Never rely on client-side role flags, hidden form inputs, or unverified JWT claims.
- **Parameterized Queries:** Every SQL/database interaction must utilize parameterized statements or prepared queries. Zero raw string concatenation allowed.
- **Secure by Default:** Set `HttpOnly`, `Secure`, and `SameSite=Lax` or `Strict` on all authentication cookies. Enforce strict HTTPS redirection.
- **Least Privilege:** Database connection strings, service accounts, and API tokens must have the absolute minimum permissions required for their task.
- **Safe Error Responses:** Never return database error messages, stack traces, or internal server paths in HTTP responses to clients.

## Verification and evidence requirements

- Every reported vulnerability must include exact file path and line numbers as evidence.
- An explicit attack scenario must be described showing how an external actor exploits the weakness.
- The remediation must include a verified code snippet or configuration change.
- Never state "the application is completely secure" because no obvious vulnerability was spotted. State explicitly which surfaces were audited and what limitations existed.

## Expected outputs and deliverables

- **Security Audit Report:** Comprehensive assessment detailing audited attack surfaces and methodology.
- **Vulnerability Findings List:** Structured findings categorized by severity, citing code evidence, attack scenarios, and remediations.
- **Remediation Pull Request / Code Patches:** Focused security fixes addressing confirmed vulnerabilities.
- **Security Invariants Checklist:** Set of automated rules or tests added to prevent regressions.

## Risks, boundaries and failure modes

- **Destructive Testing Prohibition:** Do not perform denial-of-service tests, mass database modifications, or destructive exploits on production or shared environments.
- **False Sense of Security:** Auditing three files does not make an application safe; always state the scope and boundaries of the audit.
- **Secret Exposure:** Never output discovered real credentials or API keys into public logs, issue trackers, or documentation.

## Progressive disclosure references

For standardized vulnerability checklists and classification templates:

- [Security Auditing Checklist: Threat Modeling and OWASP Verification](./references/vulnerability-assessment-checklist.md)
Files in this package (2)
  • SKILL.md 7 KB
  • references/vulnerability-assessment-checklist.md 3 KB

Versions

RepositoryScoreLicence
This page · hmfareed/Frontier-Engineer90MIT
posthog/posthog100MIT
mono/SkiaSharp100MIT
iuliandita/skills100MIT
gtlpanda/PandaStack100MIT
ericrisco/rsc-harness100MIT
matthewliu/matt-agent-playbook100MIT
drvoss/everything-copilot-cli100MIT
stella/stella100Apache-2.0

Database snapshot: 13.11.2026 · package version 8a706efd6e3f (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100security-reviewer
    Use when reviewing code for security vulnerabilities, conducting threat modeling, ensuring SLSA compliance, or performing security assessments. Invoked for security analysis, vulnerability detection, and compliance verification.
  • 100security-expert
    Expert in application security, vulnerability analysis, secure coding practices, and security auditing. Use for security reviews, threat modeling, authentication/authorization design, and fixing security vulnerabilities.
  • 95security-audit-methodology
    Plan authorized security reviews with threat modeling, architecture and dependency audits, and vulnerability classification. Use for scoped defensive security assessment. Do not use for offensive operations, unauthorized testing, or security control implementation.
  • 100security-review
    When the user needs a security assessment — threat modeling, vulnerability review, auth flow audit, dependency scanning, or says "is this secure", "review for vulnerabilities", "threat model", "security audit", "pen test prep".
  • 100security-review
    A specialist skill for security reviews, threat modeling, and remediation guidance. Use for auth/permissions changes, secrets or PII handling, public endpoints, or dependency upgrades.
  • 90security
    Guide security review and vulnerability assessment following OWASP standards. Use when: security audit, vulnerability check, secure coding review, threat modeling. Not for: automated dependency, CVE, and secret scanning — use /scan; handling a breach in progress — use /incident.…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.