2020-02-12 23:09:16 +02:00
title : AWS EC2 Startup Shell Script Change
2020-02-12 22:23:18 +02:00
id : 1ab3c5ed-5baf-417b-bb6b-78ca33f6c3df
status : experimental
2021-02-24 14:43:13 +00:00
description : Detects changes to the EC2 instance startup script. The shell script will be executed as root/SYSTEM every time the specific instances are booted up.
2020-02-12 22:23:18 +02:00
author : faloker
date : 2020 /02/12
2021-08-09 15:41:40 +02:00
modified : 2021 /08/09
2020-02-12 22:23:18 +02:00
references :
2020-02-12 22:48:46 +02:00
- https://github.com/RhinoSecurityLabs/pacu/blob/master/modules/ec2__startup_shell_script/main.py#L9
2020-02-12 22:23:18 +02:00
logsource :
2021-11-14 09:56:59 +01:00
product : aws
2020-02-12 22:48:46 +02:00
service : cloudtrail
2020-02-12 22:23:18 +02:00
detection :
2020-02-12 22:48:46 +02:00
selection_source :
2021-08-09 15:41:40 +02:00
eventSource : ec2.amazonaws.com
2022-01-06 14:02:35 +01:00
requestParameters.userData : '*'
2021-08-09 15:41:40 +02:00
eventName : ModifyInstanceAttribute
condition : selection_source
2020-02-12 22:23:18 +02:00
falsepositives :
- Valid changes to the startup script
2020-09-13 22:03:04 -06:00
level : high
2020-02-12 22:23:18 +02:00
tags :
2020-09-03 14:16:47 +00:00
- attack.execution
- attack.t1059.001
- attack.t1059.003
- attack.t1059.004