
The attack paths your diagram doesn’t draw.
A threat model shows the flows its authors declared. An attacker isn’t limited to them: a credential captured on one host may open another, and a remote service may answer from a place no flow names. The hidden-edges module reads the model’s findings, their ATT&CK techniques and its structure, and proposes these paths as candidate edges, each with the findings it rests on and the changes that would remove it.
Every candidate comes from the module’s rules over what the model already says, and cites at least one of its findings. Its evidence, High, Medium or Low, says how firmly the model supports the path. A candidate stays out of the model until someone accepts it. It then becomes a data flow of its kind’s hidden-edge class, and the threat report labels every route that uses it.
The module is open source and ships with the platform: an upgrade brings it, and asks nothing for it. Review the candidates with Dethereal, also open source, from your coding agent.
Four kinds of path
that no flow on the diagram shows.
Credential capture
An attacker positioned at the source captures a credential that a flow carries, and uses it at that flow’s responder.
Credential reuse
A credential the source holds is accepted by the target.
Host escape
An attacker in a container breaks out to its host, and reaches what runs there outside the container.
Remote service
An attacker who holds the source reaches a remote service on the target.
Not just an edge,
but why it holds and what removes it.
Since hidden-edges 0.2.0, each candidate explains itself.
The path, in words
How the attacker moves: from where, to what, with which rights, and the assumption the rule makes.
Its evidence, and why
High, Medium or Low, and what holds it below High: a pending finding, a condition the model doesn’t state, a credential carried by many flows.
What removes it
One change in the model, an attribute stated true or a control added, that removes the edge, lowers it, or closes one way in.
The findings it rests on
Every candidate cites at least one finding in the model, and the ATT&CK techniques of its path.
The facts the module weighed
Each attribute it read, its value as stated, and what it did to the evidence.
The rule’s defaults
The attacker capability the path needs, the privilege it needs and the one it grants, marked as defaults, not facts about your system.
Review the candidates
from your coding agent.
Dethereal asks the module for the candidates, checks every one against your model before showing it, and has a read-only agent argue for and against each from your project’s sources. You decide one command per reply, and nothing is written until you answer yes.
> /dethereal:hidden-edges module answered · candidates, dropped by caps, excluded by decision, dropped by validation 1 credential capture · high GKE kube-apiserver → frontend ★ path Code on GKE kube-apiserver, in "GCP Project Perimeter", intercepts "Session Identifier" from "Network LB to frontend (plaintext)" and uses it at frontend. evidence_why Evidence: High. The finding is confirmed; 1 of the 1 condition High needs is met. removes_if Drops to Evidence Medium if the model states east_west_within_segment_ restricted = true on "GCP Project Perimeter". techniques T1557 · T1550.001 analyst for · one-line reason, with locators
> show 1 findings 1 Cleartext HTTP downgrade / missing HSTS on "Network LB to frontend (plaintext)" confirmed, affirmed facts_weighed tls_only_transport = false: meets 1 of the 1 condition High needs remedies Drops to Evidence Medium if the model states tls_only_transport = true on the flow. rule_defaults capability targeted, requires admin, grants user: rule defaults, not checked for this edge > accept 1 > reject 2 > done the apply question shows every write before your yes
Shortened output, with edges from the Online Boutique demo model. In Codex the command is $dethereal:hidden-edges, in OpenCode /dethereal-hidden-edges.
Checked before you see it
The module’s answer is read as untrusted input. A candidate whose ends, findings, class or cited facts don’t hold against your model is dropped and counted, never shown.
An analyst that looks for the stop
The read-only agent looks first for what would prove a path wrong, such as a network policy, a firewall rule or a scoped credential. It cites file locators, never quoted values, and adds no candidate of its own.
Decisions that travel with the model
An accepted edge is written as a data flow in your model files, and the next push takes it to the platform. The decisions are kept in the model directory and committed with it.
An accepted edge is a route, not a flow of the system.
Once pushed, an accepted edge carries its own findings, one in category Inferred Path per technique of the path. The open-source threat report keeps the edge in reachability and labels every route that uses it, while its counts stay those of the system you declared.
- A crown jewel reached only through inferred edges is counted on its own.
- A declared choke point that an inferred edge goes around is named as bypassed.
- Inferred Path findings are set apart from every total, posture and coverage count, with one count of their own.
- Zoning and boundary crossings leave hidden edges out, and name them.
Internet → Load balancer → frontend declared flows GKE kube-apiserver → frontend ★ via inferred edge (high, grants user) frontend → cart service declared flow Totals and posture: declared system only 2 inferred-path findings set apart
An illustration of the labels, not a report page.
Prefer to decide on the model map?
The Review module adds a Hidden edges workspace to the platform: each candidate drawn as an attack path and on the model map, accepted or rejected in the browser, and every decision rechecked after each read. Review is a paid module that comes with every module package, and Dethereal can publish its review there for a person to decide.
See Review →Your model, on your platform.
The module works on the model’s findings, their techniques and its structure, on your own platform. When a knowledge graph is configured, it sends only the ids of the classes your model uses and of their rules, and uses the answer to lower a candidate, never to raise one or add one. No model or element ids, names, attribute values or findings are sent.
Explanations, remedies and a recheck.
Hidden edges 0.2.0 ships with platform 0.19.0 and adds the explanations, the remedies and the recheck of decided edges; Dethereal 0.8.0 shows them. The module lists up to 50 edges of a kind and 200 in all, and says when its list is incomplete. Platform 0.18.0 brought the module and its four flow classes.
See the paths your model doesn’t draw yet.
The hidden-edges module comes with the open-source platform. Run the analysis, decide the findings you can, and review the candidates with Dethereal.
