Coder Social home page Coder Social logo

lawrence44r / codeql-workshops-staging Goto Github PK

View Code? Open in Web Editor NEW

This project forked from advanced-security/codeql-workshops-staging

0.0 0.0 0.0 13.27 MB

Original workshops and staging area for new ones

License: MIT License

Shell 20.87% Python 2.74% C 4.28% Emacs Lisp 0.04% Java 2.38% Go 1.93% CSS 5.46% Makefile 4.20% CodeQL 58.10%

codeql-workshops-staging's Introduction

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-4

csharp
├── codeql-workshop-csharp-unsafe-pointer-arithmetic.md
├── codeql-workshop-csharp-zipslip.md
└── top-down-vulnerability-guide.md

go
├── codeql-go-sqli
├── codeql-workshop-go-bad-redirect-check.md
├── oauth2-notes.org


java
├── 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, beginner 

python
└── 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 and here for VS Code

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

codeql-workshops-staging's People

Contributors

hohn avatar s-samadi avatar knewbury01 avatar adityasharad avatar jeongsoolee09 avatar rvermeulen avatar mbaluda avatar xavierxmorris avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.