Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: T1648-1 #3038

Merged
merged 4 commits into from
Jan 28, 2025
Merged

feat: T1648-1 #3038

merged 4 commits into from
Jan 28, 2025

Conversation

ryananicholson
Copy link
Contributor

Details:

Created a new attack for T1648 for AWS. The process that is mimicked is:

  • Attacker has access to credentials with lambda:UpdateFunctionCode and lambda:InvokeFunction rights or the equivalent
  • Function has an overly-permissive IAM role
  • Function code is altered to create a backdoor IAM user account

Testing:

Executed the atomic test with the following command:

Invoke-AtomicTest -AtomicTechnique T1648 -InputArgs @{profile="default"; region="us-east-2"} -PathToAtomicsFolder ./atomics
image

To cleanup, I ran the following:

Invoke-AtomicTest -AtomicTechnique T1648 -InputArgs @{profile="default"; region="us-east-2"} -PathToAtomicsFolder ./atomics -Cleanup
image

Associated Issues:

No issues corrected with this PR.

@patel-bhavin
Copy link
Collaborator

Neat atomic @ryananicholson ! thank you for the contribution! Curious to know if you have seen any reference to any blogs/research where you may have seen this TTP ? I think it might be good to add it to the description in case there is one! Else the PR looks good!

@patel-bhavin patel-bhavin merged commit fdd7704 into redcanaryco:master Jan 28, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants