Skip to content

Latest commit

 

History

64 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Signal Sentinel

License .NET OWASP Version SARIF

Signal Sentinel is a security-first MCP (Model Context Protocol) and Agent Skill security product family, designed to address the critical security gap in the agentic AI ecosystem.

Positioning: Signal Sentinel is the fast, deterministic, offline-capable first-pass authoring aid for skill authors and MCP operators — one deterministic layer in a defensible defence-in-depth chain. We are not, and do not aim to be, a standalone audit tool: for audit-grade verification, run Signal Sentinel alongside at least one semantic scanner (Enkrypt Skill Sentinel, Snyk agent-scan, Anthropic Claude-based semantic scan) and at least one code-level scanner (Bandit, Semgrep), plus Gitleaks for credentials and a runtime control (Sentinel Gateway). Every report declares its scope explicitly in a "Scanner Scope" section.

Products

Product Type Description
Sentinel Scanner CLI Tool Security audit tool for MCP server configurations AND Agent Skill packages
Sentinel Gateway Proxy/Firewall Real-time security enforcement between agents and MCP servers
Sentinel Classify MCP Server Document classification and sensitivity labelling

Signal Sentinel Scanner

The Scanner is a command-line tool that audits MCP server configurations and Agent Skill packages for security vulnerabilities. It produces a scored report with OWASP ASI01-ASI10 + AST01-AST10 + MCP01-MCP10 triple mapping and remediation guidance.

What's new in v3.0.0

  • 22 new rules (47 total): prompt/resource/server-instructions injection (SS-030..SS-032), unsolicited server-initiated requests (SS-033), skill forensics (SS-034 SHA256SUMS verification, SS-035 file-artefact magic-byte analysis), homoglyph/confusable identifiers (SS-036), cross-skill description overlap (SS-037), fetch-to-exec pipeline taint (SS-038), OSV dependency vulnerabilities (SS-039 + --osv), error-channel injection (SS-040), server-source dangerous sinks (SS-041 + --server-source), and A2A Agent Card evaluation (SS-042 + --agent-card).
  • Markdown-aware segmentation: skill rules now evaluate only the document segments where their signal is meaningful (frontmatter vs prose vs fenced code vs links), eliminating the v2.x false positives on code examples and inline code. See docs/MIGRATION_V3.md.
  • Versioned scoring rubric (--rubric <path>): deductions and grade thresholds live in an auditable embedded rubric (v2.0.0, emitted as RubricVersion in every report); weights unchanged, monotonicity proven by property tests.
  • Policy presets (--policy default|strict|defence|file.json): severity overrides, rule disabling, and gate thresholds as version-controlled JSON.
  • Keyword pruning: when the user asks ... no longer triggers SS-015; prose fetch( no longer fires SS-014 (js/ts fenced code and bundled scripts still do). Rationale in docs/keyword-rules.md.
  • Discovery breadth: Claude Code, Gemini CLI, OpenCode, VS Code/Copilot (incl. JetBrains), Amazon Q and .cursor config shapes; skills under .gemini, .opencode, .github, .factory, .agents and the Claude plugin cache. enabled: false entries are now skipped everywhere.
  • Full details in CHANGELOG.md; upgrade guidance in docs/MIGRATION_V3.md.

v2.5.1 highlights

False-positive remediation patch for the skill-scanning rules, informed by a real-world review of 65 production Claude skills: bare .env mentions, shebang lines, ordinary <meta> tags, defensive "exfiltrate" prose, .profile inside property access, Function( inside identifiers, and single zero-width joiners in emoji sequences no longer fire. All fixes carry regression tests and are included in v3.0.0. See RELEASE_NOTES_v2.5.1.md.

v2.5.0 highlights

  • MCP 2026-07-28 spec currency: SS-INFO-004 flags servers still negotiating an older protocolVersion or reachable only over the deprecated legacy HTTP+SSE transport. SS-020 gained an advisory finding disclosing that the scanner cannot yet verify RFC 9207 issuer validation or the DCR→CIMD migration.
  • SS-029 Skill Unpinned Dependency Reference — detects skills that reference a GitHub dependency by a floating branch (main/master/...) or an unpinned git+https:// install URL instead of a pinned tag/release/commit SHA, the documented "SkillJacking" account/repo hijacking vector.
  • Universal Skill Format fields: risk_tier recognition on SS-017 (flags a self-declared low risk tier contradicted by actual permission requests, and missing declarations on skills that do request elevated permissions) and permissions.deny_write recognition on SS-028 (escalates to Critical when a skill writes to a file it explicitly promised not to touch).
  • Fixed a frontmatter-parsing bug where dotted keys (network.allow, permissions.deny_write) silently failed to parse from real SKILL.md files.

v2.4.x highlights

  • Inconclusive grade for scans with zero scannable surface (zero servers, zero skills), instead of a misleading A.
  • Behavioural auth-probe hardening, TLS/certificate error classification (SS-INFO-003), and non-MCP endpoint detection extended to unusual JSON-RPC-less 404 responses.
  • SS-026 (instructional tool/skill description) extended to cover skill metadata, not just MCP tool descriptions.
  • SS-028 Skill Identity/Memory File Write Access — detects skills that write to agent identity/memory files (AGENTS.md, CLAUDE.md, MEMORY.md, SOUL.md), the persistence technique behind the ClawHavoc malicious-skill campaign.
  • SS-024 recognises inline signature/content_hash frontmatter for skill integrity verification; SS-017 recognises a boolean network: grant as strictly worse than a declared network.allow domain allowlist.
  • Canonical skill identity (CanonicalSkillName) for suppression/scope matching, SuppressionDelta and ServersProbed scan statistics, and orchestrator-agnostic scope filtering (.sentinel-scope.json + --include-skills/--exclude-skills/--include-servers/--exclude-servers).
  • Corrected the AST05 OWASP Agentic Skills Top 10 label to match the real published taxonomy (see docs/owasp-ast-mapping.md).

v2.3.0 highlights

  • .sentinel-suppressions.json — accept specific findings with a justification, approver and expiry; retained in every report format for audit.
  • --min-confidence <f> and --triage — confidence-aware filtering; see docs/confidence-rubric.md.
  • sentinel-scan diff <baseline.json> <current.json> — resolved / new / grade-attribution deltas between runs.
  • --save-history, --environment, --complementary-tools — per-environment scoping + explicit scope disclosure in reports.
  • SS-INFO-001 non-MCP endpoint detection — no more misleading "Grade A" against a React SPA. When it fires, every MCP-protocol rule (SS-001..SS-010, SS-019..SS-025) is automatically suppressed for that target so the report is internally consistent.
  • Case-insensitive, lemma-aware SS-012 — eliminates mechanical false positives from "Network" vs "network access". Lemma table now covers disk, volume, mount, /proc, /sys, /dev, procfs, sysfs as filesystem synonyms.
  • YAML capabilities: block is authoritative for SS-012. Declare capabilities: [read-filesystem, shell_command_execution, network] in a skill's frontmatter and SS-012 will trust it over prose-based heuristics.
  • Suppressed scans now display a technical-debt exposure banner: "if these N suppression(s) were removed, your grade would be X (Y/100) instead of Z (W/100)" — no hidden risk behind a green grade.
  • Pre-commit hook integrations for pre-commit.com, lefthook and husky under hooks/.

Installation

# Install as .NET global tool
dotnet tool install -g SignalSentinel.Scanner

# Or run via Docker
docker pull ghcr.io/signalcoding/signal-sentinel-scanner:3.0.2
docker run --rm ghcr.io/signalcoding/signal-sentinel-scanner:3.0.2 --help

Quick Start

# Auto-discover and scan all MCP configurations
sentinel-scan --discover

# Scan Agent Skills (auto-discover)
sentinel-scan --skills

# Scan both MCP and Skills
sentinel-scan --discover --skills

# Scan a specific skill directory
sentinel-scan --skills ~/.claude/skills/

# Scan a specific configuration file
sentinel-scan --config ~/.cursor/mcp.json

# Scan a remote MCP server (HTTP or WebSocket)
sentinel-scan --remote https://mcp.example.com/mcp
sentinel-scan --remote wss://mcp.example.com/ws

# Generate HTML report
sentinel-scan --discover --skills --format html --output report.html

# Generate SARIF for GitHub Code Scanning (new in v2.2)
sentinel-scan --discover --format sarif --output results.sarif

# Air-gapped / offline scan (refuses --remote, blocks all network egress)
sentinel-scan --discover --skills --offline

# Baseline comparison for rug-pull / schema mutation detection (SS-022)
sentinel-scan --discover --baseline .sentinel-baseline.json
sentinel-scan --discover --update-baseline

# Load Sigma YAML rules from a file or directory
sentinel-scan --discover --sigma-rules ./sigma-rules/

# CI mode (exit code 1 on critical/high findings)
sentinel-scan --discover --skills --ci --format json

What's New in v2.2.0

Capability Description
Rug Pull Detection (SS-022) Compare current scan against a saved baseline; flags schema mutations, additions, removals as Critical / High / Medium
Shadow Tool Injection (SS-023) Typosquat detection using Levenshtein distance against privileged tools and cross-server duplicates
Skill Integrity (SS-024) Detects skills that ship without .sentinel-sig, SHA256SUMS, or cosign.sig signature artefacts
Excessive Response Size (SS-025) Flags tool descriptions > 10 KB and JSON schemas nested > 10 levels deep
Offline Mode (--offline) Zero-network-egress guarantee for air-gapped / HMG / defence environments
SARIF v2.1.0 Output OASIS-compliant, compatible with GitHub Code Scanning and IDE extensions
Sigma Rule Import Load community Sigma YAML rules; supports title/id/description/level/tags/logsource/detection subset
Finding Deduplication Collapses duplicate findings with OccurrenceCount ([xN] annotation in reports)

Output Formats

  • Markdown (default): Human-readable report with emoji indicators
  • JSON: Machine-readable for CI/CD integration
  • HTML: Styled report with Signal Coding branding
  • SARIF v2.1.0: OASIS standard, GitHub Code Scanning compatible (new in v2.2)

Security Rules

32 security rules across MCP and Agent Skill scanning, aligned with OWASP Agentic AI Top 10 and OWASP MCP Top 10. Every rule also carries an OWASP Agentic Skills Top 10 (AST) code where applicable - see docs/owasp-ast-mapping.md for the full dual mapping.

MCP Rules

Rule OWASP Description
SS-001 ASI01 Tool Poisoning Detection
SS-002 ASI02 Overbroad Permissions Detection
SS-003 ASI03 Missing Authentication Detection
SS-004 ASI04 Supply Chain Vulnerability Detection
SS-005 ASI05 Code Execution Capability Detection
SS-006 ASI06 Memory/Context Write Access Detection
SS-007 ASI07 Inter-Agent Communication Detection
SS-008 ASI09 Sensitive Data Access Detection
SS-009 ASI01 Excessive Description Length
SS-010 ASI02 Cross-Server Attack Path Analysis
SS-019 ASI03 Credential Hygiene Check
SS-020 ASI03 OAuth 2.1 Compliance Check (v2.5: advisory for MCP 2026-07-28 CIMD/RFC 9207 hardening)
SS-021 ASI04 Package Provenance Check
SS-022 ASI01 Rug Pull Detection / Schema Mutation
SS-023 ASI01 Shadow Tool Injection (typosquat)
SS-025 ASI06 Excessive Tool Response Size
SS-026 ASI01 Instructional Tool/Skill Description (hidden agent-directed instructions in tool/skill metadata)

Skill Rules

Rule OWASP Description
SS-011 ASI01 Skill Prompt Injection Detection
SS-012 ASI02 Skill Scope Violation Detection
SS-013 ASI03 Skill Credential Access Detection
SS-014 ASI09 Skill Data Exfiltration Detection
SS-015 ASI01 Skill Obfuscation Detection
SS-016 ASI05 Skill Script Payload Detection
SS-017 ASI02 Skill Excessive Permissions Detection (recognises Universal Skill Format network.allow, risk_tier)
SS-018 ASI01 Skill Hidden Content Detection
SS-024 ASI04 Skill Integrity Verification (inline signature/content_hash frontmatter)
SS-028 ASI02 Skill Identity/Memory File Write Access (ClawHavoc backdoor persistence pattern)
SS-029 ASI04 Skill Unpinned Dependency Reference (v2.5, "SkillJacking" account/branch hijacking)

Informational Rules

Rule OWASP Description
SS-INFO-001 ASI10 Non-MCP Endpoint Detected (auto-suppresses MCP-protocol rules for that target)
SS-INFO-002 ASI03 Non-Public Scan Target
SS-INFO-003 ASI10 Untrusted Server Certificate (TLS trust-chain failure distinct from generic connectivity errors)
SS-INFO-004 ASI04 Legacy MCP Protocol / Transport (v2.5, tracks the MCP 2026-07-28 specification's deprecation clock)

Supported Platforms (Auto-Discovery)

Platform MCP Configs Agent Skills
Claude Desktop Yes -
Claude Code - Yes
Cursor Yes Yes
VS Code Yes -
Windsurf Yes Yes
Zed Yes -
OpenAI Codex CLI - Yes

Grading System

Grade Description
A No critical/high findings, no attack paths
B No critical findings, minor issues
C 1-2 high findings or 1 attack path
D Critical findings present
F Multiple critical findings or attack paths
Inconclusive Zero servers and zero skills were scanned - not a security posture result, check your --config/--remote/--skills arguments

Transports

Transport Status
stdio Supported
HTTP/SSE Supported (deprecated by the MCP 2026-07-28 spec - flagged by SS-INFO-004)
Streamable HTTP Supported
WebSocket (ws/wss) Supported

The scanner tracks the current MCP specification revision (2026-07-28) and flags servers still negotiating an older protocolVersion or reachable only over the legacy HTTP+SSE transport (SS-INFO-004). This is a currency notice, not a vulnerability - both remain functional through the spec's 12-month backward-compatibility window.

Building from Source

Prerequisites

  • .NET 10 SDK
  • Git

Build

git clone https://github.com/SignalCoding/signal-sentinel-scanner.git
cd signal-sentinel-scanner
dotnet build

Test

dotnet test

Package

dotnet pack -c Release

Architecture

signal-sentinel/
  src/
    SignalSentinel.Core/             # Shared library (MCP protocol, security patterns, models)
      RuleFormats/                   # Sigma YAML loader (v2.2)
      Security/                      # Levenshtein distance, hash pinning, credential patterns
    SignalSentinel.Scanner/          # CLI scanner application
      McpClient/                     # MCP connection and enumeration (stdio, HTTP, WebSocket)
      SkillParser/                   # SKILL.md parser, script inventory, integrity verifier
      Baseline/                      # Schema hasher + baseline manager (v2.2)
      Dedup/                         # Finding deduplication engine (v2.2)
      Offline/                       # Offline guard and violation exception (v2.2)
      Rules/                         # MCP + informational security rules (SS-001..SS-010, SS-019..SS-023, SS-025, SS-026, SS-INFO-*)
        SkillRules/                  # Skill security rules (SS-011..SS-018, SS-024, SS-028, SS-029)
      Scoring/                       # OWASP dual mapping and severity scoring
      Reports/                       # JSON, Markdown, HTML, SARIF v2.1.0 report generators
  tests/
    SignalSentinel.Scanner.Tests/    # Unit and integration tests (422 tests)
  deploy/
    docker/                          # Multi-arch Docker container
  .github/
    workflows/                       # CI/CD pipelines (SHA-pinned actions)

Contributing

See CONTRIBUTING.md for guidelines.

Security

See SECURITY.md for our security policy and responsible disclosure process.

License

Apache 2.0 - See LICENSE for details.

About Signal Coding Limited

Signal Coding Limited builds enterprise software engineering tools with defence-grade governance. Our products are built to MOD JSP 440/656 compliance and OWASP security standards.

Website: signalcoding.co.uk


Copyright 2026 Signal Coding Limited. All rights reserved.

About

MCP & Agent Skill Security Scanner - OWASP Agentic AI Top 10 + MCP Top 10 Compliant. 32 security rules scanning MCP server configurations and SKILL.md packages for vulnerabilities.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages