Pruning Garden Paths In AWS
Evan Perotti (Principal Scientist · Security Risk Advisors)
Insomni'hack 2026 · Day 1 · Main Track
Overview
Assessing the security of complex cloud environments often forces security teams to choose between narrow, isolated configuration checks and noisy, over-engineered attack graphs. In this technical talk, Evan Perotti, Principal Scientist at Security Risk Advisors, explores the limitations of existing cloud security posture management (CSPM) and graph-based attack path analysis tools in Amazon Web Services (AWS). He introduces an open-source tool designed to prune misleading "garden paths"—high-noise, false-positive attack graphs—by combining robust relational data collection with localized AWS IAM simulation and human-in-the-loop Jupyter notebook workflows.

Key moments
- 0:00 Introduction and background on cloud security assessment approaches
- 3:55 Evaluation of existing graph-based tools and their limitations
- 7:55 Introduction to Neo4j and Cypher query language
- 11:50 Challenges of mapping complex AWS IAM permissions to graphs
- 16:20 Design and data collection mechanisms of the open source tool Nef
- 24:00 Applying attack primitives: Inbound service trust and account access
- 29:00 EC2 lateral movement and traditional privilege escalation analysis
- 37:35 Audience Q&A session on tool features and performance
Pruning Garden Paths In AWS
Speakers: Evan Perotti (Principal Scientist, Security Risk Advisors)
Conference: Insomni'hack
YouTube: https://www.youtube.com/watch?v=PnN1-LA3n5k
Overview
Assessing the security of complex cloud environments often forces security teams to choose between narrow, isolated configuration checks and noisy, over-engineered attack graphs. In this technical talk, Evan Perotti, Principal Scientist at Security Risk Advisors, explores the limitations of existing cloud security posture management (CSPM) and graph-based attack path analysis tools in Amazon Web Services (AWS). He introduces an open-source tool designed to prune misleading "garden paths"—high-noise, false-positive attack graphs—by combining robust relational data collection with localized AWS IAM simulation and human-in-the-loop Jupyter notebook workflows.
The talk matters because traditional graph tooling in the cloud often relies on naive policy parsing, generating tens of thousands of speculative edges that overwhelm analysts and degrade search performance. By addressing the fundamental gap between static permission assignment and actual runtime evaluation, Perotti demonstrates how security teams can build actionable, high-signal attack graphs that accurately reflect real-world privilege escalation, cross-account access, and service abuse vectors in enterprise AWS tenants.
Background
▶ Watch: Introduction and background on cloud security assessment approaches (0:00)
When assessing cloud security, tooling generally splits into two distinct methodologies: static checks and graph-based approaches. Static checks, popularized by tools like Prowler and compliance benchmarks from the Center for Internet Security (CIS), inspect individual resources in isolation. While effective at identifying unencrypted volumes, outdated metadata service versions (e.g., IMDSv1), or overly permissive security groups, static analysis fails to capture how multiple disparate resources interact to create systemic risk.
Conversely, graph-based research—pioneered in on-premises Active Directory by the BloodHound project and later expanded into multi-cloud environments via Cartography—focuses on multi-hop relationships. In cloud infrastructures, a virtual machine or user might be fully patched and compliant on paper, yet remain entirely vulnerable due to the administrative control wielded over it by another resource.
Despite the maturity of projects like Cartography (an incubated project of the Cloud Native Computing Foundation (CNCF) that integrates infrastructure-as-a-service platforms like AWS, GCP, and Azure with SaaS tools like Okta and Slack), Perotti and his team encountered significant friction during point-in-time ad hoc client assessments. Their evaluation revealed three primary limitations in existing tooling:
- Naïve IAM Evaluation: Tools frequently built graph edges by scanning policy documents for specific permission strings without evaluating the broader context of organizational boundaries, explicit denials, or session policies.
- Resource Rigidity: Coverage was often restricted to a small subset of AWS services, requiring developers to fork repositories and maintain upstream parity to add new resource types.
- Read-Only Constraints: Analysts were trapped in a rigid, read-only workflow without native mechanisms to inject custom heuristics, enrich nodes, or contribute bespoke edge-building logic directly into the analysis pipeline.
Key Findings
▶ Watch: Introduction to Neo4j and Cypher query language (7:55)
Perotti’s research emphasizes that the sheer scale of AWS—encompassing over 200 unique services and upwards of 20,000 distinct permissions—makes naive wildcard expansion catastrophic for graph performance and analyst sanity. Expanding a single statement containing actions and resources creates an unmanageable combinatorial explosion of edges in databases like Neo4j. Furthermore, policy statements do not merely grant access; they can explicitly deny actions via identity policies, Service Control Policies (SCPs), Resource Control Policies (RCPs), permission boundaries, and resource-based policies.
Key findings regarding real-world attack primitives in enterprise AWS environments include:
- Inbound Service Trust Abuse: Roles trusted by multiple AWS services are frequently over-permissioned because they must accommodate the aggregate operational requirements of all invoking services, creating widened attack surfaces for confused deputy vulnerabilities.
- Inbound Account Access via Control Tower/Organizations: AWS Organizations and AWS Control Tower automatically provision privileged roles in child accounts trusted by the root management account. Any principal capable of assuming a role in the master account can pivot directly into child accounts, achieving full tenant compromise.
- Alternative EC2 Access Mechanisms: Virtual machines configured with roles can be exploited via lateral movement if they possess permissions for alternative control plane access mechanisms, such as AWS Systems Manager (SSM) or EC2 Instance Connect, bypassing standard SSH key dependencies.
- Privilege Escalation Noise: While many principals possess abusable IAM permissions (e.g.,
iam:CreateAccessKey,iam:PutUserPolicy, orsts:AssumeRole), differentiating legitimate administrative workflows from risky escalation vectors requires contextual simulation rather than static string matching.
Technical Dive
▶ Watch: Design and data collection mechanisms of the open source tool Nef (16:20)
To overcome these structural limitations, Security Risk Advisors developed and released an open-source tool (referred to as Nef in the talk) built around a modern, modular data pipeline.
Data collection leverages Steampipe, an open-source multi-cloud query engine that exposes cloud resource configurations through a standard PostgreSQL-compatible SQL interface. Steampipe handles multi-account management, regional iteration, and API error handling natively. Using Java Database Connectivity (JDBC), the graph database ingests this data directly into Neo4j without custom ingestion plumbing.
Defining new resources requires minimal configuration:
To solve the IAM evaluation problem without incurring the latency and authentication overhead of the official AWS IAM Policy Simulator API, the architecture utilizes a local simulator called iam-simulate. Rather than guessing whether a principal can perform an action based on static strings, the tool programmatically feeds the principal's identity policies, permission boundaries, SCPs, and resource policies into the local simulator. If the simulation succeeds, an edge is committed to the Neo4j graph; if it fails due to explicit denials or condition mismatches, the path is pruned.
Condition evaluation includes intelligent parsing: when a simulation fails due to a static value check (such as a VPC endpoint restriction or secure connection requirement), the tool adjusts the request context and re-evaluates to distinguish between localized condition mismatches and broader policy denials.
For analysis and reproducibility, the tool embeds a Jupyter Notebook server alongside a YFiles graph visualization extension. Analysts can execute inline Cypher queries against Neo4j, render attack graphs directly inside markdown documents, and preserve bespoke analytical workflows for future engagements.
Demo / Proof of Concept
▶ Watch: Applying attack primitives: Inbound service trust and account access (24:00)
The speaker detailed how the tool's modular architecture applies to increasingly complex attack primitives, culminating in a demonstration of automated privilege escalation pathfinding.
- Inbound Service Trust Query: The analyst queries Neo4j to identify roles with multiple inbound service relationships:
- Master Account Pivot Query: The tool filters for paths originating outside the management account but terminating with administrative privileges inside the master account:
- Privilege Escalation Identification: The pipeline automatically enriches policy nodes during ingestion, tagging those containing known abusable permissions with a
provs(provocative/privilege escalation) property. The tool then identifies benign source roles possessing anAssumeRolepath to a target role enriched with administrative privileges, validates the transition viaiam-simulate, and renders the verified escalation path.
Defensive Implications
▶ Watch: Audience Q&A session on tool features and performance (37:35)
Defenders securing enterprise AWS environments must move beyond static compliance posture management and adopt graph-aware validation strategies. Specific defensive recommendations include:
- Prune Wildcard Trust and Resource Policies: Audit all resource-based policies (such as those on Amazon ECR repositories, S3 buckets, and KMS keys) and IAM role trust policies to eliminate broad account-level or wildcard principal trusts.
- Deconstruct Multi-Service Roles: Identify roles trusted by multiple AWS services and refactor them into single-service, least-privilege workloads to minimize blast radiuses.
- Monitor Alternative Management Paths: Restrict access to control-plane access vectors such as AWS Systems Manager (SSM) and EC2 Instance Connect. Ensure that permissions to execute
ssm:StartSessionorec2-instance-connect:SendSSHPublicKeyare strictly audited. - Incorporate Organizational Guardrails: Implement and test Service Control Policies (SCPs) and Resource Control Policies (RCPs) explicitly denying unauthorized cross-account assumptions at the AWS Organizations root level.
Key Takeaways
- Static CSPM tools catch isolated misconfigurations, but multi-resource graph analysis is required to uncover complex cloud attack paths.
- Naive wildcard expansion in IAM graphs creates unmanageable noise and degrades database performance; explicit permission simulation is essential for high-signal results.
- Open-source tools like Steampipe and Neo4j can be combined with local simulators (
iam-simulate) to evaluate AWS permission boundaries accurately without network round-trips. - Jupyter notebooks provide an effective medium for combining plain-text analysis, inline Cypher queries, and graph visualizations for reproducible cloud security assessments.
- Attack path tooling should augment human analysts rather than replace them, focusing on high-heuristic leads and human-in-the-loop validation.
About the Speaker(s)
- Evan Perotti (Principal Scientist, Security Risk Advisors): Evan Perotti focuses on research and development, primarily within the offensive security space. His specialties include AWS security, Windows endpoint security, and purple teaming.