AWS and Cloudanix team co-authored this blog: Real-Time Threat and Anomaly Detection for Workloads on AWS

IAM, AI, and Cloud Security: Unlocking Scale and Battling New Threats with Stephen Kuenzli

Stephen Kuenzli of k9 Security explains how to scale IAM with self-serve patterns, why literal least privilege fails, and how AI agents help.

Who can delete the production database? That question — unanswered in most organizations — is what drove Stephen Kuenzli to dedicate his career to solving IAM at scale. A decade later, the problem has only grown more complex as AI agents, MCP servers, and vibe coding multiply the volume of access decisions organizations must make.

We spoke with Stephen Kuenzli, founder of k9 Security and author of Effective IAM for AWS, on the Scale to Zero podcast. Stephen helps cloud teams scale governance within their existing workflows, bringing deep expertise from years of leading cloud migrations and solving the hardest IAM challenges at scale.

You can read the complete transcript of the episode here >

What are the biggest misconceptions about scaling IAM?

Stephen identifies two critical misconceptions that prevent organizations from scaling IAM effectively:

Misconception 1: Centralized security teams can be in the delivery path without blocking teams. The scale factors are wrong. There are roughly 50 application engineers to every one cloud security specialist — who may not even sit in the security team. If that specialist is responsible for reviewing 2–5 changes per day and does not respond within four business hours, they block delivery, create stress, and slow the entire organization.

Misconception 2: Being too literal about least privilege. Leaders often aspire to least privilege without defining what it means at scale. AWS alone has over 17,000 individual permissions. Attempting to “artisanally craft” bespoke policies for each principal and resource is humanly impossible. Stephen calls this “CodeGolf” — removing every last permission — and argues it misses the point.

The practical alternative: use coarser abstractions like “can this principal administer the resource, read data, write data, or delete data?” You can achieve 90% of the risk reduction with these higher-level controls, then play CodeGolf only with your most critical resources.

How do you make IAM self-serve without losing control?

Stephen’s approach: 95% of security changes should be self-serve from pre-built, vetted components. Security specialists should not be in the operational path of reviewing changes before production.

The implementation pattern:

  • Build reference architectures on sound security patterns. For example, implement a data perimeter where each application gets its own KMS key. All application data is encrypted with that key, and access is controlled via key policy — even when multiple applications share an account.
  • Codify these patterns as infrastructure-as-code libraries. Application teams express intent (“I want S3 and DynamoDB”) and the underlying components handle encryption, key management, and policy generation automatically.
  • Use policy generators (Stephen’s are freely available on GitHub for CDK and Terraform) that translate human-readable intent into correct, least-privilege policies. It took an expert weeks to get these policies right once — now they are reusable components.
  • Create a security guild or center of excellence where practitioners collaborate, discuss gaps, and share solutions. When something is not available as a pre-built component, the guild provides transparent planning — “this is a two-week effort, not a two-hour one.”

What is the first thing to check in any AWS account?

Stephen’s immediate focus when working with clients: who has IAM administrative access? Specifically, who can create roles, change policies, or detach policies?

The consistent finding: 3–5 excess IAM administrators in production accounts. Not from malicious intent — from incidents where permissions were granted to “get things working again” and never revoked.

The danger scenario: Application A runs on the edge taking internet traffic. It has IAM admin privileges on an ECS cluster shared with Application B. If Application A is breached, the attacker can pivot to all of Application B’s data — even though Application B itself was never directly compromised.

Other critical red flags:

  • Stale API access keys that have existed for months or years. These lead to breaches. Move to IAM roles (via identity provider SSO for people, instance roles for applications) or at minimum implement key rotation.
  • Applications running with permissions they do not need. Test with the same permissions you will have in production — your security policies are as much a part of the application definition as the code itself.

How are AI agents and MCP servers changing security operations?

Stephen sees a fundamental shift: the cost of analyzing incoming security data is about to drop precipitously. AI agents with access to MCP servers can integrate previously siloed data sources — Security Hub, JIRA, CSPMs — into cohesive stories.

What becomes possible:

  • Automated research and analysis. Agents pull findings from Security Hub, deduplicate them, cross-reference with JIRA tickets, and prepare a cohesive package for human decision-making.
  • Intelligent routing. If an agent knows that security issues in a specific account were recently resolved by a particular team, it can route new issues to that team automatically. The bar is low — anything better than fully manual is a win.
  • Decision support with reasoning. LLMs bring reasoning capability that was missing from software for decades. They can apply severity labels consistently based on context, reducing dependence on individual analyst judgment.
  • Risk quantification. With access to private information (firmographics, revenue, industry context), agents may help quantify risk in meaningful ways — building literal business cases for prioritizing fixes.

Stephen built an MCP server for Security Hub in about four hours. The actual code was trivial — most time was spent on configuration. When he asked Claude to identify the most critical issues, it did a “very good job” of filtering and prioritizing.

What challenges does AI create for security teams?

Vibe coding and AI-generated code increase the volume of changes flowing through delivery pipelines. Stephen’s advice:

  • Examine what happens at 2x, 3x, 5x volume. If your security processes have manual steps or limited scalability, they will break under increased throughput.
  • Do not take shortcuts on SDLC. Organization goals and policies for secure delivery did not change just because code is generated faster. The same reviews, checks, and delivery processes apply.
  • POC new AI security tools carefully. There will be a wave of agents that review PRs and find issues. Start with one team, validate signal-to-noise ratio, then expand to three teams, then ten. Have security specialists feel the pain of low signal alongside application engineers.
  • Build empathy into tool rollout. Do not dump AI-generated findings into JIRA and walk away. Be responsible for the quality of what you are routing to application teams.

The opportunity is enormous, but it requires the same disciplined, incremental approach that works for any security capability: start small, measure, iterate, scale.

People Also Read

What Our Users Are Saying

Customer Reviews

Cloudanix is trusted by security leaders worldwide to deliver proactive, reliable, and cutting-edge cloud security.

One day, I changed the password of a root account, and my CTO called me within less than a minute to confirm if I did so. I was not expecting a reaction this quick. He told me Cloudanix alerted him of this password change and that he wanted to confirm as it was a critical security notification. I couldn't believe it!

Ritesh Agarwal
Ritesh Agarwal
CEO, Airgap Networks

Compliance is one way of staying secure, but what I want is the ability to go deeper and attain 'true security.' Cloudanix provides us the capability to do so.

Vishal Madan
Vishal Madan
Head of Engineering, iMocha

Cloudanix is building for the future of the cloud, which makes the product all the more desirable.

Ritesh Agarwal
Ritesh Agarwal
CEO, Airgap Networks

Cloudanix gave us the visibility we were missing. Being able to move from permanent access to a robust Just-In-Time (JIT) workflow has fundamentally changed our security posture without slowing down our engineering velocity.

Pavan Kumar Lekkala
Pavan Kumar Lekkala
SRE Lead, HugoHub

We are excited to leverage Cloudanix's comprehensive multi-cloud DevSecOps solution to secure our production workloads on AWS. Cloudanix has demonstrated that it can solve many challenges that DevSecOps teams face while continually adding new features such as SOC2 compliance and drift detection.

Satish Mohan
Satish Mohan
Co-founder & CTO, Airgap Networks

Managing third-party partner access was once a major concern for our security posture. With Cloudanix JIT Cloud, we've effectively achieved zero third-party risk. We can now grant access confidently, knowing that it is temporary, audited, and automatically revoked, resulting in a 100% reduction in our privileged access exposure.

Okesh Badhiye
Okesh Badhiye
Head of Technical Engineering, Finfinity

The snooze feature and responsible alerts have helped us save time and prioritize what to tackle first.

Satish Mohan
Satish Mohan
Co-founder & CTO, Airgap Networks

Implementing Cloudanix JIT internally allowed us to practice what we preach. By eliminating permanent access to our own clouds and databases, we've neutralized the risk of standing privileges, ensuring our own 'keys to the kingdom' are never left exposed.

Girish Manghnani
Girish Manghnani
Managing Partner, Tech Inspira

The problem with permissions is a lot of times, the gaps are left open due to oversights from inside the organization itself. With Cloudanix's CIEM, we get a complete view of user permissions and access. This enables us to update the permissions, reducing the attack surface.

Nilesh Pethani
Nilesh Pethani
Application Architect, iMocha

In the world of Fintech, trust is our currency. Cloudanix provided the frictionless visibility we needed to secure our EKS workloads across AWS, ensuring we stay audit-ready for SOC2 and GDPR without slowing down our engineering velocity.

Amol Naik
Amol Naik
Head of Security & Infrastructure, HugoHub

Cloudanix delivered value within 5 minutes of onboarding. Continuous monitoring, timely detection, and excellent documentation helped us attain a great cloud security posture.

Divyanshu Shukla
Senior DevSecOps, Meesho

Technology strategies and business strategies are in a state of constant change which includes centralization and decentralization of responsibilities. Regardless of strategic shift, we still have intellectual property to protect. Cloudanix are critical partners for us in our public cloud security posture across our three cloud providers.

Jerry Locke
Jerry Locke
Senior Director Global Solutions Engineering, Eversana

Cloudanix has been amazing. They opened up a common Slack channel with us — and it feels like we are talking to our own team and getting things done with Cloud security. The support team is always available, friendly, helpful, and ready to go out of their way.

Satish Mohan
Satish Mohan
CTO, Airgap Networks

Beyond just access management, Cloudanix CSPM has given us a unified view of our AWS environment. The real-time alerting and anomaly detection allow us to prevent any untoward activity before it happens, which is critical for a marketplace connecting 50+ financial institutions.

Okesh Badhiye
Okesh Badhiye
Head of Technical Engineering, Finfinity

For a Fintech company, data is our most valuable — and most sensitive — asset. Cloudanix DAM hasn't just improved our visibility; it has given us control. The ability to mask data and prevent unauthorized queries in real-time is a game-changer for our compliance and customer trust.

Jiten Gala
Jiten Gala
President Engineering and Product, Kapittx

Our clients, especially in the Middle East financial sector, demand absolute accountability. Cloudanix JIT Cloud has been a competitive differentiator for us, allowing us to provide secure, governed access to customer accounts that meet their strictest audit and compliance requirements.

Girish Manghnani
Girish Manghnani
Managing Partner, Tech Inspira

Cloudanix is always on my team's lips because of its exceptional support. Be it a small or big query, Cloudanix has gone above and beyond to resolve them. This one's a keeper for us.

Sujit Karpe
Sujit Karpe
CTO, iMocha

For a long-lasting partnership, great support goes a long way. Cloudanix has delivered exceptional support whenever required. Their edge is their team is always ready to go beyond to solve any issues that we have. This speaks volumes about the culture at Cloudanix.

Akash Maheshwari
Akash Maheshwari
Co-founder, MoveInSync

Beyond the technology, Cloudanix feels like an extension of our own team. Their willingness to stand up a dedicated Middle East tenant for us and provide exceptional support at a sensible price makes them a long-term partner for Hugosave.

Surya Tamada
Surya Tamada
CTO, HugoHub

The real-time notifications that Cloudanix provides are a real lifesaver. Their adaptive notifications ensure that my team stays productive and doesn't get interrupted all the time.

Digvijay Singh
Staff Security Engineer, Meesho

The whole point in technological evolution is to help improve the world we live in. We must protect that and to do so requires an effective and efficient security strategy. The Cloudanix team helped make our public cloud security posture management strategy a reality. The symbiotic relationship we have allows for a continuous feedback loop which is how business should operate.

Larry Wheat
Larry Wheat
Staff Solutions Engineer, Eversana

Ready to see your graph?

Connect a cloud account in under 30 minutes. See every finding rooted in identity, asset, and blast radius — with a fix path attached.

Book a Demo