Skip to content
Back to skills

Security Audit

ASecurity

Audit security vulnerabilities. Game: save tampering, cheat vectors, network exploits, player data, input validation. Product: OWASP/API auth, sessions, secrets, authorization boundaries, privacy, logging, rate limiting, and deployment configuration.

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 7, 2026
securityrustgobashapibackendsecurity

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add Negentropy-Laby/Constitution-Driven-Development --skill security-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Security Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Security Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/negentropy-laby-security-audit/badge)](https://www.skillsdirectory.com/skills/negentropy-laby-security-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: security-audit
description: "Audit security vulnerabilities. Game: save tampering, cheat vectors, network exploits, player data, input validation. Product: OWASP/API auth, sessions, secrets, authorization boundaries, privacy, logging, rate limiting, and deployment configuration."
argument-hint: "[full | network | save | input | quick]"
user-invocable: true
allowed-tools: Read, Glob, Grep, Bash, Write, Task
agent: security-engineer
---

## QA policy, facts and authority

Apply `standards/evidence-lifecycle.md`, `standards/notes-adr-sync.md` and existing
collaboration authority. Read actual `workflow/workflow-catalog.yaml`, domain,
current transition and established project QA scope, including initialized
`memory_bank/t1_axioms/qa_context.md` or the existing owning Story/plan/decision.
QA orchestration is optional by default; strict obligations need explicit source,
authority and exact checks/scope. Review mode does not select strict QA. Absent
optional Memory Bank/QA Context with no actual strict selection uses the catalog's
default optional orchestration; disclose absence without requiring initialization.
Unknown applies to unresolved actual required applicability or conflicting policy,
not optional context absence. Resolve that affected scope before dependent claims;
Honor actual user-specified per-effect approval conditions when determining coverage;
do not invent strict obligations or passing results.
Optional orchestration never waives required Story AC, governing DoD, decisions,
evidence or required review. Type tables are starting points; actual owners decide
requirements. Each required check retains PASS/FAIL/NotRun/Blocked/Pending; N/A
needs a governing applicability reason and cannot erase a failure.

Separate sufficiency, actual execution, independence, acceptance and completion.
Files/keywords/counts, planning cases and self-checks prove none of the other facts.
Read relied-on bodies and minimum required direct/indirect dependency closure;
retain full SHA-256/byte sizes, recoverable originals and original-path witnesses.
Disclose reading omissions. Exact bound historical results may be reused only
where selected workflow permits, labeled historical with original runtime/observer,
inputs and scope; never call them this run's execution. Missing required originals
or observations leave affected checks incomplete. Risk acceptance is a separate
scoped record; it cannot change FAIL/NotRun/Blocked/Pending to PASS or completion.

Reuse named paths/effects authority across roles/retries; before new authority show
draft and complete effect set, asking only for material new scope. Review-only
invokes no write entrypoint. Report-only writes its new report, excluding inputs,
indexes, session/sprint/stage state and closure. Existing report paths require a
new revision with prior evidence preserved; index effects need their own covered
scope and historical links. Optional Memory Bank absence uses Story/report/
conversation fallback without initialization, publication or activation.

## User Guide

- When to use: Audit security vulnerabilities. Game: save tampering, cheat vectors, network exploits, player data, input validation. Product: OWASP/API auth, sessions, secrets, authorization boundaries, privacy, logging, rate limiting, and deployment configuration.
- Inputs: Command arguments: `/security-audit [full | network | save | input | quick]`; project artifacts referenced below; user decisions and approvals before writes.
- Outputs: Primary artifacts, reports, or conversation guidance described below; write files only after user approval.
- Memory-bank writes: None.
- Next steps: Follow the workflow hand-off or next-step guidance below; recommendations do not auto-run and require explicit user command/approval.

## Phase 0: Domain Routing

Resolve actual domain from substantive concept bodies, configured fields and
explicit project decisions under `standards/technical-preferences.md` before
auditing security. Populated legacy Product configuration can establish Product
without a concept; filenames/placeholders alone cannot. Conflicts or absent actual
evidence leave the affected route Unknown while neutral checks continue.

For the resolved domain:
- `design/cdd/game-concept.md` -> **[Game]** keep the existing game security audit: save tampering, cheat vectors, multiplayer/network validation, player data exposure, and engine-specific input risks.
- `design/cdd/product-concept.md` -> **[Product]** run a product security audit: OWASP/API auth, session handling, secrets, dependency risk, authorization boundaries, PII/privacy, logging, data retention, rate limiting, CORS/CSRF, and deployment configuration.
- If still unresolved after reading those owners, ask whether the release surface
  is a game build or a product/service/API/CLI surface.

Game security guidance remains authoritative for games. Product security checks are a parallel branch.
# Security Audit

Security is not optional for any shipped game. Even single-player games have
save tampering vectors. Multiplayer games have cheat surfaces, data exposure
risks, and denial-of-service potential. This skill systematically audits the
codebase for the most common game security failures and produces a prioritised
remediation plan.

**Run this skill:**
- Before public release as selected verification; required artifact status follows actual catalog/current phase and governing scope
- Before enabling any online/multiplayer feature
- After implementing any system that reads from disk or network
- When a security-related bug is reported

**Output:** `production/security/security-audit-[date].md`

---

## Phase 1: Parse Arguments and Scope

**Modes:**
- `full` — all categories (recommended before release)
- `network` — network/multiplayer only
- `save` — save file and serialization only
- `input` — input validation and injection only
- `quick` — high-severity checks only (fastest, for iterative use)
- No argument — run `full`

Read `standards/technical-preferences.md` to determine:
- Actual domain, Game engine or Product stack/language/pinned version and exposed surfaces
- Target platforms (affects which attack surfaces apply)
- Applicable multiplayer/networking or Product auth/API/CLI/UI/data/deployment scope

---

## Phase 2: Spawn Security Engineer

Spawn `security-engineer` via Task. Pass:
- The audit scope/mode
- Engine and language from technical preferences
- Actual selected source/config/dependency scope, exact input manifest and original
  instruction/authority, exclusions and required independent-review roles; do not
  expose secrets in output
- Relied-on prior audit/finding originals and required attachments: read complete
  original scenario/remediation/acceptance/verification before claiming resolution.
  Missing or unread required inputs leave affected checks incomplete

The security-engineer runs the audit across 6 categories (see Phase 3). Collect their full findings before proceeding.

---

## Phase 3: Audit Categories

Evaluate actual applicable categories; Unknown/NotRun is not safety. N/A needs
surface evidence/reason. Search locates code; read relevant call/data paths and
actual configuration. Encryption presence, missing keywords or public version
strings alone prove neither safety nor vulnerability. Runtime/exploit claims need
actual execution evidence.

Product checks cover auth/session/token lifecycle, permission matrix/trust
boundaries, API validation/error/rate limits, CLI/path/config handling, secrets/
logging/PII exposure, durable data/migration/retention, relevant CORS/CSRF, dependency
provenance and deployment/rollback/operational access. Bind each finding to actual
requirement/source/verification. Invent no project schema or legal IDs. Preserve
the Game categories below where applicable.

### Category 1: Save File and Serialization Security
- Are save files validated before loading? (no blind deserialization)
- Are save file paths constructed from user input? (path traversal risk)
- Are save files checksummed or signed? (tamper detection)
- Does the game trust numeric values from save files without bounds checking?
- Are there any eval() or dynamic code execution calls near save loading?

Grep patterns: `File.open`, `load`, `deserialize`, `JSON.parse`, `from_json`, `read_file` — check each for validation.

### Category 2: Network and Multiplayer Security (skip if single-player only)
- Is game state authoritative on the server, or does the client dictate outcomes?
- Are incoming network packets validated for size, type, and value range?
- Are player positions and state changes validated server-side?
- Is there rate limiting on any network calls?
- Are authentication tokens handled correctly (never sent in plaintext)?
- Does the game expose any debug endpoints in release builds?

Grep for: `recv`, `receive`, `PacketPeer`, `socket`, `NetworkedMultiplayerPeer`, `rpc`, `rpc_id` — check each call site for validation.

### Category 3: Input Validation
- Are any player-supplied strings used in file paths? (path traversal)
- Are any player-supplied strings logged without sanitization? (log injection)
- Are numeric inputs (e.g., item quantities, character stats) bounds-checked before use?
- Are achievement/stat values checked before being written to any backend?

Grep for: `get_input`, `Input.get_`, `input_map`, user-facing text fields — check validation.

### Category 4: Data Exposure
- Are any API keys, credentials, or secrets hardcoded in `src/` or `assets/`?
- Are debug symbols or verbose error messages included in release builds?
- Does the game log sensitive player data to disk or console?
- Are any internal file paths or system information exposed to players?

Grep for: `api_key`, `secret`, `password`, `token`, `private_key`, `DEBUG`, `print(` in release-facing code.

### Category 5: Cheat and Anti-Tamper Vectors
- Are gameplay-critical values stored only in memory, not in easily-editable files?
- Are any critical game progression flags (e.g., "has paid for DLC") validated server-side?
- Is there any protection against memory editing tools (Cheat Engine, etc.) for multiplayer?
- Are leaderboard/score submissions validated before acceptance?

Note: Client-side anti-cheat is largely unenforceable. Focus on server-side validation for anything competitive or monetised.

### Category 6: Dependency and Supply Chain
- Are any third-party plugins or libraries used? List them.
- Do any plugins have known CVEs in the version being used?
- Are plugin sources verified (official marketplace, reviewed repository)?

Glob for: `addons/`, `plugins/`, `third_party/`, `vendor/` — list all external dependencies.

---

## Phase 4: Classify Findings

For each finding, assign:

**Severity:**
| Level | Definition |
|-------|-----------|
| **CRITICAL** | Remote code execution, data breach, or trivially-exploitable cheat that breaks multiplayer integrity |
| **HIGH** | Save tampering that bypasses progression, credential exposure, or server-side authority bypass |
| **MEDIUM** | Client-side cheat enablement, information disclosure, or input validation gap with limited impact |
| **LOW** | Defence-in-depth improvement — hardening that reduces attack surface but no direct exploit exists |

**Finding status:** Open / Resolved with exact evidence / Out of Scope with reason.
**Verification:** static-only / actual PASS / FAIL / NotRun / Blocked / Pending.
**Risk acceptance:** separate exact finding revision/input/scope, authority/time,
rationale/owner/due phase; it does not set Resolved or passing verification.

---

## Phase 5: Generate Report

```markdown
# Security Audit Report

**Date**: [date]
**Scope**: [full | network | save | input | quick]
**Technology / surfaces**: [Game engine or Product stack + pinned version; actual scope]
**Audited by**: security-engineer via /security-audit
**Files scanned**: [N source files, N config files]

---

## Executive Summary

| Severity | Count | Must Fix Before Release |
|----------|-------|------------------------|
| CRITICAL | [N] | Yes — all |
| HIGH | [N] | Yes — all |
| MEDIUM | [N] | Recommended |
| LOW | [N] | Optional |

**Scoped recommendation**: [No blocking findings in inspected scope / Remediation required / Assessment incomplete]. Actual runtime/platform/Product qualification: [PASS / FAIL / NotRun / Blocked / Pending with bound evidence]. Static audit is no CLEAR TO SHIP/SECURE certification.

---

## CRITICAL Findings

### SEC-001: [Title]
**Category**: [Save / Network / Input / Data / Cheat / Dependency]
**File**: `[path]` line [N]
**Description**: [What the vulnerability is]
**Attack scenario**: [How a malicious user would exploit it]
**Remediation**: [Specific code change or pattern to apply]
**Effort**: [Low / Medium / High]

[repeat per finding]

---

## HIGH Findings

[same format]

---

## MEDIUM Findings

[same format]

---

## LOW Findings

[same format]

---

## Accepted Risk

[Separately authorized exact finding/input/scope risk acceptance; original finding and actual verification remain unchanged]

---

## Dependency Inventory

| Plugin / Library | Version | Source | Known CVEs |
|-----------------|---------|--------|------------|
| [name] | [version] | [source] | [none / CVE-XXXX-NNNN] |

---

## Remediation Priority Order

1. [SEC-NNN] — [1-line description] — Est. effort: [Low/Medium/High]
2. ...

---

## Re-Audit Trigger

Run `/security-audit` again after remediating any CRITICAL or HIGH findings.
Apply actual catalog/selected security scope. Demonstrated CRITICAL/HIGH quality failures can invalidate the phase goal, but no universal catalog artifact gate is invented. Read original findings before claiming remediation.
```

---

## Phase 6: Write Report

Present the report summary (executive summary + CRITICAL/HIGH findings only) in conversation.

Reuse covered named report-write authority. Only if missing or materially new ask: "May I write the full security audit report to `production/security/security-audit-[date].md`?"

Write when that exact named report path/effect is covered by existing or newly obtained authorization; do not re-ask for covered scope.

---

## Phase 7: Gate Integration

Determine actual report/check requirement from selected current catalog/QA/security scope. Otherwise it is advisory; demonstrated failures retain actual impact.

After remediating findings, re-run: `/security-audit quick` to confirm CRITICAL/HIGH items are resolved before running `/gate-check release`.

If CRITICAL findings exist:
> "⛔ CRITICAL security findings must be resolved before any public release. Do not proceed to `/launch-checklist` until these are addressed."

If no CRITICAL/HIGH finding in fully inspected scope, state that limited fact and actual saved/draft path. Missing coverage, unavailable dependencies and unexecuted runtime remain explicit; static review certifies no platform/Product qualification.

---

## Collaborative Protocol

- **Never assume a pattern is safe** — flag it and let the user decide
- **Accepted risk is a valid outcome** — some LOW findings are acceptable trade-offs for a solo team; document the decision
- **Multiplayer games have a higher bar** — any HIGH finding in a multiplayer context should be treated as CRITICAL
- **This is not a penetration test** — this audit covers common patterns; a real pentest by a human security professional is recommended before any competitive or monetised multiplayer launch

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.