ai-ml-attacks
This skill should be used when the user asks about "AI security", "ML pipeline attacks", "prompt injection", "model…
This skill should be used when the user asks about "Code Property Graph", "CPG analysis", "Joern queries", "CPGQL", "data flow verification", "taint tracking with Joern", "semantic code analysis", or needs to understand how CPG-based verification works for vulnerability
Claude Code
$ npx -y skills add allsmog/vuln-scout --skill cpg-analysis --agent claude-code
Codex
$ npx skills add allsmog/vuln-scout --skill cpg-analysis -a codex -y
Cursor
$ npx skills add allsmog/vuln-scout --skill cpg-analysis -a cursor -y
Gemini CLI
$ npx skills add allsmog/vuln-scout --skill cpg-analysis -a gemini-cli -y
GitHub Copilot
$ npx skills add allsmog/vuln-scout --skill cpg-analysis -a github-copilot -y
OpenCode
$ npx skills add allsmog/vuln-scout --skill cpg-analysis -a opencode -y
Windsurf
$ npx skills add allsmog/vuln-scout --skill cpg-analysis -a windsurf -y
name: cpg-analysis description: This skill should be used when the user asks about "Code Property Graph", "CPG analysis", "Joern queries", "CPGQL", "data flow verification", "taint tracking with Joern", "semantic code analysis", or needs to understand how CPG-based verification works for vulnerability detection. version: 1.0.0
A Code Property Graph (CPG) is a unified data structure that combines three representations of code:
1. **Abstract Syntax Tree (AST)** - Structural representation 2. **Control Flow Graph (CFG)** - Execution paths 3. **Program Dependence Graph (PDG)** - Data and control dependencies
This combination enables powerful semantic queries that pattern-matching tools cannot achieve.
| Approach | Use When | Example | |----------|----------|---------| | **Pattern Matching** (Semgrep) | Known vulnerability patterns, syntax-level issues | Finding dynamic code execution calls | | **CPG Analysis** (Joern) | Data flow tracking, cross-function analysis | Proving request input reaches database query through 5 functions |
**Rule of thumb**: Use CPG when you need to prove data flows between points, especially across function boundaries.
Joern is the primary tool for CPG analysis. It:
# 1. Parse codebase into CPG
joern-parse /path/to/code --output cpg.bin
# 2. Start Joern REPL or run scripts
joern --script analysis.sc --params cpgFile=cpg.bin
# 3. Or use Joern REPL interactively
joern
> importCpg("cpg.bin")
> cpg.method.name(".*login.*").lCPGQL uses Scala syntax with CPG-specific operations.
**Nodes**: Represent code elements
**Traversals**: Navigate the graph
**Data Flow**: Track how data moves
**Find all calls to a function:**
cpg.call.name("query").l**Find parameters that reach dangerous sinks:**
val sources = cpg.parameter.name("req.*|request.*")
val sinks = cpg.call.name("query|execute|run")
sinks.argument.reachableBy(sources).l**Get full data flow paths:**
val sources = cpg.parameter.name("userInput")
val sinks = cpg.call.name("executeQuery")
sinks.argument.reachableByFlows(sources).pAfter CPG verification:
| Verification Result | Confidence | Meaning | |---------------------|------------|---------| | Data flow confirmed | HIGH (0.9+) | CPG proves exploitability | | Partial flow found | MEDIUM (0.6-0.9) | Some path exists, manual review needed | | No flow found | LOW (0.3-0.6) | May be false positive or complex flow | | Verification failed | UNKNOWN | Query error, manual analysis required |
AI-powered whitebox penetration testing plugin for Claude Code. 9 languages, 22 skills, 7 autonomous agents. STRIDE threat modeling, OWASP 2025 coverage, polyglot monorepo support.
This skill should be used when the user asks about "AI security", "ML pipeline attacks", "prompt injection", "model…
This skill should be used when the user asks about "business logic", "workflow vulnerability", "trust boundary", "state machine",…
This skill should be used when the user asks about "cache poisoning", "web cache deception", "CDN cache", "proxy cache", "nginx…
This skill should be used when the user asks about "cloud security", "AWS security", "GCP security", "Azure security",…
This skill should be used when the user asks about "compliance mapping", "PCI-DSS", "HIPAA", "SOC 2", "NIST CSF", "regulatory…
This skill should be used when analyzing multi-service architectures, frontend-backend interactions, microservices, or when…
Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…
Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys)…
Clean and finalize authorized natural-language text intended for readers by auditing suspicious invisible Unicode and rewriting…