Use this if
Scan your AWS environment for misconfigurations with Prowler, deployed as a Lambda container on EventBridge Scheduler — no EC2, no always-on compute.
- Audience
- Cloud engineers, security engineers, platform teams
- Typical time
- 5 minutes
公开指南
Scan your AWS environment for misconfigurations with Prowler, deployed as a Lambda container on EventBridge Scheduler — no EC2, no always-on compute. 受众: Cloud engineers, security engineers, platform teams. 典型配置时长: 5 minutes.
Scan your AWS environment for misconfigurations with Prowler, deployed as a Lambda container on EventBridge Scheduler — no EC2, no always-on compute.
Copy a working starter, run it in your environment, then come back here for the deeper rollout details.
Download the exact source files referenced on this page, or run the one-command installer to write them locally before following the deployment steps.
Creates the AWS CDK project under `deploy/aws-cloud-scanner/` so the Lambda deployment commands on this page work unchanged.
bash <(curl -fsSL https://blackshield.chaplau.com/source-bundles/aws-cloud-scanner.sh)
cd deploy/aws-cloud-scanner# Bootstrap the local source bundle first
bash <(curl -fsSL https://blackshield.chaplau.com/source-bundles/aws-cloud-scanner.sh)
cd deploy/aws-cloud-scanner
pip install -r requirements.txt
# 1. Store API key (once per account)
aws secretsmanager create-secret \
--name "blackshield/cloud-scanner/api-key" \
--secret-string "sp_xxxx"
# 2. Bootstrap CDK (once per account+region)
cdk bootstrap
# 3. Deploy — Lambda runs Prowler every 6 hours
BLACKSHIELD_API_URL=https://api.blackshield.chaplau.com \
SCANNER_IMAGE_URI=public.ecr.aws/blackshield-security/cloud-scanner:1.0.0 \
cdk deploy --require-approval never# Invoke Lambda manually
aws lambda invoke \
--function-name BlackShieldCloudScanner \
--invocation-type Event \
/tmp/response.json
# Follow execution logs in real time
aws logs tail /aws/lambda/BlackShieldCloudScanner --follow
# Check findings arrived
curl -sf \
-H "X-API-Key: sp_xxxx" \
"https://api.blackshield.chaplau.com/api/v1/findings?scanner=cloud&limit=5" \
| python3 -m json.toolUse the guided steps below when you want to tailor the rollout, validate ownership, or expand the deployment safely.
步骤 1
Install the CDK, store your API key in Secrets Manager, and bootstrap the target account.
What success looks like
Bootstrap the account+region: cdk bootstrap (once per account/region).
步骤 2
Three commands deploy Lambda + EventBridge + IAM + CloudWatch logging.
What success looks like
The stack creates a 3 GB Lambda, IAM role with SecurityAudit + ViewOnlyAccess, and an EventBridge schedule.
步骤 3
Trigger a manual run, confirm findings, then roll out to the entire AWS Organization.
What success looks like
For multi-account: use CloudFormation StackSets targeting your OU — see the Developer Guide.
Keep your rollout moving with the next recommended step.
导入首批发现