Skip to main content
Glama

audit_iac_attack_paths

Find real multi-hop attack paths in Terraform, CloudFormation, and Kubernetes. Parse IaC into a resource graph and identify breachable routes from internet to crown jewels with evidence.

Instructions

Find real ATTACK PATHS in Infrastructure-as-Code (Terraform, CloudFormation, Kubernetes) — not a linter. Give it your IaC files (a map of filename→content, or a single source blob) and it parses them into a resource graph, resolves cross-resource relationships, and searches for chains from the public INTERNET to your crown jewels (data stores, secrets, admin). It returns a BREACHABLE / EXPOSED / HARDENED verdict and the concrete multi-hop routes an attacker would walk — e.g. 'open security group (SSH 0.0.0.0/0) → EC2 instance-profile role → iam:PassRole privilege escalation to admin → S3 exfiltration'. Understands AWS managed-policy permissions, 20+ IAM privilege-escalation primitives, public security groups / RDS, and Kubernetes LoadBalancer/NodePort exposure + privileged pods + cluster-admin ServiceAccounts. Use it before applying IaC or in a PR to catch breach paths a per-resource linter misses. Heuristic static analysis of declared IaC.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deepNoWhen true, runs the PREMIUM deep audit: full attack chains with per-hop evidence (file:line), privilege-escalation reachability and remediation. Requires an API key (set CLOUD_PATHFINDER_KEY in your MCP env); without one you'll get unlock instructions. The free verdict + counts need no key.
filesNoMap of filename → file content. Mix Terraform (.tf/.tf.json), CloudFormation (.yaml/.json) and Kubernetes (.yaml) freely; formats are auto-detected. Cross-file references are resolved.
sourceNoOptional: a single IaC blob to analyze when you don't have separate files. Format auto-detected.
filenameNoOptional filename hint for `source` (helps format detection, e.g. main.tf).
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full transparency burden. It discloses the heuristic nature: 'Heuristic static analysis of declared IaC,' explains it resolves cross-resource relationships, describes the output verdict and attack routes, and notes the API-key requirement for deep scans. It does not cover potential limitations like false positives or performance, but the core behavior is well disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is detailed but well-organized: it opens with the core purpose, explains the process, lists supported formats and attack primitives, provides usage guidance, and closes with the heuristic caveat. It is slightly long but every sentence adds useful information; the structure is front-loaded and scannable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given there is no output schema, the description fully explains the return value (verdict and routes) and the deep audit's additional evidence. It covers input flexibility, format auto-detection, cross-file resolution, API-key requirements, and known limitations. For a tool with 4 optional parameters and no output schema, the description is comprehensive.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already provides 100% description coverage for all four parameters. The description adds extra value by clarifying that 'files' can mix formats and cross-file references are resolved, and that 'source' is an optional alternative. It also explains the 'deep' parameter's premium behavior and key requirement, which goes beyond the schema's parameter descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly states the tool 'Find real ATTACK PATHS in Infrastructure-as-Code' with concrete formats (Terraform, CloudFormation, Kubernetes) and differentiates it from 'a linter.' The verb is specific and the resource is clearly identified, making it distinct from the sibling tool 'diff_attack_paths' by focusing on full attack-path auditing rather than diffing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear usage context: 'Use it before applying IaC or in a PR to catch breach paths a per-resource linter misses.' It also explicitly excludes its primary alternative ('not a linter') and implies when to use it. However, it does not explicitly mention the sibling tool 'diff_attack_paths' or explain when to prefer this over a diff-based analysis, which would be a stronger guideline.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Baneado98/cloud-pathfinder'

If you have feedback or need assistance with the MCP directory API, please join our Discord server