New to Kestra?
Use blueprints to kickstart your first workflows.
Queries CloudWatch Logs Insights on VPC Flow Logs to detect security group rejections and unauthorized network scans.
This workflow executes a CloudWatch Logs Insights query against AWS VPC Flow Logs, filtering for action = 'REJECT' and aggregating packet counts by source IP and destination port. When external attackers scan public subnets or compromised instances attempt lateral movement across private VPCs, NACLs and Security Groups reject the packets. When rejected traffic exceeds the threshold, an incident alert is sent to Slack.
logs:StartQuery and logs:GetQueryResults.AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and SLACK_WEBHOOK configured in Kestra.log_group_name and aws_region.