glassbox-firewall 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- glassbox_firewall-0.2.0/LICENSE +21 -0
- glassbox_firewall-0.2.0/PKG-INFO +153 -0
- glassbox_firewall-0.2.0/README.md +131 -0
- glassbox_firewall-0.2.0/pyproject.toml +45 -0
- glassbox_firewall-0.2.0/setup.cfg +4 -0
- glassbox_firewall-0.2.0/src/glassbox/__init__.py +4 -0
- glassbox_firewall-0.2.0/src/glassbox/__main__.py +6 -0
- glassbox_firewall-0.2.0/src/glassbox/cli.py +337 -0
- glassbox_firewall-0.2.0/src/glassbox/demo_server.py +172 -0
- glassbox_firewall-0.2.0/src/glassbox/http_proxy.py +290 -0
- glassbox_firewall-0.2.0/src/glassbox/lattice.py +354 -0
- glassbox_firewall-0.2.0/src/glassbox/ledger.py +442 -0
- glassbox_firewall-0.2.0/src/glassbox/profiles.py +114 -0
- glassbox_firewall-0.2.0/src/glassbox/proxy.py +257 -0
- glassbox_firewall-0.2.0/src/glassbox/sarif.py +121 -0
- glassbox_firewall-0.2.0/src/glassbox/ui.py +441 -0
- glassbox_firewall-0.2.0/src/glassbox_firewall.egg-info/PKG-INFO +153 -0
- glassbox_firewall-0.2.0/src/glassbox_firewall.egg-info/SOURCES.txt +20 -0
- glassbox_firewall-0.2.0/src/glassbox_firewall.egg-info/dependency_links.txt +1 -0
- glassbox_firewall-0.2.0/src/glassbox_firewall.egg-info/entry_points.txt +2 -0
- glassbox_firewall-0.2.0/src/glassbox_firewall.egg-info/top_level.txt +1 -0
- glassbox_firewall-0.2.0/tests/test_glassbox.py +256 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 GlassBox Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: glassbox-firewall
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: The Flight Recorder & Lethal-Trifecta Firewall for AI Agents (MCP — stdio + Streamable HTTP). Zero-dependency dynamic taint lattice, MCP annotation awareness, schema pinning, and $0 offline time-travel replay.
|
|
5
|
+
Author: GlassBox Contributors
|
|
6
|
+
License: MIT
|
|
7
|
+
Keywords: mcp,ai-agents,security,prompt-injection,time-travel-debugging,claude-code,cursor,information-flow-control,firewall,replay
|
|
8
|
+
Classifier: Development Status :: 4 - Beta
|
|
9
|
+
Classifier: Environment :: Console
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Topic :: Security
|
|
17
|
+
Classifier: Topic :: Software Development :: Debuggers
|
|
18
|
+
Requires-Python: >=3.10
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
Dynamic: license-file
|
|
22
|
+
|
|
23
|
+
# GlassBox
|
|
24
|
+
|
|
25
|
+
**The Flight Recorder & Lethal-Trifecta Firewall for AI Agents (MCP — stdio + Streamable HTTP).**
|
|
26
|
+
|
|
27
|
+
Wrap any local stdio or remote Streamable HTTP MCP server in one command. Deterministically block prompt-injection exfiltration (`PRIVATE + UNTRUSTED -> EGRESS`), catch mid-session tool rug-pulls via SHA-256 schema pinning, and time-travel replay/fork any agent run offline in `<5ms` at **$0.00 cost**.
|
|
28
|
+
|
|
29
|
+
[](LICENSE)
|
|
30
|
+
[](https://www.python.org/)
|
|
31
|
+
[](pyproject.toml)
|
|
32
|
+
[](https://modelcontextprotocol.io/)
|
|
33
|
+
|
|
34
|
+

|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 30-Second Keyless Quickstart (Zero API Keys, Zero Docker)
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
# Once published to PyPI (see DEPLOY.md):
|
|
42
|
+
uvx glassbox-firewall demo
|
|
43
|
+
|
|
44
|
+
# Or from source right now:
|
|
45
|
+
git clone https://github.com/Roopesh2006/glassbox.git
|
|
46
|
+
cd glassbox
|
|
47
|
+
pip install -e .
|
|
48
|
+
|
|
49
|
+
# 1. Run a live wrapped MCP attack + Merkle replay + offline counterfactual fork
|
|
50
|
+
glassbox demo
|
|
51
|
+
|
|
52
|
+
# 2. Launch the interactive Web Flight Recorder UI (http://127.0.0.1:8765)
|
|
53
|
+
glassbox ui
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
No OpenAI key. No Anthropic key. No ClickHouse. No Docker. Pure Python 3.10+ standard library.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Why GlassBox Exists
|
|
61
|
+
|
|
62
|
+
Static tool allowlists (`allow` / `deny` / `ask`) fail AI agents in two opposite ways:
|
|
63
|
+
1. **Approval fatigue**: Prompting on every write breaks autonomous coding flow, pushing developers to run `--dangerously-skip-permissions`.
|
|
64
|
+
2. **The Lethal Trifecta**: Attacks like **GitHub MCP Toxic Agent Flow**, **CurXecute** (`CVE-2025-54135`), and **DuneSlide** (`CVE-2026-50548`) use **100% pre-approved, legitimate tools** in a lethal sequence (`read private data` + `ingest untrusted issue/web content` + `call outbound tool`). OS shell sandboxes wrap Bash only—leaving MCP servers outside.
|
|
65
|
+
|
|
66
|
+
GlassBox extracts enforcement and recording out of the agent harness onto the **MCP JSON-RPC 2.0 wire** (both stdio and Streamable HTTP):
|
|
67
|
+
|
|
68
|
+
| Capability | How GlassBox Does It |
|
|
69
|
+
|---|---|
|
|
70
|
+
| **Zero-Prompt Safe Autonomy** | Benign local coding (`read_file` → `edit_file` → `run_tests`) triggers **0 approval prompts** with `<1ms` wire overhead. |
|
|
71
|
+
| **Dynamic Taint-Lattice Firewall** | Tracks a 3-bit session lattice `(PRIVATE, UNTRUSTED, EGRESS)`. When `PRIVATE ∧ UNTRUSTED` is latched, outbound tools auto-downgrade to **`SHADOW_SIMULATE`** (suppressing the real side effect while returning a dry-run receipt and capturing the attacker's exact exfiltration payload forensically) or **`BLOCK`**. |
|
|
72
|
+
| **MCP Tool Annotations + Top-12 Server Profiles** | Automatically reads standard MCP annotations (`readOnlyHint`, `destructiveHint`, `openWorldHint`) on `tools/list` so even custom tool names work out of the box—plus built-in profiles (`--profile github,postgres,slack,playwright,gmail,linear,notion,fetch,aws,kubernetes,stripe,filesystem` or `all`). |
|
|
73
|
+
| **Stdio + Streamable HTTP Transports** | Guards both local CLI/IDE stdio servers (`glassbox wrap -- <cmd>`) and remote HTTP MCP servers (`glassbox proxy-http --upstream <url>`). |
|
|
74
|
+
| **Anti-Rug-Pull Schema Pinning** | Pins the SHA-256 hash of every tool's name, description, and `inputSchema` on `tools/list`. Mid-session mutations (`MCPoison` / `Plugin4Shell` class) are immediately blocked. |
|
|
75
|
+
| **Tamper-Evident Merkle Cassette (`.gbx`) + SARIF** | Every frame is chained via `sha256(prev_hash | canonical_json(entry))`. Export findings directly to GitHub Security via `glassbox export-sarif`. |
|
|
76
|
+
| **Offline Time-Travel Forking (`$0.00`)** | Rewind any incident to step *k*, swap the policy (`audit` → `strict`), diff two runs (`glassbox diff`), and deterministically prove the fix in `<5ms`. |
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Drop-In Integration (Claude Code, Cursor, Codex CLI, OpenClaw, Hermes)
|
|
81
|
+
|
|
82
|
+
### Local Stdio MCP Server (1-line wrap)
|
|
83
|
+
```json
|
|
84
|
+
{
|
|
85
|
+
"mcpServers": {
|
|
86
|
+
"github-guarded": {
|
|
87
|
+
"command": "glassbox",
|
|
88
|
+
"args": [
|
|
89
|
+
"wrap",
|
|
90
|
+
"--policy", "balanced",
|
|
91
|
+
"--profile", "github",
|
|
92
|
+
"--",
|
|
93
|
+
"npx", "-y", "@modelcontextprotocol/server-github"
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Remote Streamable HTTP MCP Server
|
|
101
|
+
```bash
|
|
102
|
+
glassbox proxy-http --upstream https://mcp.example.com/v1 --port 8787 --policy balanced --profile all
|
|
103
|
+
# Point your MCP client to http://127.0.0.1:8787
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## CLI Reference
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
glassbox demo # 30-second keyless live attack + replay + fork demo
|
|
112
|
+
glassbox ui # Interactive local Web Flight Recorder (port 8765)
|
|
113
|
+
glassbox wrap --policy balanced --profile github -- <cmd> # Live stdio MCP wire proxy
|
|
114
|
+
glassbox proxy-http --upstream <url> --port 8787 # Live Streamable HTTP MCP reverse proxy
|
|
115
|
+
glassbox profiles # List top-12 built-in MCP server profiles
|
|
116
|
+
glassbox replay demo-data/lethal_trifecta_github.gbx # Offline deterministic replay ($0.00)
|
|
117
|
+
glassbox fork demo-data/lethal_trifecta_github.gbx --at-step 9 --policy strict
|
|
118
|
+
glassbox diff trace_a.gbx trace_b.gbx # Side-by-side run comparison
|
|
119
|
+
glassbox export-sarif demo-data/lethal_trifecta_github.gbx --out findings.sarif
|
|
120
|
+
glassbox verify demo-data/lethal_trifecta_github.gbx # Cryptographic SHA-256 Merkle verification
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## Verified Run (Executed in Clean Sandbox)
|
|
126
|
+
|
|
127
|
+
```text
|
|
128
|
+
$ PYTHONPATH=src python3 -W error::ResourceWarning -m unittest discover -s tests -v
|
|
129
|
+
test_1_benign_coding_flow_zero_blocks_low_latency ... ok
|
|
130
|
+
test_2_lethal_trifecta_shadow_intercept_and_forensic_capture ... ok
|
|
131
|
+
test_3_mid_session_schema_rugpull_blocked ... ok
|
|
132
|
+
test_4_merkle_tamper_detection ... ok
|
|
133
|
+
test_5_offline_counterfactual_fork_under_50ms ... ok
|
|
134
|
+
test_6_destructive_prod_db_drop_blocked_and_ui_api ... ok
|
|
135
|
+
test_7_cli_demo_end_to_end ... ok
|
|
136
|
+
test_8_streamable_http_proxy_and_mcp_tool_annotations ... ok
|
|
137
|
+
test_9_builtin_server_profiles ... ok
|
|
138
|
+
test_10_diff_and_sarif_export ... ok
|
|
139
|
+
----------------------------------------------------------------------
|
|
140
|
+
Ran 10 tests — OK (0 warnings)
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## Honest Security Boundary
|
|
146
|
+
|
|
147
|
+
GlassBox intercepts **MCP JSON-RPC traffic** (stdio and Streamable HTTP) for wrapped servers. It **cannot** observe side channels executed completely outside wrapped MCP servers (such as an unwrapped native Bash tool calling `curl` directly). Pair GlassBox with an OS-level sandbox (macOS Seatbelt, Linux `bubblewrap`, or ephemeral containers) for defense-in-depth. See [SECURITY.md](SECURITY.md) and [COMPARISONS.md](COMPARISONS.md).
|
|
148
|
+
|
|
149
|
+
## Deployment & Launch Docs
|
|
150
|
+
- [Step-by-Step Deployment & PyPI Guide](DEPLOY.md)
|
|
151
|
+
- [Viral Launch Playbook (Show HN, X, Reddit, Demo Video Script)](LAUNCH_PLAYBOOK.md)
|
|
152
|
+
- [Comparisons vs. Existing Tools](COMPARISONS.md)
|
|
153
|
+
- [Full Architecture Spec](docs/glassbox-spec.md)
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# GlassBox
|
|
2
|
+
|
|
3
|
+
**The Flight Recorder & Lethal-Trifecta Firewall for AI Agents (MCP — stdio + Streamable HTTP).**
|
|
4
|
+
|
|
5
|
+
Wrap any local stdio or remote Streamable HTTP MCP server in one command. Deterministically block prompt-injection exfiltration (`PRIVATE + UNTRUSTED -> EGRESS`), catch mid-session tool rug-pulls via SHA-256 schema pinning, and time-travel replay/fork any agent run offline in `<5ms` at **$0.00 cost**.
|
|
6
|
+
|
|
7
|
+
[](LICENSE)
|
|
8
|
+
[](https://www.python.org/)
|
|
9
|
+
[](pyproject.toml)
|
|
10
|
+
[](https://modelcontextprotocol.io/)
|
|
11
|
+
|
|
12
|
+

|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## 30-Second Keyless Quickstart (Zero API Keys, Zero Docker)
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# Once published to PyPI (see DEPLOY.md):
|
|
20
|
+
uvx glassbox-firewall demo
|
|
21
|
+
|
|
22
|
+
# Or from source right now:
|
|
23
|
+
git clone https://github.com/Roopesh2006/glassbox.git
|
|
24
|
+
cd glassbox
|
|
25
|
+
pip install -e .
|
|
26
|
+
|
|
27
|
+
# 1. Run a live wrapped MCP attack + Merkle replay + offline counterfactual fork
|
|
28
|
+
glassbox demo
|
|
29
|
+
|
|
30
|
+
# 2. Launch the interactive Web Flight Recorder UI (http://127.0.0.1:8765)
|
|
31
|
+
glassbox ui
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
No OpenAI key. No Anthropic key. No ClickHouse. No Docker. Pure Python 3.10+ standard library.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Why GlassBox Exists
|
|
39
|
+
|
|
40
|
+
Static tool allowlists (`allow` / `deny` / `ask`) fail AI agents in two opposite ways:
|
|
41
|
+
1. **Approval fatigue**: Prompting on every write breaks autonomous coding flow, pushing developers to run `--dangerously-skip-permissions`.
|
|
42
|
+
2. **The Lethal Trifecta**: Attacks like **GitHub MCP Toxic Agent Flow**, **CurXecute** (`CVE-2025-54135`), and **DuneSlide** (`CVE-2026-50548`) use **100% pre-approved, legitimate tools** in a lethal sequence (`read private data` + `ingest untrusted issue/web content` + `call outbound tool`). OS shell sandboxes wrap Bash only—leaving MCP servers outside.
|
|
43
|
+
|
|
44
|
+
GlassBox extracts enforcement and recording out of the agent harness onto the **MCP JSON-RPC 2.0 wire** (both stdio and Streamable HTTP):
|
|
45
|
+
|
|
46
|
+
| Capability | How GlassBox Does It |
|
|
47
|
+
|---|---|
|
|
48
|
+
| **Zero-Prompt Safe Autonomy** | Benign local coding (`read_file` → `edit_file` → `run_tests`) triggers **0 approval prompts** with `<1ms` wire overhead. |
|
|
49
|
+
| **Dynamic Taint-Lattice Firewall** | Tracks a 3-bit session lattice `(PRIVATE, UNTRUSTED, EGRESS)`. When `PRIVATE ∧ UNTRUSTED` is latched, outbound tools auto-downgrade to **`SHADOW_SIMULATE`** (suppressing the real side effect while returning a dry-run receipt and capturing the attacker's exact exfiltration payload forensically) or **`BLOCK`**. |
|
|
50
|
+
| **MCP Tool Annotations + Top-12 Server Profiles** | Automatically reads standard MCP annotations (`readOnlyHint`, `destructiveHint`, `openWorldHint`) on `tools/list` so even custom tool names work out of the box—plus built-in profiles (`--profile github,postgres,slack,playwright,gmail,linear,notion,fetch,aws,kubernetes,stripe,filesystem` or `all`). |
|
|
51
|
+
| **Stdio + Streamable HTTP Transports** | Guards both local CLI/IDE stdio servers (`glassbox wrap -- <cmd>`) and remote HTTP MCP servers (`glassbox proxy-http --upstream <url>`). |
|
|
52
|
+
| **Anti-Rug-Pull Schema Pinning** | Pins the SHA-256 hash of every tool's name, description, and `inputSchema` on `tools/list`. Mid-session mutations (`MCPoison` / `Plugin4Shell` class) are immediately blocked. |
|
|
53
|
+
| **Tamper-Evident Merkle Cassette (`.gbx`) + SARIF** | Every frame is chained via `sha256(prev_hash | canonical_json(entry))`. Export findings directly to GitHub Security via `glassbox export-sarif`. |
|
|
54
|
+
| **Offline Time-Travel Forking (`$0.00`)** | Rewind any incident to step *k*, swap the policy (`audit` → `strict`), diff two runs (`glassbox diff`), and deterministically prove the fix in `<5ms`. |
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Drop-In Integration (Claude Code, Cursor, Codex CLI, OpenClaw, Hermes)
|
|
59
|
+
|
|
60
|
+
### Local Stdio MCP Server (1-line wrap)
|
|
61
|
+
```json
|
|
62
|
+
{
|
|
63
|
+
"mcpServers": {
|
|
64
|
+
"github-guarded": {
|
|
65
|
+
"command": "glassbox",
|
|
66
|
+
"args": [
|
|
67
|
+
"wrap",
|
|
68
|
+
"--policy", "balanced",
|
|
69
|
+
"--profile", "github",
|
|
70
|
+
"--",
|
|
71
|
+
"npx", "-y", "@modelcontextprotocol/server-github"
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Remote Streamable HTTP MCP Server
|
|
79
|
+
```bash
|
|
80
|
+
glassbox proxy-http --upstream https://mcp.example.com/v1 --port 8787 --policy balanced --profile all
|
|
81
|
+
# Point your MCP client to http://127.0.0.1:8787
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## CLI Reference
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
glassbox demo # 30-second keyless live attack + replay + fork demo
|
|
90
|
+
glassbox ui # Interactive local Web Flight Recorder (port 8765)
|
|
91
|
+
glassbox wrap --policy balanced --profile github -- <cmd> # Live stdio MCP wire proxy
|
|
92
|
+
glassbox proxy-http --upstream <url> --port 8787 # Live Streamable HTTP MCP reverse proxy
|
|
93
|
+
glassbox profiles # List top-12 built-in MCP server profiles
|
|
94
|
+
glassbox replay demo-data/lethal_trifecta_github.gbx # Offline deterministic replay ($0.00)
|
|
95
|
+
glassbox fork demo-data/lethal_trifecta_github.gbx --at-step 9 --policy strict
|
|
96
|
+
glassbox diff trace_a.gbx trace_b.gbx # Side-by-side run comparison
|
|
97
|
+
glassbox export-sarif demo-data/lethal_trifecta_github.gbx --out findings.sarif
|
|
98
|
+
glassbox verify demo-data/lethal_trifecta_github.gbx # Cryptographic SHA-256 Merkle verification
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Verified Run (Executed in Clean Sandbox)
|
|
104
|
+
|
|
105
|
+
```text
|
|
106
|
+
$ PYTHONPATH=src python3 -W error::ResourceWarning -m unittest discover -s tests -v
|
|
107
|
+
test_1_benign_coding_flow_zero_blocks_low_latency ... ok
|
|
108
|
+
test_2_lethal_trifecta_shadow_intercept_and_forensic_capture ... ok
|
|
109
|
+
test_3_mid_session_schema_rugpull_blocked ... ok
|
|
110
|
+
test_4_merkle_tamper_detection ... ok
|
|
111
|
+
test_5_offline_counterfactual_fork_under_50ms ... ok
|
|
112
|
+
test_6_destructive_prod_db_drop_blocked_and_ui_api ... ok
|
|
113
|
+
test_7_cli_demo_end_to_end ... ok
|
|
114
|
+
test_8_streamable_http_proxy_and_mcp_tool_annotations ... ok
|
|
115
|
+
test_9_builtin_server_profiles ... ok
|
|
116
|
+
test_10_diff_and_sarif_export ... ok
|
|
117
|
+
----------------------------------------------------------------------
|
|
118
|
+
Ran 10 tests — OK (0 warnings)
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## Honest Security Boundary
|
|
124
|
+
|
|
125
|
+
GlassBox intercepts **MCP JSON-RPC traffic** (stdio and Streamable HTTP) for wrapped servers. It **cannot** observe side channels executed completely outside wrapped MCP servers (such as an unwrapped native Bash tool calling `curl` directly). Pair GlassBox with an OS-level sandbox (macOS Seatbelt, Linux `bubblewrap`, or ephemeral containers) for defense-in-depth. See [SECURITY.md](SECURITY.md) and [COMPARISONS.md](COMPARISONS.md).
|
|
126
|
+
|
|
127
|
+
## Deployment & Launch Docs
|
|
128
|
+
- [Step-by-Step Deployment & PyPI Guide](DEPLOY.md)
|
|
129
|
+
- [Viral Launch Playbook (Show HN, X, Reddit, Demo Video Script)](LAUNCH_PLAYBOOK.md)
|
|
130
|
+
- [Comparisons vs. Existing Tools](COMPARISONS.md)
|
|
131
|
+
- [Full Architecture Spec](docs/glassbox-spec.md)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "glassbox-firewall"
|
|
7
|
+
version = "0.2.0"
|
|
8
|
+
description = "The Flight Recorder & Lethal-Trifecta Firewall for AI Agents (MCP — stdio + Streamable HTTP). Zero-dependency dynamic taint lattice, MCP annotation awareness, schema pinning, and $0 offline time-travel replay."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = {text = "MIT"}
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
authors = [
|
|
13
|
+
{name = "GlassBox Contributors"}
|
|
14
|
+
]
|
|
15
|
+
keywords = [
|
|
16
|
+
"mcp",
|
|
17
|
+
"ai-agents",
|
|
18
|
+
"security",
|
|
19
|
+
"prompt-injection",
|
|
20
|
+
"time-travel-debugging",
|
|
21
|
+
"claude-code",
|
|
22
|
+
"cursor",
|
|
23
|
+
"information-flow-control",
|
|
24
|
+
"firewall",
|
|
25
|
+
"replay"
|
|
26
|
+
]
|
|
27
|
+
classifiers = [
|
|
28
|
+
"Development Status :: 4 - Beta",
|
|
29
|
+
"Environment :: Console",
|
|
30
|
+
"Intended Audience :: Developers",
|
|
31
|
+
"License :: OSI Approved :: MIT License",
|
|
32
|
+
"Programming Language :: Python :: 3",
|
|
33
|
+
"Programming Language :: Python :: 3.10",
|
|
34
|
+
"Programming Language :: Python :: 3.11",
|
|
35
|
+
"Programming Language :: Python :: 3.12",
|
|
36
|
+
"Topic :: Security",
|
|
37
|
+
"Topic :: Software Development :: Debuggers",
|
|
38
|
+
]
|
|
39
|
+
dependencies = []
|
|
40
|
+
|
|
41
|
+
[project.scripts]
|
|
42
|
+
glassbox = "glassbox.cli:main"
|
|
43
|
+
|
|
44
|
+
[tool.setuptools.packages.find]
|
|
45
|
+
where = ["src"]
|