EeeiiiiiEEiiiii.....
\|/
n______ .....iiiiiEEiiiieeEE
:~; : \|/
-----;``~' + ;------------ ______n --------------------------------
`-@-----@-= : :~:
=========================== ; + '~``; =============================
=-@-----@-'
jgs------------------------------------------------------------------
DEVSECOPS IN A PYTHON NUTSHELL
This project is a "simple" python implementation of the DevSecOps Methodology, boiled down to the following picture:
and an implementation attempt:
You can quickly start this PoC (based on OpenFaaS) on Docker Swarm online using the community-run Docker playground: play-with-docker.com (PWD) by clicking the button below:
Or use the docker-compose.yml file.
- Get your Jupyter token:
$ docker service logs func_jupyter 2>&1 | grep token
func_jupyter.1.xam77gaqxi5s@node1 | [I 18:42:54.562 LabApp] The Jupyter Notebook is running at: http://[all ip addresses on your system]:8888/?token=5afdefee1c98acac0bbf29ae9972b7ccd23c50c115e74e49
func_jupyter.1.xam77gaqxi5s@node1 | to login with a token:
func_jupyter.1.xam77gaqxi5s@node1 | http://localhost:8888/?token=5afdefee1c98acac0bbf29ae9972b7ccd23c50c115e74e49
- Install git, unzip, curl and faas-cli in the Jupyter container, and git clone this repo:
docker exec --user root -ti func_jupyter.1.shw9s15u6co3cuzp5sjft697t bash
root@b9300915e6ad:~# apt-get update && apt-get -y install unzip git curl
root@b9300915e6ad:~# curl -sSL https://cli.openfaas.com | sh # Not cool :/
root@b9300915e6ad:~# git clone https://github.com/h-a-t/ISAF
- Change permissions of docker.sock for the sack of this PoC.
⚠️ Do not do this in a production environment 💣
chmod 777 /var/run/docker.sock
- Upload ISAF.iynb to your Jupyter instance, and press play! \o/
Name | Link | License |
---|---|---|
Clair | https://github.com/coreos/clair | Apache License 2.0 |
JupyterLab | https://github.com/jupyterlab/jupyterlab | BSD 3-Clause |
Klar | https://github.com/optiopay/klar | MIT |
Nmap | https://github.com/nmap/nmap | GNU General Public |
OpenFaaS | https://github.com/openfaas/faas | MIT |
Sonarqube | https://github.com/SonarSource/sonarqube/ | GNU Lesser General Public |
WhatWeb | https://github.com/urbanadventurer/WhatWeb | GPLv2 |
WPScan | https://github.com/wpscanteam/wpscan | Dual-Licensed |