sg-deceptive-reachability-auditor

Compose AWS security group ingress rules into a directed reachability graph to expose multi-hop lateral movement paths.

17|Updated May 15, 2026
One-click install
npx skills add https://github.com/anyshift-io/sre-skills --skill sg-deceptive-reachability-auditor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sg-deceptive-reachability-auditor
Source: https://github.com/anyshift-io/sre-skills/tree/main/skills/sg-deceptive-reachability-auditor
Command: npx skills add https://github.com/anyshift-io/sre-skills --skill sg-deceptive-reachability-auditor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Security group rules appear safe in isolation, but ordinary single-upstream references can compose into a hidden multi-hop lateral movement path from an internet-facing or compromised entry point to a crown-jewel database. This skill builds a directed reachability graph from AWS security group ingress rules and instance membership to surface the buried path that no single rule reveals, while correctly staying quiet on segmented, orphaned, or disconnected fleets where no such path exists.

Core Features & Use Cases

  • Directed Reachability Graph: Composes SG-to-SG UserIdGroupPairs and internet-facing CIDR rules into a directed graph and computes the transitive closure to enumerate every reachable tier from a named entry point.
  • Buried Needle Detection: Surfaces long 4-6 hop lateral movement chains as critical findings with the exact hop list, rather than stopping at obvious surface exposures like a single public rule.
  • Deceptive-Clean Handling: Correctly reports no reachable path on segmented, orphaned, broken, or disjoint fleets instead of fabricating a path from disconnected deep chains or loud intended public exposures.
  • Pivot/Hub Identification: Flags high-severity hub security groups that bridge otherwise-isolated reachable regions, revealing quiet chokepoints that a per-rule read misses.
  • Explicit Boundary Statement: Names exactly where the SG graph stops being able to answer the question, including live host membership, route tables, NACLs, and app-layer authentication.

Quick Start

Use the sg-deceptive-reachability-auditor skill to audit the attached AWS security group and instance JSON for hidden multi-hop lateral movement paths to the crown-jewel database tier.

Frequently Asked Questions about sg-deceptive-reachability-auditor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find hidden lateral movement paths in AWS security groups?

To find hidden lateral movement paths in AWS security groups, you must map the directed reachability graph by composing SG-to-SG ingress references and instance memberships. This exposes multi-hop chains from internet-facing entry points to crown-jewel database tiers that isolated single-rule reviews miss.

Why does my AWS security group audit miss deep lateral movement chains?

Your AWS security group audit likely misses deep lateral movement chains because it evaluates rules in isolation rather than computing the transitive closure of a directed reachability graph. Long 4-6 hop reference chains buried across multiple security groups remain invisible without graph composition.

How do I audit AWS security groups for pivot hubs and chokepoints?

To audit AWS security groups for pivot hubs and chokepoints, you build a directed reachability graph from UserIdGroupPairs and identify high-severity hub security groups that bridge otherwise-isolated reachable regions. This reveals quiet chokepoints that per-rule reads fail to detect.

Can I detect lateral movement paths in segmented or orphaned AWS fleets?

Yes, you can detect lateral movement in segmented or orphaned AWS fleets by computing the directed reachability graph of security group references. The graph correctly reports no reachable path on disconnected or disjoint fleets without fabricating exposure from broken deep chains.

What are the limitations of using security group graphs for reachability audits?

The limitations of using security group graphs for reachability audits include the inability to evaluate live host membership, route tables, NACLs, and application-layer authentication. The SG graph stops answering questions beyond the boundary of ingress rule composition and instance membership.

How do I audit a production AWS fleet for multi-hop lateral movement?

To audit a production AWS fleet for multi-hop lateral movement, you compose security group ingress rules and instance membership into a directed reachability graph. This enumerates every reachable tier from named entry points and flags 4-6 hop lateral movement chains as critical findings with exact hop lists.