title: AWS EC2 Download Userdata id: 26ff4080-194e-47e7-9889-ef7602efed0c status: test description: Detects bulk downloading of User Data associated with AWS EC2 instances. Instance User Data may include installation scripts and hard-coded secrets for deployment. references: - https://github.com/RhinoSecurityLabs/pacu/blob/866376cd711666c775bbfcde0524c817f2c5b181/pacu/modules/ec2__download_userdata/main.py author: faloker date: 2020/02/11 modified: 2022/10/09 tags: - attack.exfiltration - attack.t1020 logsource: product: aws service: cloudtrail detection: selection_source: eventSource: ec2.amazonaws.com requestParameters.attribute: userData eventName: DescribeInstanceAttribute timeframe: 30m condition: selection_source | count() > 10 falsepositives: - Assets management software like device42 level: medium