Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/reverseclabs/leonidas
Penetration TestingCloud SecurityRed Teaming
GitHubreverseclabs/leonidas

leonidas

Automated Attack Simulation in the Cloud, complete with detection use cases.

View Repository
617721 year agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Leonidas

This is the repository containing Leonidas, a framework for executing attacker actions in the cloud. It provides a YAML-based format for defining cloud attacker tactics, techniques and procedures (TTPs) and their associated detection properties. These definitions can then be compiled into:

  • A web API exposing each test case as an individual endpoint
  • Sigma rules (https://github.com/Neo23x0/sigma) for detection
  • Documentation - see http://detectioninthe.cloud/ for an example

The project was originally designed for use in AWS environments, with the following architecture:

Leonidas Architecture In 2024, Leonidas was extended to support Kubernetes environments. Its resources can be deployed within the target cluster, as per the following architecture: Leonidas K8S Architecture

Deploying the API

The API is deployed into an AWS account via an AWS-native CI/CD pipeline, and into a Kubernetes cluster using auto-generated YAML manifests. Instructions for both environments can be found at Deploying Leonidas.

Using the API

The API is invoked via web requests secured by an API key. Details on using the API can be found at Using Leonidas

Installing the Generator Locally

To build documentation or Sigma rules, you'll need to install the generator locally. You can do this by:

  • cd generator
  • poetry install

Generating Sigma Rules

Sigma rules can be generated as follows:

  • poetry run ./generator.py sigma

The rules will then appear in ./output/sigma

Generating Documentation

The documentation is generated as follows:

  • poetry run ./generator.py docs

This will produce markdown versions of the documentation available at output/docs. This can be uploaded to an existing markdown-based documentation system, or the following can be used to create a prettified HTML version of the docs:

  • cd ../output
  • mkdocs build

This will create an output/site folder containing the HTML site. It is also possible to view this locally by running mkdocs serve in the same folder.

Writing Definitions

The definitions are written in a YAML-based format, for which an example is provided below. Documentation on how to write these can be found in Writing Definitions

root@kitploit:~
---
name: Enumerate Cloudtrails for a Given Region
author: Nick Jones
description: |
  An adversary may attempt to enumerate the configured trails, to identify what actions will be logged and where they will be logged to. In AWS, this may start with a single call to enumerate the trails applicable to the default region.
category: Discovery
mitre_ids:
  - T1526
platform: aws
permissions:
  - cloudtrail:DescribeTrails
input_arguments:
executors:
  sh:
    code: |
      aws cloudtrail describe-trails
  leonidas_aws:
    implemented: True
    clients:
      - cloudtrail
    code: |
      result = clients["cloudtrail"].describe_trails()
detection:
  sigma_id: 48653a63-085a-4a3b-88be-9680e9adb449
  status: experimental
  level: low
  sources:
    - name: "cloudtrail"
      attributes:
        eventName: "DescribeTrails"
        eventSource: "*.cloudtrail.amazonaws.com"

Credits

Project built and maintained by Nick Jones ( NJonesUK / @nojonesuk).

Kubernetes support added by Leo Tsaousis ( @laripping ).

Special thanks also to Mohit Gupta ( @Skybound1 ) for his invaluable contribution.

This project drew ideas and inspiration from a range of sources, including:

  • Pacu
  • Rhino Security's AWS IAM Privilege Escalations
  • All of Scott Piper's AWS security work ( https://github.com/0xdabbad00 / @0xdabbad00 )
  • MITRE ATT&CK
  • MITRE CALDERA
  • Red Canary's Atomic Red Team
  • Sigma
Download Tool