AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

codeql

Scans a codebase for security vulnerabilities using CodeQL's interprocedural data flow and taint tracking analysis. Triggers on "run codeql", "codeql scan", "build codeql database", "SAST scan", "taint analysis", "dataflow analysis", or "find vulnerabilities in this repo". Covers Python, JavaScript/TypeScript, Go, Java/Kotlin, C/C++, C#, Ruby, and Swift. Supports "run all" (security-and-quality + security-experimental) and "important only" (high-precision) scan modes, and creates data extension models for project-specific sources and sinks. For fast single-file pattern matching, or when no build is available for a compiled language, use the semgrep skill; to parse SARIF that already exists rather than produce it, use the sarif-parsing skill.

Original source
trailofbits
License
CC-BY-SA-4.0
Pinned revision
2be6433b39e009cd2b6fd3be1895f6b1faa5af9a

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

This skill also requires local files or dependencies. Remote reading alone may not be enough.

Ask your assistant

Use Agentic Memory skills to read trailofbits--codeql at revision 2be6433b39e009cd2b6fd3be1895f6b1faa5af9a, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 16

references/ruleset-catalog.md

Ruleset Catalog

Official CodeQL Suites

| Suite | False Positives | Use Case | |-------|-----------------|----------| | security-extended | Low | Default - Security audits | | security-and-quality | Medium | Comprehensive review (stable security + code quality) | | security-experimental | Higher | Research, vulnerability hunting (stable security + experimental security) |

Suite hierarchy: security-and-quality and security-experimental are complementary. security-and-quality excludes experimental/ query paths. security-experimental includes them but excludes code quality queries. For maximum coverage (run-all mode), import both.

Usage: codeql/<lang>-queries:codeql-suites/<lang>-security-extended.qls

Languages: cpp, csharp, go, java, javascript, python, ruby, swift


Trail of Bits Packs

| Pack | Language | Focus | |------|----------|-------| | trailofbits/cpp-queries | C/C++ | Memory safety, integer overflows | | trailofbits/go-queries | Go | Concurrency, error handling | | trailofbits/java-queries | Java | Security, code quality |

Install:

codeql pack download trailofbits/cpp-queries
codeql pack download trailofbits/go-queries
codeql pack download trailofbits/java-queries

CodeQL Community Packs

| Pack | Language | |------|----------| | GitHubSecurityLab/CodeQL-Community-Packs-JavaScript | JavaScript/TypeScript | | GitHubSecurityLab/CodeQL-Community-Packs-Python | Python | | GitHubSecurityLab/CodeQL-Community-Packs-Go | Go | | GitHubSecurityLab/CodeQL-Community-Packs-Java | Java | | GitHubSecurityLab/CodeQL-Community-Packs-CPP | C/C++ | | GitHubSecurityLab/CodeQL-Community-Packs-CSharp | C# | | GitHubSecurityLab/CodeQL-Community-Packs-Ruby | Ruby |

Install:

codeql pack download GitHubSecurityLab/CodeQL-Community-Packs-<Lang>

Source: github.com/GitHubSecurityLab/CodeQL-Community-Packs


Verify Installation

# List all installed packs
codeql resolve qlpacks

# Check specific packs
codeql resolve qlpacks | grep -E "(trailofbits|GitHubSecurityLab)"