blast

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package blast implements blast-radius and agent-exposure analysis (PRD sections 11, 17, and 25).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Radius

type Radius struct {
	Agent *graph.Node

	// Direct counts: nodes reachable in exactly one hop, by type.
	Direct map[graph.NodeType]int
	// Indirect counts: nodes reachable in two or more hops, by type.
	Indirect map[graph.NodeType]int

	ReachableNodes       int
	ReachableCrownJewels []string
	ReachableSecrets     int
	ReachableIdentities  int
	CloudRoles           int

	HighestPrivilege string

	TotalPaths    int
	CriticalPaths int
	HighPaths     int

	// MostDangerous is the highest-scoring attack path, if any.
	MostDangerous *ScoredPath

	ExposureScore int
	ExposureRisk  string
	// contains filtered or unexported fields
}

Radius is the blast-radius result for one agent.

func Analyze

func Analyze(g *graph.Graph, agentID string, opts paths.Options) (*Radius, error)

Analyze computes the blast radius of the given agent.

type ScoredPath

type ScoredPath struct {
	Path *paths.Path
	Risk risk.Result
}

ScoredPath pairs a path with its risk result.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL