Red Team Infrastructure Multi-Cloud Automated Deployment Tool
Explore More Templates »
How to Use
·
⬇️Download
·
❔Report Bug
·
Request Feature中文 | English
Redc is built on Terraform, further simplifying the complete lifecycle (create, configure, destroy) of red team infrastructure.
Redc is not just a machine provisioning tool, but an automated cloud resource scheduler!
Redc is the control plane of the WgpSec Infra Ecosystem — orchestrating the full lifecycle of multi-cloud red team infrastructure.
…| Project | Role |
|---|---|
| redc-template | Scenario repository — pre-built scenarios, base templates, specialized templates, plugin assets |
| Redc | Control plane (this repo) — GUI/CLI unified entry point, multi-cloud resource orchestration |
| f8x | Provisioning engine — software installation & environment configuration on target hosts |
| redc.wgpsec.org | Online template registry — browse and download community templates |
The redc GUI provides a comprehensive graphical management interface covering the entire workflow from deployment to operations.
Pre-configured Scenarios
Multi-turn conversational AI assistant with 7 modes:
Supports streaming output, tool call visualization, ask_user human-in-the-loop decisions, conversation history persistence, and chat export.
Automated Attack Testing with Security Tools
Launch an AWS instance with nuclei installed, then scan a dedicated vulnerability testing site http://testfire.net/
Multi-Region + Compose Orchestration
Spin up 2 proxy pool machines on both Aliyun and AWS, then generate a Clash config for me
Zero-Friction Vulnerability Reproduction Environment
Deploy a vulhub CVE-2017-7504 vulnerability testing environment, enable SSH access and send me the credentials.
Built-in multi-session SSH terminal manager:
One-stop tool installation platform based on f8x:
Scheduled task management:
AI Agent automatically remembers operational experience and user preferences, persisted across conversations. Manageable via the Agent Memory page.
Built-in HTTP API service for remote management:
Supports scenario lifecycle hook plugins that automatically execute custom logic on scenario start/stop.
The redc GUI is built with Wails + Svelte + Vite.
go install github.com/wailsapp/wails/v2/cmd/wails@latestFrom the project root:
wails devTroubleshooting:
npm install in frontend/From the project root:
wails build
# windows
wails build -platform windows/amd64
# linux
wails build -platform linux/amd64Artifacts are output to build/bin.
The GUI version is currently available for download from releases.
For platform/arch options, see Wails docs: https://wails.io/docs/guides/building/
REDC download address: https://github.com/wgpsec/redc/releases
Download the compressed file for your system, extract it and run it from the command line.
Install
brew install wgpsec/tap/redcUpdate
brew update
brew upgrade redcgoreleaser
git clone https://github.com/wgpsec/redc.git
cd redc
goreleaser --snapshot --clean
# Build artifacts are generated under the dist directoryBy default, redc reads the template folder at ~/redc/redc-templates; the folder name is the scenario name when deploying.
You can download template scenarios yourself; scenario names correspond to the template repository https://github.com/wgpsec/redc-template
Online address: https://redc.wgpsec.org/
redc pull aliyun/ecsFor specific usage and commands for each scenario, please check the readme of the specific scenario in the template repository https://github.com/wgpsec/redc-template
redc needs AK/SK credentials to start machines.
By default, redc reads the config.yaml configuration file from your home directory at ~/redc/config.yaml. Create it if missing:
vim ~/redc/config.yamlExample content:
…If the configuration file fails to load, it will attempt to read system environment variables, please configure them before use.
AWS environment variables
Linux/macOS example:
export AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEYWindows example:
setx AWS_ACCESS_KEY_ID AKIAIOSFODNN7EXAMPLE
setx AWS_SECRET_ACCESS_KEY wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEYAlibaba Cloud environment variables
Linux/macOS example (use a shell init file like .bash_profile or .zshrc to persist):
export ALICLOUD_ACCESS_KEY=""
export ALICLOUD_SECRET_KEY=""
# If you use STS credentials, also set security_token
export ALICLOUD_SECURITY_TOKEN=""Windows example:
In System Properties > Advanced > Environment Variables, add ALICLOUD_ACCESS_KEY, ALICLOUD_SECRET_KEY, and ALICLOUD_SECURITY_TOKEN (optional).Tencent Cloud environment variables
Linux/macOS example:
export TENCENTCLOUD_SECRET_ID=
export TENCENTCLOUD_SECRET_KEY=Windows example:
set TENCENTCLOUD_SECRET_ID=
set TENCENTCLOUD_SECRET_KEY=Volcengine environment variables
Linux/macOS example:
export VOLCENGINE_ACCESS_KEY=
export VOLCENGINE_SECRET_KEY=Windows example:
set VOLCENGINE_ACCESS_KEY=
set VOLCENGINE_SECRET_KEY=redc is designed with Docker-like commands
Use redc -h to view common command help
Initialize Template
Required for first-time use of templates. To speed up template deployment, it's recommended to run init after modifying redc-templates content to speed up subsequent deployments
redc initBy default, init sweeps all scenarios under ~/redc/redc-templates to warm the Terraform provider cache.
List Template List
redc image lsCreate and Start Instance
ecs is the template file name
redc plan --name boring_sheep_ecs [template_name] # Plan an instance (this process validates the configuration but doesn't create infrastructure)
# After plan completes, it returns a caseid which can be used with the start command to actually create infrastructure
redc start [caseid]
redc start [casename]Directly plan and start a case with template name ecs
redc run aliyun/ecsAfter starting, it will provide a case id, which is the unique identifier for the scenario, required for subsequent operations For example, 8a57078ee8567cf2459a0358bc27e534cb87c8a02eadc637ce8335046c16cb3c can use 8a57078ee856 with the same effect
Use -e parameter to configure variables
redc run -e xxx=xxx ecsStop instance
redc stop [caseid] # Stop instance
redc rm [caseid] # Delete instance (confirm the instance is stopped before deleting)
redc kill [caseid] # After init template, stop and delete instance![redc stop [caseid]](./img/image7.png)
View case status
redc psExecute commands
Directly execute command and return result
redc exec [caseid] whoami![redc exec [caseid] whoami](./img/image3.png)
Enter interactive command mode
redc exec -t [caseid] bash![redc exec -t [caseid] bash](./img/image4.png)
Copy files to server
redc cp test.txt [caseid]:/root/![redc cp test.txt [caseid]:/root/](./img/image5.png)
Download files to local
redc cp [caseid]:/root/test.txt ./![redc cp [caseid]:/root/test.txt ./](./img/image6.png)
Change service
This requires template support for changes, can switch elastic public IP
redc change [caseid]All CLI commands support --output json (short form -o json), producing structured JSON output for scripting and automation.
Basic Usage
# List all cases in JSON format
redc ps -o json
# Start a case and get structured resuNo open issues yet, or sync has not completed.