Metta – An Information Security Preparedness Tool To Do Adversarial Simulation

Metta is an information security preparedness tool.This project uses Redis/Celery, python, and vagrant with virtualbox to do adversarial simulation. This allows you to test (mostly) your host based instrumentation but may also allow you to test any network based detection and controls depending on how you set up your vagrants.The project parses yaml files with actions and uses celery to queue these actions up and run them one at a time without interaction.Installationsee setup.mdThere is also a wikiRunning actionsThe various actions live in the MITRE folder sorted by MITRE ATT&CK phases and also in Adversarial_SimulationJust run the python and yaml file of your choice$ python -f MITRE/Discovery/discovery_win_account.ymlYAML FILE: MITRE/Discovery/discovery_account.yamlOS matched windows…sending to the windows vagrantRunning: cmd.exe /c net group \”Domain Admins\" /domainRunning: cmd.exe /c net user /addRunning: cmd.exe /c net user /domainRunning: cmd.exe /c net localgroup administratorsRunning: cmd.exe /c net shareRunning: cmd.exe /c net useRunning: cmd.exe /c net accountsRunning: cmd.exe /c net config workstationRunning: cmd.exe /c dsquery serverRunning: cmd.exe /c dsquery user -name smith* | dsget user -dn -descRunning: cmd.exe /c wmic useraccount list /format:listRunning: cmd.exe /c wmic ntdomainRunning: cmd.exe /c wmic group list /format:listRunning: cmd.exe /c wmic sysaccount list /format:listMaking actionsThe actions and scenarios live in the MITRE folder sorted by MITRE ATT&CK phases and also in Adversarial_Simulation The most important parts are the OS field and the purple_actionsos: will tell the tool which vagrant to send the command to, obviously *nix commands on windows wont work out so wellpurple_actions: an array of commands to run sequentiallyMaking scenariosScenarios are a list of paths to actions.The code will be looking for a scenario: True field and scenario_actions list. Example below: GotchasThe tool takes the string from purple_actions and encapsulates it in quotes. Therefore you need to escape any other quotes, ticks, weird shell characters in your command.Use the output of the vagrant/celery piece to make sure things are working like they shouldWhy Metta?Metta (Pali) Loving kindness, gentle friendship; a practice for generating loving kindness said to be first taught by the Buddha as an antidote to fear. It helps cultivate our natural capacity for an open and loving heart and is traditionally offered along with other Brahma-vihara meditations that enrich compassion, joy in the happiness of others and equanimity. These practices lead to the development of concentration, fearlessness, happiness and a greater ability to love. Download Metta