GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - trailofbits/codeql-queries: CodeQL queries developed by Trail of Bits

BranchesTags
Open more actions menu

Latest commit

 

History

140 Commits
140 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
cpp
cpp
 
 
doc
doc
 
 
go
go
 
 
java
java
 
 
scripts
scripts
 
 
.codeqlmanifest.json
.codeqlmanifest.json
 
 
.git-blame-ignore-revs
.git-blame-ignore-revs
 
 
.gitignore
.gitignore
 
 
CLAUDE.md
CLAUDE.md
 
 
CODEOWNERS
CODEOWNERS
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 

Repository files navigation

Trail of Bits public CodeQL queries

This repository contains CodeQL queries developed by Trail of Bits and made available to the public. They are part of our ongoing development efforts and are used in our security audits, vulnerability research, and internal projects. They will evolve over time as we identify new techniques.

Setup

make download
codeql resolve packs | grep trailofbits

See QUERIES.md for the full list of queries.

Usage

codeql database analyze database.db --format=sarif-latest --output=./tob.sarif -- trailofbits/cpp-queries
codeql database analyze database.db --format=sarif-latest --output=./tob.sarif -- trailofbits/go-queries
codeql database analyze database.db --format=sarif-latest --output=./tob.sarif -- trailofbits/java-queries

Query suites

CodeQL queries are grouped into suites. To execute queries from a specific suite add its name after a colon: trailofbits/cpp-queries:codeql-suites/tob-cpp-full.qls.

The recommended suite - tob-cpp-code-scanning.qls - is chosen and executed when you do not explicitly specify any suite. Other suites in this repository are:

  • tob-<lang>-crypto.qls - queries targeting cryptographic vulnerabilities
  • tob-<lang>-security.qls - queries targeting standard security issues
  • tob-<lang>-full.qls - all queries, including experimental ones

Development

Prepare environment

Configure global CodeQL's search path:

git clone https://github.com/trailofbits/codeql-queries
mkdir -p "${HOME}/.config/codeql/"
echo "--search-path '$PWD/codeql-queries'" > "${HOME}/.config/codeql/config"

cd codeql-queries/
make pack-install

codeql resolve packs | grep trailofbits

Before committing

make pack-upgrade
make test format
make generate-table generate-help

Release

  1. Ensure all qlpack.yml files have the correct version.

    ./scripts/update-version.sh <version>
  2. Create a release on GitHub, create a new tag, and autogenerate release notes.

About

CodeQL queries developed by Trail of Bits

Resources

Readme
AGPL-3.0 license

Security policy

Security policy
Activity
Custom properties

Stars

179 stars

Watchers

11 watching

Forks

12 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.