• Stars
    star
    707
  • Rank 61,594 (Top 2 %)
  • Language
    Solidity
  • License
    Other
  • Created over 4 years ago
  • Updated 12 days 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
9,758
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

bento

[DEPRECATED] Find Python web-app bugs delightfully fast, without changing your workflow. ๐Ÿฑ
Python
143
star
4

semgrep-action

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

semgrep-vscode

Semgrep extension for Visual Studio Code
TypeScript
52
star
6

semgrep-docs

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

testo

Test framework for OCaml
OCaml
15
star
8

preflight-extension

[deprecated] Your GitHub Copilot
TypeScript
14
star
9

little-learner-ocaml

OCaml
13
star
10

semgrep-interfaces

Store the ATD/openapi/protobuf/... interfaces between semgrep components
OCaml
13
star
11

semgrep.vim

Semgrep external checker for Syntastic
Vim Script
13
star
12

sexp-fmt

Basic S-expression formatter
OCaml
12
star
13

flake8-click

Flake8 plugin for detecting click best practices. See github.com/returntocorp/r2c-checks
Python
10
star
14

java-xxe-research

Java
8
star
15

poetry-codeartifact-plugin

A Poetry plugin for interfacing with CodeArtifact repositories
Python
8
star
16

semgrepl

A REPL for semgrep
Python
7
star
17

ocaml-tree-sitter-languages

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

semgrep-ocaml

generated ocaml parser for semgrep
C
5
star
19

semgrep-pro-tests

example test cases for DeepSemgrep
Java
4
star
20

bento-report

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

semgrep-intellij

Kotlin
3
star
22

ocaml-tree-sitter-lang

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

semgrep-langs

Describes language data
3
star
24

check_generic

OCaml
3
star
25

semgrep-cpp

generated C++ parser for semgrep
C
3
star
26

bento-action

Shell
3
star
27

TIP-ocaml

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

semgrep-network-broker

Facilitates network access between Semgrep and on-prem resources
Go
3
star
29

pre-commit-ocaml

Pre-commit hooks for OCaml code
OCaml
3
star
30

semgrep-c-sharp

generated C# parser for semgrep
C
3
star
31

intro-to-semgrep-template

TypeScript
2
star
32

inputset-generator

Generate input sets for analysis on the r2c platform
Python
2
star
33

homebrew-semgrep

Homebrew Recipes for Semgrep
Ruby
2
star
34

semgrep-rust

generated rust parser for semgrep
C
2
star
35

semgrep-ruby

generated ruby parser for semgrep
C
2
star
36

semgrep-tsx

generated TSX parser for semgrep
C
2
star
37

semgrep-elixir

generated Elixir parser for semgrep
C
2
star
38

semgrep-kotlin

generated kotlin parser for semgrep
C
2
star
39

semgrep-jsonnet

generated Jsonnet parser for semgrep
C
2
star
40

semgrep-go

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

project-reason-tree-sitter

project for program analysis candidates
Reason
2
star
42

semgrep-hack

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

semgrep-dart

generated Dart parser for semgrep
C
2
star
44

semgrep-rules-test-action

Run tests for semgrep-rules repositories
Shell
2
star
45

ocaml-tree-sitter-javascript

generated JavaScript parser
C
2
star
46

supersemgrep

Python
2
star
47

semgrep-swift

generated Swift parser for semgrep
C
2
star
48

semgrep-javascript

generated javascript parser for semgrep
C
2
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-typescript

generated TypeScript parser
C
1
star
52

ocaml-tree-sitter-java

generated Java parser
C
1
star
53

semgrep-hcl

generated HCL parser for semgrep
C
1
star
54

typed-ast-util

Helper library for writing and running typed-ast rules.
TypeScript
1
star
55

external_netflix_titus-control-plane

Java
1
star
56

ocaml-tree-sitter-ocaml

generated OCaml parser
C
1
star
57

semgrep-lua

generated lua parser for semgrep
C
1
star
58

ocaml-tree-sitter-c-sharp

generated C# parser
C
1
star
59

semgrep-c

generated C parser for semgrep
C
1
star
60

ocaml-tree-sitter-ruby

generated Ruby parser
C
1
star
61

ocaml-tree-sitter-semgrep

Generate parsers from tree-sitter grammars extended to support Semgrep patterns
JavaScript
1
star
62

ocaml-tree-sitter-core

OCaml code generator and runtime library for handling typed tree-sitter CSTs
OCaml
1
star
63

ocaml-tree-sitter-tsx

generated TSX parser
C
1
star
64

tree-sitter-scala-r2c

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

semgrep-r

generated R parser for semgrep
C
1
star
66

semgrep-grammars

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

ocaml-tree-sitter-r

generated R parser
C
1
star
68

bento-emacs

emacs integration for bento
Emacs Lisp
1
star
69

sgrep-build-docker

Dockerfile
1
star
70

tree-sitter-guidelines

tree-sitter contribution guidelines
Makefile
1
star
71

ocaml-tree-sitter-c

generated C parser
C
1
star
72

semgrep-typescript

generated TypeScript parser for semgrep
C
1
star
73

ocaml-tree-sitter-lua

generated Lua parser
C
1
star
74

workshops

1
star
75

ocaml-tree-sitter-rust

generated Rust parser
C
1
star
76

ocaml-tree-sitter-kotlin

generated Kotlin parser
C
1
star
77

semgrep-haskell

C
1
star
78

semgrep-java

generated java parser for semgrep
C
1
star