DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

DeepSec

U

DeepSec

Manifest valid★ 498

DeepSec — AI Security Offense & Defense Platform. Shield audits AI-generated code for hallucinated packages, missing safeguards & AI pattern errors in real time. Spear automates authorized penetration

DeepSec

DeepSec

AI 安全攻防一体平台 — Shield 代码审计 + Spear 授权渗透测试

抓出 AI 漏掉的。攻破别人攻不破的。

CI Release License Stars

Python TypeScript Rust VSCode JetBrains

English version: README_EN.md


Quick Start in 3 Minutes

Don't want to read the long doc? Click here → docs/QUICKSTART.zh-CN.md (Chinese version)

Download deepsec-tui-windows.exe from the Release → double-click → type /shield scan 你的项目 → see vulnerabilities in 2 seconds. Not sure how to use it? The repo ships with a deliberately vulnerable sample file demo/unsafe-ai-sample.ts — scan it to see it in action.


DeepSec TUI Terminal Workbench

https://github.com/user-attachments/assets/2b041a72-4566-48f1-aca8-2c685c0a52cc

— Shield scanning, Spear penetration testing, real-time animations


What is DeepSec?

DeepSec is an AI security platform evolved from VibeGuard, unifying Shield (AI code security audit) and Spear (authorized penetration testing engine) into a single CLI, one TUI terminal workbench, and a suite of IDE plugins.

┌──────────────────────────────────────────────────────────┐
│                      DeepSec Platform                     │
│                                                          │
│   ┌──────────┐  ┌──────────┐  ┌──────────┐  ┌─────────┐ │
│   │ Shield   │  │  Spear   │  │   TUI    │  │   MCP   │ │
│   │ Code     │  │ Pentest  │  │ Terminal │  │ Server  │ │
│   │ Audit    │  │ Engine   │  │ Workbench│  │         │ │
│   └────┬─────┘  └────┬─────┘  └────┬─────┘  └────┬────┘ │
│        │             │             │              │       │
│        └─────────────┴─────────────┴──────────────┘       │
│                          │                               │
│              ┌───────────┴───────────┐                   │
│              │   Unified Config      │                   │
│              │   ~/.deepsec/         │                   │
│              │   config.yaml         │                   │
│              └───────────────────────┘                   │
└──────────────────────────────────────────────────────────┘
         │                              │
   ┌─────┴─────┐                  ┌─────┴──────┐
   │  VSCode   │                  │  JetBrains │
   │  Plugin   │                  │   Plugin   │
   │  (TS/LSP) │                  │  (Kotlin)  │
   └───────────┘                  └────────────┘

Shield — Code Security Audit

Three-layer detection: regex to LLM:

LayerDetectsSpeedPrinciple
L1Hallucinated packages, hardcoded secrets, insecure configs, AI error patterns< 50msRegex + entropy analysis + seed catalog
L2SQL injection, XSS, SSRF, path traversal, command injection< 2sTree-sitter WASM AST analysis
L3Semantic vulnerabilities like missing auth/rate-limiting/validation< 5sLLM (DeepSeek/Claude/OpenAI/Ollama) + local heuristic fallback

Spear — Authorized Penetration Testing

End-to-end automated pentest engine migrated from VulnClaw:

  • Recon → Explore → Fact → Reflect → Report → PoC fully automated pipeline
  • 40+ built-in skill packs (nmap, dirsearch, subfinder, nuclei, sqlmap, ffuf, httpx, feroxbuster)
  • 5 roles (pentester, redteam, auditor, blueteam, ctf_player)
  • Signed Scope authorization, time-boxed + audit logs
  • Attack chain visualization, multi-format reports (Markdown / SARIF / JSON / HTML)

TUI — Terminal Workbench

Security workbench built on Rust + ratatui, with interaction design inspired by DeepSeek-TUI:

  • Three-panel layout: workspace sidebar · session log · vulnerability inspector
  • Plan / Agent / YOLO mode switching
  • Slash command system + command history replay
  • Side-Git snapshots (create/restore code state anytime)
  • Session persistence (Ctrl+S save / Ctrl+R restore)

Quick Start

Want to be up and running in 3 minutes? See docs/QUICKSTART.zh-CN.md (Chinese) or docs/QUICKSTART.md (English) — includes the fastest "download-and-go" path.

Installation

# Python 核心 + CLI
pip install -e .

# Rust TUI(可选)
cargo build --manifest-path tui/Cargo.toml

# IDE 插件
# VSCode: 在项目根目录按 F5 启动 Extension Development Host
# JetBrains: cd jetbrains && ./gradlew buildPlugin

No-compile path for beginners: just download deepsec-tui-windows.exe / deepsec-tui-linux / deepsec-0.2.0-py3-none-any.whl from Releases — no build environment needed.

Shield Scan

# 扫描项目(L1 + L2,离线)
deepsec shield scan ./src

# 开启 L3 语义分析(需要 LLM API Key)
DEEPSEEK_API_KEY=... deepsec shield scan ./src --layer l3

# 输出 SARIF 报告
deepsec shield scan . --format sarif --output deepsec.sarif

# 流式输出(供 TUI 消费)
deepsec shield scan . --stream

# Agent 配置审计
deepsec shield agent-audit ./agent-config

# 供应链安全检查
deepsec shield supply-chain check .

Spear Penetration Testing

# 1. (可选)维护授权白名单 — 推荐通过 TUI /scope 命令
#    或手动编辑 ~/.deepsec/targets/scope.json 的 targets 字段
#    如需强签名校验:export DEEPSEC_SCOPE_SIGNING_KEY=... && deepsec scope sign ./scope.json

# 2. 运行渗透测试(目标必须在白名单内)
deepsec spear run https://authorized-target.example --authorized ./scope.json

# 3. 仅侦察阶段
deepsec spear recon https://authorized-target.example --authorized ./scope.json

# 4. 列出角色和工具
deepsec spear roles
deepsec spear tools --role pentester

TUI Terminal Workbench

# 启动终端工作台
deepsec tui

# 或直接运行 Rust 原生二进制
./tui/target/debug/deepsec-tui-native

Built-in TUI slash commands:

CommandDescription
/shield scanRun a Shield scan
/spear runRun Spear pentest (requires whitelist authorization)
/spear reconRun the recon phase
/scope add <target>Add target to the authorized whitelist
/scope remove <target>Remove target from the whitelist
/scope listView the current whitelist
/reportGenerate a report
/planSwitch to Plan mode
/agentSwitch to Agent mode
/yoloSwitch to YOLO mode (fully automatic)
/clearClear the session
/helpHelp

TUI Walkthrough: Add Whitelist Entry and Launch a Pentest

DeepSec TUI has built-in authorized whitelist management — no need to manually edit scope.json or deal with HMAC signing keys.

1. Launch the TUI

deepsec tui

2. Add a target to the whitelist

In the TUI command line (the > prompt at the bottom), type:

/scope add https://your-authorized-domain.com
  • Targets are normalized (scheme+host lowercased, trailing / stripped) and deduplicated, matching the backend authorization rules.
  • If --file is not specified, it defaults to the absolute path resolved by the most recent /spear run --authorized <file>; if Spear has not been run yet, it falls back to ~/.deepsec/targets/scope.json.
  • View the current whitelist: /scope list
  • Remove a target: /scope remove https://your-authorized-domain.com

3. Launch the penetration test

/spear run https://your-authorized-domain.com --authorized ~/.deepsec/targets/scope.json

Then:

  • Press Tab to cycle between Plan / Agent / YOLO execution modes (YOLO is fully automatic, no step-by-step confirmation needed).
  • Plan mode is read-only and cannot arm Spear directly — switch to Agent or YOLO first.
  • Press Y to confirm the authorization check and start; press Esc to cancel.
  • While running, press Ctrl+C to abort the current task (TUI stays open); when idle, press Ctrl+C to exit the TUI.

4. Safety boundaries

  • Targets outside the whitelist are always rejected (target ... is not present in the scope manifest).
  • Private/loopback/non-public addresses are still blocked, preventing attacks against internal networks.
  • The whitelist only accepts assets you own or have written authorization for; any third-party production domain not in targets cannot be attacked.

Side-Git Snapshots

# 创建快照
deepsec snapshot create . --mode shield --description "before-refactor"

# 列出快照
deepsec snapshot list .

# 恢复快照
deepsec restore <snapshot-id>

Screenshots

实时诊断悬停查看详情
Real-time diagnosticsHover tooltip
Quick Fix 菜单Problems 面板
Quick Fix menuProblems panel

Architecture

DeepSec is a polyglot project:

ComponentLanguageFilesLOCPurpose
Python corePython 3.10+15343,500+Shield scanner, Spear engine, CLI, MCP Server, role/tool system
IDE pluginsTypeScript5321,000+VSCode extension, LSP Server, Tree-sitter SAST
TUIRust222,470+ratatui terminal workbench
Rust LSPRust57,800+Native L1 LSP preview

Project Structure

deepsec/                 # Python 核心
├── cli/                 # Typer CLI 入口(shield/spear/snapshot/config/scope)
├── config/              # 统一 YAML 配置 + Pydantic schema
├── core/                # 配置适配器、LLM 客户端、授权、快照、角色
├── shield/              # L1/L2/L3 扫描器、供应链安全、去重、忽略规则
├── spear/               # 渗透引擎(agent/intel/skills/report/warstories)
├── roles/               # YAML 角色定义(pentester/redteam/auditor/blueteam/ctf_player)
├── tools/               # YAML 工具目录(nmap/dirsearch/nuclei/sqlmap/...)
├── mcp/                 # MCP Server(lifecycle/registry/router/diagnostics)
├── report/              # 报告生成 + 攻击链可视化
├── kb/                  # 知识库
├── plugins/             # 插件系统
└── traffic/             # 流量回放与归一化

src/                     # TypeScript IDE 插件
├── extension.ts         # VSCode 扩展入口
├── lspServer.ts         # LSP Server(Node)
├── scanner.ts           # L1/L2 扫描器
├── deepsecBridge.ts     # Python 核心桥接
└── ...

tui/                     # Rust TUI 终端工作台
├── src/
│   ├── app.rs           # App 状态 + 命令分发
│   ├── events.rs        # 键盘事件处理
│   ├── ui/              # 三面板布局(transcript/findings/layout)
│   ├── views/           # Skills Manager 侧边栏
│   ├── theme.rs         # CodeWhale 深色主题
│   ├── sessions.rs      # 会话持久化
│   └── skills/          # Skill 树目录
└── Cargo.toml

rust-lsp/                # Rust 原生 L1 LSP 预览
jetbrains/               # JetBrains 插件(Kotlin)
docs/                    # 使用指南

Config

DeepSec uses a unified YAML config file ~/.deepsec/config.yaml:

deepsec config init      # 初始化配置
deepsec config show      # 查看配置
deepsec config set llm.provider deepseek  # 设置配置项

LLM Configuration

DeepSec supports 13+ LLM providers:

ProviderBase URLDefault Model
DeepSeekapi.deepseek.com/v1deepseek-chat
Anthropic Claudeapi.anthropic.com/v1claude-sonnet-5
OpenAIapi.openai.com/v1gpt-4o
Zhipu GLMopen.bigmodel.cn/api/paas/v4glm-4.7
Kimi (Moonshot)api.moonshot.cn/v1kimi-k2.6
Tongyi Qwendashscope.aliyuncs.com/compatible-mode/v1qwen3-max
SiliconFlowapi.siliconflow.cn/v1deepseek-ai/DeepSeek-V4-Flash
Doubao (ByteDance)ark.cn-beijing.volces.com/api/v3Doubao-Seed-2.0-Pro
Baichuanapi.baichuan-ai.com/v1Baichuan4-Turbo
MiniMaxapi.minimaxi.com/v1MiniMax-M3
StepFunapi.stepfun.com/v1step-3.5-flash
SenseTimeapi.sensenova.cn/v1SenseNova-6.7-Flash-Lite
01.AIapi.lingyiwanwu.com/v1yi-lightning
CustomCustomCustom
# 设置 API Key
deepsec config set llm.provider deepseek
deepsec config set llm.api_key "sk-xxx"

# 或通过环境变量
export DEEPSEC_LLM_API_KEY="sk-xxx"

Spear Authorization

Spear uses an authorized whitelist as its core gate: only targets explicitly listed in the targets array of scope.json can be attacked; everything else is rejected.

Signing is now optional: earlier versions required an HMAC-SHA256 signature of scope.json using DEEPSEC_SCOPE_SIGNING_KEY. This has been relaxed — the signature / signer fields are retained but ignored; authorization only checks the targets whitelist (an optional time window, if set, is still validated). In other words, you no longer need to export the key, re-sign, or restart the TUI — just manage the whitelist directly with the TUI's /scope commands (see "TUI Walkthrough" above).

Whitelist file format (~/.deepsec/targets/scope.json):

{
  "version": 1,
  "targets": ["https://your-authorized-domain.com"],
  "valid_from": "2026-07-26T00:00:00Z",
  "valid_until": "2026-08-25T00:00:00Z",
  "prohibited_cidrs": ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "127.0.0.0/8", "169.254.0.0/16"],
  "signer": "UncleC",
  "signature": "0000000000000000000000000000000000000000000000000000000000000000",
  "signature_algorithm": "hmac-sha256"
}
  • targets: list of targets allowed for penetration testing. Supports https://domain, domain, *.domain wildcards, and bare IP/CIDR. Matching automatically strips trailing /, lowercases, and aligns the scheme.
  • prohibited_cidrs: blocks private/loopback/link-local addresses by default, preventing attacks against internal networks.
  • If you need to keep strict validation, you can manually run deepsec scope sign ./scope.json (requires DEEPSEC_SCOPE_SIGNING_KEY); skipping the signature does not affect usage.
# (可选)手动签名
export DEEPSEC_SCOPE_SIGNING_KEY="your-secret"
deepsec scope sign ./scope.json

# 校验 scope 结构 / 时间窗口 / 可选签名
deepsec scope verify ./scope.json

IDE Integration

VSCode

The VSCode extension provides real-time diagnostics, Quick Fixes, and a Findings sidebar:

SettingDefaultDescription
deepsec.enabledtrueEnable/disable scanning
deepsec.scanOnChangetrueScan on edit
deepsec.scanOnSavetrueScan on save
deepsec.enableL2trueEnable L2 SAST
deepsec.l2DebounceMs500L2 debounce
deepsec.enableL3falseEnable L3 semantic analysis
deepsec.l3DebounceMs2000L3 debounce
deepsec.llmProvider—LLM provider
deepsec.deepsecPythonPath—DeepSec Python path
deepsec.dedupWithExistingToolstrueDeduplicate with SonarQube/Snyk/Semgrep/CodeQL

Quick Fixes:

  • Hallucinated package → suggest alternative package name
  • Hardcoded secret → switch to environment variable lookup
  • yaml.load() → yaml.safe_load()
  • SQL f-string → parameterized query
  • innerHTML → textContent
  • Debug/CORS/host check → mechanical fix

JetBrains

The JetBrains plugin reuses DeepSec diagnostics via the LSP protocol, supporting JetBrains 2025.2+:

cd jetbrains
./gradlew buildPlugin
# 输出: build/distributions/deepsec-*.zip

Rust LSP Preview

A standalone Rust-native L1 LSP Server for lower-latency basic detection:

cargo run --manifest-path rust-lsp/Cargo.toml -- --stdio

CLI Reference

# Shield 命令
deepsec shield scan <path> [--layer all|l1|l2|l3] [--format text|json|sarif|markdown|html] [--stream]
deepsec shield agent-audit <path>
deepsec shield watch <path> [--interval 1.0]
deepsec shield supply-chain check <path> [--private-package pkg]

# Spear 命令
deepsec spear run <target> --authorized <scope.json> [--scope full|web|api|mobile] [--mode quick|standard|deep]
deepsec spear recon <target> --authorized <scope.json>
deepsec spear roles
deepsec spear tools [--role pentester]

# 快照命令
deepsec snapshot create <path> [--mode shield|spear] [--description "..."]
deepsec snapshot list <path>

# 配置命令
deepsec config init
deepsec config set <key> <value>
deepsec config show

# Scope 命令
deepsec scope sign <scope.json>      # (可选)签名 scope,需要 DEEPSEC_SCOPE_SIGNING_KEY
deepsec scope verify <scope.json>    # 校验 scope 结构 / 时间窗口 / 可选签名

# 其他
deepsec tui                          # 启动 TUI
deepsec chat                         # 交互式 Spear 工作台
deepsec tools                        # 列出所有工具
deepsec report <result.json> [--format markdown|json|sarif|html] [--chain]
deepsec restore <snapshot-id>

Roles & Tools

Built-in Roles

RoleModeDescription
pentesterstandardStandard penetration testing
redteamdeepRed team deep attack
auditorstandardSecurity audit (read-only)
blueteamquickBlue team quick validation
ctf_playerquickCTF competition mode

Built-in Tools

ToolCategoryInstall Check
nmapNetworknmap --version
dirsearchWebdirsearch --version
subfinderReconsubfinder -version
httpxWebhttpx -version
feroxbusterWebferoxbuster --version
ffufWebffuf -V
nucleiWebnuclei -version
sqlmapWebsqlmap --version

Custom tools can be added via deepsec/tools/*.yaml, and custom roles via deepsec/roles/*.yaml.


MCP Server

DeepSec ships with a built-in MCP (Model Context Protocol) Server, callable from MCP clients such as Claude Desktop and Cursor:

from deepsec.mcp import MCPServer

server = MCPServer()
server.run()

Supported tools include Shield scanning, Spear recon, report generation, and more.


Testing

# Python 测试
python -m pytest tests/deepsec/ -v

# TypeScript 测试
npm test

# Rust TUI 测试
cargo test --manifest-path tui/Cargo.toml

# Rust LSP 测试
cargo test --manifest-path rust-lsp/Cargo.toml

Current status: 23 Python tests passing · 41 Rust TUI tests passing · TypeScript clean


Docker

docker build -t deepsec:local .
docker run --rm -v "$PWD:/workspace" deepsec:local shield scan /workspace

Contributing

git clone https://github.com/Unclecheng-li/DeepSec.git
cd DeepSec

# Python 开发环境
pip install -e .[dev]

# Node.js IDE 插件开发
nvm use  # Node.js 22 LTS
npm install
npm run build

# Rust TUI 开发
cargo build --manifest-path tui/Cargo.toml

Docs


License

MIT © 2026 DeepSec contributors


For developers shipping AI-generated code — and breaking it before attackers do.

If DeepSec has been helpful, feel free to star the repo or sponsor.

Comments

Loading…

Similar plugins

dsh-skill-pack-security

by PerryLink

Security-audit skill pack + plugin_vet supply-chain gate for DeepSeek Harness (dsh): 8 bilingual agent skills (secret scan, dependency audit, supply-chain review, prompt-injection review, audit orches

Infra & DevOpsManifest valid

★ 22

Apache-2.0

TypeScript

Oct 24, 2026

dsh plugin --profile web add dsh-skill-pack-security

by jiejiushijiehaohao-creator

基于 DeepSeek Harness 的 GitHub 插件静态安全审查预设,该项目代码由ai生成,主要框架由我搭建,通过“侦察员+审计员”双 Agent 协作、通过实验性ai自测攻防。主要功能有防死机上下文裁剪,有效防御投毒与提示词注入。包含21条安全红线、依赖树连坐排查与自动 YAML 校验,这是一名20岁非科班大学生的AI安全探索,欢迎大佬指导。本项目不能代替人工审计。请勿在生产环境或敏感凭证环境中使用。

Manifest valid

★ 0

MIT

JavaScript

Oct 13, 2026

dsh plugin --profile web add dsh-preset-github-plugin-security-review

by jkrandom-sudo

Security audit for DeepSeek Harness plugins: static permission profile with file/line evidence + a runtime sentinel gating credential access and unknown-host egress · DSH 插件安全审计:静态权限画像(附文件/行号证据)+ 运行时哨

Manifest valid

★ 4

↓ 85/wk

MIT

TypeScript

Sep 11, 2026

dsh plugin --profile web add dsh-plugin-audit

by fb0sh

基于 DeepSeek Harness 的多 Agent PTES 渗透测试编排插件,支持自动化侦察、漏洞分析、验证与报告,使用 Docker/Kali 隔离工具箱 | Multi-agent PTES penetration testing plugin for DeepSeek Harness with automated recon, vulnerability analysis, vali

Security & AuditManifest valid

★ 80

↓ 590/wk

NOASSERTION

TypeScript

Oct 28, 2026

dsh plugin --profile web add dsh-pentester

by iJetLi

deepseek-harness plugin: sign in and manage accounts across multiple AI coding providers, with multi-account pools and silent credential refresh

Tools & CapabilitiesModels & ProvidersManifest valid

★ 48

↓ 2.5k/wk

MIT

TypeScript

Oct 28, 2026

dsh plugin --profile web add dsh-providers-hub

by fashionmascherine-svg

DeepSeek Harness plugin (dsh-plugin): complete Polymarket superpowers — 31 verified tools across Gamma/CLOB/Data-API/Perps/RFQ/Bridge, embedded knowhow skill, live WebSocket stream. Read-only by defau

Tools & CapabilitiesManifest valid

★ 3

JavaScript

Oct 7, 2026

dsh plugin --profile web add dsh-polymarket-knowhow