Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/elastic/SWAT

Simple Workspace Attack Tool (SWAT) is a tool for simulating malicious behavior against Google Workspace in reference to the MITRE ATT&CK framework.
https://github.com/elastic/SWAT

Last synced: 25 days ago
JSON representation

Simple Workspace Attack Tool (SWAT) is a tool for simulating malicious behavior against Google Workspace in reference to the MITRE ATT&CK framework.

Awesome Lists containing this project

README

        

====================================
SWAT (Simple Workspace ATT&CK Tool)
====================================

.. image:: https://readthedocs.org/projects/swat/badge/?version=latest
:target: https://swat.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

.. image:: https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54
:target: https://www.python.org/downloads/
:alt: Python

.. image:: https://img.shields.io/badge/ATT&CK-Navigator-red.svg?style=for-the-badge&logoColor=white
:target: https://attack.mitre.org/matrices/enterprise/cloud/googleworkspace/
:alt: ATT&CK Coverage

.. image:: https://img.shields.io/badge/Google_Cloud-4285F4?style=for-the-badge&logo=google-cloud&logoColor=white
:target: https://workspace.google.com/
:alt: Google Cloud

Description
===========

SWAT (Simple Workspace ATT&CK Tool) is a robust red teaming tool tailored for Google Workspace environments. Its primary aim is to assist Elastic rule authors, threat researchers, and the broader community with simulated attack exercises against Google Workspace infrastructures. The overarching goal is to drive threat research and craft precise detection rules. SWAT emphasizes simplicity, intuitiveness, and is rooted in the MITRE ATT&CK framework. However, its straightforward nature doesn't limit its flexibility. Its modular architecture encourages users and community members to extend its functionalities seamlessly.

Google Workspace, widely known as GSuite previously, is a collection of Google's digital services, such as Gmail, Drive, Docs, and Sheets. Its vast features set makes it a staple for numerous businesses, from startups to large corporations. With such widespread usage, it becomes an enticing target for cyber threat actors with varying objectives, from data breaches to system compromises. SWAT, envisioned by the Threat Research and Detection Engineering (TRaDE) team at Elastic, emerges as a crucial tool for evaluating detection rule effectiveness and hosting red teaming exercises for Google Workspace environments.

Features
========

* MITRE ATT&CK: SWAT is built around the MITRE ATT&CK framework.
* Google Workspace: Specifically tailored for Google Workspace.
* Emulations: Several adversary techniques are available out of the box.
* Commands: Equipped with commands aiding in emulations, ATT&CK coverage, auditing, and more.
* Extensible: Built with extensibility at its core.
* Easy to use: Offers a simple and intuitive command line interface.
* Credential Store: Maintains credentials and authenticated sessions for emulations.
* Logging: All general outputs and emulation results are diligently logged.
* Auditing: Enables Google Workspace log audits for specific events.
* Global Variables: Lets you define global variables applicable for commands and emulations.

Installation
============

1. **Install Python 3**: Grab Python 3 from Python's `official website `_.
2. **Create a Virtual Environment**: Execute `python3 -m venv swat-env` in your desired location.
3. **Activate the Virtual Environment**: Use `source swat-env/bin/activate (macOS/Linux)` or `swat-env\Scripts\activate (Windows)`.
4. **Install Poetry**: Adhere to the installation instructions on `Poetry's official website `_.
5. **Clone SWAT Repository**: Fetch the SWAT repository from GitHub.
6. **Install SWAT**: Switch to the SWAT directory and fire `poetry install`.
7. **Link SWAT Command**: Establish a link for the SWAT command as needed.
8. **Start SWAT Shell**: Launch with `swat` or `poetry run swat`.

Documentation
=============

The comprehensive documentation is available on ReadTheDocs: `SWAT Documentation `_. Developers keen on diving deeper into the code or contributing can begin with the `Developer's Guide `_.

Inspirations
============

The birth of SWAT was influenced by several pioneering projects:

- `Elastic Dorothy `_
- `Endgame's Red Team Automation (RTA) `_
- `Red Canary's Atomic Red Team `_
- `Splunk's Attack Range `_
- `MITRE's Caldera `_

Drawing from these inspirations and addressing the unique challenges of red teaming within Google Workspace, SWAT stands as an embodiment of collaborative and purposeful development.

Contribution
============

Your contributions can shape SWAT! Dive into our `Contributing Guide `_ for details.

Support
=======

Encountering issues? Reach out! Initiate a `discussion `_ on our GitHub repository.

Stay Updated
============

Stay updated about SWAT's latest developments by visiting our `CHANGELOG `_.

Disclaimer
==========

- This project is in its early stages of development and should be considered in a pre-alpha or infancy stage. The codebase, features, and overall functionality are under active development, and there will be many updates, changes, and enhancements in the foreseeable future.
- While we believe in transparency and inclusivity, and we're excited to share our project and roadmap with the community, we want to be clear that certain features may be incomplete, or the software may exhibit unexpected behaviors. Therefore, the use of this software in a production environment or for critical applications is not recommended at this stage.
- We warmly welcome contributions, feedback, and community engagement. Feel free to explore the code, experiment with it, and contribute to its development.
- We're committed to creating a simple but efficient tool for emulation in Google Workspace while in parrellel conducting threat research in this ecostystem, and as such, we'll be regularly updating the code and communicating changes through issues and discussions. However, please note that as the project evolves, certain features may be altered, deprecated, or removed.
- Your understanding and participation in this early phase are highly appreciated. For any questions, concerns, or suggestions, please feel free to open an issue or contact us directly.
- Obtain the proper authorization before using SWAT in an environment that you do not own and administer. Users take full responsibility for the outcomes of using SWAT.
- SWAT is not affiliated with or endorsed by Google.
- Thank you for your interest in our project, and we look forward to building something great together!

License
=======

SWAT is open-source, licensed under the Apache License, Version 2.0. Delve into the LICENSE file for comprehensive details or visit `Apache License 2.0 `_.