andreaswasita/copilot-agents-dojo/security-audit

Claude Code and agent skill by andreaswasita/copilot-agents-dojo

Trust tier 2
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Detects high-confidence security risks in code.

Install

npx vskill@latest install andreaswasita/copilot-agents-dojo/security-audit

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as andreaswasita/copilot-agents-dojo/security-audit.

Security Audit Skill

Runs a deterministic heuristic scan over a codebase to flag high-confidence security risks — committed secrets, disabled TLS verification, insecure deserialization, and shell-injection sinks — then optionally layers LLM reasoning (OWASP/STRIDE) on top of the machine findings. This is a lightweight heuristic audit assistant, not a pentest, a SAST replacement, or a proof of security: it is a regex line-scanner that cannot follow data flow and will miss anything outside its rules. Treat its output as triage leads for human review, never as assurance.

When to Use

  • Before opening a PR that touches auth, secrets handling, deserialization, or external calls.
  • As a fast pre-commit sweep for accidentally committed credentials.
  • When reviewing an unfamiliar contribution and you want a cheap first pass.
  • To produce a persisted, idempotent report that diffs cleanly across runs.
  • Paired with derive-security-from-risk (which works forward, producing requirements) — this skill is the reverse, scanning existing code.
  • NOT as the only security gate, and NOT as evidence that code is secure (see Pitfalls).

Prerequisites

  • The powershell Copilot tool to invoke the scanner.
  • Python 3 on PATH (the scan logic is one stdlib core; the .sh/.ps1 are thin wrappers).
  • Read access to the target tree.

How to Run

Use the powershell tool to scan a directory and review the findings:

bash
# High-confidence sweep of the repo (exit 1 = findings at/above --fail-on)
bash skills/security-audit/scripts/security-audit.sh . --suggest
# Broader (noisier) profile, fail only on medium-or-higher
bash skills/security-audit/scripts/security-audit.sh src --profile broad --fail-on medium
# Persist a deterministic JSON report for diffing
bash skills/security-audit/scripts/security-audit.sh . --format json --output audit.json

On Windows, call the parity wrapper security-audit.ps1 with the same arguments. Exit codes: 0 clean (below --fail-on), 1 findings at/above it, 2 usage error.

Quick Reference

RuleFlagsConfidence
SA-001..005private keys, AWS/GitHub/Slack/Stripe/Google tokenshigh
SA-010TLS verification disabled (verify=False)high
SA-011shell sink (shell=True, os.system)high
SA-012insecure deserialization (pickle.loads, yaml.load)high
SA-020..024eval/exec, generic creds, weak hash, DEBUG, CORS *low (broad only)
FlagEffect
--profile broad / --include-low-confidenceenable low-confidence rules
`--fail-on low\medium\high`exit-1 threshold (default high)
`--format md\json`report shape (default md)
--output PATHpersist report (excluded from its own scan)
--ignore GLOBextra path to skip (repeatable)
--suggestinclude remediation text

Procedure

Step 1: Scan

Run the default (high-confidence) profile over the target with the powershell tool. Start narrow — the default rules are tuned to minimize false positives, so an exit 1 here usually means a real issue.

Step 2: Triage

Read each finding's rule id, severity, confidence, CWE, and location. Confirm whether it is a true positive. For a genuine non-issue, add an inline # security-audit: ignore SA-0NN reason=... on the matched or preceding line; the report then counts it as suppressed rather than dropping it silently.

Step 3: Reason (LLM tier)

For findings that need judgement, layer OWASP/STRIDE reasoning on the machine output: is the eval argument attacker-reachable, is the disabled TLS check on an internal or external call, what is the blast radius. The scanner finds candidates; you decide exploitability.

Step 4: Persist

Write a report with --output (and --format json for machine diffing). The report carries no timestamps, absolute paths, or environment data, so re-running on unchanged code produces byte-identical output and a noise-free diff.

Step 5: Remediate and Re-audit

Apply fixes guided by the --suggest remediation text. The scanner never edits code — suggestions only, by design. After fixing, re-run and confirm the findings clear (and that no new ones appeared).

Step 6: Extend the Rules

Rules live in skills/security-audit/scripts/security_audit.py as one shared core. Add a rule there with a matching case in tests/test_security_audit.py (generate any secret-shaped fixture at runtime — never commit a token-shaped literal), so the .sh and .ps1 wrappers stay in parity.

Pitfalls

  • DO NOT treat a clean scan as "secure". A pass is the absence of a matched pattern, not a proof of safety — the scanner cannot follow data flow or reason about exploitability.
  • DO NOT commit real token-shaped fixtures to tests; generate them at runtime by concatenation, or push protection and secret scanners will block them.
  • DO NOT auto-apply suggestions blindly. They are remediation hints; review each in context.
  • DO NOT widen the default profile until every eval trips it — false positives train reviewers to ignore the tool. Keep noisy rules behind --profile broad.
  • DO NOT edit only one wrapper. The logic lives in the Python core; the .sh/.ps1 are thin and must stay that way.

Verification

  • [ ] The scanner was run on the target and its exit code observed.
  • [ ] Each finding was triaged as true/false positive; false positives carry an inline ignore with a reason.
  • [ ] A persisted report was produced where one was needed, and re-runs are byte-identical.
  • [ ] Remediated findings were confirmed cleared on a re-audit, with no new findings introduced.
  • [ ] New or changed rules have matching cases in tests/test_security_audit.py.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
52
Repository forks
15
7-day trend score
20

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 8 Sep 2026, 2 months ago.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/andreaswasita/copilot-agents-dojo/security-audit/badge)](https://verified-skill.com/skills/andreaswasita/copilot-agents-dojo/security-audit)

Something wrong with this skill or its page? Tell us.