https://github.com/advanced-security/codeql-workshops-staging
Original workshops and staging area for new ones
https://github.com/advanced-security/codeql-workshops-staging
Last synced: 2 months ago
JSON representation
Original workshops and staging area for new ones
- Host: GitHub
- URL: https://github.com/advanced-security/codeql-workshops-staging
- Owner: advanced-security
- License: mit
- Created: 2022-08-16T03:22:26.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-15T05:22:14.000Z (7 months ago)
- Last Synced: 2025-01-10T00:15:08.497Z (4 months ago)
- Language: CodeQL
- Homepage:
- Size: 13.3 MB
- Stars: 12
- Watchers: 2
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Introduction
This directory contains material for teaching/learning CodeQL. It supplements
the more general introductory material and the reference material by presenting
full solutions for specific problems.The presentations are split by the programming language they present, currently
c++, csharp, go, java and javascript.The directory structure for all recent additions is
language/project/content
Some older workshops are in single files, with directory structure
language/project
The difficulty of these projects varies. Further, some purely cover CodeQL
programming using an existing database while others include use of the command
line to create a database from code.As a rough guide:
```
cpp
├── codeql-dataflow-sql-injection
├── codeql-workshop-cpp-bad-overflow-check.md
└── introduction
├── codeql-workshop-for-cpp.md
├── session-1
├── session-2
├── session-3
└── session-4csharp
├── codeql-workshop-csharp-unsafe-pointer-arithmetic.md
├── codeql-workshop-csharp-zipslip.md
└── top-down-vulnerability-guide.mdgo
├── codeql-go-sqli
├── codeql-workshop-go-bad-redirect-check.md
├── oauth2-notes.orgjava
├── Introduction\ to\ CodeQL\ -\ Java.pdf | slide presentation
├── codeql-java-workshop-notes.md | notes for presentation
├── apache-struts-online.txt |
├── codeql-dataflow-sql-injection/ | full example, beginner, db build, source build
├── codeql-java-workshop-sqlinjection.md | sql injection OWASP Security Shepherd
├── java-unsafe-deserialization.md | lecture notes
├── unsafe-deserialization-apache-struts.md | unsafe deserialization, compact, intermediate, db build
└── workshop-java-mismatched-loop-condition.md |javascript
├── codeql-js-goof-workshop | Full example illustrating all the steps, beginner, db build, source build
├── codeql-workshop-javascript-unsafe-jquery-calls.md | pure codeql, beginnerpython
└── codeql-dataflow-sql-injection | Full example, beginner, db build, source build
```# Status & Roadmap
These are actively developed and used workshops and are subject to editorial changes at any time. We are planning to add
intermediate and advanced material as time permits.# Setup and running
Currently all projects require installing VS Code and the CodeQL extension. They can
be run on linux, macOS, and Windows. Some additionally require the CodeQL command
line tools. See the individual project's instructions, or
[here for the cli](./common/cli-for-codeql.org) and
[here for VS Code](./common/vscode-for-codeql.org)# Contributing
New tutorials should use the `language/project/content` structure to allow for
expansion.This is a **staging** area, so the rules are relaxed:
- If you have bare content that you have used, it's good enough.
- If you have a writeup that you think you will use, it's good enough.
- Err on the side of too little content; maybe someone else will use it as a starting point.
- Don't wait for PR's when you're adding new content, or making minor changes.While evolving content, the goal should be learning and explaining CodeQL and
the content should eventually cover these items:
1. A high-level problem description
2. The specific parts of the original source code to be analyzed
3. Descriptions of the CodeQL predicates/classes developed
4. A description of the final query