Giter VIP home page Giter VIP logo

ansible-mitre's Introduction

ansible-mitre

Attack playbooks based on MITRE ATT&CK framework using ansible format

Prerequisites

  • ansible (apt-get install ansible)
  • ansible-winrm (pip install "pywinrm>=0.3.0", pip install pywinrm[credssp])
  • customize vars.yaml file

Compatibility

  • Ansible machine: Ubuntu 18.04
  • Traget machine: Tested against Ubunutu 18.04 and Windows Server 2016

Architecture

  • Ansible Playbook machine with Semaphore GUI and mySQL database
  • Victim machines, here windows and linux (Can be over the same LAN or accross the WAN, traffic is encrypted)
  • Attacking machine, can be the same machine or can be split.

Attacking machine fqdn or IP are configured in the vars.yaml file

ScreenShot

Installation

  • git clone https://github.com/rallyspeed/ansible-mitre.git

Usage - CLI

  • ansible-playbook [playbook].yaml Some playbooks require tags

Usage - GUI

  • Create some tasks templates based on playbook repository ScreenShot

  • Launch the task ScreenShot

Optional INSTALL SEPHAMORE GUI

INSTALL sephamore for GUI interface. ref: https://github.com/ansible-semaphore/semaphore

  • apt-get install mysql-server
  • mysql_secure_installation
  • wget https://github.com/ansible-semaphore/semaphore/releases/download/v2.5.1/semaphore_2.5.1_linux_amd64.deb
  • dpkg -i semaphore_2.5.1_linux_amd64.deb
  • semaphore -setup

Optional RUN SEPHAMORE GUI

  • ssh-agent bash
  • ssh-add ~/.ssh/id_rsa
  • ssh -T [email protected] To confirm ansible machine can reach the github repo
  • semaphore -config /opt/config.json &

Required install to generate report (report.py)

  • python3 -m pip uninstall pip && sudo apt install python3-pip --reinstall
  • apt-get install libmysqlclient-dev
  • pip3 install mysqlclient
  • pip3 install openpyxl

Report Generation

  • python3 report.py

ansible-mitre's People

Contributors

rallyspeed avatar

Watchers

 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.