Skip to content

Enumerate VPC Flow Logs

Platform Author Last Update
aws Nick Jones 2023-07-01

An adversary may attempt to enumerate which VPCs have flow logs configured, to identify what actions will be logged and where they will be logged to.

MITRE IDs

Required Permissions

  • ec2:DescribeFlowLogs

Required Parameters

None

Attacker Action

aws ec2 describe-flow-logs

Detection Case

ELK query

When logs are ingested into ELK, the following Lucene query can be used to identify relevant events.

eventName:DescribeFlowLogs AND eventSource:*.ec2.amazonaws.com  

Sigma Definition

---
title: Enumerate VPC Flow Logs
id: 1e1cb77a-3ee5-476b-bf20-c233f0742a8f
status: experimental
author: Nick Jones
date: 2023-07-01
description: An adversary may attempt to enumerate which VPCs have flow logs configured, to identify what actions will be logged and where they will be logged to.
logsource:
  service: cloudtrail
detection:
  selection_source:
    - eventSource: "*.ec2.amazonaws.com"
  events:
    - eventName: "DescribeFlowLogs"
  condition: selection_source AND events
level: low
tags:
  - attack.T1526