AWS EC2 Startup Script Modified on Stopped Instance — Detection Rule

A successful EC2 StopInstances request was followed within one hour by a successful ModifyInstanceAttribute request targeting userData on the same instance, by the same IAM principal. This may indicate an attempt to change instance startup behavior or establish persistence. These CloudTrail events do not confirm that the modified user-data script executed.

Read the full analysis on IntelFusions