Bounties

To reward and incentivize contributions from the open source community, GitHub Security Lab is launching a bounty program. We pay bounties for new vulnerabilities you find in open source software using CodeQL.

The Bug Slayer (discover a new vulnerability)

Write a new CodeQL query that finds multiple vulnerabilities in open source software.

How to participate

  1. Write a CodeQL query that models a vulnerability you’re interested in.
  2. Run your query on popular open source software and find at least four vulnerabilities, preferably across multiple projects.
  3. Report the vulnerabilities to the projects' maintainers, help them fix them, and have them obtain CVEs for each one. Remember that for most open source projects, maintainers can now get a CVE directly from GitHub via Security Advisories. To be eligible for a bounty, you must first coordinate disclosure of the vulnerabilities with the maintainers of the projects.
  4. Open a pull request in the security-lab repo with a single CodeQL query. See the contribution guidelines for more details.
  5. Create an issue using the bug slayer template. The issue should link to your pull request and contain a detailed report of the vulnerabilities your query finds. It should include a description of the vulnerabilities, their associated CVEs, and how the query allowed you to find them. Pull requests without an accompanying issue cannot be considered.
  6. An award of up to $2500 USD will be granted. We consider the impact and risk associated with the vulnerability and the quality of your query when determining the award amount.

All for one, one for all (add a new default query)

Write a CodeQL query that is added to the CodeQL default queryset. Such queries must identify a class of vulnerabilities (often linked to a CWE) with a high precision (i.e., a low false positive rate).

How to participate

  1. Write a CodeQL query that models a vulnerability class not currently covered by the current default queries, using the contribution guidelines in the CodeQL repo.
  2. Before requesting a bounty, you should first coordinate disclosure of any vulnerabilities that you are aware of with the maintainers of the affected projects.
  3. Open a pull request in the official query repo with a single CodeQL query.
  4. Create an issue using the all for one template and a detailed report on the class of vulnerabilities your query is intended to find. Pull requests without an accompanying issue cannot be considered. The issue should also include details of any vulnerabilities that you found with the query. Don't create an issue until the coordinated disclosure process for those vulnerabilities is complete, because the issue will be publicly visible.
  5. Work with the CodeQL team to verify the quality of your query, especially its false positive ratio. We will assess if the query meets the standards to be included in the "out of the box" CodeQL query pack, or whether improvements are required.
  6. Once your pull request is merged and your query is included in the default queryset, open a bug bounty issue here referencing your CodeQL query pull request.
  7. An award of up to $3000 USD will be granted. We consider the impact and risk associated with the vulnerability and the quality of your query and documentation when determining the award amount.

FAQ

How does GitHub determine the amount of a bounty award?

The GitHub Security Lab and CodeQL teams consider the following factors when setting a bounty award:

  • The complexity of the vulnerabilities
  • The severity of the vulnerabilities
  • The prevalence of the vulnerabilities: the number of impacted users and systems
  • The performance and reliability of the query: its false positive rate
  • The documentation of the query
  • Whether you produce a blog post / write-up about the vulnerabilities and query to help share your experience

We welcome all query submissions and are happy to provide feedback on submissions.

What if I do not want my submission published on the bounty website or do not have a GitHub account?

You can contact us via a DM on Twitter @GHSecurityLab. We will keep your name anonymous but the details of the report and the query will be public, subject to our coordinated disclosure policy.