-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
447 lines (408 loc) · 25.9 KB
/
index.html
File metadata and controls
447 lines (408 loc) · 25.9 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>APIsec MCP Discovery and Audit</title>
<link rel="stylesheet" href="styles.css?v=103">
</head>
<body>
<div class="container">
<!-- Header -->
<header>
<h1>APIsec MCP Discovery and Audit</h1>
<p class="subtitle">Discover and audit Model Context Protocol servers across your organization</p>
<p class="header-link"><a href="getting-started.html">Getting Started Guide</a></p>
</header>
<!-- Main Tabs -->
<div class="tabs">
<button class="tab-btn active" data-tab="repo-audit">Source Code Repo Audit</button>
<button class="tab-btn" data-tab="local-audit">Local System Audit</button>
</div>
<!-- Tab Content -->
<main>
<!-- Tab 1: Source Code Repo Audit -->
<section id="repo-audit" class="tab-content active">
<div class="tab-description">
<p>Scan source code repositories for MCP configurations, dependencies, and server definitions.</p>
</div>
<!-- Source Tiles -->
<div id="source-tiles" class="source-tiles">
<div class="source-tile available" data-source="github">
<div class="tile-icon">
<svg viewBox="0 0 24 24" width="48" height="48" fill="currentColor">
<path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"/>
</svg>
</div>
<div class="tile-name">GitHub</div>
<div class="tile-status">Available</div>
</div>
<div class="source-tile coming-soon" data-source="gitlab">
<div class="tile-icon">
<svg viewBox="0 0 24 24" width="48" height="48" fill="currentColor">
<path d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 01-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 014.82 2a.43.43 0 01.58 0 .42.42 0 01.11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0118.6 2a.43.43 0 01.58 0 .42.42 0 01.11.18l2.44 7.51L23 13.45a.84.84 0 01-.35.94z"/>
</svg>
</div>
<div class="tile-name">GitLab</div>
<div class="tile-status">Coming Soon</div>
</div>
<div class="source-tile coming-soon" data-source="bitbucket">
<div class="tile-icon">
<svg viewBox="0 0 24 24" width="48" height="48" fill="currentColor">
<path d="M.778 1.213a.768.768 0 00-.768.892l3.263 19.81c.084.5.515.868 1.022.873H19.95a.772.772 0 00.77-.646l3.27-20.03a.768.768 0 00-.768-.891zM14.52 15.53H9.522L8.17 8.466h7.561z"/>
</svg>
</div>
<div class="tile-name">Bitbucket</div>
<div class="tile-status">Coming Soon</div>
</div>
<div class="source-tile coming-soon" data-source="azure">
<div class="tile-icon">
<svg viewBox="0 0 24 24" width="48" height="48" fill="currentColor">
<path d="M22.379 23.343a1.62 1.62 0 01-1.086.657H2.707a1.62 1.62 0 01-1.086-.657 1.62 1.62 0 01-.198-1.23l3.2-12.16a1.62 1.62 0 011.284-1.21l9.857-1.622a1.62 1.62 0 011.86 1.275l2.957 13.717a1.62 1.62 0 01-.198 1.23zM13.241 2.112l-4.816.792a.54.54 0 00-.428.403L6.93 7.636l6.945-1.143z"/>
</svg>
</div>
<div class="tile-name">Azure DevOps</div>
<div class="tile-status">Coming Soon</div>
</div>
<div class="source-tile coming-soon" data-source="svn">
<div class="tile-icon">
<svg viewBox="0 0 24 24" width="48" height="48" fill="currentColor">
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/>
</svg>
</div>
<div class="tile-name">SVN</div>
<div class="tile-status">Coming Soon</div>
</div>
</div>
<!-- GitHub Scanning Section (hidden by default) -->
<div id="github-section" class="scan-section hidden">
<button class="back-btn" id="back-to-tiles">← Back to Sources</button>
<!-- Step 1: Connect GitHub -->
<div id="connect-section" class="card">
<h2>Step 1: Connect to GitHub</h2>
<p>Authenticate with GitHub to scan your repositories for MCP configurations.</p>
<div class="input-group">
<label for="github-token">GitHub Personal Access Token</label>
<input type="password" id="github-token" placeholder="ghp_xxxxxxxxxxxx">
<small>
Need a token?
<a href="https://github.com/settings/personal-access-tokens/new" target="_blank">
Create a fine-grained PAT
</a>
with <strong>read-only</strong> access to Contents and Metadata for your org's repos.
</small>
</div>
<button id="connect-btn" class="btn primary">Connect to GitHub</button>
<div class="demo-divider">
<span>or</span>
</div>
<button id="demo-btn" class="btn secondary">▶ Try Demo Mode</button>
<p class="demo-hint">No token needed — see sample scan results</p>
<div id="connect-status" class="status hidden"></div>
</div>
<!-- Step 2: Select Organization -->
<div id="org-section" class="card hidden">
<h2>Step 2: Select Target</h2>
<p>Choose which organization or user account to scan for MCP configurations.</p>
<div class="input-group">
<label for="org-select">Organization / User</label>
<select id="org-select">
<option value="">Select a target...</option>
</select>
</div>
<button id="scan-btn" class="btn primary" disabled>Scan Repositories</button>
</div>
<!-- Step 3: Scanning Progress -->
<div id="progress-section" class="card hidden">
<h2>Scanning...</h2>
<div class="progress-container">
<div class="progress-bar">
<div id="progress-fill" class="progress-fill"></div>
</div>
<p id="progress-text">Initializing...</p>
</div>
<div id="scan-log" class="scan-log"></div>
</div>
<!-- Step 4: Results -->
<div id="results-section" class="card hidden">
<h2>Scan Results</h2>
<!-- Summary -->
<div id="summary" class="summary-grid">
<!-- Populated by JavaScript -->
</div>
<!-- Results Table -->
<div id="table-banner" class="table-banner">
<div class="table-banner-header" onclick="toggleTableSection()">
<div class="table-banner-title">
<span class="inventory-icon">📋</span>
<strong id="table-banner-title">MCP DISCOVERY RESULTS</strong>
</div>
<span class="toggle-icon" id="table-toggle-icon">▶</span>
</div>
<div class="table-detail" id="table-detail">
<div class="table-container">
<table id="results-table">
<thead>
<tr>
<th>MCP Name</th>
<th>Description</th>
<th>Source</th>
<th>Repository</th>
<th>Known</th>
<th>Risk</th>
<th>Risk Flags</th>
</tr>
</thead>
<tbody id="results-body">
<!-- Populated by JavaScript -->
</tbody>
</table>
</div>
</div>
</div>
<!-- Findings & Remediation Section -->
<div id="remediation-section" class="remediation-section hidden">
<!-- Populated by JavaScript -->
</div>
<!-- Export & Share Section -->
<div id="report-section" class="export-banner">
<div class="export-banner-header" onclick="toggleExportSection()">
<div class="export-banner-title">
<span class="inventory-icon">📤</span>
<strong>EXPORT & SHARE</strong>
</div>
<span class="toggle-icon" id="export-toggle-icon">▶</span>
</div>
<div class="export-detail" id="export-detail">
<div class="export-detail-content">
<!-- Export Options -->
<div class="export-group">
<div class="export-options">
<button id="export-json-btn" class="btn secondary">JSON</button>
<button id="export-csv-btn" class="btn secondary">CSV</button>
<button id="export-cyclonedx-btn" class="btn secondary" title="CycloneDX 1.6 AI-BOM">AI-BOM</button>
</div>
<p class="export-tip">
<span class="tip-icon">💡</span>
<strong>CI/CD Integration:</strong> Use JSON export to fail builds on critical risks
</p>
<p class="export-tip">
<span class="tip-icon">🤖</span>
<strong>AI-BOM:</strong> CycloneDX 1.6 format for AI supply chain security tracking
</p>
</div>
<div class="report-divider">
<span>or get a PDF report</span>
</div>
<!-- PDF Report via Email -->
<div class="pdf-capture">
<p class="report-description">Receive a professional PDF report to share with your security team.</p>
<div class="email-capture">
<input type="email" id="report-email" placeholder="Enter your email" class="email-input">
<button id="send-report-btn" class="btn primary">Send PDF</button>
</div>
<div class="report-status" id="report-status"></div>
</div>
<p class="privacy-note">
<span class="privacy-icon">🔒</span>
No secrets transmitted. Scanning happens client-side.
</p>
</div>
</div>
</div>
<!-- Scan Again -->
<div class="actions">
<button id="scan-again-btn" class="btn outline">Scan Another Org</button>
</div>
</div>
<!-- No Results -->
<div id="no-results-section" class="card hidden">
<h2>No MCPs Found</h2>
<p>No MCP configurations were found in the scanned repositories.</p>
<p>This could mean:</p>
<ul>
<li>Your organization isn't using MCPs yet</li>
<li>MCP configs are in private repos you don't have access to</li>
<li>MCPs are configured locally on developer machines (use the Local System Audit tab)</li>
<li>GitHub's search index may take time to update for new repos</li>
</ul>
<button id="scan-again-btn-2" class="btn outline">Scan Again</button>
</div>
</div>
</section>
<!-- Tab 2: Local System Audit -->
<section id="local-audit" class="tab-content">
<div class="tab-description">
<p>Scan your local machine for MCP configurations in Claude Desktop, Cursor, VS Code, and other applications.</p>
</div>
<div class="local-audit-content">
<div class="card">
<h2>Download CLI Tool</h2>
<p>The CLI tool scans your local computer for MCP configurations in:</p>
<ul class="feature-list">
<li><strong>Claude Desktop</strong> - Anthropic's desktop application</li>
<li><strong>Cursor</strong> - AI-powered code editor</li>
<li><strong>VS Code</strong> - With Continue extension</li>
<li><strong>Windsurf</strong> - Codeium's editor</li>
<li><strong>Zed</strong> - Modern code editor</li>
<li><strong>Project folders</strong> - .mcp/ directories, mcp.json files</li>
</ul>
<div class="download-box">
<a href="mcp-audit-cli.zip" download class="btn primary download-btn">
Download CLI Tool (ZIP)
</a>
<span class="download-size">~42 KB</span>
</div>
<div class="verify-download">
<p><strong>Verify integrity:</strong></p>
<code class="verify-command">shasum -a 256 mcp-audit-cli.zip</code>
<p class="checksum-display">
Expected: <code id="cli-checksum">4917a451742038355265b0d9a74c0bb2b3a5ada28798ce3dd43238a8defcaa73</code>
<button onclick="copyChecksum()" class="copy-btn" title="Copy checksum">Copy</button>
</p>
</div>
</div>
<div class="card">
<h2>Installation Instructions</h2>
<div class="install-steps">
<div class="step">
<div class="step-number">1</div>
<div class="step-content">
<strong>Download & Extract</strong>
<p>Download the ZIP file above and extract it to a folder</p>
</div>
</div>
<div class="step">
<div class="step-number">2</div>
<div class="step-content">
<strong>Open Terminal</strong>
<p>Open Terminal (Mac) or Command Prompt (Windows)</p>
</div>
</div>
<div class="step">
<div class="step-number">3</div>
<div class="step-content">
<strong>Navigate to Folder</strong>
<p><code>cd mcp-audit-cli</code></p>
</div>
</div>
<div class="step">
<div class="step-number">4</div>
<div class="step-content">
<strong>Install</strong>
<p><code>pip install -e .</code></p>
</div>
</div>
<div class="step">
<div class="step-number">5</div>
<div class="step-content">
<strong>Run Scan</strong>
<p><code>mcp-audit scan</code></p>
</div>
</div>
</div>
<div class="requirements">
<p><strong>Requirements:</strong> Python 3.9 or higher</p>
<p>Don't have Python? <a href="https://www.python.org/downloads/" target="_blank">Download Python</a></p>
</div>
</div>
<div class="card">
<h2>CLI Commands</h2>
<div class="command-list">
<div class="command">
<code>mcp-audit scan</code>
<div class="command-details">
<p>Scans your local machine for all MCP server configurations.</p>
<p>Detects exposed secrets, catalogs API endpoints, and identifies risk flags.</p>
<p>Provides remediation guidance with provider-specific rotation links.</p>
</div>
</div>
<div class="command">
<code>mcp-audit scan --secrets-only</code>
<div class="command-details">
<p>Shows only detected secrets (API keys, tokens, passwords) in your MCP configs.</p>
<p>Includes severity levels: Critical, High, Medium.</p>
<p>Each finding includes step-by-step remediation with rotation URLs.</p>
</div>
</div>
<div class="command">
<code>mcp-audit scan --apis-only</code>
<div class="command-details">
<p>Shows the API inventory - all endpoints your MCPs connect to.</p>
<p>Categorizes by type: Database, REST API, SSE, SaaS, Cloud.</p>
<p>Credentials in URLs are automatically masked for safe display.</p>
</div>
</div>
<div class="command">
<code>mcp-audit scan --models-only</code>
<div class="command-details">
<p>Shows only detected AI models configured in your MCPs.</p>
<p>Identifies models from OpenAI, Anthropic, Google, Meta, Mistral, and local Ollama.</p>
<p>Shows hosting type (Cloud vs Local) for each model.</p>
</div>
</div>
<div class="command">
<code>mcp-audit scan --verbose</code>
<div class="command-details">
<p>Runs the same scan but with detailed output for each step.</p>
<p>Shows exactly which configuration files are being checked.</p>
<p>Useful for troubleshooting or understanding what the tool is doing.</p>
</div>
</div>
<div class="command">
<code>mcp-audit registry</code>
<div class="command-details">
<p>Displays the complete list of known MCP servers in our database.</p>
<p>Shows provider, risk level, and description for each registered MCP.</p>
<p>Helps you identify whether an MCP is from a trusted source.</p>
</div>
</div>
<div class="command">
<code>mcp-audit registry --risk critical</code>
<div class="command-details">
<p>Filters the registry to show only MCPs with critical risk level.</p>
<p>Critical MCPs have access to databases, cloud infrastructure, or shell commands.</p>
<p>Use this to quickly identify the most sensitive MCP servers in your environment.</p>
</div>
</div>
<div class="command">
<code>mcp-audit scan --format json -o results.json</code>
<div class="command-details">
<p>Exports your scan results to a JSON file for further analysis.</p>
<p>Perfect for integrating with other security tools or CI/CD pipelines.</p>
<p>Also supports CSV and Markdown formats for reports and documentation.</p>
</div>
</div>
<div class="command">
<code>mcp-audit scan --format cyclonedx -o ai-bom.json</code>
<div class="command-details">
<p>Exports AI Bill of Materials (AI-BOM) in CycloneDX 1.6 format.</p>
<p>Industry-standard format for AI supply chain security and compliance.</p>
<p>Use <code>--format cyclonedx-xml</code> for XML output.</p>
</div>
</div>
<div class="command">
<code>mcp-audit scan --email user@example.com</code>
<div class="command-details">
<p>Sends a professional PDF security report to the specified email.</p>
<p>Includes executive summary, findings, and remediation guidance.</p>
<p>Great for sharing results with security teams or compliance audits.</p>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- Footer -->
<footer>
<p>
<strong>Privacy:</strong> Your credentials and code never leave your browser.
All scanning happens client-side.
</p>
<p>APIsec MCP Discovery and Audit</p>
</footer>
</div>
<script src="app.js?v=103"></script>
</body>
</html>