Git Product home page Git Product logo

rinjani's Introduction

About The Project

Static application security testing (SAST) software inspects and analyzes an application’s code to discover security vulnerabilities without actually executing code. SAST tools provide vulnerability information and remediation suggestions for development teams to resolve. There is relation and overlap between SAST tools and software, but SAST products are more focused on security testing. Static code analysis products, on the other hand, combine a number of analytical practices, test management, and team collaboration features.

Here's why:

  • Create your own rules on yours framework
  • Run in all language depends on your rules

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • Create folder with name sast-rules in yours projects
    mkdir sast-rules
  • Create your own rules with .yaml example example gorm.yaml
      id: gorm-sqlinjection
      info:
      	name: Gorm SQL Injection
      	author: wahyuhadi
      	severity: high
      	details: SQL-Injection
      	impact: Take Over database
      	remediation: Escape the input. or read idomatic
      file:
      	indexwith:
      		- type: regex
      		regex:
      			- '(?i)where\(.*\+.*\)'
      		- type: regex
      		regex:
      			- '(?i)and.+=%s|(?i)or.+=%s|(?i)where.+=%s'
      		- type: regex
      		regex:
      			- 'Find\(.*\,.*\)|First\(.*\,.*\)'
    

Installation

  1. Clone the repo
    git clone https://github.com/wahyuhadi/rinjani.git
  2. Run Unitest and install
    make test
    make install
  3. How to run by default rinjani use sast-rules folder
    rinjani -e .go
    or
    rinjani -r /<your rule location> -e .go
    or add in your git hook before commit
    vim .git/hooks/pre-commit
    this code to pre-commit and git permission chmod 755 .git/hooks/pre-commit
    rinjani -e .go
    

PoC

  • run manual Example run manual
  • with hooks pre-commit Example hook commit
  • Testing in Nodejs Example hook commit

License

Distributed under the MIT License. See LICENSE for more information.

rinjani's People

Contributors

wahyuhadi avatar

Watchers

James Cloos avatar

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.