MCPcopy Index your code
hub / github.com/HarshVaragiya/aws-redteam-kit

github.com/HarshVaragiya/aws-redteam-kit @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
30 symbols 84 edges 16 files 2 documented · 7%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

AWS RedTeam Kit

Aka - Aws Ransomware Simulation Kit

This repository aims to be a PoC for the research project "Perfecting Ransomware on AWS."

Note

  • DO NOT ENCRYPT ANY DATA WITH THIS THAT YOU CAN'T AFFORD TO LOSE
  • This project is licensed under MIT
  • The Author is not responsible for any data loss occouring due to this project
  • Docker containers are ephemeral
  • This project is just a proof-of-concept ransomware simulation toolkit. It is NOT PRODUCTION GRADE.

KeySwitch

The tool simulates a ransomware attack on a target by encrypting EBS volumes with the specified key.

Use this tool only if you know exactly what you are doing. It deletes all snapshots in an AWS Region

The tool works in the following manner : 1. Generate list of all EBS volumes in the region 2. Take snapshots of all volumes 3. Wait for snapshots to become Available. 4. Create new Volumes using the snapshots and specify encryption configuration as the KMS key. 5. Delete all the snapshots in the AWS Region (Nuke).

Simulating a Ransomware Attacking using ARK

https://medium.com/@harsh8v/redefining-ransomware-attacks-on-aws-using-aws-kms-xks-dea668633802

Core symbols most depended-on inside this repo

getUserConfirmation
called by 3
KeySwitch/cmd/utils.go
GetAllSnapshots
called by 2
KeySwitch/libebs/snapshots.go
GetAllEbsVolumes
called by 2
KeySwitch/libebs/volumes.go
CreateSnapshotsRequestForVolume
called by 1
KeySwitch/libebs/snapshots.go
WaitForAvailableSnapshots
called by 1
KeySwitch/libebs/snapshots.go
DeleteAllSnapshots
called by 1
KeySwitch/libebs/snapshots.go
CreateEncryptedVolumeFromSnapshot
called by 1
KeySwitch/libebs/volumes.go
SetupXks
called by 1
KeySwitch/cmd/setup.go

Shape

Function 19
Method 10
Struct 1

Languages

Go100%

Modules by API surface

KeySwitch/libebs/snapshots.go5 symbols
KeySwitch/libebs/volumes.go4 symbols
KeySwitch/cmd/utils.go3 symbols
KeySwitch/libebs/ec2.go2 symbols
KeySwitch/cmd/setup.go2 symbols
KeySwitch/cmd/root.go2 symbols
KeySwitch/cmd/kms.go2 symbols
KeySwitch/cmd/ebs.go2 symbols
KeySwitch/main.go1 symbols
KeySwitch/libswitch/awsconf.go1 symbols
KeySwitch/liblogger/init.go1 symbols
KeySwitch/libebs/utils.go1 symbols

For agents

$ claude mcp add aws-redteam-kit \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page