GithubHelp home page GithubHelp logo

kaustubhrai / rahasya Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 103 KB

Secret Scanning automated, multiple tools in one place from single command

License: GNU General Public License v3.0

Dockerfile 100.00%

rahasya's Introduction

A Comprehensive Secret Scanning Automation-Tool

Docker Image Version (tag)

Securing your codebase with various tools for secret scanning

Table of Contents

Features

Installation

docker pull raikaustubh/rahasya

Usage

Go in the git cloned directory and run

docker run -it --rm -v "$(PWD):/repo" raikaustubh/rahasya
image

Flags

  • -scan: Run GitLeaks, Gitty Leaks, TruffleHog, Detect Secrets all in succession one after the other, and Git Guardian too, if you have the API Key available in the dockerfile.

  • -include_talisman: Run Talisman separately from all the other tools. This flag will run Talisman and format that report in a presentable format that can be viewed in the browser.

  • -help: All the tools will only run properly if the repo is git cloned. Use this flag if you need guidance on how to proceed.

  • -scan [tool 1] [tool 2] ...: Selectively run specified scanning tools. List the tools you want to execute, separated by spaces. Supported tools include gitleaks, gittyleaks, trufflehog, detect-secrets, and gggshield. If gitguardian or gggshield is specified, ensure you have provided the API key in the Dockerfile. Use this flag to customize the scan to your specific needs. For example, to run GitLeaks and TruffleHog, use -scan gitleaks trufflehog.

Customization

To incorporate your Git Guardian API key or to modify any tool versions:

  1. Clone the repository:
   git clone https://github.com/KaustubhRai/rahasya.git
  1. Edit the Dockerfile: Add your API key in ENV GGSHIELD_TOKEN or adjust the tool versions as necessary.
  2. Build your custom Docker image:
    docker build -t rahasya .
  3. Run that modified image:
    docker run -it --rm -v "$(PWD):/repo" rahasya

Requirements

  • Docker version 4.20.1 or higher
  • Compatible with Linux, macOS, Windows

Contribution Guidelines

Contributions are welcome! Please submit a pull request or open an issue to discuss proposed changes.

License

This project is licensed under the GNU GENERAL PUBLIC LICENSE - see the LICENSE.md file for details.

Troubleshooting

If you encounter issues with Docker permissions, ensure your user is added to the Docker group or try running with sudo.

FAQs

Q: Can I use this tool without Docker?

A: Currently, Docker is required for running this tool efficiently.

Credits

Developed by Kaustubh Rai. Thanks to all the developers of the tools integrated into this project.

rahasya's People

Contributors

kaustubhrai avatar

Stargazers

 avatar  avatar

Watchers

 avatar

rahasya's Issues

-include_talisman flag rename

the name of the flag suggests that, it will run all the default scans plus the talisman. name it to something better like just -talisman

please add Git path

Kaustubh please add the git path for scanning the source code from git url.

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.