Skip to content

The Slack2scan application scans the GitHub repository for hardcoded secrets using Gitleaks. It will make security testing easier and help increase security adoption.

License

Notifications You must be signed in to change notification settings

govindasamyarun/slack2scan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack2Scan

About The Project

The Slack2scan application scans the GitHub repository for hardcoded secrets using Gitleaks. It will make security testing easier and help increase security adoption. Not limited to hardcoded secrets, it can be extended to perform SAST & DAST scans. 

Abstracts away the complexity and provides a simple command to run security scans using Slack. The results get published to the same slack channel. Developers can perform the scan independently, eliminating the dependency on DevOps and AppSec teams. 

The application is written in Python Flask. And it is easier to add a library for any new security tools. 

Screenshot 2022-12-24 at 1 06 39 PM

Getting started

Prerequisites

  • Docker
  • Docker-compose

Installation

  1. Create an app in your Slack account

    https://api.slack.com/apps
  2. Select Create App -> From Scratch

  3. Enter App Name & select a workspace to deploy the app

  4. Copy the Signing Secret

  5. Set OAuth & Permissions and the following scopes

    channels:read
    chat:write
    chat:write.public
    commands
  6. Install the app in the workspace

  7. Slash Commands -> Create New Command -> Save

    Command: /scan
    Request URL: https://<FQDN>/s2s/scan
    Short Description: Scan repository
    Usage Hints: /scan <URL> <Branch - Optional>
  8. Turn on Interactivity & Shortcuts -> Save Changes

    https://<FQDN>/s2s/interactive
  9. Clone the repository

    cd /Data
    git clone https://github.com/govindasamyarun/slack2scan.git
  10. Edit docker-compose.yml file to include signing secret and application host name values

pwd: /Data/slack2scan
vi docker-compose.yml
 environment:
   SLACK_SIGNING_SECRET: <Paste the signing secret>
   S2S_HOST_NAME: <Enter the application hostname>
  1. Start the container
pwd: /Data/slack2scan

docker-compose up --detach

Demo

S2S.demo.mov

Support

Use the issues tab to report any problems or issues.

License

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

About

The Slack2scan application scans the GitHub repository for hardcoded secrets using Gitleaks. It will make security testing easier and help increase security adoption.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published