Skip to content

Add sample synthetic suites #107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions suites/synthetics-cpp.qls
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Use this query suite when looking to get the broadest coverage of security results from the CodeQL Built in packs and the GitHub Security Lab Community packs.
# WARNING: A notable amount of false positives may be found in this configuration. If you wish to reduce the number of false positives, use the default codeql suites :)
# NOTE: This suite will not include audit level queries intended for gathering information about the codebase, and debugging queries intended for CodeQL developers.
# NOTE: A suite cannot exclude directories from the scan. Consider pairing with a codeql-config.yml that excludes unwanted folders with `paths-ignore`
# NOTE: A suite cannot include library packs that contain data extensions. Consider pairing with a codeql-config.yml that includes needed data models.

# Run the following pack install commands to prime your workspace or run the analyze command using `--download` flag
#codeql pack download codeql/cpp-queries
#codeql pack download githubsecuritylab/codeql-cpp-queries
#codeql pack download trailofbits/cpp-queries

# All queries from CodeQL built in query packs
- queries: '.'
from: codeql/cpp-queries

# Curated packs from community repos

### GitHub Security Lab ###
# Queries via Community Packs https://github.com/GitHubSecurityLab/CodeQL-Community-Packs (NOTE: the default suites do not include audit/debugging queries)
- qlpack: githubsecuritylab/codeql-cpp-queries

### Trail of Bits ###
# Queries via packs: https://github.com/trailofbits/codeql-queries (default suites include security + crypto)
- qlpack: trailofbits/cpp-queries

- include:
kind:
- problem
- path-problem
tags contain:
- security
- include:
kind:
- diagnostic
- include:
kind:
- metric
tags contain:
- summary
- exclude:
deprecated: //
- exclude:
query path:
# REMOVE exclude - OK even if they exist in experimental folder
#- /^experimental\/.*/
- Metrics/Summaries/FrameworkCoverage.ql
- /Diagnostics/Internal/.*/
- exclude:
tags contain:
- modeleditor
- modelgenerator
# Exclude audit queries from the CodeQL Built in packs
- exclude:
id:
- cpp/untrusted-data-to-external-api
# Remove debugging, and audit queries used by community packs (this is duplicative of the default suites from those community packs)
- exclude:
tags contain:
- debugging
- audit
56 changes: 56 additions & 0 deletions suites/synthetics-csharp.qls
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Use this query suite when looking to get the broadest coverage of security results from the CodeQL Built in packs and the GitHub Security Lab Community packs.
# WARNING: A notable amount of false positives may be found in this configuration. If you wish to reduce the number of false positives, use the default codeql suites :)
# NOTE: This suite will not include audit level queries intended for gathering information about the codebase, and debugging queries intended for CodeQL developers.
# NOTE: A suite cannot exclude directories from the scan. Consider pairing with a codeql-config.yml that excludes unwanted folders with `paths-ignore`
# NOTE: A suite cannot include library packs that contain data extensions. Consider pairing with a codeql-config.yml that includes needed data models.

# Run the following pack install commands to prime your workspace or run the analyze command using `--download` flag
#codeql pack download codeql/csharp-queries
#codeql pack download githubsecuritylab/codeql-csharp-queries

# All queries from CodeQL built in query packs
- queries: '.'
from: codeql/csharp-queries

# Curated packs from community repos

### GitHub Security Lab ###
# Queries via Community Packs https://github.com/GitHubSecurityLab/CodeQL-Community-Packs (NOTE: the default suites do not include audit/debugging queries)
- qlpack: githubsecuritylab/codeql-csharp-queries


- include:
kind:
- problem
- path-problem
tags contain:
- security
- include:
kind:
- diagnostic
- include:
kind:
- metric
tags contain:
- summary
- exclude:
deprecated: //
- exclude:
query path:
# REMOVE exclude - OK even if they exist in experimental folder
#- /^experimental\/.*/
- Metrics/Summaries/FrameworkCoverage.ql
- /Diagnostics/Internal/.*/
- exclude:
tags contain:
- modeleditor
- modelgenerator
# Exclude audit queries from the CodeQL Built in packs
- exclude:
id:
- csharp/untrusted-data-to-external-api
# Remove debugging, and audit queries used by community packs (this is duplicative of the default suites from those community packs)
- exclude:
tags contain:
- debugging
- audit
60 changes: 60 additions & 0 deletions suites/synthetics-go.qls
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Use this query suite when looking to get the broadest coverage of security results from the CodeQL Built in packs and the GitHub Security Lab Community packs.
# WARNING: A notable amount of false positives may be found in this configuration. If you wish to reduce the number of false positives, use the default codeql suites :)
# NOTE: This suite will not include audit level queries intended for gathering information about the codebase, and debugging queries intended for CodeQL developers.
# NOTE: A suite cannot exclude directories from the scan. Consider pairing with a codeql-config.yml that excludes unwanted folders with `paths-ignore`
# NOTE: A suite cannot include library packs that contain data extensions. Consider pairing with a codeql-config.yml that includes needed data models.

# Run the following pack install commands to prime your workspace or run the analyze command using `--download` flag
#codeql pack download codeql/go-queries
#codeql pack download githubsecuritylab/codeql-go-queries
#codeql pack download trailofbits/go-queries

# All queries from CodeQL built in query packs
- queries: '.'
from: codeql/go-queries

# Curated packs from community repos

### GitHub Security Lab ###
# Queries via Community Packs https://github.com/GitHubSecurityLab/CodeQL-Community-Packs (NOTE: the default suites do not include audit/debugging queries)
- qlpack: githubsecuritylab/codeql-go-queries

### Trail of Bits ###
# Queries via packs: https://github.com/trailofbits/codeql-queries (default suites include security + crypto)
- qlpack: trailofbits/go-queries

- include:
kind:
- problem
- path-problem
tags contain:
- security
- include:
kind:
- diagnostic
- include:
kind:
- metric
tags contain:
- summary
- exclude:
deprecated: //
- exclude:
query path:
# REMOVE exclude - OK even if they exist in experimental folder
#- /^experimental\/.*/
- Metrics/Summaries/FrameworkCoverage.ql
- /Diagnostics/Internal/.*/
- exclude:
tags contain:
- modeleditor
- modelgenerator
# Exclude audit queries from the CodeQL Built in packs
- exclude:
id:
- go/untrusted-data-to-external-api
# Remove debugging, and audit queries used by community packs (this is duplicative of the default suites from those community packs)
- exclude:
tags contain:
- debugging
- audit
59 changes: 59 additions & 0 deletions suites/synthetics-java.qls
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Use this query suite when looking to get the broadest coverage of security results from the CodeQL Built in packs and the GitHub Security Lab Community packs.
# WARNING: A notable amount of false positives may be found in this configuration. If you wish to reduce the number of false positives, use the default codeql suites :)
# NOTE: This suite will not include audit level queries intended for gathering information about the codebase, and debugging queries intended for CodeQL developers.
# NOTE: A suite cannot exclude directories from the scan. Consider pairing with a codeql-config.yml that excludes unwanted folders with `paths-ignore`
# NOTE: A suite cannot include library packs that contain data extensions. Consider pairing with a codeql-config.yml that includes needed data models.

# Run the following pack install commands to prime your workspace or run the analyze command using `--download` flag
#codeql pack download codeql/java-queries
#codeql pack download githubsecuritylab/codeql-java-queries

# All queries from CodeQL built in query packs
- queries: '.'
from: codeql/java-queries

# Curated packs from community repos

### GitHub Security Lab ###
# Queries via Community Packs https://github.com/GitHubSecurityLab/CodeQL-Community-Packs (NOTE: the default suites do not include audit/debugging queries)
- qlpack: githubsecuritylab/codeql-java-queries

# Queries via Community Packs that use local sources https://github.com/GitHubSecurityLab/CodeQL-Community-Packs
- qlpack: githubsecuritylab/codeql-java-queries:suites/java-local.qls


- include:
kind:
- problem
- path-problem
tags contain:
- security
- include:
kind:
- diagnostic
- include:
kind:
- metric
tags contain:
- summary
- exclude:
deprecated: //
- exclude:
query path:
# REMOVE exclude - OK even if they exist in experimental folder
#- /^experimental\/.*/
- Metrics/Summaries/FrameworkCoverage.ql
- /Diagnostics/Internal/.*/
- exclude:
tags contain:
- modeleditor
- modelgenerator
# Exclude audit queries from the CodeQL Built in packs
- exclude:
id:
- java/untrusted-data-to-external-api
# Remove debugging, and audit queries used by community packs (this is duplicative of the default suites from those community packs)
- exclude:
tags contain:
- debugging
- audit
56 changes: 56 additions & 0 deletions suites/synthetics-javascript.qls
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Use this query suite when looking to get the broadest coverage of security results from the CodeQL Built in packs and the GitHub Security Lab Community packs.
# WARNING: A notable amount of false positives may be found in this configuration. If you wish to reduce the number of false positives, use the default codeql suites :)
# NOTE: This suite will not include audit level queries intended for gathering information about the codebase, and debugging queries intended for CodeQL developers.
# NOTE: A suite cannot exclude directories from the scan. Consider pairing with a codeql-config.yml that excludes unwanted folders with `paths-ignore`
# NOTE: A suite cannot include library packs that contain data extensions. Consider pairing with a codeql-config.yml that includes needed data models.

# Run the following pack install commands to prime your workspace or run the analyze command using `--download` flag
#codeql pack download codeql/javascript-queries
#codeql pack download githubsecuritylab/codeql-javascript-queries

# All queries from CodeQL built in query packs
- queries: '.'
from: codeql/javascript-queries

# Curated packs from community repos

### GitHub Security Lab ###
# Queries via Community Packs https://github.com/GitHubSecurityLab/CodeQL-Community-Packs (NOTE: the default suites do not include audit/debugging queries)
- qlpack: githubsecuritylab/codeql-javascript-queries


- include:
kind:
- problem
- path-problem
tags contain:
- security
- include:
kind:
- diagnostic
- include:
kind:
- metric
tags contain:
- summary
- exclude:
deprecated: //
- exclude:
query path:
# REMOVE exclude - OK even if they exist in experimental folder
#- /^experimental\/.*/
- Metrics/Summaries/FrameworkCoverage.ql
- /Diagnostics/Internal/.*/
- exclude:
tags contain:
- modeleditor
- modelgenerator
# Exclude audit queries from the CodeQL Built in packs
- exclude:
id:
- javascript/untrusted-data-to-external-api
# Remove debugging, and audit queries used by community packs (this is duplicative of the default suites from those community packs)
- exclude:
tags contain:
- debugging
- audit
59 changes: 59 additions & 0 deletions suites/synthetics-python.qls
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Use this query suite when looking to get the broadest coverage of security results from the CodeQL Built in packs and the GitHub Security Lab Community packs.
# WARNING: A notable amount of false positives may be found in this configuration. If you wish to reduce the number of false positives, use the default codeql suites :)
# NOTE: This suite will not include audit level queries intended for gathering information about the codebase, and debugging queries intended for CodeQL developers.
# NOTE: A suite cannot exclude directories from the scan. Consider pairing with a codeql-config.yml that excludes unwanted folders with `paths-ignore`
# NOTE: A suite cannot include library packs that contain data extensions. Consider pairing with a codeql-config.yml that includes needed data models.

# Run the following pack install commands to prime your workspace or run the analyze command using `--download` flag
#codeql pack download codeql/python-queries
#codeql pack download githubsecuritylab/codeql-python-queries

# All queries from CodeQL built in query packs
- queries: '.'
from: codeql/python-queries

# Curated packs from community repos

### GitHub Security Lab ###
# Queries via Community Packs https://github.com/GitHubSecurityLab/CodeQL-Community-Packs (NOTE: the default suites do not include audit/debugging queries)
- qlpack: githubsecuritylab/codeql-python-queries

# Queries via Community Packs that use local sources https://github.com/GitHubSecurityLab/CodeQL-Community-Packs
- qlpack: githubsecuritylab/codeql-python-queries:suites/python-local.qls


- include:
kind:
- problem
- path-problem
tags contain:
- security
- include:
kind:
- diagnostic
- include:
kind:
- metric
tags contain:
- summary
- exclude:
deprecated: //
- exclude:
query path:
# REMOVE exclude - OK even if they exist in experimental folder
#- /^experimental\/.*/
- Metrics/Summaries/FrameworkCoverage.ql
- /Diagnostics/Internal/.*/
- exclude:
tags contain:
- modeleditor
- modelgenerator
# Exclude audit queries from the CodeQL Built in packs
- exclude:
id:
- python/untrusted-data-to-external-api
# Remove debugging, and audit queries used by community packs (this is duplicative of the default suites from those community packs)
- exclude:
tags contain:
- debugging
- audit
Loading