Common security audit

From HoangNguyen0403/agent-skills-standard · View interactive version

Common security audit is an AI agent skill from the GitHub repository HoangNguyen0403/agent-skills-standard. Probe for hardcoded secrets, injection surfaces, unguarded routes, business logic flaws, and platform-specific weaknesses across backend (Node, Go, Java, Python, Rust), frontend (React, Angular, Vue), and mobile (iOS, Android, Flutter) codebases. Use when performing security audits, vulnerability sc

How to use this skill

Skill file

Security Audit

**Priority: P0 (CRITICAL)**

1. Scan for Hardcoded Secrets

See implementation examples for secrets scanning commands.

Covers: Backend source, frontend bundles (REACT_APP_, NEXT_PUBLIC_, VITE_), mobile configs (BuildConfig, iOS configurations, strings.xml).

2. Detect Data Leakage in Logs

See implementation examples for log leakage scanning commands across Node, Go, Dart, Java, Swift.

3. Map Injection Surfaces & Auth Coverage

See implementation examples for injection detection and auth coverage. Static SAST/SCA identifies candidate gaps but is not dynamic authorization proof; dynamic API tests must exercise real policy chains across authentication (401), role permissions (403), tenant isolation (403/404), and mass-assignment immutability with synthetic identities.

4. Run Dependency CVE Scans

5. Infrastructure & Adversarial Entry Points

See implementation examples for RCE/SSRF/Path Traversal and infrastructure hardening (Docker/K8s).

6. Frontend-Specific Audit

7. Mobile-Specific Audit

See mobile audit commands for insecure storage (credential stores/Keystore), cert pinning, debug flags, and deep links.

8. Business Logic & Advanced Attacks

Scoring Impact

| Finding | Threshold | Severity | Deduction |

| --- | --- | --- | --- |

| Hardcoded Secrets | Any match | P0 | -25 |

| Plain-text PII in Logs | Any match | P0 | -20 |

| Unguarded Routes > 20% | > 0.2 | P0 | -15 |

| Raw SQL Concatenation | Any match | P1 | -10 |

| Response Leakage (Stack) | > 0 | P1 | -10 |

| Insecure Mobile Storage | Token in plaintext | P1 | -15 |

| Missing Cert Pinning | No pinning detected | P2 | -8 |

| DOM XSS Sinks | Any match | P1 | -10 |

CAUTION: P0 finding immediately caps Security score at 40/100. Immediate actions for leaked secrets: rotate the credential NOW and purge from history.

Anti-Patterns

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.