Sanitized version of red team infrastructure automation platform. Operational content (implant pipelines, lures, credential capture) replaced with documented stubs. Architecture and infrastructure automation code intact.
16 KiB
C2ingRed Project Management
Project Overview
C2ingRed - Automated red team infrastructure deployment system supporting AWS, Linode, and FlokiNET with Havoc C2, redirectors, email infrastructure, and advanced OPSEC features.
🎯 Current Focus
Goal: Stabilize core deployment functionality and test it Last Updated: 05-30-2025
📈 CHANGELOG & HISTORY
[1.1/05-30-2025]
- [Major change 1]
- [Major change 2]
- [Bug fixes, etc.]
[Previous Version/Date]
- [Previous changes]
📍 Where I Left Off
- Working on: Need to fix issue with AWS deployment security hardening playbook | Need to restructure I want each module in its own dir with its own tasks, templates, files and I want to move Provider playbooks into a Provider dir. I also want to break apart deploy.py and take each part for a module and make its own script that can be ran independently of the deploy script to just deploy the that module if need be
- Next Priority: Test core deployment
- Blockers: Sleep
📊 Project Status Dashboard
Overall Progress
- Core Infrastructure: 85% ✅
- Security Features: 75% ⚠️
- Documentation: 20% ⚠️
- Testing Coverage: 40% ❌
Quick Stats [Total Features: 150]
- ✅ Working: 120 features
- ❌ Broken: 30 features
- 🧪 Needs Testing: 150 features
💡 IDEAS & FUTURE CONSIDERATIONS
Potential Improvements
- [Improvement idea 1]
- [Improvement idea 2]
Architecture Changes
- [Architectural consideration 1]
- [Architectural consideration 2]
Integration Opportunities
- [Integration possibility 1]
- [Integration possibility 2]
📝 TODO
- Fix DMARC automation bug
- Improve split-region cleanup
- Test integrated tracker end-to-end
- Add Tor integration
- Improve payload customization
- Multi-tenancy support
📚 RESEARCH & INVESTIGATION
Current Research Topics
- Advanced EDR Bypass - Latest techniques and tools
- Infrastructure Detection - How to avoid attribution
- Automation Improvements - Better deployment patterns
Completed Research
- Havoc C2 Dev Branch - Features and installation
- NGINX IR Evasion - Security scanner detection
- AWS Security Groups - Best practices
🎪 Major Features
Core Infrastructure Deployment
Status: 🔄 IN PROGRESS
Priority: HIGH
Description: Basic deployment functionality across all providers
Tasks:
- ✅ AWS EC2 instance deployment
- ✅ Linode instance deployment
- ✅ FlokiNET server configuration
- ✅ SSH key management
- ✅ VPC and security group creation
- 🔄 Cross-region deployment improvements
- 🧪 Split-region deployment testing
- ❌ Deployment rollback functionality
Notes: Basic functionality works well. Cross-region needs refinement.
Havoc C2 Framework Integration
Status: ✅ MOSTLY COMPLETE
Priority: HIGH
Description: Havoc C2 installation, configuration, and payload generation
Tasks:
- ✅ Havoc installation automation
- ✅ Basic payload generation
- ✅ EDR evasion techniques
- ✅ Payload randomization
- 🧪 Cross-platform payload testing
- 📝 Advanced listener configurations
- 📝 Custom malleable profiles
Notes: Core functionality solid. Need more testing on different OS targets.
Redirector Infrastructure
Status: ✅ COMPLETE
Priority: HIGH
Description: NGINX-based traffic redirection with IR evasion
Tasks:
- ✅ Basic NGINX redirector setup
- ✅ SSL certificate automation
- ✅ IR evasion rules (security tool detection)
- ✅ Mobile device credential harvesting
- ✅ Traffic flow configuration
- ✅ Legitimate-looking cover pages
Notes: Working well. Good IR evasion capabilities.
Email Infrastructure
Status: 🔄 IN PROGRESS
Priority: MEDIUM
Description: Mail server, DKIM, tracking capabilities
Tasks:
- ✅ Postfix mail server setup
- ✅ DKIM key generation
- ✅ Basic email tracking
- 🧪 Integrated tracker testing
- ❌ DMARC automation (has bugs)
- 📝 GoPhish integration improvements
- 📝 Email template management
Notes: Basic mail works. DMARC setup needs debugging.
Security & OPSEC
Status: 🔄 IN PROGRESS
Priority: HIGH
Description: Hardening, evasion, and operational security
Tasks:
- ✅ SSH hardening
- ✅ Zero-logs configuration
- ✅ Firewall automation (UFW/iptables)
- ✅ Log cleaning scripts
- ✅ Port randomization
- 🔄 AWS security group improvements
- 🧪 Memory protection testing
- 📝 Tor integration
- 📝 Additional EDR bypass techniques
Notes: Good foundation. Need to test memory protection features.
Deployment Management
Status: 🔄 IN PROGRESS
Priority: MEDIUM
Description: Deployment tracking, cleanup, and management
Tasks:
- ✅ Deployment ID system
- ✅ Infrastructure state tracking
- ✅ Basic cleanup functionality
- 🔄 Enhanced cleanup (split-region)
- 🧪 Cleanup verification testing
- 📝 Deployment history/logging
- 📝 Resource usage tracking
Notes: Cleanup works but needs refinement for complex deployments.
Documentation & Usability
Status: ❌ NEEDS WORK
Priority: MEDIUM
Description: User guides, API docs, and ease of use
Tasks:
- ✅ Basic README
- ✅ Post-install instructions
- 🔄 Comprehensive user guide
- 📝 Troubleshooting guide
- 📝 Advanced configuration docs
- 📝 Video tutorials/demos
- 📝 Architecture documentation
Notes: Documentation is sparse. Need comprehensive guides.
🐛 KNOWN BUGS & ISSUES
High Priority Bugs
-
DMARC Record Setup - Automation fails on some providers
- Impact: Email deliverability issues
- Found: [Date]
- Next Step: Debug template generation
-
Split-Region Cleanup - VPC deletion fails in cross-region deployments
- Impact: Resource cleanup incomplete
- Found: [Date]
- Next Step: Fix region iteration logic
Medium Priority Bugs
-
SSH Key Permissions - Occasional permission errors on AWS
- Impact: Deployment failures
- Workaround: Manual key fixing
-
Port Randomization - Service restart issues
- Impact: Services may not start with new ports
- Workaround: Manual service restart
Low Priority Issues
- Log Output - Too verbose in some areas
- Error Messages - Some are unclear
- Performance - Slow payload generation
🧪 TESTING BACKLOG
Needs Comprehensive Testing
- Cross-Region Deployments - AWS multi-region
- Integrated Tracker - Full email tracking flow
- Memory Protection - Secure memory features
- Payload Delivery - End-to-end testing
- Cleanup Verification - Ensure all resources removed
- FlokiNET Provider - Limited testing done
- Port Randomization - All service combinations
- Security Hardening - Penetration testing
Tested & Working
- Basic AWS Deployment - Single region, standard config
- Basic Linode Deployment - Standard configuration
- Havoc Payload Generation - Windows/Linux payloads
- NGINX Redirector - Traffic forwarding
- SSH Hardening - Security configurations
- SSL Certificates - Let's Encrypt automation
🎯 GOALS & MILESTONES
Goals
- Complete Core Infrastructure)
- Fix all high-priority bugs
- Achieve 80% test coverage
- Complete comprehensive documentation
🔗 USEFUL LINKS & REFERENCES
Documentation
External Resources
- Resource 1 - Description
- Resource 2 - Description
Related Projects
📝 NOTES & LESSONS LEARNED
What's Working Well
- [Success 1]
- [Success 2]
What Needs Improvement
- [Area for improvement 1]
- [Area for improvement 2]
Lessons Learned
- [Lesson 1]
- [Lesson 2]
C2ingRed Complete Feature List (~150+ Features)
🏗️ CORE INFRASTRUCTURE MANAGEMENT (25 features)
Multi-Provider Support
- AWS EC2 deployment with VPC creation
- Linode infrastructure deployment
- FlokiNET pre-provisioned server configuration
- Cross-provider deployment (redirector on one, C2 on another)
- Multi-region deployment within same provider
- Split-region deployment (C2 and redirector in different regions)
Resource Management
- Automated VPC/subnet/routing table creation
- Security group configuration with least-privilege access
- Internet gateway and NAT gateway setup
- SSH key pair generation and management
- SSL certificate automation (Let's Encrypt)
- Elastic IP allocation and management
- Resource tagging for organization
- Infrastructure state tracking and persistence
- Comprehensive cleanup and teardown
- Force cleanup with confirmation prompts
- Orphaned resource detection and removal
Instance Management
- AMI selection and validation
- Instance size/plan selection
- SSH user detection based on AMI type
- Instance health monitoring
- Automatic retry logic for deployments
- Post-deployment validation checks
- Instance metadata collection
- Deployment logging and state tracking
🎯 C2 FRAMEWORK INTEGRATION (20 features)
Havoc C2 Framework
- Havoc C2 installation (dev branch)
- Teamserver configuration and management
- Client configuration generation
- Profile-based payload generation
- Custom listener configuration (HTTP/HTTPS)
- Advanced evasion profile templates
- Teamserver service management (systemd)
- Password generation and management
- Multi-operator support configuration
Payload Generation & Mutation
- Windows EXE payload generation
- Windows DLL payload generation
- Linux ELF binary generation
- Raw shellcode generation
- Binary signature randomization
- PE header timestamp manipulation
- ELF binary modification
- Anti-analysis techniques
- Payload manifest generation
- Backup and versioning system
- Cross-architecture payload support
🛡️ SECURITY & OPSEC (35 features)
System Hardening
- SSH configuration hardening
- Root login restrictions
- Key-based authentication enforcement
- Connection timeout configuration
- Fail2Ban integration and configuration
- UFW firewall management (non-AWS)
- Iptables rules configuration
- System resource limits configuration
- Automatic security updates
Anti-Forensics & OPSEC
- Zero-logging configuration throughout infrastructure
- Log rotation and secure deletion
- Command history suppression
- Memory protection mechanisms
- Swap file encryption/disabling
- Temporary file cleanup
- Secure exit procedures with data wiping
- Process hiding techniques
- Service name obfuscation
Evasion Techniques
- Port randomization for C2 communications
- User-Agent randomization
- Sleep/jitter timing randomization
- Process injection method randomization
- Communication protocol obfuscation
- Traffic flow randomization
- Decoy traffic generation capabilities
IR & Blue Team Evasion
- Security tool detection (user-agent based)
- Security vendor IP range blocking
- Automated redirection of analysis tools
- Mobile device detection and targeting
- Suspicious behavior detection and response
- Rate limiting for suspicious connections
- Geographic IP filtering
- Academic research network blocking
- Timing delays for suspicious requests
- Anti-sandbox techniques
📡 COMMUNICATION & REDIRECTORS (18 features)
NGINX Redirector Configuration
- Advanced NGINX redirector with SSL
- HTTP to HTTPS redirection
- Legitimate website masquerading
- Intelligent traffic routing
- Proxy configuration for C2 traffic
- TCP stream forwarding
- Load balancing capabilities
- Custom error page handling
Traffic Management
- Request filtering and validation
- Payload delivery path protection
- Content-Type validation
- Security header implementation
- CORS configuration
- Cache control for operational security
- Compression settings optimization
- Server signature obfuscation (Microsoft-IIS spoofing)
Credential Harvesting
- Fake login page deployment
- Microsoft-themed credential capture
- Form data encryption and storage
- Credential logging with metadata
📧 EMAIL & PHISHING INFRASTRUCTURE (15 features)
Mail Server Setup
- Postfix mail server configuration
- Dovecot IMAP/POP3 configuration
- SMTP authentication setup
- TLS encryption configuration
- Mail queue management
Email Deliverability
- DKIM key generation and configuration
- DMARC policy implementation
- SPF record guidance
- Mail routing configuration
- Reputation management features
Email Tracking
- Transparent pixel tracking system
- Email open rate analytics
- Geolocation tracking integration
- User-agent analysis
- Tracking dashboard with statistics
🔧 RECONNAISSANCE & ATTACK TOOLS (25 features)
Network Reconnaissance
- Nmap integration
- Masscan deployment
- Gobuster directory enumeration
- DNSEnum subdomain discovery
- Enum4linux SMB enumeration
- Responder LLMNR/NBT-NS poisoning
- Inveigh .NET Responder equivalent
Web Application Testing
- SQLMap SQL injection testing
- Dirb web path discovery
- Nikto web vulnerability scanning
- Custom wordlist management (SecLists)
Credential Attacks
- Hydra brute force attacks
- John the Ripper password cracking
- Hashcat GPU-accelerated cracking
- TREVORspray password spraying
- MailSniper Exchange enumeration
- Kerbrute Kerberos enumeration
Post-Exploitation
- NetExec (CrackMapExec successor)
- Impacket toolkit integration
- SharpCollection .NET tools
- PEASS-ng privilege escalation
- Metasploit Framework integration
🖥️ USER INTERFACE & EXPERIENCE (15 features)
Interactive Interface
- Color-coded terminal interface
- Interactive menu system with categories
- Guided deployment wizard
- Progress indicators and status updates
- Error handling with user-friendly messages
Command Line Interface
- Comprehensive CLI argument parsing
- Provider-specific parameter validation
- Batch deployment capabilities
- Configuration file support
- Debug and verbose modes
Documentation & Guidance
- Automated post-deployment instructions
- DNS configuration guidance
- SSL certificate setup instructions
- Usage examples and command references
- Troubleshooting guides
⚙️ CONFIGURATION MANAGEMENT (10 features)
Template System
- Jinja2 template engine integration
- Dynamic configuration generation
- Environment-specific customization
- Variable interpolation and validation
State Management
- Deployment state persistence
- Cross-deployment resource tracking
- Configuration backup and restore
- Version control integration support
🧹 CLEANUP & TEARDOWN (8 features)
Resource Cleanup
- Comprehensive resource identification
- Force cleanup with confirmation
- Partial cleanup for failed deployments
- SSH key cleanup and rotation
- State file management
- Orphaned resource detection
- Cross-region cleanup support
- Provider-agnostic teardown procedures
📊 MONITORING & ANALYTICS (5 features)
- Deployment logging and metrics
- Health check automation
- Performance monitoring hooks
- Error tracking and reporting
- Usage analytics collection