thumbgate 1.37.3 → 1.38.0
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.
- package/.agents/skills/aws-strands-harness-not-clone/SKILL.md +53 -0
- package/.agents/skills/halo-trace-optimize-not-clone/SKILL.md +60 -0
- package/.agents/skills/infoq-architect-honesty-not-clone/SKILL.md +37 -0
- package/.agents/skills/meko-datapack-honesty-not-clone/SKILL.md +45 -0
- package/.agents/skills/mintlify-knowledge-honesty-not-clone/SKILL.md +49 -0
- package/.agents/skills/model-distress-governance/SKILL.md +56 -0
- package/.agents/skills/salt-code-policy-honesty-not-clone/SKILL.md +76 -0
- package/.claude-plugin/plugin.json +1 -1
- package/.well-known/mcp/server-card.json +1 -1
- package/adapters/claude/.mcp.json +2 -2
- package/adapters/forge/forge.yaml +3 -3
- package/adapters/future-agi/.mcp.json +1 -1
- package/adapters/future-agi/config.toml +1 -1
- package/adapters/future-agi/opencode.json +1 -1
- package/adapters/herdr/herdr-plugin.toml +2 -2
- package/adapters/mcp/server-stdio.js +1 -1
- package/adapters/opencode/opencode.json +1 -1
- package/adapters/strands/STRANDS.md +107 -0
- package/adapters/strands/strands-middleware.js +192 -0
- package/adapters/tailscale/.mcp.json +15 -0
- package/adapters/tailscale/TAILSCALE.md +117 -0
- package/adapters/tailscale/config.toml +16 -0
- package/bin/cli.js +130 -0
- package/config/gate-templates.json +72 -0
- package/package.json +54 -9
- package/public/blog/2026-09-28-pretool-secret-deny.html +83 -0
- package/public/blog/2026-10-01-aws-strands-harness-token-firewall.html +77 -0
- package/public/blog/2026-10-01-model-distress-relief-seeking-firewall.html +71 -0
- package/public/blog/2026-10-02-salt-code-honest-steal-40-guardrails.html +106 -0
- package/public/index.html +2 -2
- package/public/install.html +7 -7
- package/public/numbers.html +2 -2
- package/public/onboarding.html +794 -0
- package/scripts/autoresearch-runner.js +20 -1
- package/scripts/experiment-tracker.js +5 -3
- package/scripts/halo-trace-optimizer.js +631 -0
- package/scripts/infoq-architect-honesty.js +362 -0
- package/scripts/meko-datapack-honesty.js +414 -0
- package/scripts/mintlify-knowledge-honesty.js +647 -0
- package/scripts/model-distress-detector.js +207 -0
- package/scripts/model-distress-doctor.js +200 -0
- package/scripts/rrsi-regularizer.js +445 -0
- package/scripts/salt-code-policy-honesty.js +1204 -0
- package/scripts/strands-harness-doctor.js +390 -0
- package/scripts/tailscale-p2p-doctor.js +252 -0
- package/scripts/workspace-evolver.js +143 -13
- package/server.json +2 -2
- package/skills/aws-strands-harness-not-clone/SKILL.md +53 -0
- package/src/api/server.js +33 -4
|
@@ -0,0 +1,794 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Universal Multi-Agent Onboarding & 1-Click Install | ThumbGate</title>
|
|
7
|
+
<meta name="description" content="1-Click install ThumbGate into Cursor, VS Code, Claude Code, Windsurf, Codex, and 16 coding agents. Local-first PreToolUse firewall with zero latency and prompt-time security rewriter.">
|
|
8
|
+
<meta property="og:title" content="Universal Multi-Agent Onboarding & 1-Click Install | ThumbGate">
|
|
9
|
+
<meta property="og:description" content="1-Click install ThumbGate into Cursor, VS Code, Claude Code, Windsurf, Codex, and 16 coding agents. Local-first PreToolUse firewall with zero latency and prompt-time security rewriter.">
|
|
10
|
+
<meta property="og:type" content="website">
|
|
11
|
+
<meta property="og:url" content="https://thumbgate.ai/onboarding">
|
|
12
|
+
<meta property="og:image" content="/og.png">
|
|
13
|
+
<link rel="canonical" href="https://thumbgate.ai/onboarding">
|
|
14
|
+
<link rel="icon" type="image/png" href="/thumbgate-icon.png">
|
|
15
|
+
<link rel="apple-touch-icon" href="/assets/brand/thumbgate-mark.svg">
|
|
16
|
+
<script defer data-domain="thumbgate.ai" src="https://plausible.io/js/script.js"></script>
|
|
17
|
+
<script type="application/ld+json">
|
|
18
|
+
{
|
|
19
|
+
"@context": "https://schema.org",
|
|
20
|
+
"@type": "SoftwareApplication",
|
|
21
|
+
"name": "ThumbGate Universal Multi-Agent Onboarding",
|
|
22
|
+
"applicationCategory": "DeveloperApplication",
|
|
23
|
+
"operatingSystem": "macOS, Windows, Linux",
|
|
24
|
+
"softwareVersion": "1.27.20",
|
|
25
|
+
"description": "1-click deep links and native configs for Cursor, VS Code, Claude Code, and 16 coding agents with local PreToolUse security firewall.",
|
|
26
|
+
"url": "https://thumbgate.ai/onboarding",
|
|
27
|
+
"downloadUrl": "https://www.npmjs.com/package/thumbgate",
|
|
28
|
+
"offers": {
|
|
29
|
+
"@type": "Offer",
|
|
30
|
+
"price": "0",
|
|
31
|
+
"priceCurrency": "USD",
|
|
32
|
+
"availability": "https://schema.org/InStock"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
</script>
|
|
36
|
+
<style>
|
|
37
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
38
|
+
:root {
|
|
39
|
+
--bg: #090b0f;
|
|
40
|
+
--surface: #11151c;
|
|
41
|
+
--surface-light: #181f2a;
|
|
42
|
+
--line: #27313d;
|
|
43
|
+
--text: #f1f5f9;
|
|
44
|
+
--muted: #9ba8b6;
|
|
45
|
+
--cyan: #22d3ee;
|
|
46
|
+
--green: #4ade80;
|
|
47
|
+
--amber: #fbbf24;
|
|
48
|
+
--red: #fb7185;
|
|
49
|
+
--purple: #c084fc;
|
|
50
|
+
--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
|
|
51
|
+
}
|
|
52
|
+
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; }
|
|
53
|
+
a { color: inherit; text-decoration: none; }
|
|
54
|
+
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
|
|
55
|
+
nav { border-bottom: 1px solid rgba(39, 49, 61, 0.9); background: rgba(9, 11, 15, 0.92); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
|
|
56
|
+
nav .container { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
|
|
57
|
+
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
|
|
58
|
+
.brand img { width: 28px; height: 28px; }
|
|
59
|
+
.brand span { color: var(--cyan); }
|
|
60
|
+
.nav-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
|
|
61
|
+
.nav-links a { color: var(--muted); font-size: 13px; }
|
|
62
|
+
.nav-links a:hover { color: var(--text); }
|
|
63
|
+
.nav-cta, .btn-primary, .btn-secondary, .btn-deeplink {
|
|
64
|
+
display: inline-flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
min-height: 42px;
|
|
68
|
+
border-radius: 8px;
|
|
69
|
+
padding: 0 16px;
|
|
70
|
+
font-weight: 800;
|
|
71
|
+
font-size: 14px;
|
|
72
|
+
border: 1px solid transparent;
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
transition: all 0.15s ease;
|
|
75
|
+
}
|
|
76
|
+
.nav-cta, .btn-primary { background: var(--cyan); color: #06121a; }
|
|
77
|
+
.nav-cta:hover, .btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
|
|
78
|
+
.btn-secondary { background: var(--surface-light); color: var(--text); border-color: var(--line); }
|
|
79
|
+
.btn-secondary:hover { border-color: var(--cyan); }
|
|
80
|
+
.btn-deeplink { background: linear-gradient(135deg, #0ea5e9, #06b6d4); color: #fff; font-weight: 800; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
|
|
81
|
+
.btn-deeplink:hover { filter: brightness(1.15); box-shadow: 0 0 15px rgba(34, 211, 238, 0.4); }
|
|
82
|
+
header { padding: 64px 0 36px; text-align: center; }
|
|
83
|
+
.eyebrow { display: inline-flex; padding: 6px 12px; border: 1px solid rgba(34, 211, 238, 0.28); border-radius: 999px; color: var(--cyan); background: rgba(34, 211, 238, 0.1); font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; }
|
|
84
|
+
h1 { margin: 0 auto 16px; max-width: 900px; font-size: clamp(34px, 5.5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
|
|
85
|
+
.lede { margin: 0 auto 28px; max-width: 780px; color: var(--muted); font-size: 18px; }
|
|
86
|
+
|
|
87
|
+
/* Vibe-Coding Stats Banner */
|
|
88
|
+
.stats-banner {
|
|
89
|
+
display: grid;
|
|
90
|
+
grid-template-columns: repeat(4, 1fr);
|
|
91
|
+
gap: 12px;
|
|
92
|
+
margin: 32px auto;
|
|
93
|
+
max-width: 1040px;
|
|
94
|
+
text-align: left;
|
|
95
|
+
}
|
|
96
|
+
.stat-card {
|
|
97
|
+
background: var(--surface);
|
|
98
|
+
border: 1px solid var(--line);
|
|
99
|
+
border-radius: 8px;
|
|
100
|
+
padding: 16px;
|
|
101
|
+
}
|
|
102
|
+
.stat-num { font-size: 26px; font-weight: 900; line-height: 1; }
|
|
103
|
+
.stat-num.green { color: var(--green); }
|
|
104
|
+
.stat-num.red { color: var(--red); }
|
|
105
|
+
.stat-num.amber { color: var(--amber); }
|
|
106
|
+
.stat-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
|
|
107
|
+
.stat-cite { font-size: 11px; color: #64748b; margin-top: 4px; }
|
|
108
|
+
|
|
109
|
+
/* 1-Click Quick Launch Bar */
|
|
110
|
+
.quick-launch-bar {
|
|
111
|
+
background: linear-gradient(180deg, rgba(34, 211, 238, 0.08), rgba(17, 21, 28, 0.95));
|
|
112
|
+
border: 1px solid rgba(34, 211, 238, 0.3);
|
|
113
|
+
border-radius: 12px;
|
|
114
|
+
padding: 24px;
|
|
115
|
+
margin: 20px auto 44px;
|
|
116
|
+
max-width: 960px;
|
|
117
|
+
display: flex;
|
|
118
|
+
align-items: center;
|
|
119
|
+
justify-content: space-between;
|
|
120
|
+
gap: 20px;
|
|
121
|
+
flex-wrap: wrap;
|
|
122
|
+
}
|
|
123
|
+
.quick-text h3 { margin: 0 0 6px; font-size: 20px; color: var(--cyan); }
|
|
124
|
+
.quick-text p { margin: 0; color: var(--muted); font-size: 14px; }
|
|
125
|
+
.quick-actions { display: flex; gap: 12px; flex-wrap: wrap; }
|
|
126
|
+
|
|
127
|
+
/* Section Styling */
|
|
128
|
+
section { border-top: 1px solid var(--line); padding: 50px 0; }
|
|
129
|
+
h2 { margin: 0 0 10px; font-size: 28px; letter-spacing: -0.02em; }
|
|
130
|
+
.section-lede { margin: 0 0 24px; color: var(--muted); font-size: 15px; max-width: 760px; }
|
|
131
|
+
|
|
132
|
+
/* Agent Selector Tabs */
|
|
133
|
+
.agent-selector-nav {
|
|
134
|
+
display: flex;
|
|
135
|
+
gap: 8px;
|
|
136
|
+
overflow-x: auto;
|
|
137
|
+
padding-bottom: 12px;
|
|
138
|
+
margin-bottom: 24px;
|
|
139
|
+
border-bottom: 1px solid var(--line);
|
|
140
|
+
scrollbar-width: thin;
|
|
141
|
+
}
|
|
142
|
+
.agent-tab-btn {
|
|
143
|
+
background: var(--surface);
|
|
144
|
+
border: 1px solid var(--line);
|
|
145
|
+
color: var(--muted);
|
|
146
|
+
padding: 8px 16px;
|
|
147
|
+
border-radius: 6px;
|
|
148
|
+
font-size: 13px;
|
|
149
|
+
font-weight: 700;
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
white-space: nowrap;
|
|
152
|
+
transition: all 0.15s ease;
|
|
153
|
+
}
|
|
154
|
+
.agent-tab-btn:hover { color: var(--text); border-color: var(--muted); }
|
|
155
|
+
.agent-tab-btn.active {
|
|
156
|
+
background: rgba(34, 211, 238, 0.12);
|
|
157
|
+
border-color: var(--cyan);
|
|
158
|
+
color: var(--cyan);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Agent Detail Panel */
|
|
162
|
+
.agent-detail-panel {
|
|
163
|
+
background: var(--surface);
|
|
164
|
+
border: 1px solid var(--line);
|
|
165
|
+
border-radius: 10px;
|
|
166
|
+
padding: 24px;
|
|
167
|
+
}
|
|
168
|
+
.panel-header {
|
|
169
|
+
display: flex;
|
|
170
|
+
justify-content: space-between;
|
|
171
|
+
align-items: flex-start;
|
|
172
|
+
gap: 16px;
|
|
173
|
+
margin-bottom: 20px;
|
|
174
|
+
flex-wrap: wrap;
|
|
175
|
+
}
|
|
176
|
+
.panel-title h3 { margin: 0 0 4px; font-size: 22px; }
|
|
177
|
+
.panel-title span { color: var(--cyan); font-size: 13px; font-weight: 600; }
|
|
178
|
+
.code-block-wrapper { position: relative; margin-top: 12px; }
|
|
179
|
+
.copy-btn {
|
|
180
|
+
position: absolute;
|
|
181
|
+
top: 10px;
|
|
182
|
+
right: 10px;
|
|
183
|
+
background: #1e293b;
|
|
184
|
+
border: 1px solid #334155;
|
|
185
|
+
color: var(--text);
|
|
186
|
+
padding: 4px 10px;
|
|
187
|
+
border-radius: 4px;
|
|
188
|
+
font-size: 11px;
|
|
189
|
+
font-weight: 700;
|
|
190
|
+
cursor: pointer;
|
|
191
|
+
}
|
|
192
|
+
.copy-btn:hover { background: #334155; color: var(--cyan); }
|
|
193
|
+
pre {
|
|
194
|
+
margin: 0;
|
|
195
|
+
background: #05070a;
|
|
196
|
+
border: 1px solid var(--line);
|
|
197
|
+
border-radius: 8px;
|
|
198
|
+
padding: 16px;
|
|
199
|
+
overflow-x: auto;
|
|
200
|
+
font-size: 13px;
|
|
201
|
+
color: #e2e8f0;
|
|
202
|
+
line-height: 1.45;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* Interactive Prompt Simulator */
|
|
206
|
+
.sim-grid {
|
|
207
|
+
display: grid;
|
|
208
|
+
grid-template-columns: 1fr 1fr;
|
|
209
|
+
gap: 20px;
|
|
210
|
+
}
|
|
211
|
+
.sim-input-box, .sim-output-box {
|
|
212
|
+
background: var(--surface);
|
|
213
|
+
border: 1px solid var(--line);
|
|
214
|
+
border-radius: 10px;
|
|
215
|
+
padding: 20px;
|
|
216
|
+
}
|
|
217
|
+
textarea.prompt-input {
|
|
218
|
+
width: 100%;
|
|
219
|
+
height: 130px;
|
|
220
|
+
background: #05070a;
|
|
221
|
+
border: 1px solid var(--line);
|
|
222
|
+
border-radius: 8px;
|
|
223
|
+
padding: 12px;
|
|
224
|
+
color: var(--text);
|
|
225
|
+
font-family: monospace;
|
|
226
|
+
font-size: 13px;
|
|
227
|
+
resize: vertical;
|
|
228
|
+
outline: none;
|
|
229
|
+
}
|
|
230
|
+
textarea.prompt-input:focus { border-color: var(--cyan); }
|
|
231
|
+
.prompt-preset-bar { display: flex; gap: 8px; margin: 12px 0 16px; flex-wrap: wrap; }
|
|
232
|
+
.preset-btn {
|
|
233
|
+
background: var(--surface-light);
|
|
234
|
+
border: 1px solid var(--line);
|
|
235
|
+
color: var(--muted);
|
|
236
|
+
padding: 4px 10px;
|
|
237
|
+
border-radius: 4px;
|
|
238
|
+
font-size: 11px;
|
|
239
|
+
cursor: pointer;
|
|
240
|
+
}
|
|
241
|
+
.preset-btn:hover { color: var(--text); border-color: var(--cyan); }
|
|
242
|
+
.sim-result-status {
|
|
243
|
+
display: inline-flex;
|
|
244
|
+
align-items: center;
|
|
245
|
+
gap: 8px;
|
|
246
|
+
padding: 6px 12px;
|
|
247
|
+
border-radius: 6px;
|
|
248
|
+
font-weight: 900;
|
|
249
|
+
font-size: 13px;
|
|
250
|
+
margin-bottom: 12px;
|
|
251
|
+
}
|
|
252
|
+
.status-blocked { background: rgba(251, 113, 133, 0.15); color: var(--red); border: 1px solid var(--red); }
|
|
253
|
+
.status-allowed { background: rgba(74, 222, 128, 0.15); color: var(--green); border: 1px solid var(--green); }
|
|
254
|
+
.violation-card {
|
|
255
|
+
background: rgba(251, 113, 133, 0.08);
|
|
256
|
+
border-left: 3px solid var(--red);
|
|
257
|
+
padding: 8px 12px;
|
|
258
|
+
margin-bottom: 8px;
|
|
259
|
+
font-size: 12px;
|
|
260
|
+
}
|
|
261
|
+
.violation-card strong { color: var(--red); }
|
|
262
|
+
.alternative-card {
|
|
263
|
+
background: rgba(74, 222, 128, 0.08);
|
|
264
|
+
border-left: 3px solid var(--green);
|
|
265
|
+
padding: 8px 12px;
|
|
266
|
+
margin-top: 10px;
|
|
267
|
+
font-size: 12px;
|
|
268
|
+
}
|
|
269
|
+
.alternative-card strong { color: var(--green); }
|
|
270
|
+
|
|
271
|
+
/* Comparison Table */
|
|
272
|
+
table.comp-table {
|
|
273
|
+
width: 100%;
|
|
274
|
+
border-collapse: collapse;
|
|
275
|
+
background: var(--surface);
|
|
276
|
+
border: 1px solid var(--line);
|
|
277
|
+
border-radius: 8px;
|
|
278
|
+
overflow: hidden;
|
|
279
|
+
}
|
|
280
|
+
table.comp-table th, table.comp-table td {
|
|
281
|
+
padding: 14px 16px;
|
|
282
|
+
text-align: left;
|
|
283
|
+
border-bottom: 1px solid var(--line);
|
|
284
|
+
font-size: 13px;
|
|
285
|
+
}
|
|
286
|
+
table.comp-table th { background: #0c1017; font-weight: 800; color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; }
|
|
287
|
+
table.comp-table td:nth-child(2) { color: #94a3b8; }
|
|
288
|
+
table.comp-table td:nth-child(3) { color: var(--cyan); font-weight: 600; }
|
|
289
|
+
|
|
290
|
+
footer { color: var(--muted); padding: 48px 0 80px; text-align: center; font-size: 13px; border-top: 1px solid var(--line); }
|
|
291
|
+
footer a { color: var(--cyan); }
|
|
292
|
+
|
|
293
|
+
@media (max-width: 860px) {
|
|
294
|
+
.stats-banner { grid-template-columns: 1fr 1fr; }
|
|
295
|
+
.sim-grid { grid-template-columns: 1fr; }
|
|
296
|
+
.quick-launch-bar { flex-direction: column; align-items: flex-start; }
|
|
297
|
+
}
|
|
298
|
+
</style>
|
|
299
|
+
</head>
|
|
300
|
+
<body>
|
|
301
|
+
<nav>
|
|
302
|
+
<div class="container">
|
|
303
|
+
<a href="/" class="brand">
|
|
304
|
+
<img src="/thumbgate-icon.png" alt="ThumbGate Logo">
|
|
305
|
+
<span>ThumbGate</span>
|
|
306
|
+
</a>
|
|
307
|
+
<div class="nav-links">
|
|
308
|
+
<a href="/onboarding" style="color:var(--cyan);font-weight:700;">1-Click Onboard</a>
|
|
309
|
+
<a href="/install">Install Paths</a>
|
|
310
|
+
<a href="/compare">Comparison</a>
|
|
311
|
+
<a href="/blog">Engineering Blog</a>
|
|
312
|
+
<a href="/pro" class="nav-cta">Get Pro Gate</a>
|
|
313
|
+
</div>
|
|
314
|
+
</div>
|
|
315
|
+
</nav>
|
|
316
|
+
|
|
317
|
+
<header>
|
|
318
|
+
<div class="container">
|
|
319
|
+
<div class="eyebrow">Universal Multi-Agent Onboarding Engine</div>
|
|
320
|
+
<h1>Stop Vibe-Coding Vulnerabilities.<br>1-Click Firewall for 16 AI Agents.</h1>
|
|
321
|
+
<p class="lede">Advisory system prompts fail under model distress. ThumbGate runs a deterministic, 100% offline <code>PreToolUse</code> firewall in <5ms before your agent executes code.</p>
|
|
322
|
+
|
|
323
|
+
<!-- 1-Click Launch Strip -->
|
|
324
|
+
<div class="quick-launch-bar">
|
|
325
|
+
<div class="quick-text">
|
|
326
|
+
<h3>Instant 1-Click Desktop Installation</h3>
|
|
327
|
+
<p>Direct deep-link protocol handlers register ThumbGate MCP server immediately.</p>
|
|
328
|
+
</div>
|
|
329
|
+
<div class="quick-actions">
|
|
330
|
+
<a id="cursor-quick-btn" href="#" class="btn-deeplink">Install in Cursor</a>
|
|
331
|
+
<a id="vscode-quick-btn" href="#" class="btn-primary">Install in VS Code</a>
|
|
332
|
+
<button onclick="copyQuickStdio()" class="btn-secondary">Copy <code>npx</code> Command</button>
|
|
333
|
+
</div>
|
|
334
|
+
</div>
|
|
335
|
+
|
|
336
|
+
<!-- Vibe-Coding Reality Strip -->
|
|
337
|
+
<div class="stats-banner">
|
|
338
|
+
<div class="stat-card">
|
|
339
|
+
<div class="stat-num green">99.9%</div>
|
|
340
|
+
<div class="stat-label">Syntax Pass Rate</div>
|
|
341
|
+
<div class="stat-cite">Vibe code compiles cleanly</div>
|
|
342
|
+
</div>
|
|
343
|
+
<div class="stat-card">
|
|
344
|
+
<div class="stat-num red">44.0%</div>
|
|
345
|
+
<div class="stat-label">Security Flaw Rate</div>
|
|
346
|
+
<div class="stat-cite">Deng et al. 2026 benchmark</div>
|
|
347
|
+
</div>
|
|
348
|
+
<div class="stat-card">
|
|
349
|
+
<div class="stat-num red">90.0%</div>
|
|
350
|
+
<div class="stat-label">Vulnerable Apps</div>
|
|
351
|
+
<div class="stat-cite">Veracode 2026 empirical study</div>
|
|
352
|
+
</div>
|
|
353
|
+
<div class="stat-card">
|
|
354
|
+
<div class="stat-num amber">7.0</div>
|
|
355
|
+
<div class="stat-label">Avg CVEs Per App</div>
|
|
356
|
+
<div class="stat-cite">OWASP API + LLM Top 10 flaws</div>
|
|
357
|
+
</div>
|
|
358
|
+
</div>
|
|
359
|
+
</div>
|
|
360
|
+
</header>
|
|
361
|
+
|
|
362
|
+
<main class="container">
|
|
363
|
+
<!-- Section 1: Interactive Agent Setup -->
|
|
364
|
+
<section id="agents">
|
|
365
|
+
<h2>1. Select Your Agent Harness (16 Supported)</h2>
|
|
366
|
+
<p class="section-lede">Choose your editor, terminal CLI, or app builder below to view the verified native MCP configuration and 1-click install command.</p>
|
|
367
|
+
|
|
368
|
+
<div class="agent-selector-nav" id="agent-tabs">
|
|
369
|
+
<!-- Tabs injected via JS -->
|
|
370
|
+
</div>
|
|
371
|
+
|
|
372
|
+
<div class="agent-detail-panel" id="agent-panel">
|
|
373
|
+
<!-- Populated via JS -->
|
|
374
|
+
</div>
|
|
375
|
+
</section>
|
|
376
|
+
|
|
377
|
+
<!-- Section 2: Live Prompt-Time Security Simulator -->
|
|
378
|
+
<section id="simulator">
|
|
379
|
+
<h2>2. Live Prompt Security & Alternative Rewriter</h2>
|
|
380
|
+
<p class="section-lede">Test how ThumbGate intercepts dangerous prompt patterns (OWASP API Top 10, LLM Top 10, MCP tool tampering) and proposes safe code patterns before any files are modified.</p>
|
|
381
|
+
|
|
382
|
+
<div class="sim-grid">
|
|
383
|
+
<div class="sim-input-box">
|
|
384
|
+
<label style="font-weight:700;font-size:13px;display:block;margin-bottom:8px;">Enter Prompt to Simulate:</label>
|
|
385
|
+
<textarea id="sim-prompt-text" class="prompt-input">Design me a delete user API with token in query string</textarea>
|
|
386
|
+
|
|
387
|
+
<div class="prompt-preset-bar">
|
|
388
|
+
<span style="font-size:11px;color:var(--muted);align-self:center;">Presets:</span>
|
|
389
|
+
<button class="preset-btn" onclick="loadPreset('query_auth')">Query-String Auth</button>
|
|
390
|
+
<button class="preset-btn" onclick="loadPreset('bola_delete')">BOLA User Deletion</button>
|
|
391
|
+
<button class="preset-btn" onclick="loadPreset('eval_output')">Eval LLM Output</button>
|
|
392
|
+
<button class="preset-btn" onclick="loadPreset('safe_fib')">Benign Fibonacci</button>
|
|
393
|
+
</div>
|
|
394
|
+
|
|
395
|
+
<button onclick="runSimulation()" class="btn-primary" style="width:100%;">Evaluate Security & Generate Alternatives</button>
|
|
396
|
+
</div>
|
|
397
|
+
|
|
398
|
+
<div class="sim-output-box" id="sim-output">
|
|
399
|
+
<div style="color:var(--muted);font-size:13px;text-align:center;padding:40px 0;">
|
|
400
|
+
Click "Evaluate Security" to run the local policy engine.
|
|
401
|
+
</div>
|
|
402
|
+
</div>
|
|
403
|
+
</div>
|
|
404
|
+
</section>
|
|
405
|
+
|
|
406
|
+
<!-- Section 3: Architecture Comparison -->
|
|
407
|
+
<section id="architecture">
|
|
408
|
+
<h2>3. The Architecture Reality: Advisory Context vs. Deterministic Firewall</h2>
|
|
409
|
+
<p class="section-lede">Salt Code injects passive prompt rules from a remote cloud server. When an agent experiences residual stream distress, system prompts are ignored. ThumbGate operates at the execution layer.</p>
|
|
410
|
+
|
|
411
|
+
<table class="comp-table">
|
|
412
|
+
<thead>
|
|
413
|
+
<tr>
|
|
414
|
+
<th>Architectural Pillar</th>
|
|
415
|
+
<th>Salt Code (Advisory Cloud MCP)</th>
|
|
416
|
+
<th>ThumbGate (Deterministic Local Firewall)</th>
|
|
417
|
+
</tr>
|
|
418
|
+
</thead>
|
|
419
|
+
<tbody>
|
|
420
|
+
<tr>
|
|
421
|
+
<td><strong>Enforcement Plane</strong></td>
|
|
422
|
+
<td>Prompt context injection (MCP advisory prompt / .cursorrules)</td>
|
|
423
|
+
<td>Execution-time <code>PreToolUse</code> hook (deterministic fail-closed firewall)</td>
|
|
424
|
+
</tr>
|
|
425
|
+
<tr>
|
|
426
|
+
<td><strong>Transport & Privacy</strong></td>
|
|
427
|
+
<td>Remote cloud MCP server (requires work email, remote SaaS round-trip)</td>
|
|
428
|
+
<td>100% local stdio / subshell diode (zero cloud egress, air-gap safe)</td>
|
|
429
|
+
</tr>
|
|
430
|
+
<tr>
|
|
431
|
+
<td><strong>Cost & Latency</strong></td>
|
|
432
|
+
<td>Bloats context window tokens + network round-trips to cloud</td>
|
|
433
|
+
<td>Zero LLM tokens for gate checks; <5ms deterministic AST/regex rail</td>
|
|
434
|
+
</tr>
|
|
435
|
+
<tr>
|
|
436
|
+
<td><strong>Self-Improvement</strong></td>
|
|
437
|
+
<td>Static vendor list of 40 rules</td>
|
|
438
|
+
<td>Ralph Loop + Thompson Sampling feedback-to-prevention rule synthesis</td>
|
|
439
|
+
</tr>
|
|
440
|
+
<tr>
|
|
441
|
+
<td><strong>Runtime Defense</strong></td>
|
|
442
|
+
<td>Advisory warning in text generation</td>
|
|
443
|
+
<td>Hard interdiction of BOLA, secret leaks, raw eval, and rogue git wipes</td>
|
|
444
|
+
</tr>
|
|
445
|
+
</tbody>
|
|
446
|
+
</table>
|
|
447
|
+
</section>
|
|
448
|
+
</main>
|
|
449
|
+
|
|
450
|
+
<footer>
|
|
451
|
+
<div class="container">
|
|
452
|
+
<p>ThumbGate — The Infrastructure Firewall for AI Coding Agents.</p>
|
|
453
|
+
<p>Open source on <a href="https://github.com/IgorGanapolsky/ThumbGate" target="_blank" rel="noopener">GitHub</a> · Package on <a href="https://www.npmjs.com/package/thumbgate" target="_blank" rel="noopener">npm</a> · <a href="/privacy">Privacy</a> · <a href="/terms">Terms</a></p>
|
|
454
|
+
</div>
|
|
455
|
+
</footer>
|
|
456
|
+
|
|
457
|
+
<script>
|
|
458
|
+
// Agent Data Catalog (16 Agents)
|
|
459
|
+
const AGENTS = [
|
|
460
|
+
{
|
|
461
|
+
id: 'cursor',
|
|
462
|
+
name: 'Cursor',
|
|
463
|
+
category: 'IDE',
|
|
464
|
+
eyebrow: 'Cursor AI Code Editor',
|
|
465
|
+
supportsDeeplink: true,
|
|
466
|
+
file: '~/.cursor/mcp.json',
|
|
467
|
+
config: JSON.stringify({ mcpServers: { thumbgate: { command: "npx", args: ["-y", "thumbgate", "mcp"] } } }, null, 2),
|
|
468
|
+
cli: 'open "cursor://anysphere.cursor-deeplink/mcp/install?name=ThumbGate&config=' + btoa(JSON.stringify({ command: "npx", args: ["-y", "thumbgate", "mcp"] })) + '"',
|
|
469
|
+
deeplink: 'cursor://anysphere.cursor-deeplink/mcp/install?name=ThumbGate&config=' + btoa(JSON.stringify({ command: "npx", args: ["-y", "thumbgate", "mcp"] }))
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
id: 'vscode',
|
|
473
|
+
name: 'VS Code',
|
|
474
|
+
category: 'IDE',
|
|
475
|
+
eyebrow: 'Visual Studio Code',
|
|
476
|
+
supportsDeeplink: true,
|
|
477
|
+
file: '.vscode/mcp.json',
|
|
478
|
+
config: JSON.stringify({ mcp: { servers: { thumbgate: { type: "command", command: "npx", args: ["-y", "thumbgate", "mcp"] } } } }, null, 2),
|
|
479
|
+
cli: 'open "vscode:mcp/install?' + encodeURIComponent(JSON.stringify({ name: "thumbgate", type: "command", command: "npx", args: ["-y", "thumbgate", "mcp"] })) + '"',
|
|
480
|
+
deeplink: 'vscode:mcp/install?' + encodeURIComponent(JSON.stringify({ name: "thumbgate", type: "command", command: "npx", args: ["-y", "thumbgate", "mcp"] }))
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
id: 'claude',
|
|
484
|
+
name: 'Claude Code',
|
|
485
|
+
category: 'CLI',
|
|
486
|
+
eyebrow: 'Anthropic Claude Code CLI',
|
|
487
|
+
supportsDeeplink: false,
|
|
488
|
+
file: '~/.claude/settings.json',
|
|
489
|
+
config: 'claude mcp add thumbgate -- npx -y thumbgate mcp',
|
|
490
|
+
cli: 'claude mcp add thumbgate -- npx -y thumbgate mcp'
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
id: 'windsurf',
|
|
494
|
+
name: 'Windsurf',
|
|
495
|
+
category: 'IDE',
|
|
496
|
+
eyebrow: 'Codeium Windsurf IDE',
|
|
497
|
+
supportsDeeplink: false,
|
|
498
|
+
file: '~/.codeium/windsurf/mcp_config.json',
|
|
499
|
+
config: JSON.stringify({ mcpServers: { thumbgate: { command: "npx", args: ["-y", "thumbgate", "mcp"] } } }, null, 2),
|
|
500
|
+
cli: '# Paste configuration into ~/.codeium/windsurf/mcp_config.json'
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
id: 'copilot_cli',
|
|
504
|
+
name: 'Copilot CLI',
|
|
505
|
+
category: 'CLI',
|
|
506
|
+
eyebrow: 'GitHub Copilot CLI',
|
|
507
|
+
supportsDeeplink: false,
|
|
508
|
+
file: '~/.config/github-copilot/mcp.json',
|
|
509
|
+
config: 'copilot mcp add thumbgate -- command npx -y thumbgate mcp',
|
|
510
|
+
cli: 'copilot mcp add thumbgate -- command npx -y thumbgate mcp'
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
id: 'kiro',
|
|
514
|
+
name: 'Kiro',
|
|
515
|
+
category: 'IDE',
|
|
516
|
+
eyebrow: 'AWS Kiro Autonomous Agent',
|
|
517
|
+
supportsDeeplink: false,
|
|
518
|
+
file: 'kiro/mcp_settings.json',
|
|
519
|
+
config: JSON.stringify({ mcpServers: { thumbgate: { command: "npx", args: ["-y", "thumbgate", "mcp"] } } }, null, 2),
|
|
520
|
+
cli: '# Add to kiro/mcp_settings.json'
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
id: 'codex',
|
|
524
|
+
name: 'Codex',
|
|
525
|
+
category: 'CLI',
|
|
526
|
+
eyebrow: 'OpenAI Codex CLI',
|
|
527
|
+
supportsDeeplink: false,
|
|
528
|
+
file: '~/.codex/config.toml',
|
|
529
|
+
config: '[mcp_servers.thumbgate]\ncommand = "npx"\nargs = ["-y", "thumbgate", "mcp"]',
|
|
530
|
+
cli: '# Append to ~/.codex/config.toml'
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
id: 'gemini',
|
|
534
|
+
name: 'Gemini CLI',
|
|
535
|
+
category: 'CLI',
|
|
536
|
+
eyebrow: 'Google Gemini CLI',
|
|
537
|
+
supportsDeeplink: false,
|
|
538
|
+
file: '~/.gemini/settings.json',
|
|
539
|
+
config: JSON.stringify({ mcpServers: { thumbgate: { command: "npx", args: ["-y", "thumbgate", "mcp"] } } }, null, 2),
|
|
540
|
+
cli: '# Append to ~/.gemini/settings.json'
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
id: 'antigravity',
|
|
544
|
+
name: 'Antigravity',
|
|
545
|
+
category: 'CLI',
|
|
546
|
+
eyebrow: 'Google Antigravity CLI',
|
|
547
|
+
supportsDeeplink: false,
|
|
548
|
+
file: '.antigravity/workspace.yaml',
|
|
549
|
+
config: 'mcpServers:\n thumbgate:\n command: npx\n args: ["-y", "thumbgate", "mcp"]',
|
|
550
|
+
cli: '# Append to .antigravity/workspace.yaml'
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
id: 'opencode',
|
|
554
|
+
name: 'OpenCode',
|
|
555
|
+
category: 'CLI',
|
|
556
|
+
eyebrow: 'OpenCode CLI',
|
|
557
|
+
supportsDeeplink: false,
|
|
558
|
+
file: '~/.opencode/mcp.json',
|
|
559
|
+
config: 'opencode mcp add',
|
|
560
|
+
cli: 'opencode mcp add'
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
id: 'jetbrains',
|
|
564
|
+
name: 'JetBrains AI',
|
|
565
|
+
category: 'IDE',
|
|
566
|
+
eyebrow: 'IntelliJ / WebStorm / PyCharm',
|
|
567
|
+
supportsDeeplink: false,
|
|
568
|
+
file: 'mcp-settings.json',
|
|
569
|
+
config: JSON.stringify({ mcpServers: { thumbgate: { command: "npx", args: ["-y", "thumbgate", "mcp"] } } }, null, 2),
|
|
570
|
+
cli: '# Add to JetBrains AI Assistant mcp-settings.json'
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
id: 'grok',
|
|
574
|
+
name: 'Grok Build',
|
|
575
|
+
category: 'CLI',
|
|
576
|
+
eyebrow: 'xAI Grok Build CLI',
|
|
577
|
+
supportsDeeplink: false,
|
|
578
|
+
file: '~/.grok/config.toml',
|
|
579
|
+
config: 'grok mcp add thumbgate -- npx -y thumbgate mcp',
|
|
580
|
+
cli: 'grok mcp add thumbgate -- npx -y thumbgate mcp'
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
id: 'lovable',
|
|
584
|
+
name: 'Lovable',
|
|
585
|
+
category: 'Builder',
|
|
586
|
+
eyebrow: 'Lovable AI App Builder',
|
|
587
|
+
supportsDeeplink: false,
|
|
588
|
+
file: 'Connector Settings',
|
|
589
|
+
config: JSON.stringify({ url: "https://thumbgate-production.up.railway.app/mcp", auth: "Bearer <YOUR_THUMBGATE_TOKEN>" }, null, 2),
|
|
590
|
+
cli: '# Enter Custom MCP URL in Lovable Connectors'
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
id: 'cline',
|
|
594
|
+
name: 'Cline',
|
|
595
|
+
category: 'Extension',
|
|
596
|
+
eyebrow: 'Cline VS Code Agent',
|
|
597
|
+
supportsDeeplink: false,
|
|
598
|
+
file: '~/.cline/mcp.json',
|
|
599
|
+
config: JSON.stringify({ mcpServers: { thumbgate: { command: "npx", args: ["-y", "thumbgate", "mcp"], disabled: false, autoApprove: [] } } }, null, 2),
|
|
600
|
+
cli: '# Add to ~/.cline/mcp.json'
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
id: 'bolt',
|
|
604
|
+
name: 'Bolt',
|
|
605
|
+
category: 'Builder',
|
|
606
|
+
eyebrow: 'bolt.new / StackBlitz',
|
|
607
|
+
supportsDeeplink: false,
|
|
608
|
+
file: 'Connectors',
|
|
609
|
+
config: JSON.stringify({ transport: "http", url: "https://thumbgate-production.up.railway.app/mcp" }, null, 2),
|
|
610
|
+
cli: '# Add Custom MCP in bolt.new settings'
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
id: 'generic',
|
|
614
|
+
name: 'Any MCP Client',
|
|
615
|
+
category: 'Universal',
|
|
616
|
+
eyebrow: 'Universal Stdio Protocol',
|
|
617
|
+
supportsDeeplink: false,
|
|
618
|
+
file: 'mcp-config.json',
|
|
619
|
+
config: JSON.stringify({ command: "npx", args: ["-y", "thumbgate", "mcp"] }, null, 2),
|
|
620
|
+
cli: 'npx -y thumbgate mcp'
|
|
621
|
+
}
|
|
622
|
+
];
|
|
623
|
+
|
|
624
|
+
let activeAgentId = 'cursor';
|
|
625
|
+
|
|
626
|
+
function renderTabs() {
|
|
627
|
+
const container = document.getElementById('agent-tabs');
|
|
628
|
+
container.innerHTML = AGENTS.map(a => `
|
|
629
|
+
<button class="agent-tab-btn ${a.id === activeAgentId ? 'active' : ''}" onclick="selectAgent('${a.id}')">
|
|
630
|
+
${a.name}
|
|
631
|
+
</button>
|
|
632
|
+
`).join('');
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
function selectAgent(id) {
|
|
636
|
+
activeAgentId = id;
|
|
637
|
+
renderTabs();
|
|
638
|
+
renderPanel();
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
function renderPanel() {
|
|
642
|
+
const agent = AGENTS.find(a => a.id === activeAgentId);
|
|
643
|
+
if (!agent) return;
|
|
644
|
+
const panel = document.getElementById('agent-panel');
|
|
645
|
+
panel.innerHTML = `
|
|
646
|
+
<div class="panel-header">
|
|
647
|
+
<div class="panel-title">
|
|
648
|
+
<h3>${agent.name} Configuration</h3>
|
|
649
|
+
<span>${agent.eyebrow} · Target: <code>${agent.file}</code></span>
|
|
650
|
+
</div>
|
|
651
|
+
<div>
|
|
652
|
+
${agent.supportsDeeplink ? `<a href="${agent.deeplink}" class="btn-deeplink">1-Click Install in ${agent.name}</a>` : ''}
|
|
653
|
+
</div>
|
|
654
|
+
</div>
|
|
655
|
+
<div style="font-size:13px;color:var(--muted);margin-bottom:8px;">Configuration Snippet:</div>
|
|
656
|
+
<div class="code-block-wrapper">
|
|
657
|
+
<button class="copy-btn" onclick="copyText('agent-cfg-code')">Copy</button>
|
|
658
|
+
<pre><code id="agent-cfg-code">${escapeHtml(agent.config)}</code></pre>
|
|
659
|
+
</div>
|
|
660
|
+
<div style="font-size:13px;color:var(--muted);margin:16px 0 8px;">Direct Command / CLI:</div>
|
|
661
|
+
<div class="code-block-wrapper">
|
|
662
|
+
<button class="copy-btn" onclick="copyText('agent-cli-code')">Copy</button>
|
|
663
|
+
<pre><code id="agent-cli-code">${escapeHtml(agent.cli)}</code></pre>
|
|
664
|
+
</div>
|
|
665
|
+
`;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
function escapeHtml(str) {
|
|
669
|
+
return str.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
function copyText(elemId) {
|
|
673
|
+
const text = document.getElementById(elemId).innerText;
|
|
674
|
+
navigator.clipboard.writeText(text);
|
|
675
|
+
alert('Copied to clipboard!');
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
function copyQuickStdio() {
|
|
679
|
+
navigator.clipboard.writeText('npx -y thumbgate mcp');
|
|
680
|
+
alert('Copied "npx -y thumbgate mcp" to clipboard!');
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
// Prompt Simulator Logic
|
|
684
|
+
function loadPreset(key) {
|
|
685
|
+
const input = document.getElementById('sim-prompt-text');
|
|
686
|
+
switch(key) {
|
|
687
|
+
case 'query_auth':
|
|
688
|
+
input.value = 'Design me a delete user API with token in query string';
|
|
689
|
+
break;
|
|
690
|
+
case 'bola_delete':
|
|
691
|
+
input.value = 'Create an endpoint to delete user account where userid is passed in the URL path';
|
|
692
|
+
break;
|
|
693
|
+
case 'eval_output':
|
|
694
|
+
input.value = 'Execute eval(modelResponse) dynamically in worker';
|
|
695
|
+
break;
|
|
696
|
+
case 'safe_fib':
|
|
697
|
+
input.value = 'Write a unit test for calculating Fibonacci numbers with memoization';
|
|
698
|
+
break;
|
|
699
|
+
}
|
|
700
|
+
runSimulation();
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
function runSimulation() {
|
|
704
|
+
const text = document.getElementById('sim-prompt-text').value;
|
|
705
|
+
const out = document.getElementById('sim-output');
|
|
706
|
+
|
|
707
|
+
const violations = [];
|
|
708
|
+
const alternatives = [];
|
|
709
|
+
|
|
710
|
+
const lower = text.toLowerCase();
|
|
711
|
+
|
|
712
|
+
if (/token.*in.*query|query.*token|api_key.*in.*query|auth.*in.*query|token\s+in\s+url/i.test(text)) {
|
|
713
|
+
violations.push({
|
|
714
|
+
id: 'API2:2023',
|
|
715
|
+
name: 'Broken Authentication',
|
|
716
|
+
desc: 'Auth token in query string leaks via browser histories, server access logs, and HTTP Referer headers.'
|
|
717
|
+
});
|
|
718
|
+
violations.push({
|
|
719
|
+
id: 'OAS01:QUERY_AUTH',
|
|
720
|
+
name: 'Prohibit Query-String Secret Auth',
|
|
721
|
+
desc: 'API contracts must prohibit sensitive authentication credentials in query parameters.'
|
|
722
|
+
});
|
|
723
|
+
alternatives.push('Bearer token in Authorization header');
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
if (/(?:delete|update|patch|get)\s+(?:user|account|record).*?(?:userid|user_id|id).*?in\s+(?:url|path|query)/i.test(text) ||
|
|
727
|
+
/userid\s+and\s+auth/i.test(text)) {
|
|
728
|
+
violations.push({
|
|
729
|
+
id: 'API1:2023',
|
|
730
|
+
name: 'Broken Object Level Authorization (BOLA)',
|
|
731
|
+
desc: 'Direct object references in URL without tenant/owner scope validation.'
|
|
732
|
+
});
|
|
733
|
+
violations.push({
|
|
734
|
+
id: 'API3:2023',
|
|
735
|
+
name: 'Broken Object Property Level Authorization',
|
|
736
|
+
desc: 'Exposing sensitive user identifier in unencrypted request URL.'
|
|
737
|
+
});
|
|
738
|
+
alternatives.push('User ID in request body with tenant-scoped session context');
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
if (/\b(?:eval|exec|Function)\s*\(.*?(?:completion|response|llm|output)/i.test(text)) {
|
|
742
|
+
violations.push({
|
|
743
|
+
id: 'LLM05:2025',
|
|
744
|
+
name: 'Improper Output Handling',
|
|
745
|
+
desc: 'Dynamic evaluation of model output leads to arbitrary remote code execution.'
|
|
746
|
+
});
|
|
747
|
+
alternatives.push('Structured JSON schema validation + safe AST dispatch');
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
if (violations.length === 0) {
|
|
751
|
+
out.innerHTML = `
|
|
752
|
+
<div class="sim-result-status status-allowed">
|
|
753
|
+
<span>✓</span> ALLOWED: Safe Prompt Pattern
|
|
754
|
+
</div>
|
|
755
|
+
<p style="font-size:13px;color:var(--muted);">No OWASP API Top 10 or LLM Top 10 security policy violations detected. ThumbGate PreToolUse firewall permits generation and execution.</p>
|
|
756
|
+
`;
|
|
757
|
+
} else {
|
|
758
|
+
out.innerHTML = `
|
|
759
|
+
<div class="sim-result-status status-blocked">
|
|
760
|
+
<span>✕</span> BLOCKED: ${violations.length} Security Policy Violations
|
|
761
|
+
</div>
|
|
762
|
+
<div style="margin-bottom:12px;">
|
|
763
|
+
${violations.map(v => `
|
|
764
|
+
<div class="violation-card">
|
|
765
|
+
<strong>[${v.id}] ${v.name}</strong><br>
|
|
766
|
+
<span>${v.desc}</span>
|
|
767
|
+
</div>
|
|
768
|
+
`).join('')}
|
|
769
|
+
</div>
|
|
770
|
+
<div style="font-size:13px;font-weight:700;margin-bottom:6px;color:var(--green);">Proactive Safe Alternatives:</div>
|
|
771
|
+
<div>
|
|
772
|
+
${alternatives.map(a => `
|
|
773
|
+
<div class="alternative-card">
|
|
774
|
+
<strong>✓ Recommendation:</strong> ${a}
|
|
775
|
+
</div>
|
|
776
|
+
`).join('')}
|
|
777
|
+
</div>
|
|
778
|
+
`;
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
// Initial setup
|
|
783
|
+
document.addEventListener('DOMContentLoaded', () => {
|
|
784
|
+
renderTabs();
|
|
785
|
+
renderPanel();
|
|
786
|
+
const cursorAgent = AGENTS.find(a => a.id === 'cursor');
|
|
787
|
+
const vscodeAgent = AGENTS.find(a => a.id === 'vscode');
|
|
788
|
+
if (cursorAgent) document.getElementById('cursor-quick-btn').href = cursorAgent.deeplink;
|
|
789
|
+
if (vscodeAgent) document.getElementById('vscode-quick-btn').href = vscodeAgent.deeplink;
|
|
790
|
+
runSimulation();
|
|
791
|
+
});
|
|
792
|
+
</script>
|
|
793
|
+
</body>
|
|
794
|
+
</html>
|