-
Identifies the first time an IAM principal passes a given execution role (
roleArn) to an Amazon SageMaker resource, viaCreateNotebookInstance,CreateTrainingJob,CreateProcessingJob,CreateAutoMLJob, orCreatePipeline. These actions requireiam:PassRoleand attach an IAM role that the created resource then runs as. An adversary holding both SageMaker create permissions and a broadiam:PassRolegrant can pass a more privileged role to a resource they control and execute code as that role, escalating privileges. The rule keys on the combination of the calling principal and the passedroleArn, so it surfaces a principal using an execution role it has not used before in the last 7 days; a role whose account differs from the caller's, or that is more privileged than the caller, is especially suspicious.
Read More -
Identifies an Amazon SageMaker notebook lifecycle configuration whose OnStart or OnCreate script, after base64 decoding, contains patterns associated with malicious activity such as reverse shells, EC2 instance metadata (IMDS) credential access, or download-and-execute commands. A lifecycle configuration runs as root on the notebook instance, so a script with these patterns is a strong indicator of an attempt to backdoor the notebook, steal the execution role's credentials, or establish persistent code execution. This rule decodes the script in the request and matches high-signal indicators; it is a higher-fidelity companion to the rule that alerts on any lifecycle configuration change.
Read More