Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Seclib.Network.Reachability

NetGraph.vpcsConnected — ⚪ definition

def · source

Whether two VPCs are connected via peering or transit gateway. Go source: reachability.go:80-88, graph.go:323-343

def NetGraph.vpcsConnected (g : NetGraph) (vpc1 vpc2 : String) : Bool

cidrCovers — ⚪ definition

def · source

Whether a CIDR covers a host (same-VPC + broad CIDR). Go source: reachability.go:73-78

def cidrCovers (cidr : String) (src dst : Host) : Bool

ruleAllows — ⚪ definition

def · source

Check if a single ingress rule allows src to reach dst on a given port. Go source: reachability.go:37-50 (inner loop)

def ruleAllows (rule : SGRule) (src dst : Host) (port : Nat) : Bool

NetGraph.canReachSameVpc — ⚪ definition

def · source

Same-VPC reachability via SG ingress rules on a specific port. Go source: reachability.go:36-51

def NetGraph.canReachSameVpc (g : NetGraph) (src dst : Host) (port : Nat) : Bool

NetGraph.canReachCrossVpc — ⚪ definition

def · source

Cross-VPC reachability: peered/TGW-connected VPCs with broad CIDR ingress. Go source: reachability.go:54-68

def NetGraph.canReachCrossVpc (g : NetGraph) (src dst : Host) (port : Nat) : Bool

NetGraph.canReach — ⚪ definition

def · source

Full reachability: same-VPC or cross-VPC. Go source: reachability.go:26-71

def NetGraph.canReach (g : NetGraph) (src dst : Host) (port : Nat) : Bool

NetGraph.canReachAny — ⚪ definition

def · source

Any-port reachability: returns whether src can reach dst on any port. Go source: reachability.go:138-182

def NetGraph.canReachAny (g : NetGraph) (src dst : Host) : Bool

NetGraph.hasExternalIngress — ⚪ definition

def · source

Whether dst has external SSH ingress (0.0.0.0/0 or ::/0). Go source: proof.go:120-142

def NetGraph.hasExternalIngress (g : NetGraph) (dst : Host) (port : Nat) : Bool

Reachable — ⚪ definition

def · source

Reachability as a Prop (for proofs). Go source: reachability.go:26-71 (CanReach, lifted to Prop)

def Reachable (g : NetGraph) (src dst : Host) (port : Nat) : Prop

— ⚪ definition

instance · source

instance (g : NetGraph) (src dst : Host) (port : Nat) :

ReachableAny — ⚪ definition

def · source

Any-port reachability as a Prop. Go source: reachability.go:138-182 (canReachAnyPort, lifted to Prop)

def ReachableAny (g : NetGraph) (src dst : Host) : Prop