Git Product home page Git Product logo

aws-labs's People

Contributors

juan-guemberena avatar kbroughton avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

juan-guemberena

aws-labs's Issues

New Lab Idea: sts:AssumeRole

sts:AssumeRole has some interesting properties

If the role being assumed has the sts:AssumeRole permission then the role can assume itself NO MATTER WHAT THE CONDITION BLOCK SAYS. The condition block is ignored when the temp creds for a role are used to assume the same role.

Build a lab to explore this. This is very relevant to externalID attacks.

Also, assume-role has a max 12 hr time limit, but again, with the ability to assume itself, this can be extended indefinitely.
https://www.cyberark.com/resources/threat-research-blog/wild-temporary-tokens-and-where-to-find-them-aws-edition

Also explore assume-role across aws accounts and see if there is any difference in rules.

add iam:PassedToService lab

Elaborate on this question to make a new passrole lab

From Cloud Security Form Slack

I have a question with regards to below. Its from below article. It states “If there is no condition field, the principal can pass a role to any service.” (point #3). But my question is, lets say the “DevOpsEC2-*” role has trust relationship with only EC2…. why would i be able to pass this to any service other than EC2 ?? I hope i am making sense
https://unit42.paloaltonetworks.com/iam-roles-compromised-workloads/

you are correct, it wouldn't work if the trust policy didn't list it as a service however, the main difference is that by adding thee passedtoservice, your prevention of passing that role to a service is done so in the sense that the person who is doing the operation might have accesss to modify the trust policy on the role being passed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.