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

Architecting Cloud Security: Building Foundations and Boundaries with Kushagra Sarma

Kushagra Sarma explains how to architect cloud security foundations using layered baselines, dynamic boundaries, and threat intelligence at scale.

In the complex, fast-moving world of hybrid and multi-cloud environments, establishing a robust security posture goes beyond simply checking compliance boxes. It requires building solid foundations, defining clear boundaries, and fostering a culture of continuous security improvement. This framework, rooted in a cloud-first, cloud-native approach, is essential for large-scale organizations.

We spoke with Kushagra Sarma, Senior Platform Security Engineer at Booking.com, who shared his journey from DevOps to core Cloud Security and detailed his strategies for architecting security at scale.

This article explores the core concepts of security baselines and boundaries, detailing how they are combined to build a strong security foundation in a large cloud environment like AWS.

You can read the complete transcript of the epiosde here >

What Are Security Boundaries and Security Baselines in the Cloud?

Practitioners often use the terms “boundary” and “baseline” interchangeably, but they represent distinct, though related, concepts in cloud security.

Security Boundary (The Maximum Limit)

A security boundary defines the maximum permissible permissions. It acts as a perimeter or parameter, establishing a logical separation to define the maximum limit of permissions a user can attain.

  • Examples: This can be a network boundary (network-level permissions) or an IAM boundary (on the permission side of things). AWS IAM Permission Boundaries are a specific example of this concept.

Security Baseline (The Bare Minimum Standard)

A security baseline is a benchmark or standard that represents the bare minimum controls that must exist, no matter what.

  • Goal: To safeguard resources, for example, by ensuring no public exposure.
  • Relationship: The security boundary is a subset of the overall baseline. The baseline is the top-level concept.

How Do Baselines and Boundaries Create a Strong Security Foundation?

A strong security foundation is created by utilizing the baseline as a layered approach, where boundaries and other preventative controls are combined with monitoring and early feedback mechanisms.

The Three Layers of a Baseline

Kushagra structures the baseline into different subsections, which together form the security foundation:

  • Preventative Control Baseline: This includes controls that prevent certain actions, such as enforcing IAM permission boundaries or ensuring the public access block is not turned off in AWS. These are often the non-negotiable controls.
  • Monitoring Baseline: This involves mechanisms to monitor the effectiveness of the preventative controls and track what is being prevented.
  • Shift Left Controls: These controls flag potential security issues early in the development cycle (e.g., checks in the CI/CD pipeline).

Beyond the Checkbox

A common misconception is that simply checking a set of compliance boxes means the baseline is ready. To avoid this, organizations must focus on:

  • Enforcement: How the controls are applied.
  • Monitoring: How the effectiveness of controls is tracked to enable improvement.
  • Feedback: How developers receive feedback early in the cycle.

How is Threat Intelligence Used for Continuous Baseline Improvement?

Defining the baseline is a never-ending process that requires constant iteration and refinement. Threat intelligence is critical for keeping the baseline current and proactive.

The Refinement Cycle

The continuous loop of baseline refinement involves multiple internal and external feeds:

  • Review the IAM Namespace: Since most foundational controls fall on the IAM side, security teams must constantly review the IAM namespace for new services or new features added to existing services. Reviewing the whole list of actions and permission sets shows what a new service is capable of.
  • Internal Threat Feeds: Preventative baselines are often a reaction to intelligence from threat detection and response teams that flag an action (e.g., IAM Passwords abuse) as being currently abused.
  • External Audits: Regular internal and external audits are essential for a reality check. External audits provide fresh eyes and a different perspective to validate the baseline and identify potential gaps.

How Can Security Teams Avoid Becoming a Roadblock to Business Velocity?

Security must find a balance between stringent controls and development velocity to avoid becoming a roadblock for the core business.

The Inclusion-Based Approach (Safelist)

To handle the constant rollout of new cloud services, Kushagra recommends a safelist approach

  • Principle: Permit only a list of approved services to be used (e.g., in a production environment) rather than attempting to deny a list of services and allowing the rest.
  • Benefit: This approach prevents new services from being deployed without first passing through the security review cycle and threat handling. It gives the organization granular control over what is deployed.

Dynamic Controls and Flexibility

Security should deploy dynamic controls to provide developers with flexibility and enable rapid experimentation.

  • Hard No (SCPs): Use Service Control Policies (SCPs) for non-negotiable controls where deviation or exception is never anticipated.
  • Flexibility (Permission Boundaries): Use IAM Permission Boundaries where flexibility is needed or where exceptions are anticipated.
  • Dynamic Generation: Implement “flavored permission boundaries” that can be built on the fly for a specific account (e.g., a pre-product dev environment). Developers can request access via Infrastructure as Code (IaC), removing the “grey area” where security manually tweaks permissions.
  • Dynamic SCPs: Some practitioners are also building dynamic SCPs that are attached at a per-account level, managed through a UI and request flow.
  • Infrastructure as Code Checks: For controls where policies lack granular condition key or constraint support, leverage IaC checks in the deployment pipeline. Flag these as warnings in sandbox environments, but enforce them as a hard no in production.

Is a One-Size-Fits-All Security Baseline Possible?

A single, one-size-fits-all security baseline for every single account in a large organization is not maintainable (e.g., managing 10 different versions of a baseline across 1,000 accounts). However, a layered approach and a one-size-fits-all boilerplate are crucial for maintaining standards and scale.

The Layered Architecture

The security baseline should be implemented in layers:

  • Global Baseline (Non-Negotiable): This is the top layer consisting of non-negotiable controls (e.g., encryption by default, MFA for users, monitoring) that apply to every account in the organization, no matter what. SCPs are often used for this layer.
  • Context-Specific Layered Boundaries: The permission boundary template is a one-size-fits-all boilerplate. This template dynamically generates a specific permission boundary based on the context (e.g., sandbox, QA, production, PCI scope, or legacy environment).

This layered approach ensures you don’t break developer productivity by having overly restrictive controls where flexibility is needed.

How Can Organizations Promote a Strong Security Culture?

Building a security culture requires bridging the gap between security and engineering, ensuring security is not an afterthought.

  • Early Engagement: Involve security teams as early as possible, even in architecture reviews and design phases. Waiting until a feature is ready to roll out creates the perception of security as a roadblock.
  • Openness and Awareness: Security should not be a grey area or a black box. Publish all the controls and checks (per service, per cloud) that apply to a developer’s environment. This knowledge transfer moves the culture towards shift left, as developers understand the underlying issue and are less likely to repeat the mistake.

What Strategies Work for Cloud Migrations and Multi-Cloud Setups?

Legacy Migration

When migrating from an on-premise or legacy cloud environment, flexibility in the permission boundary is key.

  • Flexible Boundary: Use a different, more relaxed flavored permission boundary for the legacy environment during the migration.
  • Flexible Boundary: Use a different, more relaxed flavored permission boundary for the legacy environment during the migration.
  • Refactoring: Ideally, organizations should refactor their environment to leverage cloud-native managed services rather than simply doing a “lift and shift,” though business requirements sometimes demand the latter.
  • Core Foundation: Before starting any large-scale security implementation, the core foundation must be in place, including having centralized deployment mechanisms to deploy controls to thousands of accounts at scale.

Multi-Cloud Architecture

For security across multiple cloud providers (e.g., AWS and GCP), use the layered approach to distinguish requirements.

  • Cloud Agnostic Requirements (Common): Generic, non-negotiable requirements (like encryption by default) must be mapped out and enforced everywhere.
  • Cloud Specific Requirements: The implementation of a requirement will differ (e.g., IAM terminologies). Specific controls targeting cloud-unique services and features must be designed for each provider.
  • Visibility is Core: Before any implementation, have a very good asset inventory (asset management) of your entire cloud footprint to query every asset and know its configuration. Visibility is the core component that allows security teams to reverse engineer controls based on deployed, insecure resources.

Recommendations for Growing Startups

For growing companies, it is vital to start small and implement foundational controls from the get-go to avoid breaking production workflows later.

  • Use Benchmarks: Don’t reinvent the wheel. Start with standards like NIST and CIS benchmarks.
  • Cloud Agnostic Standards: List requirements in a generic, cloud-agnostic way (e.g., encryption at default, MFA for users) so controls aren’t limited to a specific cloud provider.
  • Iterative Implementation: Start by listing the standards that will go into the non-negotiable control set. This becomes Version 0.1 of the baseline. It’s an ever-going iteration where you start small (e.g., 10 controls) and become more granular over time (e.g., 200 controls).

Conclusion: The Path to a Self-Securing Cloud Environment

Kushagra Sarma’s framework for cloud security underscores a fundamental truth: in environments scaled to thousands of accounts, manual security is impossible. The path to resilience lies in adopting a cloud-first, cloud-native mindset built on two pillars: proactive foundations and flexible boundaries.

By using a layered baseline and a one-size-fits-all boilerplate approach, organizations can achieve standardization while still allowing the necessary contextual flexibility for sandbox, QA, and production accounts. Critically, security must move beyond being a “black box” and empower developers by collaborating early, using IaC, and designing systems where the insecure path is the hardest one to take. Ultimately, continuous refinement driven by threat intelligence and a relentless focus on visibility is the only way to keep pace with the hyper-accelerated evolution of the public cloud.

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