avatarTeri Radichel

Summary

The article discusses the security risks associated with the default OrganizationAccountAccessRole in new AWS Organizations accounts, emphasizing the need for AWS to allow customers to customize roles for better security practices.

Abstract

The post delves into the OrganizationAccountAccessRole within AWS Organizations, a role that is automatically created and allows administrators from the management account to assume full access in related AWS accounts. The author, Teri Radichel, points out that AWS's creation of this role without customer specification contradicts their recommended best practices for security policies. The risk is amplified if an administrator's credentials are compromised, as it could grant an attacker unrestricted access to all accounts within the organization. Radichel suggests that AWS should permit customers to define their own roles to mitigate such risks and expresses a desire for AWS to update their practices to align with customer needs and security best practices. The article concludes with a call to action for readers to review roles created by AWS Control Tower and AWS SSO for potential risks and to consider mitigation strategies.

Opinions

  • The author believes that AWS is not adhering to its own security policy best practices by automatically creating the OrganizationAccountAccessRole without allowing customers to specify the principal.
  • Teri Radichel expresses concern that the default role poses a significant security risk, particularly if an administrator's credentials are compromised.
  • The article conveys that the current implementation of the OrganizationAccountAccessRole is too risky due to the lack of Multi-Factor Authentication (MFA) requirements or other restrictions.
  • The author wishes that AWS would enable customers to create and specify their own roles for new AWS accounts created through AWS Organizations, suggesting this as an improvement to AWS services.
  • Radichel leaves it as an exercise for the reader to evaluate the roles created by AWS Control Tower and AWS SSO, implying that these may also present security risks that need to be addressed.

Risk Associated With The Role Created In New AWS Organizations Accounts

ACM.155 Taking a look at the OrganizationAccountAccessRole

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚙️ Check out my series on Automating Cybersecurity Metrics. The Code.

🔒 Related Stories: Cloud Governance | IAM | AWS Security

💻 Free Content on Jobs in Cybersecurity | ✉️ Sign up for the Email List

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In the last post we looked at the default Service-Linked roles in a new AWS account.

In this post we’ll explore that fourth role we saw in our new AWS Organizations account that was not an AWS Service-Linked role named OrganizationAccountAccessRole.

Trust policy for the OrganizationAccountAccessRole

As before let’s take a look at the trust policy associated with the OrganizationAccountAccessRole. I explained how to navigate to this trust policy and provided a link to trust policies in the last post.

When you take a look at this account you will see that this role allows any administrator in your management account to assume this role and take actions in your related AWS organizations account.

Here’s the recommendation on the AWS security blog regarding principals in AWS security policies:

Looks like AWS is not following their own recommended best practices in this case.

Well, if you set up a new account with AWS Organizations and AWS does not allow you at that time to specify who the principal should be in the trust policy then I presume the principal needs to be “root”. Now if someone forgets about this role and how it works they might add a new administrator in the management account and not realize that user now has full access to any AWS account in the organization because admin users in the management account can assume that rule created automatically in every account.

Additionally, if a management account administrator’s credentials get compromised, now the attacker has full access to any account in the organization with no MFA requirement or any other kind of restriction.

This role seems too risky as is and we are going to want to alter it. I really wish that AWS would allow customers to create and specify their own roles that should be deployed in new AWS accounts when deployed through AWS organizations. #awswishlist

For now, we will work around the problem.

Roles created by AWS SSO and Control Tower

Now that we’ve walked through the roles created by AWS for AWS Organizations, go back and take a look at the roles created by AWS when you use Control Tower and AWS SSO in your accounts. Consider if the roles created by those services pose any risk and how would you mitigate those risks. I’ll leave that as an exercise to the reader at this point.

Follow for updates.

Teri Radichel | © 2nd Sight Lab 2023

About Teri Radichel:
~~~~~~~~~~~~~~~~~~~~
⭐️ Author: Cybersecurity Books
⭐️ Presentations: Presentations by Teri Radichel
⭐️ Recognition: SANS Award, AWS Security Hero, IANS Faculty
⭐️ Certifications: SANS ~ GSE 240
⭐️ Education: BA Business, Master of Software Engineering, Master of Infosec
⭐️ Company: Penetration Tests, Assessments, Phone Consulting ~ 2nd Sight Lab
Need Help With Cybersecurity, Cloud, or Application Security?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🔒 Request a penetration test or security assessment
🔒 Schedule a consulting call
🔒 Cybersecurity Speaker for Presentation
Follow for more stories like this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
❤️ Sign Up my Medium Email List
❤️ Twitter: @teriradichel
❤️ LinkedIn: https://www.linkedin.com/in/teriradichel
❤️ Mastodon: @teriradichel@infosec.exchange
❤️ Facebook: 2nd Sight Lab
❤️ YouTube: @2ndsightlab
Aws Organizations
Cloud Security
Account
Role
Cybersecurity
Recommended from ReadMedium