• Stars
    star
    786
  • Rank 57,890 (Top 2 %)
  • Language
    Solidity
  • License
    Other
  • Created almost 5 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Semgrep rules registry

semgrep-rules

powered by semgrep Semgrep 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. There are many more rules available in the Semgrep Registry written by Semgrep, Inc. and other contributors. The Semgrep Registry includes rules from this repository and additional rules that are accessible within Semgrep Cloud Platform. If there is a specific rule you are looking for, see the Semgrep registry search. 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! When you submit your contribution to the semgrep-rules repository we’ll ask you to make Semgrep, Inc. a joint owner of your contributions. While you still own copyright rights to your rule, joint ownership allows Semgrep, Inc. to license these contributions to other Semgrep Registry users pursuant to the LGPL 2.1 under the Commons Clause. See full license details.

Note: To contribute, review the Contributing to Semgrep rules documentation.

You can also contact us at [email protected] 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 [email protected].

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 [email protected].

More Repositories

1

semgrep

Lightweight static analysis for many languages. Find bug variants with patterns that look like source code.
OCaml
10,551
star
2

pfff

pfff is mainly an OCaml API to write static analysis, dynamic analysis, code visualizations, code navigations, or style-preserving source-to-source transformations such as refactorings on source code.
186
star
3

semgrep-action

This project is deprecated. Use https://github.com/returntocorp/semgrep instead
Python
73
star
4

semgrep-vscode

Semgrep extension for Visual Studio Code
TypeScript
53
star
5

semgrep-docs

Documentation of Semgrep: a fast, open-source, static analysis tool.
MDX
37
star
6

ocaml-tree-sitter-core

OCaml code generator and runtime library for handling typed tree-sitter CSTs
OCaml
20
star
7

semgrep-interfaces

Store the ATD/openapi/protobuf/... interfaces between semgrep components
OCaml
16
star
8

testo

Test framework for OCaml
OCaml
16
star
9

preflight-extension

[deprecated] Your GitHub Copilot
TypeScript
14
star
10

little-learner-ocaml

OCaml
14
star
11

poetry-codeartifact-plugin

A Poetry plugin for interfacing with CodeArtifact repositories
Python
14
star
12

semgrep.vim

Semgrep external checker for Syntastic
Vim Script
13
star
13

sexp-fmt

Basic S-expression formatter
OCaml
13
star
14

semgrepl

A REPL for semgrep
Python
7
star
15

java-xxe-research

Java
7
star
16

cards-against-appsec

Cards Against AppSec - A Party Game for Horrible AppSec People
6
star
17

semgrep-network-broker

Facilitates network access between Semgrep and on-prem resources
Go
6
star
18

ocaml-tree-sitter-languages

Generate OCaml parsers from tree-sitter parsers
Go
5
star
19

semgrep-ocaml

generated ocaml parser for semgrep
C
5
star
20

ocaml-tree-sitter-semgrep

Generate parsers from tree-sitter grammars extended to support Semgrep patterns
Move
4
star
21

semgrep-pro-tests

example test cases for DeepSemgrep
Java
4
star
22

bento-report

Security reports using r2c's Bento program-analysis tool
Python
3
star
23

semgrep-intellij

Kotlin
3
star
24

ocaml-tree-sitter-lang

Generated C/OCaml parsers for multiple programming languages
C
3
star
25

semgrep-langs

Describes language data
3
star
26

semgrep-rust

generated rust parser for semgrep
C
3
star
27

semgrep-cpp

generated C++ parser for semgrep
C
3
star
28

bento-action

Shell
3
star
29

TIP-ocaml

Tiny Imperative Language, implemenented in OCaml, see https://cs.au.dk/~amoeller/spa/
OCaml
3
star
30

pre-commit-ocaml

Pre-commit hooks for OCaml code
OCaml
3
star
31

semgrep-c-sharp

generated C# parser for semgrep
C
3
star
32

intro-to-semgrep-template

TypeScript
2
star
33

homebrew-semgrep

Homebrew Recipes for Semgrep
Ruby
2
star
34

semgrep-ruby

generated ruby parser for semgrep
C
2
star
35

semgrep-tsx

generated TSX parser for semgrep
C
2
star
36

semgrep-elixir

generated Elixir parser for semgrep
C
2
star
37

semgrep-kotlin

generated kotlin parser for semgrep
C
2
star
38

semgrep-jsonnet

generated Jsonnet parser for semgrep
C
2
star
39

semgrep-go

generated go (golang) parser for semgrep
C
2
star
40

project-reason-tree-sitter

project for program analysis candidates
Reason
2
star
41

semgrep-hack

generated hack (hacklang) parser for semgrep
C
2
star
42

semgrep-dart

generated Dart parser for semgrep
C
2
star
43

semgrep-rules-test-action

Run tests for semgrep-rules repositories
Shell
2
star
44

ocaml-tree-sitter-javascript

generated JavaScript parser
C
2
star
45

supersemgrep

Python
2
star
46

semgrep-swift

generated Swift parser for semgrep
C
2
star
47

semgrep-javascript

generated javascript parser for semgrep
C
2
star
48

semgrep-grammars

Extensions of public tree-sitter grammars used by semgrep
JavaScript
1
star
49

ocaml-tree-sitter-go

generated Go parser
C
1
star
50

semgrep-clojure

generated Clojure parser for semgrep
C
1
star
51

ocaml-tree-sitter-java

generated Java parser
C
1
star
52

ocaml-tree-sitter-typescript

generated TypeScript parser
C
1
star
53

semgrep-hcl

generated HCL parser for semgrep
C
1
star
54

external_netflix_titus-control-plane

Java
1
star
55

semgrep-lua

generated lua parser for semgrep
C
1
star
56

ocaml-tree-sitter-c-sharp

generated C# parser
C
1
star
57

semgrep-c

generated C parser for semgrep
C
1
star
58

ocaml-tree-sitter-ocaml

generated OCaml parser
C
1
star
59

ocaml-tree-sitter-ruby

generated Ruby parser
C
1
star
60

ocaml-tree-sitter-tsx

generated TSX parser
C
1
star
61

tree-sitter-scala-r2c

A fork of tree-sitter-scala for r2c
JavaScript
1
star
62

ocaml-tree-sitter-r

generated R parser
C
1
star
63

semgrep-r

generated R parser for semgrep
C
1
star
64

sgrep-build-docker

Dockerfile
1
star
65

tree-sitter-guidelines

tree-sitter contribution guidelines
Makefile
1
star
66

ocaml-tree-sitter-c

generated C parser
C
1
star
67

semgrep-typescript

generated TypeScript parser for semgrep
C
1
star
68

ocaml-tree-sitter-lua

generated Lua parser
C
1
star
69

workshops

1
star
70

ocaml-tree-sitter-kotlin

generated Kotlin parser
C
1
star
71

semgrep-haskell

C
1
star
72

ocaml-tree-sitter-rust

generated Rust parser
C
1
star
73

semgrep-java

generated java parser for semgrep
C
1
star
74

pre-commit

Pre-commit hooks to run Semgrep
Shell
1
star