Skip to main content
Glama

YeepForge Agent

在你睡觉时工作的 AI 渗透测试工具

capture0x - powered by tmrswrr

Agent OWASP SAST Python Ollama License

给它一个 URL。给它源代码。看它完成渗透测试。


YeepForge 有何不同?

大多数安全工具只是你手动运行的命令菜单。

**YeepForge Agent 与众不同。**它是一个像渗透测试人员一样思考的 AI——它会读取目标,决定下一步攻击什么,把发现串联起来,并交付一份带 CVSS 评分的专业报告。你只需提供一个 URL,其余交给 Agent。

./run.sh --target https://your-target.com
# Select [33] YeepForge Agent → [1] Autonomous Pentest
# Go grab coffee.

Agent

它是如何思考的

Agent 不会随机使用工具。每得到一条结果,它都会分析自己的发现,并决定最明智的下一步:

[ROUND 1] recon_target       → Apache/2.4 + PHP/7.4 + login form detected
             ↓ context: login found
[ROUND 2] test_authentication → Tries default creds: admin:admin → FAILED
             ↓ context: PHP app, has .git?
[ROUND 3] find_sensitive_files→ /.git/config exposed! (Critical)
             ↓ context: /.git exposed = source code leak
[ROUND 4] analyze_source_code → SAST: 3 SQL injections, 2 XSS in source code
             ↓ context: SQLi in /login confirmed in code
[ROUND 5] test_sql_injection  → Dynamic confirm: error-based SQLi at /login
[ROUND 6] report_finding      → CVSS 9.8 - Critical SQL Injection recorded
...
[ROUND N] finish_assessment   → HTML + JSON report generated

一条命令。全面评估。专业报告。


Agent 智能 - 上下文感知决策

Agent 发现的内容

下一步动作

页面上的登录表单

→ 立即跳转到 test_authentication

WordPress / Drupal / Joomla

→ 优先进行 CMS 漏洞扫描

任何响应中出现 SQL 错误

→ 升级执行 test_sql_injection

暴露了 .git.env

→ 标记为严重,继续深挖

JS 文件中的 API 端点

→ 切换至 GraphQL/JSON 目录扫描

WAF 拦截请求

→ 激活 WAF 绕过载荷

提供了源代码

→ 在动态测试之前先运行 SAST

SAST 在代码中发现 SQLi

→ 通过动态 test_sql_injection 进行确认

检测到 PHP

→ 优先进行路径遍历 + 文件包含测试


Agent 模式

[1] Autonomous Pentest   - Full tool-use loop. Set target, press enter, get report.
[2] Interactive Chat     - Talk to the AI. Ask questions, get payloads, explore.
[3] Payload Generator    - "Give me 20 SQLi payloads for WAF bypass" → instant list.
[4] Code Analysis (SAST) - Point to source code → 14 AI skills scan every file.
[5] Set Source Code Path - Enable SAST for the autonomous mode.

Agent 后端 - 免费本地或云端

后端

成本

速度

质量

配置

Ollama - mistral(默认)

免费

优秀

ollama pull mistral

Ollama - llama3.2:3b

免费

最快

良好

ollama pull llama3.2:3b

Ollama - qwen2.5-coder

免费

中等

优秀

ollama pull qwen2.5-coder

Claude API

付费

中等

卓越

ANTHROPIC_API_KEY=sk-ant-...

**无需 API 密钥。**使用 Ollama 即可完全离线运行。

# Free setup - works out of the box
ollama serve
ollama pull mistral
./run.sh  →  [33] Agent  →  [1] Autonomous Pentest

MCP 服务器 - 从 Claude Code / Cursor / Claude Desktop 驱动 YeepForge

YeepForge 同时提供 MCP 服务器版本:它通过 Model Context Protocol 暴露全部 28 个扫描工具(recon_targetcrawl_targettest_sql_injectionnuclei_scan、……)以及 set_engagement。已经拥有 LLM 的主机会使用自己的订阅来驱动测试任务——YeepForge 这边不需要 ANTHROPIC_API_KEY,也不需要本地模型。主机是大脑,YeepForge 是工具箱。

cd YeepForge && claude          # .mcp.json is auto-loaded; approve "yeepforge"
# then: "set the engagement to https://app.example.com, recon and crawl it,
#        test the params for SQLi/XSS, and write a report"

使用 set_engagement 一次性设置目标,YeepForge 就会把目标(以及 cookies/代理/认证信息)注入到之后的每次调用中。Claude Code、Cursor 和 Claude Desktop 的完整配置:docs/mcp.md


Agent 技能 - 引导式渗透测试工作流

YeepForge 在 .claude/skills/ 下捆绑了 Claude Agent Skills,由 Claude Code 自动发现:

  • yeepforge-pentest - 通过 MCP 工具编排完整的测试任务:授权门禁 → 侦察 → 爬取 → OWASP Top 10 测试 → 漏洞利用 → 报告。

  • yeepforge-sast - 驱动源代码分析(analyze_source_code)。

  • security-fuzzing · security-payloads · security-patterns - 供手动测试使用的 SecLists 载荷/字典/密钥模式参考资料。

这三个 security-* 技能是从 awesome-skills-security 引入的(MIT 许可,属于 SecLists 的重分发);有意排除了 web-shell 示例。署名信息请参阅 .claude/skills/NOTICE.md


SAST 代码分析 - 14 项 AI 技能

Agent 可以在动态测试的同时分析源代码。当你提供代码库时:

  1. Agent 读取架构、框架和入口点

  2. 追踪每个用户输入在代码中的流向

  3. 在源代码中发现 SQLi/XSS/RCE/SSRF/JWT/IDOR

  4. 然后通过动态测试进行确认

  5. 输出综合报告:静态 + 动态发现

[4] Code Analysis menu:

  ○ [ 1]  Architecture Analysis  - tech stack · entry points · trust boundaries
  ○ [ 2]  SQL Injection          - string concat · ORM raw queries · 2nd order
  ○ [ 3]  Cross-Site Scripting   - HTML/JS sinks · DOM XSS · template injection
  ○ [ 4]  SSRF                   - outbound HTTP · user-controlled destinations
  ○ [ 5]  Remote Code Execution  - eval · exec · deserialization · OS commands
  ○ [ 6]  XXE                    - XML parsers without entity hardening
  ○ [ 7]  File Upload            - extension bypass · webshell upload paths
  ○ [ 8]  Path Traversal         - file reads with user-controlled paths
  ○ [ 9]  SSTI                   - template engines rendering user data
  ○ [10]  JWT Security           - algorithm confusion · missing validation
  ○ [11]  IDOR                   - missing ownership/authorization checks
  ○ [12]  Missing Auth           - unauthenticated sensitive endpoints
  ○ [13]  Business Logic         - price manipulation · workflow bypass
  ○ [14]  GraphQL                - injection · introspection · batching abuse
  ○ [ F]  Full Scan              - all 14 skills + final consolidated report
  ○ [ R]  Generate Report        - consolidate completed skill results

完整功能集

自动化引擎

模块

作用

[A]

Auto Full Scan

爬取 → 测试全部 OWASP → nikto → nuclei → CVSS 报告

[C]

Web Crawler

链接、表单、JS API、robots.txt、站点地图 - 外加可选的 SPA 无头渲染

[W]

WAF Bypass

14+ 种 WAF 指纹 · 每类 100+ 条绕过载荷

[O]

OOB Collaborator

基于 interactsh 的回调,用于确认盲 SQLi、SSRF、XXE、Log4Shell、CMDi

[33]

AI Agent

自主渗透测试 · 聊天 · 载荷 · SAST 代码分析

OWASP Top 10(2021)

类别

模块

覆盖范围

A01 失效的访问控制

[2]

IDOR · 路径遍历 · 强制浏览 · JWT

A02 加密失败

[3]

敏感文件 · 明文 · 弱哈希 · JS 密钥

A03 注入

[4]

SQLi · XSS · SSTI · CMDi · XXE · NoSQL · LDAP

A04 不安全的设计

[5]

业务逻辑 · 竞态条件 · 批量赋值

A05 安全配置错误

[6]

响应头 · CORS · 调试端点 · 默认凭据

A06 易受攻击的组件

[7]

CVE 扫描 · nikto · CMS 扫描器 · Log4Shell

A07 身份认证失败

[8]

暴力破解 · 会话 · MFA 绕过 · 撞库

A08 完整性失败

[9]

反序列化 · SRI · CI/CD 暴露

A09 日志记录失败

[10]

日志注入 · 堆栈跟踪暴露 · 锁定测试

A10 SSRF

[11]

内部端口 · 云元数据 · gopher · 盲 OOB

高级利用

模块

技术

[17] HTTP 请求走私

CL.TE · TE.CL · TE 混淆 · H2.TE 降级

[18] OAuth / SAML / OIDC

Redirect URI 绕过 · state CSRF · SAML XSW/XXE/重放

[19] WebSocket 安全

CSWSH · 消息注入 · origin 绕过

[20] 缓存投毒

Unkeyed 请求头 · fat GET · 缓存欺骗 · DoS

[21] API 安全

GraphQL introspection · 批量滥用 · REST 枚举

Web 应用攻击

模块

技术

[26] 开放重定向

17 种绕过变体 · scheme 滥用 · ATO 攻击链

[27] 点击劫持

Frame 检测 · PoC 生成器 · 沙箱绕过

[28] CRLF 注入

请求头注入 · 响应拆分 · 日志注入

[29] 子域名接管

25 种服务指纹 · CNAME 劫持 · nuclei

[30] 账户接管

密码重置 · 邮箱更改 · 2FA 绕过

[31] 高级文件上传

Polyglot · SVG XSS · ZIP slip · ImageMagick

[32] HTTP 参数污染

WAF 绕过 · 业务逻辑 · DOM HPP

[37] CSRF

Token 检测 · 绕过 · PoC 生成器 · SameSite

[38] HTTP 方法篡改

PUT/DELETE/TRACE · XST · 方法覆盖

[39] 原型污染

JS __proto__ · PHP 类型混淆 · XPath · 邮件注入

[40] LFI / RFI / PHP 包装器

本地/远程包含 · 日志投毒 · php:// 过滤器

[41] Webshell

生成 · 上传 · 交互 · 混淆 · 反弹 shell

[42] 会话安全

Cookie 属性 · 会话固定 · 超时 · 注销 · 缓存

[43] XXE 注入

经典 · 盲 OOB · billion laughs · 通过 XXE 实现 SSRF

[44] 竞态条件与 IDOR

TOCTOU · 限额超限 · IDOR 自动化 · 业务逻辑

[45] 被动侦察(OSINT)

DNS · Google dorks · GitHub 泄露 · Shodan · 证书 - 零目标流量


快速开始

1. 安装

git clone https://github.com/capture0x/YeepForge
cd YeepForge
chmod +x install.sh run.sh
./install.sh

2. 启动 Ollama(免费 AI 后端)

ollama serve &
ollama pull mistral        # Best instruction following
# or
ollama pull llama3.2:3b   # Fastest

3. 启动 Agent

./run.sh

# Session Setup:
#   Target URL: https://target.example.com

# Main menu → [33] YeepForge Agent → [1] Autonomous Pentest
# Watch the AI work. Get a report.

Agent + SAST(当你拥有源代码时)

./run.sh

# Main menu → [33] YeepForge Agent
#   [5] Set Source Code Path → /path/to/app/source
#   [1] Autonomous Pentest   → runs dynamic + SAST combined
# or:
#   [4] Code Analysis (SAST) → select individual skills

报告

每次评估都会生成一份专业报告:

CONFIDENTIAL - WEB APPLICATION PENETRATION TEST REPORT

┌─ Overall Risk: CRITICAL (CVSS 9.8) ─────────────────────────┐
│  Critical: 2  High: 5  Medium: 8  Low: 3  Total: 18          │
└──────────────────────────────────────────────────────────────┘

Executive Summary ........ auto-generated narrative
Findings Overview ........ sortable table with CVSS v3.1 scores
Detailed Findings ........ cards with: severity · CVSS · OWASP · remediation
OWASP Top 10 Coverage .... visual grid - tested vs not tested
Remediation Priority ..... P1 (24h) / P2 (7d) / P3 (30d) / P4 (quarterly)

**格式:**HTML(可直接打印)· Markdown · JSON(适用于 CI/CD)

[34] Generate Report → [4] All formats
# → reports/yeepforge_report_20260521_143022.html

安装与要求

依赖项

# Python
pip install anthropic requests   # LLM backends + Ollama HTTP

# Headless crawling (optional, ~150MB - needed to see a SPA's attack surface)
pip install playwright && playwright install chromium

# APT security tools
apt install nmap nikto sqlmap gobuster ffuf hydra hashcat \
            wpscan feroxbuster wafw00f whatweb masscan dirb

# Go tools (optional but recommended)
go install github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
go install github.com/hahwul/dalfox/v2@latest
go install github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest

AI 后端设置

# Ollama (recommended - free, local, no key needed)
curl -fsSL https://ollama.com/install.sh | sh
ollama pull mistral              # Best for pentesting
ollama pull llama3.2:3b          # Fastest option
ollama pull qwen2.5-coder:7b     # Best for code analysis

# Claude API (optional - better quality, requires key)
export ANTHROPIC_API_KEY=sk-ant-...
# or add to .env: ANTHROPIC_API_KEY=sk-ant-...

配置(.env

TARGET_URL=https://target.example.com
ENGAGEMENT_NAME=Q4-2026-Pentest
COOKIES=sessionid=abc123; csrftoken=xyz
AUTH_TOKEN=Bearer eyJhbGci...
PROXY=http://127.0.0.1:8080
ANTHROPIC_API_KEY=              # Leave empty to use Ollama
YEEPFORGE_OPSEC=normal          # loud / normal / stealth

模块参考

AUTOMATED
  [A] Auto Full Scan    [C] Web Crawler
  [W] WAF Bypass        [O] OOB Collaborator

OWASP TOP 10
  [1]  Recon            [2]  Broken Access Control
  [3]  Crypto Failures  [4]  Injection
  [5]  Insecure Design  [6]  Security Misconfig
  [7]  Vuln Components  [8]  Auth Failures
  [9]  Integrity        [10] Logging
  [11] SSRF             [12] SAST Code Analysis (AI)

ADVANCED EXPLOITATION
  [17] HTTP Smuggling   [18] OAuth/SAML/OIDC
  [19] WebSocket        [20] Cache Poisoning
  [21] API Security

WEB APPLICATION ATTACKS
  [26] Open Redirect    [27] Clickjacking
  [28] CRLF Injection   [29] Subdomain Takeover
  [30] Account Takeover [31] File Upload (Advanced)
  [32] HTTP Param Poll. [37] CSRF
  [38] Verb Tampering   [39] Prototype Pollution
  [40] LFI / RFI        [41] Webshells
  [42] Session Security [43] XXE Injection
  [44] Race / IDOR      [45] Passive Recon (OSINT)

AI AGENT
  [33] YeepForge Agent  ← START HERE
       [1] Autonomous Pentest
       [2] Interactive Chat
       [3] Payload Generator
       [4] Code Analysis (SAST)
       [5] Set Code Path

UTILITIES
  [34] Generate Report  [35] Session Manager
  [36] Tool Checker

架构

YeepForge/
├── main.py                      # Entry point, menu router
├── modules/
│   ├── agent/                   ← The Brain
│   │   ├── _core.py             # 27 tools, smart routing, SAST integration
│   │   ├── backends.py          # Ollama (mistral/llama/qwen) + Claude adapters
│   │   ├── constants.py         # Model config, timeout, OPSEC settings
│   │   └── logger.py            # Live markdown report writer
│   ├── auto_scanner.py          # Automated OWASP orchestrator
│   ├── crawler.py               # Smart web crawler (links/forms/JS/APIs)
│   ├── waf_bypass.py            # WAF fingerprint + 100+ bypass payloads
│   ├── oob_server.py            # OOB HTTP listener (blind vuln detection)
│   ├── sast_skills/             # 14 analysis skills + report generator (SKILL.md)
│   └── [attack modules]         # Full OWASP + Advanced + Web App coverage
├── reports/                     # HTML/MD/JSON professional reports
└── output/                      # Scan results, agent logs, crawl data

CLI 参考

./run.sh [OPTIONS]

  --target URL       Set target URL directly
  --module KEY       Run module by key (A, C, W, O, 1-45, 33...)
  --session PATH     Load saved session
  --scope PATTERNS   In-scope hosts: '*.example.com,!admin.example.com'
  --proxy URL        Route every request through Burp/ZAP
  --rps N            Cap requests per second (default 10, 0 = unlimited)
  --scope-audit      Warn on out-of-scope requests instead of blocking
  --browser          Render pages in headless Chromium (see a SPA's surface)
  --no-browser       Parse served HTML only; never launch a browser
  --no-banner        Skip ASCII banner
  --list-modules     Print every menu key with its module path and exit
  --non-interactive  Never block on a prompt; use with --module for automation

# Examples
./run.sh --target https://example.com
./run.sh --target https://example.com --scope '*.example.com,!admin.example.com'
./run.sh --target https://example.com --proxy http://127.0.0.1:8080 --rps 4
./run.sh --module 33          # Launch AI Agent directly
./run.sh --module A           # Auto full scan
./run.sh --module 34          # Generate report

# Agent chat commands
/quit               Exit chat
/model mistral      Switch Ollama model
/findings           Show current findings
/context            Show session context
/auto               Toggle auto-execution of CMD suggestions

测试任务安全 - 范围、速率限制、证据

通过 utils/http.py 中的引擎发出的每一个请求都会:

  • 范围检查 - 超出范围的请求在离开你的机器之前就会被阻止。如果没有显式指定 --scope,目标主机及其子域就是范围,因此扫描不会游荡到别人的资产上。

  • 速率限制 - 整个运行过程共享一个预算(--rps,默认 10),并遵循 Retry-After。这正是让你不会被某个项目的封禁名单收录的原因。

  • 代理支持 - --proxy 应用于每一个请求,因此 Burp 的历史记录就是完整的测试任务记录。

  • 记录留痕 - 每条发现都可以附带用于证明它的原始请求/响应以及一条 curl 复现命令,并渲染到 HTML 和 Markdown 报告中。发现还带有置信度级别(Confirmed / Firm / Tentative)。

./run.sh --target https://example.com \
         --scope '*.example.com,!admin.example.com' \
         --proxy http://127.0.0.1:8080 --rps 4

完整的配置参考以及如何针对该客户端编写模块,请参阅 docs/engine.md


道德使用与法律

YeepForge 专为以下用途而构建:

  • 经授权的渗透测试项目

  • 漏洞赏金计划(仅限范围内的目标)

  • CTF 竞赛

  • 安全研究(你自己的系统)

  • 学习与教育

未经明确的书面授权,切勿对任何系统进行测试。

作者对滥用行为不承担任何责任。使用 YeepForge 即表示您确认已获得所有目标的适当授权。

YeepForge 会在您的机器上运行攻击者控制的数据 - 请参阅 SECURITY.md 了解该工具自身的安全状况、如何安全地运行它,以及如何报告 YeepForge 本身的漏洞。


贡献

欢迎提交 Pull Request。CONTRIBUTING.md 涵盖开发环境搭建、如何添加模块,以及两条不容商榷的规则:所有 HTTP 请求都必须通过 utils/http.py,并且任何值都不得被插入到 shell 字符串中。


YeepForge v1.0 - 智能体优先的 Web 安全

capture0x - 由 tmrswrr 驱动

./run.sh → [33] YeepForge Agent → The AI does the rest.

-
license - not tested
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

  • MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.

  • Zero-config MCP security scanner for AI-generated apps. 25K+ vulnerability patterns.

  • Offline methodology engine for authorized penetration testing, CTF, and security research.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/capture0x/YeepForge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server