Skip to main content
Back
DemonstrationAWS
2 min read

An AWS IAM study showed how policy administration can expand access

Environment
Rhino Security Labs’ AWS IAM research
When
Publicly documented by August 13, 2018Disclosed Aug 13, 2018
Entry
The study examined IAM identities with delegated administration over policies or identities.

Rhino Security Labs cataloged 21 IAM privilege-escalation methods and credited earlier work by CyberArk. Two policy-governance examples illustrate separate decisions for defenders: who can change an effective policy and how much authority a workload identity can receive.

What the demonstration did

Researcher
Rhino Security Labs
Internet
AWS IAM
Managed policy

Research environment / Rhino Security Labs’ AWS IAM research

  1. 1

    Policy administration could change effective access

    2018 research

    Rhino described an IAM principal with authority over the effective version of a customer-managed policy. An earlier version could carry broader permissions.

  2. 2

    An identity could receive a broader policy grant

    A separate 2018 example

    In a separate example, the team showed that attaching a more permissive identity policy could expand the access of a user or role. The eventual permissions varied with the policy.

Impact

Rhino showed that managing a policy can alter the effective permissions of identities to which it applies. The impact varied with the existing policies and grants.

Would the controls have stopped it?

Separate policy administration from workload permissions

Today, where IAM changes belong to designated administrators, a member-account service control policy can enforce that division. A permissions boundary on a workload identity separately limits how much an attached policy can grant.

Incident control assessments

1
Prevented
1
Contained
0
Not covered

How it could have been prevented

The same replay with the controls in place. Green marks where a step is refused, blue where it is bounded, and red where no control reaches it. Open a row to read the control, why it acts, and its caveat.

Researcher
Rhino Security Labs
Internet
AWS IAM
Managed policy

Research environment / Rhino Security Labs’ AWS IAM research

1 · Policy administration could change effective access

1 Prevented

2 · An identity could receive a broader policy grant

1 Contained

Key facts

  • The investigation cataloged 21 methods across different IAM configurations.
  • The authors credited earlier CyberArk research for some of the methods.
  • The article contains an edit dated August 13, 2018. Its current publication metadata is dated November 19, 2018.
  • The rights available from a previous policy version depended on its contents.

Sources

Every fact in this breakdown comes from the public reporting below. The replay is a model of that reporting, not a reconstruction of the environment it describes.

  1. 1.
    AWS IAM Privilege Escalation – Methods and MitigationRhino Security Labs · undated · ResearchA first-hand research catalog of 21 methods, including independent examples of excessive managed-policy authority.
  2. 2.
    Versioning IAM policiesAmazon Web Services · undated · AdvisoryOnly the default version of a managed policy is operative for attached identities.
  3. 3.
    Permissions boundaries for IAM entitiesAmazon Web Services · undated · AdvisoryAWS describes the maximum identity permissions, explicit denies and the treatment of resource-based grants to sessions.
  4. 4.
    Service control policies (SCPs)Amazon Web Services · undated · AdvisoryAWS describes the member-account scope of SCPs and the management-account and service-linked role exceptions.
  5. 5.
    Service control policies in AWS Organizations enable fine-grained permission controlsAmazon Web Services · Mar 25, 2019 · AdvisoryAWS added condition elements to SCPs on March 25, 2019.

The estate in the replay follows the researchers' description of their own test environment. Verdicts describe what a control does when it is in place before the run. They are not an assessment of any company's security program.

More cloud attack breakdowns

All breakdowns