Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@burtson-labs/host-kit

Latest version: v0.4.81

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: bburtson09, markymarkburt
9 Stars
0 Forks
65 Versions
2.1K Downloads
TypeScript Repo language

Scan summary

@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.

  • Releases: 65 versions; the latest 4 were published within 5 days (25–29 Nov 2026).
  • Findings: No rules fired in version 0.4.81.
  • Downloads: 2,122 downloads.

Versions

65 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 0.4.81

Findings

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.

README

The publisher’s own README, as collected from the registry.

@burtson-labs/host-kit

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.


Install

pnpm add @burtson-labs/host-kit

What's in the box

  • Memory loader — discovers and merges 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)
  • Topic memory — lazy-load index at .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 base64
  • Hook runner — executes PreToolUse / PostToolUse / Stop / UserPromptSubmit hooks; loadHookSettings merges the global ~/.bandit/settings.json under the workspace .bandit/settings.json so hooks + permissions + the guard apply across every repo
  • Workspace trust — a workspace's settings files only narrow Bandit until the user trusts the folder (isWorkspaceTrusted / 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).
  • Pre-tool security guard — 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 hosts
  • Shell-free spawning — resolveSpawn(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: true
  • MCP loader — reads mcp-servers.json (global + workspace, workspace wins), auto-injects BANDIT_API_KEY, registers servers with the pool
  • Turn trace reader — parses workspace and global .bandit/turns/*.jsonl into summaries and markdown timelines for CLI /trace, IDE /trace, tests, and future bug-bundle export
  • Insights — usage analytics aggregator (CLI sessions → human report)
  • Extra tool builders — todo_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_read

What you can do

Load 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)));

Status

Stable. Imported by both apps/bandit-cli/ and apps/bandit-stealth/ — breaking changes here require coordinated PRs to both hosts.

Quick example

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);

Tests

pnpm --filter @burtson-labs/host-kit test

License

Apache License 2.0 — Copyright 2026 Burtson Labs.

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @burtson-labs/host-kit

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229