Live webinar: the ARTEX attack chain, step by step

Monday, November 30, 3 p.m. CET. Rogier Fischer and Klaas Meinke show how AI attacker agents run an attack, and what to fix first. 45 minutes, live.

Save your seat
No items found.
Research
-
mins read
-

The Risk of Misconfigured Access Control Policies in Cloud Configuration

Muneeb Zafar
-
Field CISO
- -

TL;DR

Researchers found AWS services created S3 buckets with predictable names, letting attackers pre-create them with malicious code. The case shows how misconfigured access control policies lead to unauthorized access and privilege escalation, and why least privilege, MFA, monitoring, and audits are essential in the cloud.

Key questions

How did predictable S3 bucket names put AWS users at risk?

Services such as CloudFormation, Glue, EMR, SageMaker, ServiceCatalog, and CodeStar created an S3 bucket with a predictable name when first used in a region. Attackers could pre-create those buckets with malicious code, which could then run in the victim’s AWS environment.

What is a misconfigured access control policy in the cloud?

It is a policy that grants users or services more privileges than they need, or is set up incorrectly. Overly permissive policies allow unauthorized actions, data exposure, and privilege escalation that can lead to serious breaches.

How common are security misconfigurations in applications?

According to OWASP, 90% of the applications it examined had some form of security misconfiguration. Inadequate access control is one of the most critical, because a failure lets attackers gain unauthorized access and act inside the environment.

How can organizations prevent cloud access control misconfigurations?

Apply least privilege to every user and service, review permissions regularly, require strong authentication such as multi-factor authentication (MFA), continuously monitor and audit configurations for unauthorized changes, and apply cloud provider security updates promptly.

Why is prevention better than mitigation for cloud access control?

Once a misconfigured policy is exploited, attackers may already have accessed sensitive data or escalated privileges. Continuously auditing exposed cloud services for least privilege catches the problem before anyone can abuse it.

The Risk of Misconfigured Access Control Policies in Cloud Configuration

Security researchers recently discovered critical vulnerabilities in several Amazon Web Services (AWS) tools. Their research revealed that predictable naming patterns for S3 buckets—storage resources in the cloud—were being exploited by attackers.

In this instance, researchers identified vulnerabilities in AWS services such as CloudFormation, Glue, EMR, SageMaker, ServiceCatalog, and CodeStar. When these services are initiated in a new region, an S3 bucket is automatically created with a name that follows a predictable format.

This predictability enabled attackers to anticipate and pre-create these buckets across various regions, embedding malicious code in them. Consequently, when organizations use these services in the affected regions, the malicious code could be executed, potentially granting hackers unauthorized control over the AWS environment.

These vulnerabilities allowed unauthorized access and execution of malicious code, demonstrating the severe implications of misconfigured access control policies.

The risk of misconfigured access control policies

Access control policies in cloud environments often suffer from being either overly permissive or misconfigured, granting excessive privileges to users and services. The impact of these misconfigurations is profound. Unauthorized actions can compromise sensitive data, while privilege escalation allows attackers to gain elevated access levels, potentially leading to severe data breaches.

Access issues are alarmingly common. According to OWASP, 90% of the applications they examined exhibited some form of security misconfiguration. Inadequate access control is a critical aspect of cloud security. A failure in access control mechanisms allows hackers to gain unauthorized access and execute harmful actions.

Matters worsen when sensitive information is made publicly accessible.

To mitigate these risks, it is essential to implement the principle of least privilege for all users and services, regularly review and update access control policies, and utilize automated tools to enforce and monitor these controls.

It is a significant concern because it can undermine the integrity and security of cloud resources, often with severe consequences for affected organizations. Prevention, rather than mitigation, is the key here.

Preventing Inadequate Access Control

To safeguard against such vulnerabilities, it is essential to implement robust access control practices:

1. Regularly review access permissions: Ensure that only authorized users and services have access to cloud resources. Adopting the principle of least privilege—granting users only the permissions necessary for their roles—can mitigate the risk of unauthorized access.

2. Implement strong authentication: Employ strong authentication measures, such as multi-factor authentication (MFA), to enhance security and reduce the likelihood of unauthorized access.

3. Monitor and audit: Continuously monitor and audit cloud configurations and access controls to identify and address any anomalies or unauthorized changes promptly.

4. Stay informed: Keep abreast of security updates and patches from your cloud service providers. Regular updates are essential to address known vulnerabilities and improve security posture.

Counter Cloud Misconfigurations with Proactive Security Measures

Effective access control is vital for maintaining the security of cloud environments. The recent AWS incident underscores the importance of configuring access controls correctly to prevent unauthorized access and mitigate potential risks.

Based on our experience and the information gathered from regulatory alerts and disclosures, Hadrian distilled the most common instances of cloud misconfigurations and the methods to avoid them. We analyzed the situation of publicly accessible storage buckets earlier.

Hadrian addresses the challenges of cloud misconfigurations with its advanced platform, which continuously audits access control policies by finding exposed cloud services that don't adhere to the principle of least privilege. By finding misconfigured services Hadrian minimizes the risk of unauthorized actions and data breaches, providing a proactive solution to maintain robust security in cloud environments.

Our comprehensive e-book – Top 10 Cloud Misconfiguration and How To Resolve Them – will help you gain a deeper understanding of cloud security best practices and the steps to avoid common misconfigurations. By staying informed and proactive, you can ensure that your cloud operations remain secure and resilient against potential threats.

{{related-article}}

Post-quantum readiness, now in Hadrian

{{quote-1}}

“
”
,

{{quote-2}}

“
”
,

Related articles.

All resources
No items found.
get a 15 min demo

Start your journey today

Hadrian’s end-to-end offensive security platform sets up in minutes, operates autonomously, and provides easy-to-action insights.

What you will learn

  • Monitor assets and config changes

  • Understand asset context

  • Identify risks, reduce false positives

  • Prioritize high-impact risks

  • Streamline remediation

The Hadrian platform displayed on a tablet.
No items found.