1. Conduid
  2. Science
  3. Threat Lab
MCP server · Science

Threat Lab

A safe local red-team and readiness lab for Model Context Protocol security.

37Low

Scored 5 months ago · breakdown

About Threat Lab

Threat Lab is an MCP server in the Science category: a safe local red-team and readiness lab for Model Context Protocol security.

Install

Claude Code
claude mcp add threat-lab -- npx -y @cyberranger/mcp-threat-lab
npx
npx -y @cyberranger/mcp-threat-lab

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Threat Lab

Powered by Claude · Grounded in docs

I know everything about Threat Lab. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

MCP Threat Lab

CI Node.js

A safe local red-team and readiness lab for MCP security.

MCP Threat Lab gives AI platform, security, and developer-tools teams a repeatable way to test whether their Model Context Protocol controls would stop common agent attack patterns before those tools become trusted execution paths.

It is designed as the offensive companion to MCP Guardian:

  • MCP Guardian: scanner, firewall, audit layer, and CI guardrail.
  • MCP Threat Lab: safe attack cards, readiness checks, and reports.

Why This Exists

Agents are getting connected to local files, shell commands, browsers, APIs, and credential-bearing developer environments. MCP makes that powerful, but it also creates a new trust boundary around every server, tool schema, and tool result.

MCP Threat Lab turns that problem into concrete attack cards and control checks:

  • Could prompt injection make the agent reveal secrets?
  • Could a tool description poison the agent plan?
  • Could over-broad filesystem scope expose credentials?
  • Could a shell-like tool execute model-controlled input?
  • Could a shadow MCP server enter a developer config without review?
  • Would an incident leave useful audit evidence?

The lab is safe by default. It does not execute payloads. It evaluates whether the controls that should block each pattern are present.

Install

npm install
npm run build
npm install -g @cyberranger/mcp-threat-lab

Or run without installing:

npm exec --package=@cyberranger/mcp-threat-lab -- mcp-threat-lab --help

Quick Start

# List attack cards
node dist/cli.js list

# View a specific card
node dist/cli.js card MCP-TL-004

# Run the starter profile and fail on high-risk gaps
node dist/cli.js run --profile starter --fail-on high

# Generate a markdown report for a hardened stack
node dist/cli.js run --profile hardened --format markdown --output report.md

Configuration

Create a profile:

node dist/cli.js init --profile starter

Example:

{
  "name": "starter-agent-stack",
  "controls": {
    "secretRedaction": false,
    "leastPrivilegeScopes": false,
    "toolSchemaPinning": false,
    "commandAllowlist": false,
    "auditLog": true,
    "serverInventory": false,
    "contextIsolation": false,
    "humanApprovalForDangerousTools": false
  }
}

Run against the config:

node dist/cli.js run --config .mcp-threat-lab.json --format markdown --output report.md

Attack Cards

ID Severity Category Title
MCP-TL-001 critical prompt-injection Prompt-borne secret exfiltration
MCP-TL-002 high tool-poisoning Tool description poisoning
MCP-TL-003 high least-privilege Over-broad filesystem scope
MCP-TL-004 critical command-execution Command execution escalation
MCP-TL-005 high inventory Shadow MCP server adoption
MCP-TL-006 medium observability Silent audit failure

Commands

mcp-threat-lab init [--profile starter|hardened] [--output .mcp-threat-lab.json] [--force]
mcp-threat-lab list
mcp-threat-lab card <id>
mcp-threat-lab run [--config .mcp-threat-lab.json] [--profile starter|hardened]
                   [--format text|json|markdown] [--include category-or-id]
                   [--fail-on low|medium|high|critical] [--output report.md]

Development

npm install
npm run check
npm run dev -- list

Documentation

Safety

This is a defensive security lab. Payloads are represented as safe prompts and test cases. The CLI does not run shell payloads, access secrets, scan private directories, or attack live services.

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Threat Lab

How do I install Threat Lab?

Run claude mcp add threat-lab -- npx -y @cyberranger/mcp-threat-lab, then add the server to your MCP client's configuration.

Is Threat Lab safe to use with an AI agent?

Its trust score is 37 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Threat Lab still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.