Install verification: runtime verified (L5) · tested on dsh 0.2.1-rc.2 · last checked Install verification details →
What it doesAI
Offline team knowledge base plugin: directory tree browsing, full-text search, markdown reading, raw file upload, and one-click handoff to agents.
- Full-page knowledge base with lazy-loaded wiki/raw directory tree
- Zero-dependency full-text search with case-insensitive hit highlighting
- Read-only plugin with immutable raw uploads and @mention to agent
Capability tags are AI-inferred or rule-extracted from the README (see badge) — vocabulary-limited, not install-verified. AI = inferred; README = literal keyword from the readme.
Installation
dsh plugin --profile web add @weibaohui/dsh-kbInstall method: npm · runtime verified (L5)
Verification & Compatibility
Grouped by plugin version: each card lists the dsh versions actually tested against that artifact version and their install verdicts (L5 wins). Untested combinations are omitted — absence means untested, never assumed compatible. L1–L3 are a plugin-level static archive (independent of the dsh version — the same verdict on every dsh row): they sit in each row's level grid next to L4/L5, marked "static", while their evidence is stored once per plugin inside that row's "checks & evidence" instead of being duplicated per version.
External credentials (plugin-level): none detected
○ The author declares no dsh version requirement — install is not blocked by version.
Footnote: the author also wrote engines.dsh = ">=0.1.7-rc.2" — DSH does not read that field (not part of the verdict).
| plugin \ dsh | dsh 0.2.1-rc.2 current | dsh 0.2.1-alpha.4 | dsh 0.2.1-alpha.2 | dsh 0.2.0-rc.2 | dsh 0.2.0-rc.1 |
|---|---|---|---|---|---|
| 0.7.15 | ✓ | ✓ | ✓ | ✓ | ✓ |
| 0.7.14 | · | · | · | · | · |
| 0.7.11 | · | · | · | · | · |
| 0.7.8 | · | · | · | · | · |
| 0.7.7 | · | · | · | · | · |
0.7.15npm✓ 6 runtime-verified2026-10-19
@weibaohui/dsh-kb
✓dsh 0.2.1-rc.2current2026-10-19L5 · runtime verified
- • Node.js: v24.14.0
- • DSH: 0.2.1-rc.2
- • Plugin artifact: npm · @weibaohui/dsh-kb@0.7.15
ID: dsh-kb@0.7.15@dsh0.2.1-rc.2 · profile: l4-sandbox
Issued: 2026-10-19 · expires: 2026-10-26
View checks & evidence
active in loader tree (150 entries)
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✓dsh 0.2.1-alpha.42026-10-17L5 · runtime verified
- • Node.js: v24.14.0
- • DSH: 0.2.1-alpha.4
- • Plugin artifact: npm · @weibaohui/dsh-kb@0.7.15
ID: dsh-kb@0.7.15@dsh0.2.1-alpha.4 · profile: l4-sandbox
Issued: 2026-10-17 · expires: 2026-10-24
View checks & evidence
active in loader tree (150 entries)
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✓dsh 0.2.1-alpha.22026-10-12L5 · runtime verified
- • Node.js: v24.14.0
- • DSH: 0.2.1-alpha.2
- • Plugin artifact: npm · @weibaohui/dsh-kb@0.7.15
ID: dsh-kb@0.7.15@dsh0.2.1-alpha.2 · profile: l4-sandbox
Issued: 2026-10-12 · expires: 2026-10-19
View checks & evidence
active in loader tree (150 entries)
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✓dsh 0.2.0-rc.22026-10-09L5 · runtime verified
- • Node.js: v24.14.0
- • DSH: 0.2.0-rc.2
- • Plugin artifact: npm · @weibaohui/dsh-kb@0.7.15
ID: dsh-kb@0.7.15@dsh0.2.0-rc.2 · profile: l4-sandbox
Issued: 2026-10-09 · expires: 2026-10-16
View checks & evidence
active in loader tree (150 entries)
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✓dsh 0.2.0-rc.12026-09-30L5 · runtime verified
- • Node.js: v24.14.0
- • DSH: 0.2.0-rc.1
- • Plugin artifact: npm · @weibaohui/dsh-kb@0.7.15
ID: dsh-kb@0.7.15@dsh0.2.0-rc.1 · profile: l4-sandbox
Issued: 2026-09-30 · expires: 2026-10-07
View checks & evidence
active in loader tree (150 entries)
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✓prehistory2026-10-05L5 · runtime verified
- • Node.js: v24.14.0
- • DSH: unknown
- • Plugin artifact: npm · @weibaohui/dsh-kb@0.7.15
ID: dsh-kb@0.7.15@dshunknown · profile: l4-sandbox
Issued: 2026-10-05 · expires: 2026-10-12
View checks & evidence
active in loader tree (150 entries)
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
0.7.14npm2026-09-26
@weibaohui/dsh-kb
No runtime install test for this version (static scan only) — compatibility unknown, never assumed.
0.7.11npm✓ 1 runtime-verified2026-09-26
@weibaohui/dsh-kb
✓dsh 0.1.7-rc.22026-09-26L5 · runtime verified
- • Node.js: v24.14.0
- • DSH: 0.1.7-rc.2
- • Plugin artifact: npm · @weibaohui/dsh-kb@0.7.11
ID: dsh-kb@0.7.11@dsh0.1.7-rc.2 · profile: l3-fullscan
Issued: 2026-09-26 · expires: 2026-10-03
View checks & evidence
active in loader tree (150 entries)
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
0.7.8npm2026-09-25
@weibaohui/dsh-kb
No runtime install test for this version (static scan only) — compatibility unknown, never assumed.
0.7.7npm2026-09-23
@weibaohui/dsh-kb
No runtime install test for this version (static scan only) — compatibility unknown, never assumed.
Only the latest 3 published versions are shown; source-snapshot (commit hash) groups, unstated groups and older versions are omitted — the full archive stays in the data layer (snapshot/unstated groups appear only when a plugin has no published version).
Author badges
Embed the official badges in your README to showcase security & install-test status:
`[](https://www.dsh.so/artifact/dsh-kb/)``[](https://www.dsh.so/artifact/dsh-kb/)``[](https://www.dsh.so/artifact/dsh-kb/)``[](https://www.dsh.so/artifact/dsh-kb/)``[](https://www.dsh.so/artifact/dsh-kb/)``[](https://www.dsh.so/artifact/dsh-kb/)``[](https://www.dsh.so/artifact/dsh-kb/)`Security Report
Two automated layers, neither a manual review: a static scan (per-plugin rule checks) and a model-driven dynamic security audit that covers only the subset static-flagged at warn or above and never executes plugin code.
Static low, dynamic medium — stricter wins → overall medium.
v0.7.15dsh manifest0.7.15npm2026-10-210.7.15same versionclean · npmVet is an AST static scan (npm artifact or git source).
show static findings (5)
- warningfsWrite · files
src/kb-core.js:293const out = fs.createWriteStream(tmp, { flags: 'wx' }) - warningfsWrite · files
src/kb-core.js:444fs.writeFileSync(tmp, body) - warningfsWrite · files
src/kb-core.js:468fs.writeFileSync(abs, contents[name], 'utf8') - warningfsWrite · files
src/queue.js:317fs.writeFileSync(tmp, JSON.stringify({ version: LEDGER_VERSION, paused, updatedAt: nowIso(), items: out }, null, 1), 'utf8') - warningfsWrite · files
src/queue.js:364fs.writeFileSync(file, p.body, 'utf8')
show 4 audit findings
- mediumUploaded HTML/SVG served inline with same-origin content-type → stored XSS in the DSH web app
src/kb-core.js:194uploadRaw accepts any file extension into raw/, and sendFile streams it back with content-type derived from the extension and disposition 'inline' by default (dl=1 is required to force attachment). A user who can upload (the client itself warns the folder becomes 'browsable / uploadable via the LAN API') can drop note.html or evil.svg, and any victim who opens /dsh-kb/api/file?path=raw/note.html runs attacker script in the DSH host origin, i.e. in the origin of the local agent/API endpoints, not in a sandboxed page.
- mediumUntrusted KB content (raw material, feedback note) is injected verbatim into an autonomous tool-using agent prompt
src/queue.js:186appendFeedback (kb-core) stores a user-supplied note almost verbatim (only newlines collapsed, 500 chars), and buildFeedbackPrompt embeds it into a prompt that instructs the bot to read the KB and rewrite pages; buildDistillPrompt does the same for every auto-enqueued raw/ file, whose text the bot is told to read and act on. The instructions themselves come from material an attacker can upload/post, and the bot session has whatever tool permissions the host grants (harness code in the unharvested src/index.js), so KB content can steer the agent to run tools or write files outside the intended
- lowUpload destination check only requires the 'raw/' prefix, so 'raw/../wiki' writes outside raw/
src/kb-core.js:284dirRel='raw/../wiki/meta' or 'raw/..' passes this check; resolveCreatable then only enforces containment inside the KB root, so the file lands in wiki/ or at the KB root while the API claims raw-only, immutable-source semantics. Writes are still inside the root, non-overwriting and size-capped, so this is a policy/integrity bypass (planting agent-readable markdown or pre-seeding wiki/meta/feedback.md) rather than an arbitrary file write.
- lowImmutable-raw overwrite guard is a TOCTOU; renameSync silently replaces the target
src/kb-core.js:289Two concurrent uploads of the same name (or a file created between existsSync and rename) both pass the check, and fs.renameSync overwrites the destination on POSIX, silently destroying the supposedly immutable raw/ source with the last upload. Evidence loss, contradicting the schema contract that raw/ must never be modified.
Path guards are solid, but inline same-origin serving of uploaded HTML/SVG enables stored XSS, raw/ upload restriction is bypassable, and untrusted KB content is fed verbatim to an autonomous agent.
Rule: the dynamic audit can only raise risk, never lower it (raise-only, never an exemption); a wrong raise is withdrawn by human review and the tier falls back to the static verdict. Overall verdict = the stricter of the two layers.
Disclaimer: the static scan and the dynamic security audit are both automated analysis, not a security guarantee. Always review what you install.
Activity
Last commit 2026-10-09 · activity: Active
• Repo created: 2026-09-05
• Stars: ★ 6 · Forks: 3
• Health: Active — committed within last 30 days
Source
GitHub: github.com/weibaohui/dsh-kb
Author README
View on GitHub ↗The author's original README from the repository — fetched live, unedited (the English page loads the default README).
