visus-mcp 0.8.0 → 0.9.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/.claude/settings.local.json +10 -1
- package/CHANGELOG.md +45 -0
- package/README.md +14 -12
- package/STATUS.md +121 -7
- package/dist/browser/playwright-renderer.d.ts.map +1 -1
- package/dist/browser/playwright-renderer.js +27 -5
- package/dist/browser/playwright-renderer.js.map +1 -1
- package/dist/sanitizer/framework-mapper.d.ts +4 -0
- package/dist/sanitizer/framework-mapper.d.ts.map +1 -1
- package/dist/sanitizer/framework-mapper.js +92 -0
- package/dist/sanitizer/framework-mapper.js.map +1 -1
- package/dist/sanitizer/threat-reporter.d.ts +5 -0
- package/dist/sanitizer/threat-reporter.d.ts.map +1 -1
- package/dist/sanitizer/threat-reporter.js +15 -6
- package/dist/sanitizer/threat-reporter.js.map +1 -1
- package/dist/tools/fetch-structured.d.ts.map +1 -1
- package/dist/tools/fetch-structured.js +4 -0
- package/dist/tools/fetch-structured.js.map +1 -1
- package/dist/tools/fetch.d.ts.map +1 -1
- package/dist/tools/fetch.js +6 -0
- package/dist/tools/fetch.js.map +1 -1
- package/dist/tools/read.d.ts.map +1 -1
- package/dist/tools/read.js +4 -0
- package/dist/tools/read.js.map +1 -1
- package/dist/types.d.ts +9 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/server.json +25 -14
- package/src/browser/playwright-renderer.ts +29 -6
- package/src/sanitizer/framework-mapper.ts +94 -0
- package/src/sanitizer/threat-reporter.ts +17 -6
- package/src/tools/fetch-structured.ts +5 -0
- package/src/tools/fetch.ts +7 -0
- package/src/tools/read.ts +5 -0
- package/src/types.ts +9 -1
|
@@ -60,7 +60,16 @@
|
|
|
60
60
|
"Bash(unzip:*)",
|
|
61
61
|
"Bash(mkdir:*)",
|
|
62
62
|
"Bash(comm -13:*)",
|
|
63
|
-
"Bash(comm -23:*)"
|
|
63
|
+
"Bash(comm -23:*)",
|
|
64
|
+
"Bash(npx @modelcontextprotocol/registry-cli:*)",
|
|
65
|
+
"Bash(make:*)",
|
|
66
|
+
"Bash(tar:*)",
|
|
67
|
+
"Bash(./mcp-publisher:*)",
|
|
68
|
+
"Bash(/tmp/mcp-publisher auth login:*)",
|
|
69
|
+
"Bash(/tmp/mcp-publisher login:*)",
|
|
70
|
+
"Bash(/tmp/mcp-publisher publish:*)",
|
|
71
|
+
"WebFetch(domain:airc.nist.gov)",
|
|
72
|
+
"WebFetch(domain:csf.tools)"
|
|
64
73
|
],
|
|
65
74
|
"deny": [],
|
|
66
75
|
"ask": []
|
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.9.0] - 2026-03-26
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **NIST AI RMF Framework Mappings** (`src/sanitizer/framework-mapper.ts`)
|
|
15
|
+
- Added NIST AI Risk Management Framework (AI 100-1) mappings for all 43 injection patterns
|
|
16
|
+
- Maps threats to four core functions: GOVERN, MAP, MEASURE, and MANAGE
|
|
17
|
+
- Examples: GOVERN-1.1 (Legal Requirements), MEASURE-2.7 (AI System Security), MANAGE-2.3 (Respond to Unknown Risks)
|
|
18
|
+
- Provides comprehensive risk management alignment for federal/government users
|
|
19
|
+
|
|
20
|
+
- **NIST CSF 2.0 Framework Mappings** (`src/sanitizer/framework-mapper.ts`)
|
|
21
|
+
- Added NIST Cybersecurity Framework 2.0 mappings for all 43 injection patterns
|
|
22
|
+
- Maps threats to six core functions: IDENTIFY, PROTECT, DETECT, RESPOND, RECOVER, and GOVERN
|
|
23
|
+
- Examples: DE.CM-01 (Network Monitoring), PR.DS-01 (Data at Rest Protection), PR.AC-04 (Access Control)
|
|
24
|
+
- Widely adopted enterprise cybersecurity framework for compliance and audit requirements
|
|
25
|
+
|
|
26
|
+
- **Enhanced Threat Reporting** (`src/sanitizer/threat-reporter.ts`)
|
|
27
|
+
- Expanded framework coverage from 4 to 6 compliance frameworks
|
|
28
|
+
- Updated TOON format from 10 fields to 12 fields (added nist_ai_rmf, nist_csf_2_0)
|
|
29
|
+
- Enhanced Markdown threat report table with new AI-RMF and CSF 2.0 columns
|
|
30
|
+
- All threat reports now include comprehensive 6-framework alignment
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
|
|
34
|
+
- **Framework Badge** (README.md) - Updated security badge to highlight NIST AI RMF and CSF 2.0
|
|
35
|
+
- **Tool Descriptions** (README.md) - All 4 MCP tools now reference 6 frameworks in their descriptions
|
|
36
|
+
- **Framework Alignments Section** (README.md) - Expanded to document all 6 frameworks with descriptions
|
|
37
|
+
- **Test Coverage** (tests/threat-reporter.test.ts) - Updated to verify 6 frameworks and 12 TOON fields
|
|
38
|
+
|
|
39
|
+
### Fixed
|
|
40
|
+
|
|
41
|
+
- **server.json Version Sync** - Ensured server.json version matches package.json per MCP Registry requirements
|
|
42
|
+
|
|
43
|
+
## [0.8.1] - 2026-03-25
|
|
44
|
+
|
|
10
45
|
### Added
|
|
11
46
|
|
|
12
47
|
- **PDF Content Handler** (`src/content-handlers/pdf-handler.ts`)
|
|
@@ -56,9 +91,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
56
91
|
- Tests for error handling (corrupt/invalid content)
|
|
57
92
|
- Tests for edge cases (nested structures, arrays, malformed input)
|
|
58
93
|
|
|
94
|
+
### Fixed
|
|
95
|
+
|
|
96
|
+
- **PDF Text Extraction** - Fixed critical bug where PDF content was passed as corrupted UTF-8 strings instead of binary data
|
|
97
|
+
- Root cause: `response.text()` in `playwright-renderer.ts` converted all response bodies to strings, mangling binary PDFs
|
|
98
|
+
- Fix: Use `response.arrayBuffer()` for binary content types (`application/pdf`, `image/*`, `application/octet-stream`)
|
|
99
|
+
- Impact: PDF handler now receives proper binary data, text extraction works correctly
|
|
100
|
+
- Files modified: `src/types.ts`, `src/browser/playwright-renderer.ts`, `src/tools/fetch.ts`, `src/tools/read.ts`, `src/tools/fetch-structured.ts`
|
|
101
|
+
- Note: Some complex PDFs may fail with "Invalid Root reference" error - this is a limitation of the pdf-parse library, not Visus
|
|
102
|
+
|
|
59
103
|
### Changed
|
|
60
104
|
|
|
61
105
|
- Added `pdf-parse` dependency (v2.4.5) for PDF text extraction
|
|
106
|
+
- Updated `BrowserRenderResult.html` type to `string | Buffer` to support binary content
|
|
62
107
|
|
|
63
108
|
## [0.6.2] - 2026-03-14
|
|
64
109
|
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://github.com/visus-mcp/visus-mcp)
|
|
6
6
|
[](https://modelcontextprotocol.io)
|
|
7
7
|
[](https://github.com/visus-mcp/visus-mcp/blob/main/LICENSE)
|
|
8
|
-
[](https://github.com/visus-mcp/visus-mcp/blob/main/SECURITY.md)
|
|
8
|
+
[](https://github.com/visus-mcp/visus-mcp/blob/main/SECURITY.md)
|
|
9
9
|
[](https://www.iso.org/standard/81230.html)
|
|
10
10
|
|
|
11
11
|
> **Your AI agent shouldn't have to read garbage.**
|
|
@@ -19,7 +19,7 @@ Claude handles most of it. But it still has to read all of it first. You still p
|
|
|
19
19
|
|
|
20
20
|
Built as infrastructure, not a replacement for Claude's own safety training. The two layers together are stronger than either alone.
|
|
21
21
|
```bash
|
|
22
|
-
npx visus-mcp@0.
|
|
22
|
+
npx visus-mcp@0.9.0
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
*"What the web shows you, Lateos reads safely."*
|
|
@@ -185,7 +185,7 @@ Restart Claude Desktop. Visus tools are now available to Claude.
|
|
|
185
185
|
|
|
186
186
|
### `visus_fetch`
|
|
187
187
|
|
|
188
|
-
Fetch and sanitize a web page with automatic format detection. Supports HTML, JSON, XML, and RSS/Atom feeds. Includes NIST AI 600-1 / OWASP LLM / MITRE ATLAS / ISO/IEC 42001 aligned threat report when injection or PII is detected.
|
|
188
|
+
Fetch and sanitize a web page with automatic format detection. Supports HTML, JSON, XML, and RSS/Atom feeds. Includes NIST AI RMF / CSF 2.0 / AI 600-1 / OWASP LLM / MITRE ATLAS / ISO/IEC 42001 aligned threat report when injection or PII is detected.
|
|
189
189
|
|
|
190
190
|
**Supported Formats:**
|
|
191
191
|
- **HTML** (`text/html`, `application/xhtml+xml`) - Standard web pages, returned as-is
|
|
@@ -195,7 +195,7 @@ Fetch and sanitize a web page with automatic format detection. Supports HTML, JS
|
|
|
195
195
|
|
|
196
196
|
### `visus_read`
|
|
197
197
|
|
|
198
|
-
Extract clean article content from a web page using Mozilla Readability (reader mode). Includes NIST AI 600-1 / OWASP LLM / MITRE ATLAS / ISO/IEC 42001 aligned threat report when injection or PII is detected.
|
|
198
|
+
Extract clean article content from a web page using Mozilla Readability (reader mode). Includes NIST AI RMF / CSF 2.0 / AI 600-1 / OWASP LLM / MITRE ATLAS / ISO/IEC 42001 aligned threat report when injection or PII is detected.
|
|
199
199
|
|
|
200
200
|
**Input:**
|
|
201
201
|
```json
|
|
@@ -227,7 +227,7 @@ Extract clean article content from a web page using Mozilla Readability (reader
|
|
|
227
227
|
|
|
228
228
|
### `visus_search`
|
|
229
229
|
|
|
230
|
-
Search the web via DuckDuckGo and return sanitized results with prompt injection and PII removed. Use before `visus_fetch` or `visus_read` to safely discover and then read pages. Includes NIST AI 600-1 / OWASP LLM / MITRE ATLAS / ISO/IEC 42001 aligned threat report when injection or PII is detected.
|
|
230
|
+
Search the web via DuckDuckGo and return sanitized results with prompt injection and PII removed. Use before `visus_fetch` or `visus_read` to safely discover and then read pages. Includes NIST AI RMF / CSF 2.0 / AI 600-1 / OWASP LLM / MITRE ATLAS / ISO/IEC 42001 aligned threat report when injection or PII is detected.
|
|
231
231
|
|
|
232
232
|
**Input:**
|
|
233
233
|
```json
|
|
@@ -260,7 +260,7 @@ All search result titles and snippets are independently sanitized before reachin
|
|
|
260
260
|
|
|
261
261
|
### `visus_fetch_structured`
|
|
262
262
|
|
|
263
|
-
Extract structured data from a web page according to a schema. Includes NIST AI 600-1 / OWASP LLM / MITRE ATLAS / ISO/IEC 42001 aligned threat report when injection or PII is detected.
|
|
263
|
+
Extract structured data from a web page according to a schema. Includes NIST AI RMF / CSF 2.0 / AI 600-1 / OWASP LLM / MITRE ATLAS / ISO/IEC 42001 aligned threat report when injection or PII is detected.
|
|
264
264
|
|
|
265
265
|
**Input:**
|
|
266
266
|
```json
|
|
@@ -313,7 +313,7 @@ Findings are encoded using [TOON format](https://toonformat.dev) for token effic
|
|
|
313
313
|
- Pattern ID and category
|
|
314
314
|
- Severity level (CRITICAL, HIGH, MEDIUM, LOW)
|
|
315
315
|
- Confidence score
|
|
316
|
-
- Framework alignments (OWASP LLM Top 10, NIST AI 600-1, MITRE ATLAS, ISO/IEC 42001)
|
|
316
|
+
- Framework alignments (OWASP LLM Top 10, NIST AI 600-1, NIST AI RMF, NIST CSF 2.0, MITRE ATLAS, ISO/IEC 42001)
|
|
317
317
|
- Remediation status
|
|
318
318
|
|
|
319
319
|
### 2. Markdown Compliance Report (Human-Readable)
|
|
@@ -328,10 +328,12 @@ A formatted Markdown table renders cleanly in Claude Desktop and GitHub, showing
|
|
|
328
328
|
|
|
329
329
|
### Framework Alignments
|
|
330
330
|
|
|
331
|
-
Every detected threat is mapped to
|
|
331
|
+
Every detected threat is mapped to six compliance frameworks:
|
|
332
332
|
|
|
333
333
|
- **[OWASP LLM Top 10 (2025)](https://owasp.org/www-project-top-10-for-large-language-model-applications/)**: Industry-standard LLM security risks
|
|
334
334
|
- **[NIST AI 600-1](https://csrc.nist.gov/pubs/ai/600/1/final)**: Generative AI Profile for risk management
|
|
335
|
+
- **[NIST AI RMF](https://www.nist.gov/itl/ai-risk-management-framework)**: AI Risk Management Framework (AI 100-1) with GOVERN, MAP, MEASURE, and MANAGE functions
|
|
336
|
+
- **[NIST CSF 2.0](https://www.nist.gov/cyberframework)**: Cybersecurity Framework 2.0 with IDENTIFY, PROTECT, DETECT, RESPOND, RECOVER, and GOVERN functions
|
|
335
337
|
- **[MITRE ATLAS](https://atlas.mitre.org/)**: Adversarial Threat Landscape for AI Systems
|
|
336
338
|
- **[ISO/IEC 42001:2023](https://www.iso.org/standard/81230.html)**: International AI Management System standard — Annex A controls for AI system security, data quality, and responsible AI governance. Globally recognized for enterprise and regulatory procurement.
|
|
337
339
|
|
|
@@ -378,7 +380,7 @@ When a HIGH severity injection is detected:
|
|
|
378
380
|
**Generated:** 2026-03-23T14:30:00.000Z
|
|
379
381
|
**Source:** https://malicious.example.com
|
|
380
382
|
**Overall Severity:** HIGH
|
|
381
|
-
**Framework:** OWASP LLM Top 10 | NIST AI 600-1 | MITRE ATLAS | ISO/IEC 42001
|
|
383
|
+
**Framework:** OWASP LLM Top 10 | NIST AI 600-1 | NIST AI RMF | NIST CSF 2.0 | MITRE ATLAS | ISO/IEC 42001
|
|
382
384
|
|
|
383
385
|
### Findings Summary
|
|
384
386
|
| Severity | Count |
|
|
@@ -389,9 +391,9 @@ When a HIGH severity injection is detected:
|
|
|
389
391
|
| 🟢 LOW | 0 |
|
|
390
392
|
|
|
391
393
|
### Findings Detail
|
|
392
|
-
| # | Category | Severity |
|
|
393
|
-
|
|
394
|
-
| 1 | role_hijacking | CRITICAL | 95% | LLM01:2025 | AML.T0051.000 | A.6.1.5 |
|
|
394
|
+
| # | Category | Severity | Conf | OWASP | AI-RMF | CSF 2.0 | MITRE | ISO |
|
|
395
|
+
|---|---|---|---|---|---|---|---|---|
|
|
396
|
+
| 1 | role_hijacking | CRITICAL | 95% | LLM01:2025 | MEASURE-2.7 | DE.CM-01 | AML.T0051.000 | A.6.1.5 |
|
|
395
397
|
|
|
396
398
|
### Remediation Status
|
|
397
399
|
✅ All findings sanitized. Content delivered clean.
|
package/STATUS.md
CHANGED
|
@@ -1,9 +1,120 @@
|
|
|
1
1
|
# Visus MCP - Project Status
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-03-
|
|
4
|
-
**Version:** 0.
|
|
3
|
+
**Generated:** 2026-03-26
|
|
4
|
+
**Version:** 0.9.0
|
|
5
5
|
**Phase:** 3 (Anthropic Directory Prep)
|
|
6
|
-
**Status:** ✅ **v0.
|
|
6
|
+
**Status:** ✅ **v0.9.0 COMPLETE** - NIST AI RMF & CSF 2.0 Framework Mappings
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## v0.9.0 Release - NIST AI RMF & CSF 2.0 Framework Mappings
|
|
11
|
+
|
|
12
|
+
**Status:** ✅ COMPLETE (Ready for release)
|
|
13
|
+
**Type:** Feature enhancement - Expanded compliance framework support
|
|
14
|
+
**Implemented:** 2026-03-26
|
|
15
|
+
**Tests:** 294/294 passing (100%)
|
|
16
|
+
|
|
17
|
+
### Features Added
|
|
18
|
+
|
|
19
|
+
**NIST AI Risk Management Framework (AI RMF / AI 100-1) Mappings**
|
|
20
|
+
- Added comprehensive mappings for all 43 injection patterns to NIST AI RMF controls
|
|
21
|
+
- Maps threats to four core functions: GOVERN, MAP, MEASURE, and MANAGE
|
|
22
|
+
- Examples:
|
|
23
|
+
- GOVERN-1.1: Legal and Regulatory Requirements
|
|
24
|
+
- MAP-4.1: Risk Mapping for AI Components
|
|
25
|
+
- MEASURE-2.7: AI System Security and Resilience
|
|
26
|
+
- MANAGE-2.3: Respond to Unknown Risks
|
|
27
|
+
- Provides federal/government compliance alignment for procurement
|
|
28
|
+
|
|
29
|
+
**NIST Cybersecurity Framework 2.0 (CSF 2.0) Mappings**
|
|
30
|
+
- Added comprehensive mappings for all 43 injection patterns to CSF 2.0 controls
|
|
31
|
+
- Maps threats to six core functions: IDENTIFY, PROTECT, DETECT, RESPOND, RECOVER, and GOVERN
|
|
32
|
+
- Examples:
|
|
33
|
+
- DE.CM-01: Network Monitoring
|
|
34
|
+
- PR.DS-01: Data at Rest Protection
|
|
35
|
+
- PR.AC-04: Access Control Enforcement
|
|
36
|
+
- DE.AE-02: Anomaly Detection
|
|
37
|
+
- Widely adopted enterprise cybersecurity framework for audit requirements
|
|
38
|
+
|
|
39
|
+
**Enhanced Threat Reporting**
|
|
40
|
+
- Expanded framework coverage from 4 to 6 compliance frameworks
|
|
41
|
+
- Updated TOON format from 10 fields to 12 fields (added nist_ai_rmf, nist_csf_2_0)
|
|
42
|
+
- Enhanced Markdown threat report table with new AI-RMF and CSF 2.0 columns
|
|
43
|
+
- All threat reports now include comprehensive 6-framework alignment
|
|
44
|
+
|
|
45
|
+
### Documentation Updates
|
|
46
|
+
- Updated security badge to highlight NIST AI RMF and CSF 2.0
|
|
47
|
+
- Updated all 4 MCP tool descriptions to reference 6 frameworks
|
|
48
|
+
- Expanded "Framework Alignments" section with NIST AI RMF and CSF 2.0 descriptions
|
|
49
|
+
- Updated example threat reports to show 9-column table format
|
|
50
|
+
|
|
51
|
+
### Files Modified
|
|
52
|
+
- `src/sanitizer/framework-mapper.ts` - Added nist_ai_rmf and nist_csf_2_0 fields, mappings for all 43 patterns
|
|
53
|
+
- `src/sanitizer/threat-reporter.ts` - Updated ThreatFinding interface, TOON format, Markdown report
|
|
54
|
+
- `README.md` - Updated badges, tool descriptions, framework alignments section, examples
|
|
55
|
+
- `tests/threat-reporter.test.ts` - Updated to verify 6 frameworks and 12 TOON fields
|
|
56
|
+
- `CHANGELOG.md` - Added v0.9.0 release notes
|
|
57
|
+
|
|
58
|
+
### Why This Matters
|
|
59
|
+
- **Federal/Government Procurement**: NIST AI RMF is widely adopted by U.S. federal agencies
|
|
60
|
+
- **Enterprise Compliance**: CSF 2.0 is the de facto standard for cybersecurity audit requirements
|
|
61
|
+
- **Natural Extension**: Builds on existing NIST AI 600-1 mapping infrastructure
|
|
62
|
+
- **High Value, Easy Implementation**: Leveraged existing framework mapping system
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## v0.8.1 Release - PDF Extraction Bug Fix
|
|
67
|
+
|
|
68
|
+
**Status:** ✅ COMPLETE (Ready for release)
|
|
69
|
+
**Type:** Critical bug fix
|
|
70
|
+
**Implemented:** 2026-03-25
|
|
71
|
+
**Tests:** 294/294 passing (100%)
|
|
72
|
+
|
|
73
|
+
### Bug Fixed
|
|
74
|
+
|
|
75
|
+
**PDF Text Extraction Returning Binary Data Instead of Text**
|
|
76
|
+
|
|
77
|
+
**Root Cause:** `response.text()` in `src/browser/playwright-renderer.ts` was converting ALL response bodies to UTF-8 strings, including binary PDFs. This corrupted the binary data before it reached the pdf-parse library, causing the PDF handler to receive mangled strings instead of proper binary content.
|
|
78
|
+
|
|
79
|
+
**Impact:** All PDF extractions failed, returning raw binary garbage like "%PDF-1.7..." instead of extracted text.
|
|
80
|
+
|
|
81
|
+
**Fix:** Implemented content-type detection in the renderer to use `response.arrayBuffer()` for binary types and `response.text()` for text types.
|
|
82
|
+
|
|
83
|
+
### Technical Details
|
|
84
|
+
|
|
85
|
+
**Files Modified:**
|
|
86
|
+
1. **src/types.ts** - Updated `BrowserRenderResult.html` from `string` to `string | Buffer`
|
|
87
|
+
- Added JSDoc explaining when Buffer is used (PDFs, images, binary content)
|
|
88
|
+
|
|
89
|
+
2. **src/browser/playwright-renderer.ts** - Added binary content detection
|
|
90
|
+
- Checks Content-Type: `application/pdf`, `image/*`, `application/octet-stream`
|
|
91
|
+
- Binary types: `response.arrayBuffer()` → `Buffer.from(arrayBuffer)`
|
|
92
|
+
- Text types: `response.text()` → string (existing behavior)
|
|
93
|
+
|
|
94
|
+
3. **src/tools/fetch.ts** - Added Buffer type guard
|
|
95
|
+
- Ensures Buffer content doesn't reach HTML/XML/RSS path (would cause errors)
|
|
96
|
+
|
|
97
|
+
4. **src/tools/fetch-structured.ts** - Added Buffer rejection
|
|
98
|
+
- Structured extraction doesn't support binary types - returns clear error message
|
|
99
|
+
|
|
100
|
+
5. **src/tools/read.ts** - Added Buffer rejection
|
|
101
|
+
- Reader mode (Readability) doesn't support binary types - returns clear error message
|
|
102
|
+
|
|
103
|
+
**Verification:**
|
|
104
|
+
- ✅ All 294 tests passing - zero regressions
|
|
105
|
+
- ✅ Manual test with WAI dummy PDF: Text extraction working correctly
|
|
106
|
+
- ✅ Metadata extraction working (Author, Creator, Producer fields)
|
|
107
|
+
- ✅ Content is readable English, not binary garbage
|
|
108
|
+
|
|
109
|
+
**Known Limitations:**
|
|
110
|
+
- Some complex PDFs may fail with "Invalid Root reference" error
|
|
111
|
+
- This is a limitation of the pdf-parse library (v2.4.5), not Visus
|
|
112
|
+
- Simple to moderately complex PDFs work correctly
|
|
113
|
+
|
|
114
|
+
**Documentation:**
|
|
115
|
+
- Updated CHANGELOG.md with bug fix entry
|
|
116
|
+
- Created TROUBLESHOOT-PDF-EXTRACTION-20260325-2040.md with full investigation log
|
|
117
|
+
- Added inline comments explaining Buffer handling in all modified files
|
|
7
118
|
|
|
8
119
|
---
|
|
9
120
|
|
|
@@ -458,7 +569,7 @@ When prompt injection or PII is detected, Visus now automatically generates stru
|
|
|
458
569
|
**Key Features:**
|
|
459
570
|
- ✅ TOON-formatted findings array (token-efficient, machine-readable)
|
|
460
571
|
- ✅ Markdown compliance report (human-readable, renders in Claude Desktop)
|
|
461
|
-
- ✅
|
|
572
|
+
- ✅ Six framework alignments: OWASP LLM Top 10, NIST AI 600-1, NIST AI RMF, NIST CSF 2.0, MITRE ATLAS, ISO/IEC 42001
|
|
462
573
|
- ✅ Severity classification (CRITICAL, HIGH, MEDIUM, LOW, CLEAN)
|
|
463
574
|
- ✅ Zero overhead for clean pages (report omitted when no findings)
|
|
464
575
|
- ✅ Aggregated reporting across multiple results (search, structured extraction)
|
|
@@ -484,6 +595,8 @@ When prompt injection or PII is detected, Visus now automatically generates stru
|
|
|
484
595
|
**Framework Alignments:**
|
|
485
596
|
- **OWASP LLM Top 10 (2025)**: Industry-standard LLM security risks
|
|
486
597
|
- **NIST AI 600-1**: Generative AI Profile for risk management
|
|
598
|
+
- **NIST AI RMF**: AI Risk Management Framework (AI 100-1) with GOVERN, MAP, MEASURE, MANAGE functions
|
|
599
|
+
- **NIST CSF 2.0**: Cybersecurity Framework 2.0 with IDENTIFY, PROTECT, DETECT, RESPOND, RECOVER, GOVERN functions
|
|
487
600
|
- **MITRE ATLAS**: Adversarial Threat Landscape for AI Systems
|
|
488
601
|
- **ISO/IEC 42001:2023**: International AI Management System standard (Annex A controls)
|
|
489
602
|
|
|
@@ -1773,7 +1886,7 @@ npm URL: https://www.npmjs.com/package/visus-mcp
|
|
|
1773
1886
|
**Contact:** security@lateos.ai
|
|
1774
1887
|
**Repository:** https://github.com/visus-mcp/visus-mcp
|
|
1775
1888
|
**npm Package:** https://www.npmjs.com/package/visus-mcp
|
|
1776
|
-
**Installation:** `npm install -g visus-mcp@0.
|
|
1889
|
+
**Installation:** `npm install -g visus-mcp@0.8.1` or `npx visus-mcp@0.8.1`
|
|
1777
1890
|
|
|
1778
1891
|
---
|
|
1779
1892
|
|
|
@@ -1790,7 +1903,8 @@ npm URL: https://www.npmjs.com/package/visus-mcp
|
|
|
1790
1903
|
**v0.5.0:** ✅ PUBLISHED TO NPM (Threat Reporting + ISO/IEC 42001 - 31 tests added)
|
|
1791
1904
|
**v0.6.0:** ✅ PUBLISHED TO NPM (Content-Type Format Detection - 14 tests added)
|
|
1792
1905
|
**v0.7.0:** ✅ COMPLETE (HITL Elicitation Bridge for CRITICAL threats - 30 tests added)
|
|
1793
|
-
**v0.8.0:** ✅
|
|
1906
|
+
**v0.8.0:** ✅ PUBLISHED TO NPM (PDF/JSON/SVG Content Handlers - 48 tests added)
|
|
1907
|
+
**v0.8.1:** ✅ COMPLETE (PDF Extraction Bug Fix - binary content handling)
|
|
1794
1908
|
**Security Audit:** ✅ COMPLETE + REMEDIATED (24 auth tests, 100% compliance)
|
|
1795
1909
|
**Lambda Endpoint:** [API_ENDPOINT]
|
|
1796
|
-
**Latest Release:** v0.
|
|
1910
|
+
**Latest Release:** v0.8.0 (2026-03-25)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playwright-renderer.d.ts","sourceRoot":"","sources":["../../src/browser/playwright-renderer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"playwright-renderer.d.ts","sourceRoot":"","sources":["../../src/browser/playwright-renderer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAyO/D;;;;;;;;;;GAUG;AACH,wBAAsB,UAAU,CAC9B,GAAG,EAAE,MAAM,EACX,OAAO,GAAE;IACP,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;CAClC,GACL,OAAO,CAAC,MAAM,CAAC,mBAAmB,EAAE,KAAK,CAAC,CAAC,CAuB7C;AAED;;;;;;GAMG;AACH,wBAAsB,QAAQ,CAC5B,GAAG,EAAE,MAAM,EACX,UAAU,SAAO,GAChB,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAwBjC;AAED;;;GAGG;AACH,wBAAsB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAGlD"}
|
|
@@ -88,6 +88,8 @@ async function renderWithLambda(url, timeout_ms) {
|
|
|
88
88
|
return Err(new Error(`Lambda renderer error: ${body.error}`));
|
|
89
89
|
}
|
|
90
90
|
// Success response
|
|
91
|
+
// TODO: Lambda renderer needs PDF support - should return binary content as base64
|
|
92
|
+
// for application/pdf responses instead of always converting to HTML string
|
|
91
93
|
return Ok({
|
|
92
94
|
html: body.html,
|
|
93
95
|
title: body.title,
|
|
@@ -127,15 +129,35 @@ async function renderWithFetch(url, timeout_ms) {
|
|
|
127
129
|
if (!response.ok) {
|
|
128
130
|
return Err(new Error(`HTTP ${response.status}: ${response.statusText}`));
|
|
129
131
|
}
|
|
130
|
-
|
|
131
|
-
// Capture Content-Type header
|
|
132
|
+
// Capture Content-Type header before reading body
|
|
132
133
|
const contentTypeHeader = response.headers.get('content-type');
|
|
133
134
|
const contentType = contentTypeHeader
|
|
134
135
|
? contentTypeHeader.split(';')[0].trim() // Remove charset and other params
|
|
135
136
|
: 'text/html'; // Default to HTML if missing
|
|
136
|
-
//
|
|
137
|
-
|
|
138
|
-
const
|
|
137
|
+
// Read response body - use arrayBuffer() for binary types, text() for text types
|
|
138
|
+
// CRITICAL: pdf-parse requires original binary bytes, not UTF-8 string conversion
|
|
139
|
+
const isBinary = contentType === 'application/pdf' ||
|
|
140
|
+
contentType.startsWith('image/') ||
|
|
141
|
+
contentType.startsWith('application/octet-stream');
|
|
142
|
+
let html;
|
|
143
|
+
let title = '';
|
|
144
|
+
if (isBinary) {
|
|
145
|
+
// Binary content (PDF, images, etc.) - preserve byte integrity
|
|
146
|
+
const arrayBuffer = await response.arrayBuffer();
|
|
147
|
+
html = Buffer.from(arrayBuffer);
|
|
148
|
+
// Title extraction not meaningful for binary content
|
|
149
|
+
title = '';
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
// Text content (HTML, JSON, etc.) - read as UTF-8 string
|
|
153
|
+
const textContent = await response.text();
|
|
154
|
+
html = textContent;
|
|
155
|
+
// Extract title using regex (HTML only)
|
|
156
|
+
if (contentType.includes('html')) {
|
|
157
|
+
const titleMatch = textContent.match(/<title[^>]*>(.*?)<\/title>/i);
|
|
158
|
+
title = titleMatch ? titleMatch[1].trim() : '';
|
|
159
|
+
}
|
|
160
|
+
}
|
|
139
161
|
return Ok({
|
|
140
162
|
html,
|
|
141
163
|
title,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playwright-renderer.js","sourceRoot":"","sources":["../../src/browser/playwright-renderer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAEtC;;GAEG;AACH,MAAM,YAAY,GAAG,OAAO,CA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C;YAEH,kDAAkD;YAClD,MAAM,YAAY,GAAG,CAAC,QAAQ,CAAC,MAAM,IAAI,GAAG,IAAI,QAAQ,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC;YAEvE,OAAO,EAAE,CAAC,YAAY,CAAC,CAAC;QAE1B,CAAC;gBAAS,CAAC;YACT,YAAY,CAAC,SAAS,CAAC,CAAC;QAC1B,CAAC;IAEH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,wBAAwB;QACxB,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;IACnB,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY;IAChC,iEAAiE;IACjE,6DAA6D;AAC/D,CAAC"}
|
|
@@ -4,12 +4,16 @@
|
|
|
4
4
|
* Maps injection pattern categories to compliance framework identifiers:
|
|
5
5
|
* - OWASP LLM Top 10 (2025)
|
|
6
6
|
* - NIST AI 600-1 (Generative AI Profile)
|
|
7
|
+
* - NIST AI RMF (AI Risk Management Framework - AI 100-1)
|
|
8
|
+
* - NIST CSF 2.0 (Cybersecurity Framework 2.0)
|
|
7
9
|
* - MITRE ATLAS (Adversarial Threat Landscape for AI Systems)
|
|
8
10
|
* - ISO/IEC 42001:2023 (AI Management System - Annex A Controls)
|
|
9
11
|
*/
|
|
10
12
|
export interface FrameworkMappings {
|
|
11
13
|
owasp_llm: string;
|
|
12
14
|
nist_ai_600_1: string;
|
|
15
|
+
nist_ai_rmf: string;
|
|
16
|
+
nist_csf_2_0: string;
|
|
13
17
|
mitre_atlas: string;
|
|
14
18
|
iso_42001: string;
|
|
15
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework-mapper.d.ts","sourceRoot":"","sources":["../../src/sanitizer/framework-mapper.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"framework-mapper.d.ts","sourceRoot":"","sources":["../../src/sanitizer/framework-mapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB;AAicD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,eAAe,EAAE,MAAM,GAAG,iBAAiB,CAE/E;AAED;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,MAAM,EAAE,CASjD"}
|