Teraform to run pentest images in AWS
Please refer to AWS policies https://aws.amazon.com/security/penetration-testing/
- modify variables.tf
- terraform init
- terraform apply
- aws ecs list-tasks --cluster blackscan
- aws ecs execute-command --cluster blackscan --task <task_id_from_above> --container blackscan --interactive --command "nmap -sC domain.com"
Install module
- Run on ECS task
blackscan module nmap
to install nmap module
Using Modules
- nmap (use with caution)
nmap -sC domain.com
- wfuzz (quick and dirty subdomain scanner) - Example
wfuzz -c -Z -w /security/subdomains.txt --sc 200 https://FUZZ.domain.com
- trufflehog (useful for passive credential scanning) - Example
trufflehog git https://github.com/blackopsinc/BLACKSCAN
- bearer (useful for passive vulnerability scanning) - Example
bearer scan <source>
Security Automation
- Build use case automation (eg. Credential(Trufflehog), Bruteforce(wfuzz), Network(Nmap), Application(Bearer), etc.)
- Build to fire and forget use cases (scale and log data)
- Build reporting to identify "real" issues to Slack/JIRA, etc.