Scan your whole stack
From OX Research Newsroom
Are you using @burtson-labs/host-kit?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.4.81
@burtson-labs/host-kit was last scanned on 29 Nov 2026 at version 0.4.81. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.4.81 LATEST | 29 Nov 2026 | No rules fired |
| 0.4.80 | 29 Nov 2026 | No rules fired |
| 0.4.79 | 28 Nov 2026 | No rules fired |
| 0.4.78 | 25 Nov 2026 | Not shown |
| 0.4.75 | 8 Nov 2026 | Not shown |
Findings for v0.4.81. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.4.81; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Host-agnostic building blocks shared between the Bandit CLI and the VS Code extension.
Writing a new host (a Cursor sidebar, a JetBrains plugin, a custom CLI)? Pull from here.
pnpm add @burtson-labs/host-kit
BANDIT.md / CLAUDE.md / AGENTS.md files across workspace + global locations; deduplicates overlapping content at load time; consolidateMemory() unifies multiple entry files into a single canonical BANDIT.md (symlink on macOS/Linux, copy-with-drift-warning on Windows).bandit/memory/MEMORY.md (preferred) with back-compat reads from legacy root MEMORY.md; writes always go to .bandit/memory/; migrateMemoryToBanditDir() moves an existing root memory/ layout into .bandit/memory/ idempotently@-mention expansion — detects @path/to/file in user input and inlines file contents (with secret redaction) or attaches images as base64loadHookSettings merges the global ~/.bandit/settings.json under the workspace .bandit/settings.json so hooks + permissions + the guard apply across every repoisWorkspaceTrusted / trustWorkspace / untrustWorkspace, remembered in ~/.bandit/trusted-workspaces.json, or BANDIT_TRUST_PROJECT_SETTINGS=1 for one process); hooks, allow rules, a wider mode and security.guard.enabled: false from an untrusted workspace are dropped and listed in settings.ignoredUntrusted (file, keys, hook count) for the host to show. "Always allow" grants the user saved from a card are remembered under ~/.bandit and keep working untrusted Opened in the home folder itself, ~/.bandit/settings.json and settings.local.json are the user's own settings and load once, in full, never as an untrusted workspace (isHomeFolder — same folder by spelling or inode, so symlinks, case, Windows 8.3 short names and a trailing separator count); a project under ~ with its own .bandit stays untrusted, and trustWorkspace refuses the home folder, the folders above it and drive roots (isTooBroadToTrust).evaluateSecurityGuard(call, settings, ctx): an opt-in, in-process safety net (no shell spawn) that blocks catastrophic tool calls (rm -rf /, curl … | sh, disk wipes, credential exfil, writes to system/credential paths) before they run. Wired into beforeToolExecute in both hostsresolveSpawn(cmd, args) runs one program with an argv array and no shell; on Windows it resolves PATH + PATHEXT itself (never the current directory) and runs .cmd/.bat shims such as npm.cmd through cmd.exe /d /s /c with every argument quoted and caret-escaped. shellInvocation(line) names the shell (/bin/sh -c / cmd.exe /d /s /c) for features that run a command line on purpose; the hook runner and LocalSandboxExecutor use it instead of shell: truemcp-servers.json (global + workspace, workspace wins), auto-injects BANDIT_API_KEY, registers servers with the pool.bandit/turns/*.jsonl into summaries and markdown timelines for CLI /trace, IDE /trace, tests, and future bug-bundle exporttodo_write, web_fetch, web_search, task (subagent), remember, test_run (vitest, jest, pytest, go, cargo, dotnet, R testthat, Julia test/runtests.jl, a Makefile test target, or the npm test script), pdf_readLoad and merge project memory — BANDIT.md / CLAUDE.md / AGENTS.md, deduped:
import { loadMemory, consolidateMemory } from '@burtson-labs/host-kit';
const { content } = await loadMemory(cwd); // merged, overlapping content removed
await consolidateMemory(cwd); // unify duplicates into one canonical BANDIT.md
Lazy topic memory — keep a tiny index in context, load topics on demand:
import { loadMemoryIndex, writeMemoryTopic } from '@burtson-labs/host-kit';
const index = await loadMemoryIndex(cwd); // .bandit/memory/MEMORY.md
await writeMemoryTopic(cwd, 'auth-flow', '# Auth flow\n…');
Inline @-mentions — file contents (secret-redacted) and images, expanded into the prompt:
import { expandMentions } from '@burtson-labs/host-kit';
const { prompt, images } = await expandMentions('explain @src/auth.ts and @diagram.png', cwd);
Block dangerous tool calls before they run — opt-in, in-process, no shell spawn:
import { evaluateSecurityGuard } from '@burtson-labs/host-kit';
const verdict = evaluateSecurityGuard(call, settings.security?.guard, ctx);
if (!verdict.allow) abort(verdict.reason); // rm -rf /, curl | sh, disk wipes, credential exfil, …
Run lifecycle hooks — PreToolUse blocks; PostToolUse / Stop fire-and-forget:
import { loadHookSettings, runHooks } from '@burtson-labs/host-kit';
const settings = await loadHookSettings(cwd); // global ~/.bandit + workspace, merged
await runHooks('PostToolUse', settings, { name, primary, duration });
Register MCP servers from mcp-servers.json (global + workspace, BANDIT_API_KEY injected):
import { registerMcpServersFromDisk, addMcpServerToConfig } from '@burtson-labs/host-kit';
await registerMcpServersFromDisk(cwd, mcpPool);
Drop-in agent tools — register them straight into your tool registry:
import { buildWebSearchTool, buildTaskTool, buildTestRunTool } from '@burtson-labs/host-kit';
registry.register(buildWebSearchTool({ apiKey })); // web search
registry.register(buildTaskTool({ /* … */ })); // spawn subagents
registry.register(buildTestRunTool()); // detect framework + run tests
Read turn traces — for a /trace view, audits, or bug bundles:
import { listTurnTraces, readTurnTrace, formatTurnTraceMarkdown } from '@burtson-labs/host-kit';
const traces = await listTurnTraces(cwd);
console.log(formatTurnTraceMarkdown(await readTurnTrace(cwd, traces[0].id)));
Stable. Imported by both apps/bandit-cli/ and apps/bandit-stealth/ — breaking changes here require coordinated PRs to both hosts.
import { loadMemory, expandMentions, registerMcpServersFromDisk } from '@burtson-labs/host-kit';
const memory = await loadMemory(workspaceCwd);
const { prompt, images } = await expandMentions(rawUserInput, workspaceCwd);
const count = await registerMcpServersFromDisk(workspaceCwd, mcpPool);
pnpm --filter @burtson-labs/host-kit test
Apache License 2.0 — Copyright 2026 Burtson Labs.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.