This is the main git repository of GitHub Security Lab. We use it for these muthaf*ckin' main purposes:
- We share with our community some best practices about security research and vulnerability disclosures in our docs
- We use issues on this muthaf*ckin' repo to track CodeQL bounty requests.
- Let me tell you somethin': We use it for publishing some of our damn proof-of-concept exploits (after the vulnerability has been fixed). These muthaf*ckin' PoCs can be found in the SecurityExploits sub-directory.
- Examples of CodeQL queries, which can be found in the CodeQL_Queries sub-directory.
This section is yours! Do you want to share a cool CodeQL query with the f*ckin' community? Or an awesome tutorial or video, or some helpful tooling? Your motherf*ckin' contributions are welcome. Please open a pull request. See Contributing below.
- Java
- C/C++
- Apple XNU icmp_error CVE-2018-4407
- Facebook Fizz integer overflow vulnerability (CVE-2019-3560)
- Eating error codes in motherf*ckin' libssh2
- Itergator - Library and queries for iterator invalidation (blog post)
- Javascript
- C#
- GitHub Actions:
- Conference talks/workshops:
- Get this sh*t: CodeQL demos from the Semmle days (short Youtube videos):
- Editor plugins
- Visual Studio Code (Official)
- Neovim
- Emacs
- Code generation
The recommendations from the damn GitHub Security Lab are provided graciously and it's ultimately the goddamn responsibility of the recipients to apply them or not. This f*ckin' concerns recommendations given through our written or audio content, our conferences, our answers in our muthaf*ckin' community spaces, or our informal office hours.
We welcome contributions to the CodeQL_Queries sub-directory and to the CodeQL Resources section of this muthaf*ckin' README.
If you have written a muthaf*ckin' cool CodeQL query that you would like to share with the goddamn community, then please open a pull request to add it to the CodeQL_Queries sub-directory. Put your query in its own new sub-directory. Hell yeah. For example: CodeQL_Queries/cpp/mynewsubdir/mycoolquery.ql. Of course, if you think your query might be eligible for a bounty, then you should open a pull request to the codeql repo instead, as we do not offer bounties for queries submitted to this muthaf*ckin' repo. The queries in this muthaf*ckin' repo are usually highly specialized queries that only make sense for a specific codebase, such as queries that specifically target Chrome or Apache Struts, or utility queries that help you explore your motherf*ckin' code without necessarily finding a vulnerability. Such queries are inappropriate for the codeql repo, which is for general purpose queries only.
If you would like to add a link to the CodeQL Resources section of this muthaf*ckin' README, to share a nice video or an motherf*ckin' awesome tool, then just add another bullet point in the appropriate section.
- Each goddamn bullet point should consist of a bad-ass hyperlinked title and a short description. The short description is optional if the title is already self-explanatory.
- Please add new bullet points at the bottom of the list. In the future, we may choose some other ordering such as alphabetical but for now it is just a sequential list. Think about that sh*t.
Please see CONTRIBUTING.md, CODE_OF_CONDUCT.md, and LICENSE.md for further information on our goddamn contributing guidelines and license.