Commit 7f0a402
committed
feat(v3.146.0): ESCALON — agent tool-graph privilege-escalation + MCP-poisoning analyzer
The deeper vuln engine (after MUTAGEN's input layer): the classes that live in HOW an
agent's tools COMPOSE, which no single-tool review catches.
• core/escalon: findEscalations() builds the capability DATA-FLOW graph (edge where
one tool's output feeds another's input) and traces every untrusted-SOURCE →
dangerous-SINK path — fetch-url → write-file → run-script = RCE by composition (the
"confused deputy") — ranked by severity and whether a sanitizer/approval gate breaks
the chain. scanPoisoning() screens each tool DESCRIPTION for embedded directives
(MCP tool-poisoning / "line jumping"). analyze() → CLEAN / REVIEW / DANGER.
• MEASURED (escalonGauntlet=100, 7 tests): detects the planted RCE chain; no
false-positive on a benign read-only set; a gate lowers severity; detects a poisoned
description + spares clean ones; ranks an exec sink above an exfil-only chain.
• CLI `mneme escalon analyze`; MCP mneme.escalon.analyze (Matrix gRPC auto); morph
`mneme escalon`; claim+probe (claim.escalon.finds_tool_chain_vulns), manifest entry.
★HONEST (DIAKRISIS): ESCALON reasons over the DECLARED tool graph (capabilities + data
labels) — it surfaces reachable escalation PATHS + poisoned descriptions to inspect, not
a proven runtime exploit, and is blind to a capability a tool fails to declare.
Deterministic, no LLM.
TRUTH GATE 136/136, drift 0, refuted 0, unmeasured 0; coverage 100%; 23 tests green;
honesty ledger regenerated + verifies HONEST.1 parent 66af53b commit 7f0a402
28 files changed
Lines changed: 479 additions & 77 deletions
File tree
- assets
- docs
- packages
- cli
- src
- commands
- core
- src
- escalon
- morph
- truth_gate
- correlator
- embeddings
- gephyra
- matrix
- mcp
- src/tools
- sdk
- vscode
- web
- xray
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
| 372 | + | |
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| |||
1217 | 1217 | | |
1218 | 1218 | | |
1219 | 1219 | | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
1220 | 1229 | | |
1221 | 1230 | | |
1222 | 1231 | | |
| |||
1239 | 1248 | | |
1240 | 1249 | | |
1241 | 1250 | | |
1242 | | - | |
| 1251 | + | |
1243 | 1252 | | |
1244 | | - | |
1245 | | - | |
| 1253 | + | |
| 1254 | + | |
1246 | 1255 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| |||
5050 | 5051 | | |
5051 | 5052 | | |
5052 | 5053 | | |
| 5054 | + | |
5053 | 5055 | | |
5054 | 5056 | | |
5055 | 5057 | | |
| |||
0 commit comments