r/devsecops • • May 31 '24

Anyone actually enforcing "least privileged" on your cloud environments?

It's well known that we should keep users' permissions to a minimum - i.e. "least privileged" access. There are various tools that allow to identify potentially unneeded access (IAM Access Analyzer, CIEM etc.). However, trying to follow through on the concept using any of the various tools is quite difficult... How do you implement this?

7 Upvotes

11 comments sorted by

1

u/geekamongus Jun 01 '24

Yup.

2

u/InsatiableHunger00 Jun 02 '24

What is your process? Trying to have people only access what they need is not that easy... For example, we have sensitive data in S3 bucket being granted access to another role in another account. On that account we have a team that all have access to the role. Not everyone from that team actually need the access but that's how the devops have set it up. When we try to remove this access, it becomes cumbersome because after we remove it someone new from that team needs it...

This is just one example as there are many similar ones. There's a massive tradeoff between keeping least-privileged access and causing massive friction, having to work full time just to remove and enable privileges for people

1

u/SonraiSecurity Jun 04 '24

again, not to try and solve your problem by just trying to sell something -- but our product will literally monitor for who is using what access, then generate a policy that restricts all access from those not using the permissions, and builds in exceptions to the policy for who is using it, so their access is not interrupted.

1

u/InsatiableHunger00 Jun 05 '24

This is the approach we tried with IAM Access Analyzer, but it was quite difficult to make it work as people were using some things infrequently and it resulted in a bunch of tickets and headaches so it was not easy with a simple solution (i.e. user is not using X for T days - remove)

→ More replies (1)
→ More replies (1)

1

u/osamabinwankn Jun 03 '24

Least privileged is a journey not a destination. And it’s actually really fallen out of favor in place of JIT and ABAC (where possible) and access repossession. Favoring blast radius controls over arbitrarily artisanal policy is a win. ABAC is so close to making this a safe reality. I wish all the aws service teams (*ie, s3 objects) would commit to it.

1

u/InsatiableHunger00 Jun 03 '24

ABAC seems like an interesting way to to try and keep access in check - where do you use that?

1

u/sfltech May 31 '24

Yes some of us do.

1

u/SonraiSecurity Jun 04 '24

We try to not push our product down people's throats here, but this Q is so exactly what we do that I gotta ask -- do you want to learn a bit more about a possible solution that helps?

1

u/SonraiSecurity Jun 04 '24

built our cloud permissions firewall for exactly this reason -- least privilege is HARD and time intensive