Commit 0e6983a
fix: address 7 critical/high security findings from deep audit
Proxy (cli/proxy.py):
- V11: Add target command allowlist — reject unlisted binaries
- V13: Wire dead audit log to AuditLog.log() for persistence
- V14: Drop non-JSON messages instead of forwarding (smuggling fix)
- V15: Skip forwarding blocked tool calls to target server
MCP server (integrations/mcp/__init__.py):
- V12: Validate tool handler kwargs against input_schema before dispatch
Policy engine (governance/policy.py):
- V26: Default to deny when no policies loaded (fail-closed)
- V27: Treat rule evaluation exceptions as match (fail-closed)
All 1852 tests pass, 0 failures.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 1251446 commit 0e6983a
File tree
3 files changed
+72
-11
lines changed- packages/agent-mesh/src/agentmesh
- cli
- governance
- integrations/mcp
3 files changed
+72
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
32 | 41 | | |
33 | 42 | | |
34 | 43 | | |
| |||
58 | 67 | | |
59 | 68 | | |
60 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
61 | 73 | | |
62 | 74 | | |
63 | 75 | | |
| |||
80 | 92 | | |
81 | 93 | | |
82 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
83 | 112 | | |
84 | 113 | | |
85 | 114 | | |
| |||
195 | 224 | | |
196 | 225 | | |
197 | 226 | | |
198 | | - | |
199 | | - | |
| 227 | + | |
| 228 | + | |
200 | 229 | | |
201 | 230 | | |
202 | 231 | | |
203 | 232 | | |
204 | 233 | | |
205 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
206 | 239 | | |
207 | 240 | | |
208 | 241 | | |
| |||
354 | 387 | | |
355 | 388 | | |
356 | 389 | | |
357 | | - | |
| 390 | + | |
358 | 391 | | |
359 | | - | |
| 392 | + | |
360 | 393 | | |
361 | 394 | | |
362 | 395 | | |
| |||
367 | 400 | | |
368 | 401 | | |
369 | 402 | | |
370 | | - | |
371 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
372 | 411 | | |
373 | 412 | | |
374 | 413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
91 | 99 | | |
92 | 100 | | |
93 | 101 | | |
| |||
779 | 787 | | |
780 | 788 | | |
781 | 789 | | |
782 | | - | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
783 | 793 | | |
784 | 794 | | |
785 | 795 | | |
786 | 796 | | |
787 | 797 | | |
788 | | - | |
| 798 | + | |
789 | 799 | | |
790 | 800 | | |
791 | 801 | | |
| |||
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
272 | 284 | | |
273 | 285 | | |
274 | 286 | | |
| |||
0 commit comments