Agent Skillsasamassekou10/ship-safe › ship-safe-deep

ship-safe-deep

GitHub

结合正则扫描与LLM污点分析,执行深度安全审计以验证漏洞可利用性。适用于需高置信度结果、降低误报率的安全审查场景。

claude-code-plugin/skills/ship-safe-deep/SKILL.md asamassekou10/ship-safe

Trigger Scenarios

用户请求进行深度安全审计 需要验证漏洞的可利用性以减少误报

Install

npx skills add asamassekou10/ship-safe --skill ship-safe-deep -g -y
More Options

Non-standard path

npx skills add https://github.com/asamassekou10/ship-safe/tree/main/claude-code-plugin/skills/ship-safe-deep -g -y

Use without installing

npx skills use asamassekou10/ship-safe@ship-safe-deep

指定 Agent (Claude Code)

npx skills add asamassekou10/ship-safe --skill ship-safe-deep -a claude-code -g -y

安装 repo 全部 skill

npx skills add asamassekou10/ship-safe --all -g -y

预览 repo 内 skill

npx skills add asamassekou10/ship-safe --list

SKILL.md

Frontmatter
{
    "name": "ship-safe-deep",
    "description": "Run a deep security audit with LLM-powered taint analysis — regex scan nominates findings, then an LLM verifies taint reachability and exploitability. Use when the user wants thorough, high-confidence results with fewer false positives.",
    "argument-hint": "[path] [--local] [--budget <cents>]"
}

Ship Safe — Deep Analysis (LLM-Powered)

You are a senior security engineer running Ship Safe's deep analysis mode, which combines regex-based scanning with LLM-powered taint verification.

Step 1: Check for LLM provider

Deep analysis requires either:

  • An API key: ANTHROPIC_API_KEY, OPENAI_API_KEY, or GOOGLE_API_KEY
  • Ollama running locally (use --local flag)

Check if the user has a provider available:

echo "ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:+set}" "OPENAI_API_KEY=${OPENAI_API_KEY:+set}" "GOOGLE_API_KEY=${GOOGLE_API_KEY:+set}"

If no key is set, ask the user if they want to use --local (requires Ollama) or set an API key.

Step 2: Run the deep audit

npx ship-safe@latest audit $ARGUMENTS --deep --json --no-ai 2>/dev/null

For local Ollama:

npx ship-safe@latest audit $ARGUMENTS --deep --local --json --no-ai 2>/dev/null

With budget control:

npx ship-safe@latest audit $ARGUMENTS --deep --budget 100 --json --no-ai 2>/dev/null

Step 3: Interpret deep analysis results

Findings with deepAnalysis have LLM-verified taint information:

{
  "deepAnalysis": {
    "tainted": true,
    "sanitized": false,
    "exploitability": "confirmed",
    "reasoning": "User input from req.body flows to SQL query without parameterization"
  }
}

Exploitability levels:

  • confirmed: Clear, unsanitized path from user input to dangerous sink — fix immediately
  • likely: Probable taint path but LLM could not fully trace it — investigate
  • unlikely: Taint path exists but sanitization or context makes exploitation difficult
  • false_positive: No real vulnerability — static value, test code, or properly sanitized

Step 4: Present results

For each finding with deep analysis:

  1. Show the exploitability verdict prominently
  2. Include the LLM's reasoning
  3. For "confirmed" findings, read the source file and offer a specific fix
  4. For "false_positive" findings, note they can be baselined

Group findings by exploitability (confirmed first, then likely, then unlikely).

Step 5: Cost summary

Show the deep analysis cost:

  • Number of findings analyzed
  • Approximate cost in cents
  • Provider used

Important Notes

  • The --deep flag only analyzes critical and high severity findings (cost optimization)
  • Default budget is 50 cents — use --budget to adjust
  • Without an API key or --local, deep analysis is silently skipped and you get standard results
  • The --no-ai flag is intentional — Claude Code is the AI layer; ship-safe's built-in classification is separate from deep taint analysis

Version History

  • 68eeae0 Current 2026-07-25 09:52

Same Skill Collection

claude-code-plugin/skills/ship-safe-baseline/SKILL.md
claude-code-plugin/skills/ship-safe-ci/SKILL.md
claude-code-plugin/skills/ship-safe-fix/SKILL.md
claude-code-plugin/skills/ship-safe-hooks/SKILL.md
claude-code-plugin/skills/ship-safe-red-team/SKILL.md
claude-code-plugin/skills/ship-safe-score/SKILL.md
claude-code-plugin/skills/ship-safe/SKILL.md

Metadata

Files
0
Version
2bc9fe3
Hash
330231d6
Indexed
2026-07-25 09:52

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-22 01:29
浙ICP备14020137号-1 $mapa de visitantes$