zorroroot / semgrep-rules

Semgrep rules registry

Home Page:https://semgrep.dev/registry

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

semgrep-rules

powered by semgrep r2c community slack

branch using semgrep docker image test status
develop returntocorp/semgrep:develop semgrep-rules-test-develop

Welcome! This repository is the standard library for Semgrep rules, but there are many more written by r2c and other contributors available in the Semgrep Registry. If there is a specific rule you are looking for, you can also search the Semgrep registry. To contribute, find details about contributing in the Contributing to Semgrep rules documentation.

Using Semgrep rules repository

Run existing and custom Semgrep rules locally with the Semgrep command line interface (Semgrep CLI) or continuously with Semgrep in CI while using Semgrep App. To start using Semgrep rules, see Semgrep tutorial, Getting started with Semgrep CLI, and Getting started with Semgrep App.

Contributing

We welcome Semgrep rule contributions directly to this repository! If you are submitting to the semgrep-rules repository we’ll ask you to make r2c a joint owner of your contributions. While you still own copyright rights to your rule, joint ownership allows r2c to license these contributions to other Semgrep Registry users pursuant to the LGPL 2.1 under the Commons Clause. Full license details here.

:::info To contribute, find details about contributing in the Contributing to Semgrep rules documentation. :::

You can also contact us at support@r2c.dev to make Semgrep rule contributions. We will import your rules for everyone to use!

Additional information

Help

Join Slack for the fastest answers to your questions! Or contact the team at support@r2c.dev.

GitHub action to run tests

If you fork this repository or create your own, you can add a special semgrep -rules-test GitHub Action to your workflow that will automatically test your rules using the latest version of Semgrep. See our semgrep-rules-test.

Rulesets

Rulesets are groups of rules organized by purpose, language, or framework sourced from the Semgrep Registry. If you want to modify existing rulesets or create your own, please contact us at support@r2c.dev.

About

Semgrep rules registry

https://semgrep.dev/registry

License:Other


Languages

Language:HCL 20.5%Language:Python 19.2%Language:Java 18.0%Language:JavaScript 12.6%Language:PHP 7.1%Language:Go 6.1%Language:Ruby 3.7%Language:C# 3.5%Language:TypeScript 2.6%Language:HTML 1.6%Language:Scala 1.4%Language:Dockerfile 0.9%Language:Kotlin 0.7%Language:Mustache 0.5%Language:C 0.4%Language:EJS 0.3%Language:Shell 0.2%Language:Pug 0.2%Language:OCaml 0.2%Language:Blade 0.2%Language:Makefile 0.0%Language:Bicep 0.0%Language:Vue 0.0%