Capture live network traffic using VPC Traffic Mirroring, deploy sensor instances with CloudFormation or CDK, and stream findings automatically to the platform. Audience: Platform engineers, network architects, security engineers. Typical setup time: 15 minutes.
quickstart
Use this if
Capture live network traffic using VPC Traffic Mirroring, deploy sensor instances with CloudFormation or CDK, and stream findings automatically to the platform.
You have an AWS VPC with production workloads running in EC2 instances.
You have created an ingestion API key in Settings → API Keys with Ingestion scope.
You have permissions to create VPC Traffic Mirror resources and EC2 instances.
Fast path
Copy a working starter, run it in your environment, then come back here for the deeper rollout details.
Demonstration only
This configuration is designed for ease of use. To deploy scanner clients at scale, please plan your deployment architecture accordingly or contact us for enterprise best practices.
Get the source bundle
Download the exact source files referenced on this page, or run the one-command installer to write them locally before following the deployment steps.
AWS network sensor CDK source
Creates the AWS CDK project under `deploy/aws-network-sensor/` with the current platform API URL prefilled so the deployment commands on this page are runnable without editing boilerplate first.
deploy/aws-network-sensor/
bash
BLACKSHIELD_NETWORK_SENSOR_IMAGE=public.ecr.aws/blackshield-security/network-sensor:1.0.6 \
BLACKSHIELD_API_URL=https://api.blackshield.chaplau.com \
bash <(curl -fsSL https://blackshield.chaplau.com/source-bundles/aws-network-sensor.sh)
cd deploy/aws-network-sensor
Use the guided steps below when you want to tailor the rollout, validate ownership, or expand the deployment safely.
Step 1
Deploy sensor instance with CDK
Use the ready-made CDK stack to deploy a right-sized EC2 instance with the necessary IAM roles, security groups, and CloudWatch monitoring. This acts as the destination for mirrored traffic.
Use the source bundle below to download the AWS network sensor CDK project into `deploy/aws-network-sensor/`.
Store your ingestion API key in AWS Secrets Manager as `blackshield/network-sensor-key-prod`.
Open `deploy/aws-network-sensor/cdk.json` and set your VPC ID, subnet ID, and instance sizing.
Set up a Python 3 virtual environment and install dependencies (`pip install -r requirements.txt`).
Run `cdk bootstrap` (first time only) and `cdk deploy --require-approval never`.
Note the newly created EC2 Instance ID and ENI (Elastic Network Interface) ID from the CDK outputs — you'll need this for the mirror target.
What success looks like
Note the newly created EC2 Instance ID and ENI (Elastic Network Interface) ID from the CDK outputs — you'll need this for the mirror target.