Git Product home page Git Product logo

directus-aspm-poc's Introduction

Directus-ASPM-PoC

directus-aspm

Proof of Concept for building Application Security Posture Management (ASPM) based on Directus Headless-CMS.

๐Ÿš€ Running

docker-compose up

use following credentials to login to Directus:

email: [email protected]
password: d1r3ctu5

โš™๏ธ Setup

Make copy of .env.example and rename it to .env, add necessary credentials and settings. In current PoC you will need to provide

  • Github token to be able to load data from Github.
  • Directus admin API key to be able to upload results of security scanners.

Example Running scanners and uploading scan results

๐Ÿ“ก SemGrep

semgrep scan . --json --json-output=semgrep.json
sed 's/{/{"repository":"https:\/\/api.github.com\/repos\/WebGoat\/WebGoat-Legacy",/' semgrep.json > result.json

curl http://127.0.0.1:8055/flows/trigger/e967dffe-912b-4c5b-8265-b8c101e090ac \
 -d @result.json -XPOST \
 -H "Authorization: Bearer geBockesPOi-DV71OHf6SbF_EKcMtSz4" \
 -H "Content-Type: application/json"

โš›๏ธ Nuclei

nuclei -u http://testphp.vulnweb.com/ -je results.json

curl http://127.0.0.1:8055/flows/trigger/d8612883-7f69-4bcd-af3b-e1e35df6874d \
--data @results.json -XPOST \
-H "Authorization: Bearer geBockesPOi-DV71OHf6SbF_EKcMtSz4" \
-H 'Content-type: application/json'

๐Ÿท Trufflehog

trufflehog git [email protected]:WebGoat/WebGoat-Legacy.git --json > tf.json

while IFS= read -r line; 
    do curl http://127.0.0.1:8055/flows/trigger/9b47758f-5b3b-4287-8faf-8005759767a9 \
     --data "$line" \
     -XPOST \
     -H "Authorization: Bearer geBockesPOi-DV71OHf6SbF_EKcMtSz4"\
     -H 'Content-type: application/json';
 done < tf.json

๐Ÿ› ๏ธ Development

Details of extensions development can be found in dev documentation


Example preview

directus-aspm directus-aspm directus-aspm

directus-aspm-poc's People

Stargazers

 avatar Maxim Gall avatar Alex avatar Mikhail Nabiullin avatar  avatar Valerio Rico avatar

Watchers

Maxim Gall avatar Ivan avatar Valerio Rico avatar  avatar  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.