当前位置: 首页 > Skill >

shannon渗透测试

shannon渗透测试

shannon渗透测试

基于shannon改进的人工智能驱动白盒渗透测试方法。遵循五阶段流程(前期侦察、侦察、漏洞分析、漏洞利用、报告生成),并形成结构化交付成果。当用户要求对 Web 应用、应用程序接口或源代码进行安全审计、渗透测试、漏洞评估或漏洞利用验证时使用。

1.0.1 2026.11.14 435
获取Skill文件查看使用说明
作 者:周禾 许可证: 更新时间:2026.11.14
本文目录展开

Shannon Pentest Methodology

Principle: No Exploit, No Report. Only report vulnerabilities that have been practically exploited or validated.

Methodology derived from Shannon (AGPL-3.0, Keygraph), adapted for Kimi CLI.

5-Phase Pipeline

Execute phases sequentially. Each phase saves a deliverable to .shannon/deliverables/. Do not skip phases unless the user explicitly requests a subset.

Pre-Recon → Recon → Vulnerability Analysis → Exploitation → Reporting

Phase 1: Pre-Reconnaissance

Goal: External footprinting + initial source-code mapping.

  1. Read references/pre-recon.md.
  2. If target is a live web app/API:
    • Run nmap, subfinder, whatweb via Bash.
    • Capture open ports, subdomains, tech stack fingerprints.
  3. If source code is available:
    • Grep for hardcoded secrets (API_KEY, SECRET, password, token).
    • Identify entry points (controllers, routes, handlers).
  4. Save deliverable: python .claw/skills/shannon-pentest/scripts/save-deliverable.py --type PRE_RECON --content "..."

Phase 2: Reconnaissance

Goal: Browser automation + attack-surface mapping.

  1. Read references/recon.md.
  2. Use Playwright (via Bash or configured MCP) to:
    • Navigate the application, authenticate if credentials/TOTP are provided.
    • Map all forms, links, API endpoints, and URL parameters.
    • Capture screenshots of critical flows.
  3. Correlate dynamic findings with static code analysis.
  4. Save deliverable: --type RECON

Phase 3: Vulnerability Analysis

Goal: Identify concrete vulnerability hypotheses.

  1. Read references/vuln-analysis.md and references/schemas.md.
  2. Launch up to 5 parallel Agent subtasks (one per vulnerability class):
    • injection-vuln (SQLi, Command Injection, SSTI, etc.)
    • xss-vuln (Stored/Reflected/DOM XSS)
    • auth-vuln (Broken Authentication, Session Management)
    • ssrf-vuln (Server-Side Request Forgery)
    • authz-vuln (Broken Access Control, IDOR)
  3. Each agent must output a structured JSON queue matching the schema in references/schemas.md.
  4. Save deliverables: injection_analysis_deliverable.md, xss_analysis_deliverable.md, etc. (use --type INJECTION_ANALYSIS, XSS_ANALYSIS, etc.)

Phase 4: Exploitation

Goal: Validate hypotheses from Phase 3.

  1. Read references/exploitation.md.
  2. For each non-empty vulnerability queue from Phase 3, launch a focused Agent subtask to attempt practical exploitation.
    • Use Bash to run exploit payloads (curl, playwright scripts, custom Python).
    • Capture evidence: HTTP responses, screenshots, source-code diffs.
  3. If a hypothesis cannot be exploited after reasonable effort, mark it unconfirmed and drop it from the report.
  4. Save deliverables: *_exploitation_queue.json and exploitation_evidence/ folder.

Phase 5: Reporting

Goal: Compile only validated findings into a professional report.

  1. Read references/reporting.md.
  2. Aggregate all exploitation evidence from .shannon/deliverables/.
  3. Generate a markdown report with:
    • Executive Summary
    • Risk ratings (CVSS or Critical/High/Medium/Low)
    • Step-by-step reproduction instructions
    • Impact analysis
    • Remediation guidance
  4. Save deliverable: --type REPORT (saved as report.md).

Helper Scripts

TOTP Generation

For 2FA/MFA login flows:

python .claw/skills/shannon-pentest/scripts/generate-totp.py --secret BASE32SECRET

Save Deliverable

Always use the provided script to persist phase outputs:

python .claw/skills/shannon-pentest/scripts/save-deliverable.py --type <TYPE> --content "..."
# Or from file:
python .claw/skills/shannon-pentest/scripts/save-deliverable.py --type <TYPE> --file-path /path/to/content.md

Valid types: PRE_RECON, RECON, INJECTION_ANALYSIS, XSS_ANALYSIS, AUTH_ANALYSIS, SSRF_ANALYSIS, AUTHZ_ANALYSIS, EXPLOITATION_EVIDENCE, REPORT

Workspace Conventions

  • All deliverables live in ./.shannon/deliverables/ (created automatically).
  • Use git init inside .shannon/deliverables/ if you want checkpoint/rollback support.
  • Maintain a scratchpad directory .shannon/scratchpad/ for temporary files, screenshots, and raw tool output.

Error Handling

  • If a tool (nmap, playwright, etc.) is not installed, attempt to install it or ask the user.
  • If an Agent subtask fails, retry once with a more focused prompt. If it still fails, note the failure in the deliverable and continue.
  • Never halt the entire pipeline because one vulnerability-class agent failed.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,015
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,003
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,001
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,000
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,000
Docker私有仓库搭建、镜像上传排错及删除方法

本文介绍如何在CentOS环境下部署Docker私有仓库,解决因HTTPS协议导致的镜像推送失败问题,并说明如何通过第三方工具实现本地仓库中镜像的删除操作。

2026.06.12 1,000
Skill 文件
  • SKILL.md
    • Shannon Pentest Methodology
    • 5-Phase Pipeline
      • Phase 1: Pre-Reconnaissance
      • Phase 2: Reconnaissance
      • Phase 3: Vulnerability Analysis
      • Phase 4: Exploitation
      • Phase 5: Reporting
    • Helper Scripts
      • TOTP Generation
      • Save Deliverable
    • Workspace Conventions
    • Error Handling
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期