You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now the generated IAM role for the state machine is permitted to invoke ALL functions. Should one of the functions used in the step function be compromised, and allowed attacker to gain access to its temp AWS credentials, the attacker would have the permission to execute any and every function in the whole account.
Instead, we should parse the step function definition, pick out the ARN for tasks, and the generated IAM role should be permitted to invoke only those ARNs.