Managing Which VMs Are Scanned
Aikido gives you precise control over which virtual machines (VMs) are included in security scans through AWS tags. This allows you to customize your scanning scope based on your specific security needs.
Available Tags
AIKIDO_INCLUDE_VM
When this tag is applied to any VM in a region with the value true
, Aikido switches to an "opt-in" scanning model, where only VMs with this tag will be scanned in that region.
AIKIDO_EXCLUDE_VM
When this tag is applied to a VM with the value true
, Aikido will skip scanning this specific VM, regardless of other scan configurations.
Important Notes
The AIKIDO_INCLUDE_VM tag changes scanning behavior for the entire region when used
AIKIDO_EXCLUDE_VM takes precedence over AIKIDO_INCLUDE_VM if both are applied
If no AIKIDO_INCLUDE_VM tags exist in a region, Aikido scans all VMs by default (except those with AIKIDO_EXCLUDE_VM)
By leveraging these tags, you can create a tailored scanning strategy that aligns with your security priorities and resource management needs.
Use Cases
1. Scanning Only Production Environments
If you want to focus your security scans on production workloads while ignoring development environments:
# Tag all production VMs
aws ec2 create-tags --resources i-1234567890abcdef0 i-0987654321fedcba0 --tags Key=AIKIDO_INCLUDE_VM,Value=true
2. Excluding Sensitive Systems
For VMs that contain sensitive data or require specialized handling:
# Exclude a sensitive database server
aws ec2 create-tags --resources i-db12345678901234 --tags Key=AIKIDO_EXCLUDE_VM,Value=true
3. Region-Specific Scanning Policies
Since the AIKIDO_INCLUDE_VM
tag is region-scoped, you can implement different scanning policies per region:
In us-east-1: Tag only critical workloads for scanning
In us-west-2: Allow scanning of all VMs by not using the
AIKIDO_INCLUDE_VM
tag
Last updated
Was this helpful?