codeql

Scans codebases for security vulnerabilities using CodeQL data flow and taint tracking analysis.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/Ayoub-ouederni/SENTINEL --skill codeql-ayoub-ouederni
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codeql
Source: https://github.com/Ayoub-ouederni/SENTINEL/tree/main/.claude/skills/codeql
Command: npx skills add https://github.com/Ayoub-ouederni/SENTINEL --skill codeql-ayoub-ouederni

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Finding deep security vulnerabilities like SQL injection, command injection, and path traversal requires interprocedural data flow analysis that simple pattern matching cannot provide, and misconfigured CodeQL runs silently produce empty or low-quality results. ## Core Features & Use Cases - Database Building: Creates CodeQL databases for Python, JavaScript/TypeScript, Go, Java/Kotlin, C/C++, C#, Ruby, and Swift, with sequential build methods and macOS Apple Silicon workarounds. - Data Extension Generation: Detects project-specific sources, sinks, and taint wrappers that CodeQL does not model, then generates YAML extension files to close coverage gaps. - Two Scan Modes: Run-all mode (security-and-quality plus security-experimental suites) and important-only mode (high-precision findings with severity filtering of SARIF output). - Use Case: Point the skill at a repository and ask for a full security scan; it builds the database, assesses extraction quality, creates data extensions for custom APIs, runs the analysis, and delivers filtered SARIF results. ## Quick Start Ask the assistant to run a CodeQL security scan on this codebase and report the high-confidence vulnerabilities.

Frequently Asked Questions about codeql

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan a codebase for vulnerabilities with CodeQL?

Build a CodeQL database from the source tree, then run security query suites against it with codeql database analyze. This skill automates the full pipeline: database creation, data extension generation, suite selection, and SARIF result processing.

What languages does CodeQL analysis support?

CodeQL supports Python, JavaScript, TypeScript, Go, Java, Kotlin, C, C++, C#, Ruby, and Swift. Interpreted languages need no build step, while compiled languages require build tracing for complete extraction.

Why does my CodeQL scan return zero findings?

Zero findings usually indicate poor database quality, missing source and sink models, or silent filtering from a pack's default suite. Check baseline lines of code, extractor error rates, and always use an explicit .qls suite file instead of passing pack names directly.

Why does CodeQL database creation fail on macOS Apple Silicon?

Exit code 137 on Apple Silicon is caused by an arm64e/arm64 mismatch between system tools and CodeQL's libtrace.dylib, not a real build failure. Use a Homebrew arm64 toolchain with multi-step tracing or run under Rosetta x86_64 emulation.

When should I use Semgrep instead of CodeQL?

Use Semgrep for quick pattern searches, single-file checks, or when you cannot build compiled code. CodeQL is better for deep interprocedural taint tracking and comprehensive multi-pack security audits.