### Install agent-scan skill with npx skills installer
Source: https://github.com/backbond/agent-scan/blob/main/distribution/agent-plugin.md
Use this command to install the agent-scan skill from the v0.6.3 release tag. The installer is separate software that fetches the tagged public repository; review its network and telemetry behavior before use in restricted environments. Installing the skill does not execute Agent Scan.
```bash
npx -y skills@1.5.18 add https://github.com/BackBond/agent-scan/tree/v0.6.3 --skill agent-scan --yes
```
--------------------------------
### Copy SKILL.md to .agents/skills/agent-scan/SKILL.md
Source: https://github.com/backbond/agent-scan/blob/main/distribution/install-cards.md
Alternative manual installation: copy the SKILL.md file to the specified path. The folder and frontmatter name must both remain agent-scan.
```text
.agents/skills/agent-scan/SKILL.md
```
--------------------------------
### Manual installation target path
Source: https://github.com/backbond/agent-scan/blob/main/README.md
Specifies the destination folder for manual installation. Copy the entire skills/agent-scan folder to this path; the installed file must be .agents/skills/agent-scan/SKILL.md.
```text
.agents/skills/agent-scan/
```
--------------------------------
### Canonical tool schema example (backbond-tool-schema/v1)
Source: https://github.com/backbond/agent-scan/blob/main/docs/PROTOCOL.md
Example of a tool declaration in the canonical tool schema. Each tool requires a name and may declare protocol, description, capabilities, input_trust, approval, and audit. Supported capabilities include code_execution, secret_read, network_egress, destructive_action, financial_action, persistent_write, privileged_action, and filesystem_access.
```json
{
"protocol": "backbond-tool-schema/v1",
"tools": [{
"name": "shell_exec",
"description": "Run an allowlisted command",
"capabilities": ["code_execution", "privileged_action"],
"input_trust": "trusted",
"approval": "enforced",
"audit": "observable"
}]
}
```
--------------------------------
### Run agent-scan with --suggest-policy and JSON output
Source: https://github.com/backbond/agent-scan/blob/main/README.md
Use --suggest-policy with --json to get machine-readable policy suggestions. The second command pipes a tools list into vet-tools. Suggestions are never applied automatically and have review_required: true.
```bash
agent-scan scan --suggest-policy --json
agent-scan vet-tools --stdin --suggest-policy --json < tools-list.json
```
--------------------------------
### backbond-trace/v1 canonical trace JSON example
Source: https://github.com/backbond/agent-scan/blob/main/docs/PROTOCOL.md
Example of the backbond-trace/v1 protocol JSON structure. Tool call entries omit raw arguments and extra event fields are ignored by the scanner.
```json
{
"protocol": "backbond-trace/v1",
"events": [{
"type": "tool_call",
"tool": "shell_exec",
"input_trust": "trusted",
"approval": "enforced",
"audit": "observable"
}]
}
```
--------------------------------
### Default zero-config scan output
Source: https://github.com/backbond/agent-scan/blob/main/README.md
Example of the default short output from a zero-argument scan. Shows three findings with severity and derived labels, plus a coverage line. The output is deliberately short and includes a pinned next_action when live runtime inventory is missing.
```text
3 findings (1 critical, 2 high)
BB002 vault_read [derived]
Stop: Do not attach secret-reading and unrestricted network tools to the same agent.
BB001 shell_exec [derived]
Stop: Disable the named executor for this session, or wrap it with a narrow allowlist.
Coverage: approval enforcement is not observable for 4 tools
```
--------------------------------
### Terminal demo scene data and rendering logic
Source: https://github.com/backbond/agent-scan/blob/main/distribution/demo/terminal-demo.html
Defines the scenes array with terminal output strings and the rendering loop that updates the UI based on elapsed time. The scenes show example commands and outputs for vet-tools with different manifests.
```javascript
const scenes = [
{ at: 0, step: "1 · Typed tool", headline: "Start with a narrow, explicit schema.", explanation: "The scanner has enough metadata to make a scoped decision.", decision: "NO BLOCKING FINDING · exit 0", kind: "", terminal: '$ node bin/agent-scan.js vet-tools --stdin \
+ < benign-tools-list.json
NO BLOCKING FINDING — 0 findings
Profile: pre-attachment tool manifest only
Profile coverage: complete
Agent decision: this profile found no reason to block;
runtime policy still controls attachment.
Not assessed: runtime enforcement, approval, audit
behavior, traces, or actual execution.' },
{ at: 5, step: "2 · Selection hijack", headline: "Stop forced invocation before attachment.", explanation: "A tool description tries to make the model select it before every answer.", decision: "BLOCK · exit 1", kind: "block", terminal: '$ node bin/agent-scan.js vet-tools --stdin \
+ < forced-invocation-tools-list.json
BLOCK — 1 finding (1 high)
Profile: pre-attachment tool manifest only
BB013 mail_sync [derived]
Stop: Do not attach the tool until the selection-
manipulation language is removed and the server
source is reviewed.
Profile coverage: complete' },
{ at: 12, step: "3 · Confusable name", headline: "Ambiguity is review, not a pass.", explanation: "A Cyrillic character makes one tool name visually shadow another.", decision: "REVIEW · exit 3", kind: "review", terminal: '$ node bin/agent-scan.js vet-tools --stdin \
+ < confusable-shadow-tools-list.json
REVIEW — 0 findings
Profile: pre-attachment tool manifest only
Profile coverage: partial
1 tool-name group becomes indistinguishable after
compatibility and confusable normalization.
1 tool name contains non-ASCII characters.
Agent decision: do not attach automatically;
a finding or evidence gap requires operator review.' },
{ at: 19, step: "Use the exact pin", headline: "Vet the tool. Keep the evidence local.", explanation: "Share compact output only. Never post raw manifests, prompts, traces, configuration, or full JSON reports.", decision: "backbond.ai/agent-scan/", kind: "", terminal: '$ npx -y @backbond/agent-scan@0.6.3 \
+ vet-tools --stdin < tools-list.json
1 = block · 3 = review · 0 = scoped result
No blocking finding is not a safety, runtime-
attestation, or insurance decision.' }
];
```
```javascript
const els = {
terminal: document.getElementById("terminal"),
step: document.getElementById("step"),
headline: document.getElementById("headline"),
explanation: document.getElementById("explanation"),
decision: document.getElementById("decision"),
dots: [...document.querySelectorAll(".progress i")]
};
let active = -1;
function render() {
const second = (performance.now() / 1000) % 20;
let index = 0;
for (let i = 0; i < scenes.length; i += 1)
if (second >= scenes[i].at) index = i;
if (index !== active) {
active = index;
const scene = scenes[index];
els.terminal.innerHTML = scene.terminal;
els.step.textContent = scene.step;
els.headline.textContent = scene.headline;
els.explanation.textContent = scene.explanation;
els.decision.textContent = scene.decision;
els.decision.className = "decision " + scene.kind;
els.dots.forEach((dot, i) => dot.classList.toggle("on", i <= index));
}
requestAnimationFrame(render);
}
render();
```
--------------------------------
### Codex mcp add stdio command
Source: https://github.com/backbond/agent-scan/blob/main/host-gate/docs/HOSTS.md
Illustrative registration shape for Codex CLI. This command writes configuration; do not run it blindly over an existing entry. Back up and inspect the current entry, preserve its environment and permission fields, and use the installed host's supported mechanism for single-entry replacement.
```text
codex mcp add reviewed-server -- /absolute/path/to/node /operator/path/agent-scan-gate.mjs --config /operator/path/server.json
```
--------------------------------
### bash: Create mcp.json and demo-settings.json
Source: https://github.com/backbond/agent-scan/blob/main/docs/CLAUDE-CODE.md
Creates the same configuration files as the PowerShell version using bash here-doc and echo. Uses `which node` and `pwd` to resolve paths.
```bash
cat > mcp.json < demo-settings.json
```
--------------------------------
### PowerShell 7: Create mcp.json and demo-settings.json
Source: https://github.com/backbond/agent-scan/blob/main/docs/CLAUDE-CODE.md
Creates a separate MCP configuration file and demo settings without changing existing MCP registrations. Runs the scanner directly with Node; no npm download occurs at connection time.
```powershell
$nodePath = (Get-Command node).Source
$scannerPath = (Resolve-Path agent-scan.cjs).Path
@{ mcpServers = @{ 'backbond-agent-scan' = @{
type = 'stdio'; command = $nodePath; args = @($scannerPath, 'mcp')
}}} | ConvertTo-Json -Depth 6 | Set-Content -Encoding utf8 mcp.json
@{ disableAllHooks = $true; enabledPlugins = @{} } |
ConvertTo-Json | Set-Content -Encoding utf8 demo-settings.json
```
--------------------------------
### Run tests and build scripts
Source: https://github.com/backbond/agent-scan/blob/main/host-gate/README.md
Execute the test suite and build verification scripts from the host-gate directory.
```bash
node --test test/stdio-wrapper.test.mjs test/sdk-interop.test.mjs test/release.test.mjs
node scripts/verify-release.mjs
node scripts/build-release.mjs
```
--------------------------------
### MCP stdio entrypoint configuration
Source: https://github.com/backbond/agent-scan/blob/main/distribution/install-cards.md
JSON configuration for the MCP stdio entrypoint. Exposes scan_my_runtime and vet_tools_before_attach. Does not connect to third-party MCP servers.
```json
{
"mcpServers": {
"backbond-agent-scan": {
"command": "npx",
"args": ["-y", "@backbond/agent-scan@0.6.3", "mcp"]
}
}
}
```
--------------------------------
### Developer-laptop npm convenience commands
Source: https://github.com/backbond/agent-scan/blob/main/README.md
Runs scan and vet-tools via npx with the pinned npm version. The vet-tools commands require an existing tools-list.json; if missing, run the scan command first.
```bash
npx -y @backbond/agent-scan@0.6.3 scan
npx -y @backbond/agent-scan@0.6.3 vet-tools --stdin < tools-list.json
npx -y @backbond/agent-scan@0.6.3 vet-tools --stdin --summary-only < tools-list.json
```
--------------------------------
### Run vet-tools on isolated destination
Source: https://github.com/backbond/agent-scan/blob/main/distribution/install-cards.md
After transferring the verified asset, run vet-tools with the captured tools-list.json on the isolated host.
```bash
node agent-scan.cjs vet-tools --stdin < tools-list.json
```
--------------------------------
### Download and verify pinned release files
Source: https://github.com/backbond/agent-scan/blob/main/host-gate/README.md
Downloads the gate and scanner executables and their SHA-256 sidecars from the pinned release, then verifies checksums. Stop on any failed download or mismatch. Both executables must stay in the same operator-controlled directory.
```bash
curl -fLO https://github.com/BackBond/agent-scan/releases/download/host-gate-v0.1.0/agent-scan-gate.mjs
curl -fLO https://github.com/BackBond/agent-scan/releases/download/host-gate-v0.1.0/agent-scan-gate.mjs.sha256
curl -fLO https://github.com/BackBond/agent-scan/releases/download/host-gate-v0.1.0/agent-scan.cjs
curl -fLO https://github.com/BackBond/agent-scan/releases/download/host-gate-v0.1.0/agent-scan.cjs.sha256
sha256sum --check agent-scan-gate.mjs.sha256
sha256sum --check agent-scan.cjs.sha256
```
--------------------------------
### Download and verify agent-scan.cjs on trusted host
Source: https://github.com/backbond/agent-scan/blob/main/distribution/install-cards.md
Downloads the agent-scan.cjs binary and its SHA256 checksum, then verifies the checksum. A failed download means scan_not_run.
```bash
curl -fLO https://github.com/BackBond/agent-scan/releases/download/v0.6.3/agent-scan.cjs
curl -fLO https://github.com/BackBond/agent-scan/releases/download/v0.6.3/agent-scan.cjs.sha256
sha256sum --check agent-scan.cjs.sha256
```
--------------------------------
### Rebuild and verify artifacts from source
Source: https://github.com/backbond/agent-scan/blob/main/README.md
Clones the v0.6.3 tag, packs the npm tarball, builds the standalone file, and computes SHA-256 digests for both. Compare with the .sha256 files on the release; a mismatch is a stop condition.
```bash
git clone --depth 1 --branch v0.6.3 https://github.com/BackBond/agent-scan.git
cd agent-scan
npm pack
sha256sum backbond-agent-scan-0.6.3.tgz
node scripts/build-standalone.js agent-scan.cjs
sha256sum agent-scan.cjs
```
--------------------------------
### Control prompt to separate authentication issues from Agent Scan
Source: https://github.com/backbond/agent-scan/blob/main/docs/CLAUDE-CODE.md
Run this control prompt with no MCP servers and no tools to verify that authentication is working. It should return `OK` within seconds. Use this to distinguish authentication or sign-in issues from Agent Scan behavior.
```bash
claude -p 'Reply with exactly OK. Do not use tools.' --strict-mcp-config --tools '' --setting-sources '' --no-session-persistence --model sonnet --max-budget-usd 0.2 --output-format json
```
--------------------------------
### Create a public scan record (v1)
Source: https://github.com/backbond/agent-scan/blob/main/docs/RECORDS.md
Run the agent-scan CLI to create a public scan record. The default record is v1 and contains scanner and ruleset identity, input kinds, finding IDs, severities, and more, but excludes paths, raw descriptions, and other sensitive data.
```bash
npx -y @backbond/agent-scan@0.6.3 scan --record-public scan-record.json
```
--------------------------------
### Strict schema check workflow with mode: vet-tools
Source: https://github.com/backbond/agent-scan/blob/main/README.md
Use the Action as a fixed pre-attachment manifest gate. `mode: vet-tools` accepts exactly one committed `tool-schema` input, treats prompt lint as blocking, returns exit `3` for incomplete or ambiguous metadata, and creates no public record. Omit `sarif-path` if the repository does not want a file containing finding locations.
```yaml
name: BackBond Schema Check
on:
pull_request:
paths:
- 'tools-list.json'
- '**/tools-list.json'
- 'mcp.json'
- '**/mcp.json'
- '.mcp.json'
- '**/.mcp.json'
push:
branches: [main]
paths:
- 'tools-list.json'
- '**/tools-list.json'
- 'mcp.json'
- '**/mcp.json'
- '.mcp.json'
- '**/.mcp.json'
permissions:
contents: read
jobs:
schema-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- id: backbond
uses: BackBond/agent-scan@v0.6.3
with:
mode: vet-tools
tool-schema: tools-list.json
sarif-path: artifacts/backbond-agent-scan.sarif
```
--------------------------------
### Run vet-tools in PowerShell
Source: https://github.com/backbond/agent-scan/blob/main/distribution/README.md
PowerShell equivalent of the vet-tools command, piping the contents of tools-list.json to npx.
```powershell
Get-Content -Raw .\tools-list.json | npx -y @backbond/agent-scan@0.6.3 vet-tools --stdin
```
--------------------------------
### Suggest policy with JSON output
Source: https://github.com/backbond/agent-scan/blob/main/AGENTS.md
Use --suggest-policy --json only for reviewable suggestions; the scanner never applies or enforces them.
```bash
--suggest-policy --json
```
--------------------------------
### PowerShell 7: Run Claude CLI with MCP config
Source: https://github.com/backbond/agent-scan/blob/main/docs/CLAUDE-CODE.md
Invokes the Claude CLI with the MCP config and demo settings. Requires the prompt saved in `$prompt` as a here-string first. Uses PowerShell 7 for empty-string argument forwarding.
```powershell
claude -p $prompt --mcp-config ./mcp.json --strict-mcp-config `
--setting-sources '' --settings ./demo-settings.json --tools '' `
--allowedTools mcp__backbond-agent-scan__vet_tools_before_attach `
--disallowedTools mcp__backbond-agent-scan__scan_my_runtime `
--disable-slash-commands --no-chrome --no-session-persistence `
--system-prompt 'Perform only the requested synthetic acceptance test. No delegation, files, networking, or other operations.' `
--model sonnet --max-budget-usd 1 --output-format stream-json --verbose
```
--------------------------------
### PowerShell 7: Download and verify agent-scan
Source: https://github.com/backbond/agent-scan/blob/main/docs/CLAUDE-CODE.md
Use this PowerShell 7 script to create a dedicated folder, download the agent-scan.cjs scanner and its SHA-256 checksum, and verify the checksum. Throws an error if the checksum does not match.
```powershell
New-Item -ItemType Directory -Path agent-scan-claude-demo
Set-Location agent-scan-claude-demo
Invoke-WebRequest 'https://github.com/BackBond/agent-scan/releases/download/v0.6.3/agent-scan.cjs' -OutFile agent-scan.cjs
Invoke-WebRequest 'https://github.com/BackBond/agent-scan/releases/download/v0.6.3/agent-scan.cjs.sha256' -OutFile agent-scan.cjs.sha256
$expected = ((Get-Content -Raw agent-scan.cjs.sha256).Trim() -split '\s+')[0]
$actual = (Get-FileHash -Algorithm SHA256 agent-scan.cjs).Hash
if ($actual -ine $expected) { throw 'Scanner checksum mismatch; stop.' }
```
--------------------------------
### Wrapper invocation command
Source: https://github.com/backbond/agent-scan/blob/main/host-gate/README.md
The command to execute the host-gate wrapper, requiring the absolute path to the Node executable, the gate script, and the configuration file.
```text
/absolute/path/to/node /operator/path/agent-scan-gate.mjs --config /operator/path/server.json
```
--------------------------------
### CI Action workflow for vet-tools
Source: https://github.com/backbond/agent-scan/blob/main/distribution/install-cards.md
GitHub Actions workflow that uses the BackBond/agent-scan action with mode vet-tools. It checks the committed file at github.sha and preserves the 0/1/3 decision.
```yaml
permissions:
contents: read
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- id: backbond
uses: BackBond/agent-scan@v0.6.3
with:
mode: vet-tools
tool-schema: tools-list.json
```
--------------------------------
### bash: Download and verify agent-scan
Source: https://github.com/backbond/agent-scan/blob/main/docs/CLAUDE-CODE.md
Use this bash script on Linux or macOS to create a dedicated folder, download the agent-scan.cjs scanner and its SHA-256 checksum, and verify the checksum. On macOS, use shasum -a 256 -c instead of sha256sum.
```bash
mkdir agent-scan-claude-demo && cd agent-scan-claude-demo
curl -sSL -o agent-scan.cjs 'https://github.com/BackBond/agent-scan/releases/download/v0.6.3/agent-scan.cjs'
curl -sSL -o agent-scan.cjs.sha256 'https://github.com/BackBond/agent-scan/releases/download/v0.6.3/agent-scan.cjs.sha256'
sha256sum -c agent-scan.cjs.sha256 # on macOS: shasum -a 256 -c agent-scan.cjs.sha256
```
--------------------------------
### Create a public scan record with commit reference (v2)
Source: https://github.com/backbond/agent-scan/blob/main/docs/RECORDS.md
Pass an explicit commit to include it in the record. This emits v2 and includes the full commit in the JSON and compact card. The CLI does not read Git, so the commit is labeled caller-supplied and unverified.
```bash
npx -y @backbond/agent-scan@0.6.3 scan --record-public scan-record.json --record-commit "$GITHUB_SHA"
```
--------------------------------
### bash: Run Claude CLI with MCP config
Source: https://github.com/backbond/agent-scan/blob/main/docs/CLAUDE-CODE.md
Invokes the Claude CLI with the MCP config and demo settings. Requires the prompt saved as `prompt.txt` first. This is the exact invocation that passed on September 16 and September 23.
```bash
claude -p "$(cat prompt.txt)" --mcp-config ./mcp.json --strict-mcp-config \
--setting-sources '' --settings ./demo-settings.json --tools '' \
--allowedTools mcp__backbond-agent-scan__vet_tools_before_attach \
--disallowedTools mcp__backbond-agent-scan__scan_my_runtime \
--disable-slash-commands --no-chrome --no-session-persistence \
--system-prompt 'Perform only the requested synthetic acceptance test. No delegation, files, networking, or other operations.' \
--model sonnet --max-budget-usd 1 --output-format stream-json --verbose \
< /dev/null > run.jsonl
```
--------------------------------
### OpenClaw mcp.servers stdio server fragment
Source: https://github.com/backbond/agent-scan/blob/main/host-gate/docs/HOSTS.md
Native configuration fragment for OpenClaw using mcp.servers, not the Claude/Cursor mcpServers key. Preserve existing enablement, tool filters, timeouts and environment fields. The pilot applied a single-entry patch only after its test operation matched the live entry.
```json
{
"mcp": {
"servers": {
"reviewed-server": {
"command": "/absolute/path/to/node",
"args": ["/operator/path/agent-scan-gate.mjs", "--config", "/operator/path/server.json"]
}
}
}
}
```
--------------------------------
### Verify receipt with agent-scan verify-receipt
Source: https://github.com/backbond/agent-scan/blob/main/README.md
Use this command to verify a receipt file. The receipt is generated with --receipt receipt.json and may be signed with --signing-key. A gatekeeper should accept a zero-finding receipt only when coverage is complete, the input set matches, the scanner/ruleset is allowed, and the signing key is trusted.
```bash
agent-scan verify-receipt --input receipt.json
```
--------------------------------
### Run scan with stdin and require coverage
Source: https://github.com/backbond/agent-scan/blob/main/AGENTS.md
Pipe the current MCP tools/list JSON-RPC response into scan with --stdin --require-coverage when session tools are missing. Exit 3 means coverage was incomplete.
```bash
scan --stdin --require-coverage
```
--------------------------------
### Commit-verified CI run with BackBond Action
Source: https://github.com/backbond/agent-scan/blob/main/README.md
Use the official Action for a commit-verified CI run. It verifies `HEAD == github.sha`, requires each input to be tracked and unchanged, runs the scanner code bundled in the selected Action version without `npx`, preserves exit codes, and writes a redacted record plus job summary. The output `record-path` can be passed to a separately pinned artifact-upload step.
```yaml
permissions:
contents: read
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- id: agent-scan
uses: BackBond/agent-scan@v0.6.3
with:
tool-schema: security/tools.json
permissions: security/permissions.json
trace: security/trace.json
```
--------------------------------
### Run benign typed tool vet-tools with stdin
Source: https://github.com/backbond/agent-scan/blob/main/distribution/demo/README.md
Runs the vet-tools command against the benign tool manifest from the repository root. The expected result is a NO BLOCKING FINDING with exit code 0, indicating a scoped metadata result rather than proof of runtime safety.
```bash
node bin/agent-scan.js vet-tools --stdin < distribution/demo/benign-tools-list.json
```
--------------------------------
### Scan staged manifest with @backbond/agent-scan vet-tools
Source: https://github.com/backbond/agent-scan/blob/main/docs/CORPUS-REGRESSION.md
Scans a staged local manifest with the 0.6.3 scanner, producing identity-free summary-only output. Use this for registry-scale analysis to avoid publishing raw full-profile output.
```bash
npx -y @backbond/agent-scan@0.6.3 vet-tools --tool-schema staged-manifest.json --summary-only
```
--------------------------------
### Record commit with caller-supplied metadata
Source: https://github.com/backbond/agent-scan/blob/main/AGENTS.md
Use --record-commit to create v2 with caller-supplied, unverified metadata. Use the official version-pinned Action to verify tracked CI inputs against github.sha.
```bash
--record-commit
```
--------------------------------
### Run vet-tools with stdin input
Source: https://github.com/backbond/agent-scan/blob/main/distribution/README.md
Runs the vet-tools command with input from a tools-list.json file. Exit codes: 1 means do not attach automatically, 3 means medium finding or incomplete evidence requires review, 0 is a scoped metadata result.
```bash
npx -y @backbond/agent-scan@0.6.3 vet-tools --stdin < tools-list.json
```
--------------------------------
### Record public scan
Source: https://github.com/backbond/agent-scan/blob/main/AGENTS.md
Share --record-public instead of full --json. For large operator-staged vet-tools runs, use --summary-only.
```bash
--record-public
```
--------------------------------
### Reproduce and verify scanner artifacts for v0.6.3
Source: https://github.com/backbond/agent-scan/blob/main/distribution/supply-chain-proof.md
Clone the tag, pack the tarball, compute its SHA-256, build the standalone script, and compute its SHA-256. Compare both digests with the .sha256 files on the official release. A mismatch is a stop condition.
```bash
git clone --depth 1 --branch v0.6.3 https://github.com/BackBond/agent-scan.git
cd agent-scan
npm pack --ignore-scripts
sha256sum backbond-agent-scan-0.6.3.tgz
node scripts/build-standalone.js agent-scan.cjs
sha256sum agent-scan.cjs
```
--------------------------------
### Download and verify standalone agent-scan release
Source: https://github.com/backbond/agent-scan/blob/main/README.md
Downloads the agent-scan.cjs release asset and its SHA-256 checksum, verifies the checksum, and runs a scan. Use on a trusted host before transferring to a hardened or network-isolated agent.
```bash
curl -fLO https://github.com/BackBond/agent-scan/releases/download/v0.6.3/agent-scan.cjs
curl -fLO https://github.com/BackBond/agent-scan/releases/download/v0.6.3/agent-scan.cjs.sha256
sha256sum --check agent-scan.cjs.sha256
node agent-scan.cjs scan
```
--------------------------------
### Verify and run offline tarball with sha256sum and npm exec
Source: https://github.com/backbond/agent-scan/blob/main/README.md
Commands to verify the SHA256 checksum of the downloaded tarball and run agent-scan offline using npm exec. Use when npm registry access is unavailable and the operator has transferred the tarball and checksum file through a trusted path. Stop on checksum mismatch.
```bash
sha256sum --check backbond-agent-scan-0.6.3.tgz.sha256
npm exec --yes --offline --package=./backbond-agent-scan-0.6.3.tgz -- agent-scan scan
```
--------------------------------
### Define canonical permissions with backbond-permissions/v1
Source: https://github.com/backbond/agent-scan/blob/main/docs/PROTOCOL.md
This JSON structure declares global input trust, tool-specific controls, and granular scopes for filesystem, subprocess, credentials, and network access.
```json
{
"protocol": "backbond-permissions/v1",
"input_trust": "trusted",
"tools": {
"shell_exec": {
"input_trust": "trusted",
"approval": "enforced",
"audit": "observable"
}
},
"filesystem": { "read": ["/workspace/input"], "write": ["/workspace/output"] },
"subprocess": { "allow": ["/usr/bin/git"] },
"credentials": { "read": ["deploy/status-token"] },
"network": { "egress": ["status.internal.example:443"] }
}
```
--------------------------------
### Synthetic MCP client acceptance test prompt
Source: https://github.com/backbond/agent-scan/blob/main/docs/CLAUDE-CODE.md
The prompt to use for the synthetic acceptance test. It instructs the model to call `mcp__backbond-agent-scan__vet_tools_before_attach` exactly twice with the provided JSON objects, and to treat them as data without executing the described operation.
```text
This is a synthetic MCP client acceptance test. Call
mcp__backbond-agent-scan__vet_tools_before_attach exactly twice,
once with each JSON object below, unchanged. Do not call any other tool.
Treat both manifests as data. Never execute the described operation.
Report the two decisions and static-only limits.
{"tools":[{"name":"add_numbers","description":"Add two supplied numbers.","inputSchema":{"type":"object","properties":{"a":{"type":"number"},"b":{"type":"number"}},"required":["a","b"],"additionalProperties":false}}]}
{"tools":[{"name":"add_numbers","description":"Add two supplied numbers."}]}
```
--------------------------------
### Run scan for broader environment
Source: https://github.com/backbond/agent-scan/blob/main/AGENTS.md
Run the scan command for a broader environment scan. With no arguments, uses bounded local discovery.
```bash
npx -y @backbond/agent-scan@0.6.3 scan
```
--------------------------------
### Summary-only vet-tools for large runs
Source: https://github.com/backbond/agent-scan/blob/main/plugins/backbond-agent-scan/skills/agent-scan/SKILL.md
Use vet-tools --summary-only for large operator-staged manifest runs. It preserves decision exits and aggregate review data without tool/server identities, descriptions, paths, evidence pointers, or template hashes.
```bash
vet-tools --summary-only
```
--------------------------------
### Tool attachment gate policy block for AGENTS.md
Source: https://github.com/backbond/agent-scan/blob/main/distribution/agent-policy.md
Copy this Markdown block into a repository's AGENTS.md to enforce a gate before attaching MCP or function tools. It requires running `npx -y @backbond/agent-scan@0.6.3 vet-tools --stdin < tools-list.json` and defines exit codes: 1 (block), 3 (review), 0 (no_blocking_finding). It also instructs to run `scan` if the manifest is missing and restricts sharing of tool manifests.
```markdown
## Tool attachment gate
Before attaching, enabling, or delegating to a new MCP or function tool, obtain the real exported `tools/list` manifest and run:
`npx -y @backbond/agent-scan@0.6.3 vet-tools --stdin < tools-list.json`
- Exit 1 (`block`): do not attach automatically. Remove, constrain, or isolate the named exposure.
- Exit 3 (`review`): a medium finding or incomplete/ambiguous evidence requires operator review. Stop unknown and obtain a better manifest or human decision.
- Exit 0 (`no_blocking_finding`): no configured blocking rule fired on the supplied static metadata. This is not a safety determination, runtime attestation, or insurance decision.
If `tools-list.json` does not exist, do not invent it and do not report a decision. Run `npx -y @backbond/agent-scan@0.6.3 scan` for bounded local discovery and follow its exact next action.
Never post or upload raw tool manifests, prompts, traces, configurations, full JSON reports, or path-bearing receipts. Share only compact `vet-tools` text after redaction, identity-free `vet-tools --summary-only` output for aggregate work, or a compact `--record-public` card.
```
--------------------------------
### Scan vulnerable and hardened fixtures
Source: https://github.com/backbond/agent-scan/blob/main/README.md
Two commands to prove the rule pack using the provided fixtures. The vulnerable case exits 1 with findings BB001–BB013; the hardened case exits 0 with no findings and complete coverage.
```bash
node bin/agent-scan.js scan --tool-schema fixtures/vulnerable/tool-schema.json --permissions fixtures/vulnerable/permissions.json --trace fixtures/vulnerable/trace.json
```
```bash
node bin/agent-scan.js scan --tool-schema fixtures/hardened/tool-schema.json --permissions fixtures/hardened/permissions.json --trace fixtures/hardened/trace.json
```
--------------------------------
### Vet MCP tools with vet-tools --stdin (PowerShell)
Source: https://github.com/backbond/agent-scan/blob/main/distribution/install-cards.md
PowerShell equivalent of the vet-tools command. Checks that tools-list.json exists before piping it to the command; otherwise writes an error.
```powershell
if (Test-Path .\tools-list.json) { Get-Content -Raw .\tools-list.json | npx -y @backbond/agent-scan@0.6.3 vet-tools --stdin } else { Write-Error "Save a real MCP tools/list response as tools-list.json first." }
```
--------------------------------
### Run scan with coverage gate
Source: https://github.com/backbond/agent-scan/blob/main/distribution/README.md
Runs a broader inventory and coverage gate scan with the --require-coverage flag, reading from stdin.
```bash
npx -y @backbond/agent-scan@0.6.3 scan --stdin --require-coverage < tools-list.json
```
--------------------------------
### Run corpus regression tests with npm run test:corpus-regression
Source: https://github.com/backbond/agent-scan/blob/main/docs/CORPUS-REGRESSION.md
Runs the corpus regression test pack. Use this command to verify that the current scanner and ruleset reproduce the expected decisions and rule counts for the fixture boundaries.
```bash
npm run test:corpus-regression
```
--------------------------------
### Rerun enriched corpus with rerun-enriched-corpus.js
Source: https://github.com/backbond/agent-scan/blob/main/docs/CORPUS-REGRESSION.md
Runs the internal reproducibility runner to validate the CSV-to-manifest join, replay the current scanner, and write an identity-free delta report. Requires a staged manifest directory and a scanner source commit.
```bash
node scripts/rerun-enriched-corpus.js \
--csv enriched.csv \
--manifest-dir staged-manifests \
--scanner-source-commit \
--baseline-verification-json v0.5.15-verification.json \
--archive-sha256 \
--corpus-date 2026-08-31 \
--output-json delta.json \
--output-markdown delta.md
```
--------------------------------
### agent-scan scan command with explicit inputs
Source: https://github.com/backbond/agent-scan/blob/main/README.md
Use this command to run agent-scan with explicit configuration, tool schema, permissions, trace, and fail-on severity. It is used when discovery cannot see the runtime. The --fail-on high flag sets the blocking threshold.
```bash
agent-scan scan \
--config agent-mcp-config.json \
--tool-schema tools.json \
--permissions permissions.json \
--trace otel-export.json \
--fail-on high
```
--------------------------------
### Claude Code .mcp.json stdio server fragment
Source: https://github.com/backbond/agent-scan/blob/main/host-gate/docs/HOSTS.md
Project-scoped .mcp.json fragment for Claude Code. Merge only the intended entry and retain existing environment settings; do not replace the whole file. Keep project approval and workspace trust checks. Use /mcp to inspect the connection and tool availability.
```json
{
"mcpServers": {
"reviewed-server": {
"type": "stdio",
"command": "/absolute/path/to/node",
"args": ["/operator/path/agent-scan-gate.mjs", "--config", "/operator/path/server.json"]
}
}
}
```
--------------------------------
### Forced invocation command
Source: https://github.com/backbond/agent-scan/blob/main/distribution/demo/README.md
Runs the vet-tools scan against the forced-invocation demo manifest. Expected decision is BLOCK with one high finding; exit code 0.
```bash
node bin/agent-scan.js vet-tools --stdin < distribution/demo/forced-invocation-tools-list.json
```
--------------------------------
### Summary-only output for large runs
Source: https://github.com/backbond/agent-scan/blob/main/AGENTS.md
Use --summary-only for large operator-staged vet-tools runs; it preserves decision exits and aggregate review data without tool/server identities, descriptions, paths, evidence pointers, or template hashes.
```bash
--summary-only
```
--------------------------------
### BackBond local scan record output
Source: https://github.com/backbond/agent-scan/blob/main/distribution/assets/public-record-example.txt
Shows the exact output of a BackBond local scan run with @backbond/agent-scan@0.6.3 and ruleset backbond-local-rules/2.0.2. The record lists findings (1 critical, 11 high, 1 medium) with derived rule identifiers, coverage as complete, and a rerun command. It is a static self-run record over public fixtures and not proof of production safety.
```text
BackBond local scan record
Posture: Unverified self-assessed exposure posture
Assurance: self-run, unverified; not a safety certificate
@backbond/agent-scan@0.6.3 ruleset backbond-local-rules/2.0.2
Interpretation: FINDINGS
Findings: 1 critical, 11 high, 1 medium; BB001 [derived] BB002 [derived] BB003 BB004 BB005 [derived] BB006 BB007 [derived] BB008 [derived] BB009 [derived] BB010 [derived] BB011 [derived] BB012 [derived] BB013 [derived]
Coverage: complete
Rerun: npx -y @backbond/agent-scan@0.6.3 scan
Record: 5ceb6bebceba4787af557016071bcffb29365e1fa5db16c83c3c45eadb870283
```
--------------------------------
### Status badge markdown for schema check workflow
Source: https://github.com/backbond/agent-scan/blob/main/README.md
Display the default-branch workflow status badge after saving the workflow as `.github/workflows/backbond-schema.yml`. The badge must link to the workflow evidence. A passing badge means only that the committed file at this SHA produced `no_blocking_finding` under the pinned static pre-attachment profile; it is not production state, runtime verification, insurance coverage, or proof that the deployed server matches the manifest.
```markdown
[](https://github.com/OWNER/REPOSITORY/actions/workflows/backbond-schema.yml)
```
--------------------------------
### Summarize corpus results with summarize-corpus-results.js
Source: https://github.com/backbond/agent-scan/blob/main/docs/CORPUS-REGRESSION.md
Generates an aggregate markdown report from same-mode JSONL rows. The summarizer rejects mixed files and omits server IDs, tool names, and template hashes.
```bash
node scripts/summarize-corpus-results.js --input scan_results.jsonl --corpus-date 2026-08-31 --format markdown
```
--------------------------------
### Markdown badge for BackBond Schema Check workflow
Source: https://github.com/backbond/agent-scan/blob/main/distribution/schema-check-badge.md
Use this markdown to display the BackBond Schema Check status badge in a README or other markdown file. Replace OWNER and REPOSITORY with your GitHub owner and repository names. The badge links to the workflow evidence and reflects dynamic workflow status, not a permanently green image.
```markdown
[](https://github.com/OWNER/REPOSITORY/actions/workflows/backbond-schema.yml)
```
--------------------------------
### Expected output for benign typed tool
Source: https://github.com/backbond/agent-scan/blob/main/distribution/demo/README.md
Expected decision and exit for the benign typed tool case. The output is a scoped metadata result, not proof that an implementation or runtime is safe.
```text
NO BLOCKING FINDING — 0 findings
Profile: pre-attachment tool manifest only
Profile coverage: complete
Agent decision: this profile found no reason to block; runtime policy still controls attachment.
Not assessed: runtime enforcement, approval, audit behavior, traces, or actual execution.
```
--------------------------------
### Forced invocation expected output
Source: https://github.com/backbond/agent-scan/blob/main/distribution/demo/README.md
Expected decision and exit for the forced invocation case.
```text
BLOCK — 1 finding (1 high)
Profile: pre-attachment tool manifest only
BB013 mail_sync [derived]
Stop: Do not attach the tool until the selection-manipulation language is removed and the server source is reviewed.
Profile coverage: complete
Agent decision: this profile found no reason to block; runtime policy still controls attachment.
Not assessed: runtime enforcement, approval, audit behavior, traces, or actual execution.
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.