This repository provides a Docker container for running a Cobalt Strike Teamserver.
Cobalt Strike is a Red Team post-exploitation framework. This project aims to make deployment of Cobalt Strike straightforward using Docker Compose.
- Easy deployment: Quickly spin up a Cobalt Strike Teamserver with Docker Compose
- Custom C2 profiles: Load custom C2 profiles from the
./profilesdirectory - Auto-Start Listeners: Preconfigure listeners via environment variables (HTTP/S, DNS, SMB)
- Robust Process Management: Enhanced error handling and service management
- Comprehensive Logging: Detailed logs for troubleshooting
- Valid Cobalt Strike License
- Docker and Docker Compose
- C2 Profile file
- Create your docker-compose.yml:
version: "3.8"
services:
cobaltstrike:
image: chryzsh/cobaltstrike
container_name: cobaltstrike
ports:
- "50050:50050"
volumes:
- ./profiles:/opt/cobaltstrike/profiles
- ./logs:/var/log/supervisor
environment:
- LICENSE_KEY=your_license_key_here
- TEAMSERVER_PASSWORD=your_secure_password
- C2_PROFILE_NAME=your.profile
restart: unless-stopped- Start the container:
docker-compose up -dFor detailed information, please see the following guides:
-
- Environment variables
- Docker Compose configuration
- Volume mounts and port mappings
- Security considerations
-
- Common issues and solutions
- Log analysis
- Recovery procedures
-
- Technical details
- Implementation specifics
- Design decisions
- Use strong credentials
- Restrict access to trusted networks
- Ensure proper licensing and authorization
Contribute by submitting issues or pull requests. See Architecture Documentation for technical details.
- This project is intended for legal and authorized use only
- Cobalt Strike is a commercial tool—ensure you have a valid license from HelpSystems
- Maintainers are not responsible for misuse of this setup
MIT License - See LICENSE for details
