Giter Site home page Giter Site logo

semgrepper's Introduction

▶️ Semgrepper

The current project provides a Burp Suite extension to allow users to include Semgrep results to extend the checks in use by the passive scanner. By visiting repositories that collect Semgrep rules, it is possible to verify the large number of rules related to the front-end environment written by the community, such as: https://github.com/returntocorp/semgrep-rules/tree/develop/javascript.

By using this plugin, Burp Suite users can include the Semgrep rules YAML files and define the scope of the analysis, as shown in the following screenshot:

semgrepper2

Main features

This is what Semgrepper implements:
   ✔️ multiple tabs to use different Semgrep rules with different scopes
   ✔️ select files or directories containing Semgrep rules in YAML format
   ✔️ define a scope by specifing what can be or not be present in the response header/body
   ✔️ deactivate the checks without unloading the plugin

Prerequisites

The plugin needs that Semgrep CLI is installed in your machine.
Please, follow these instructions to install Semgrep:

  • For Ubuntu, Windows through Windows Subsystem for Linux (WSL), Linux, macOS

    python3 -m pip install semgrep

  • For macOS

    brew install semgrep

Tutorial

  1. Add the Semgrepper extension to Burp Suite.
  2. From the section "Rules Files", select the Semgrep rules you want to use. rulesfiles
  3. From the section "Scope", it is possible to configure some constraints to apply or not a rule to a specific response.
    scope
  4. Enable the rules by toggling the button "Current Semgrepper is off/on".
    semgrepperbutton
  5. Passively scan the target host.

Special thanks

Current status

License Compatibility
GNU v3 Python 3

semgrepper's People

Contributors

gand3lf avatar gbiagomba avatar hannah-portswigger avatar portswiggersupport avatar testpersonal avatar tghosth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

semgrepper's Issues

semgrep not getting detected on MacOS

This is in reference to this comment/issue #1 (comment)

It seems that you don't have Semgrep installed!

Please, follow these instructions to install it:
 • Ubuntu, Windows through Windows Subsystem for Linux (WSL), Linux, macOS:
     python3 -m pip install semgrep
 • macOS:
     brew install semgrep

I tried the jar file you created and it didnt work

how to use in windows?

I have already set up and exported the environment variable for semgrep in Windows WSL. :
image
It still prompts.
image
nothing output:
image

another bug

i'm try to add a rule for semgrep :It seems that the path is incorrect
image

semgrep not getting detected

Thanks for keeping it open source.

On macOS, semgrep is installed using brew

image
But not getting detected by the extension:
image

there is no error in the import and I have tried by removing and adding it again but still the same.

uname -a output:
Darwin MacBook-Pro 22.3.0 Darwin Kernel Version 22.3.0: Sun Dec 4 18:16:43 PST 2022; root:xnu-8792.80.21.0.2~9/RELEASE_ARM64_T8103 arm64

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.