
Mythos Agent
io.github.mythos-agent由 GitHub 账号 mythos-agent 发布v4.0.1更新于 Oct 27, 2026
Open-source AI security agent: SAST, DAST, and policy-as-code over MCP.
概览
开源 AI 安全代码审查代理,可扫描本地代码库中的漏洞、密钥、依赖与 IaC 问题,并给出修复建议。
- 可以做什么
- 扫描代码中的漏洞模式、密钥泄露、依赖 CVE、IaC 配置错误,以及 API、JWT、加密与隐私问题
- 运行多阶段自主 hunt:生成假设、验证发现并生成概念验证利用
- 按根因模式查找已知 CVE 的变体,并进行数据流污点分析
- 生成 AI 补丁、回答自然语言安全问题,并将发现映射到 SOC2/HIPAA/PCI/OWASP 策略
- 导出终端、JSON、HTML 或 SARIF 报告,并提供本地仪表盘
- 监听文件变化持续扫描,并检查已安装的外部安全工具
- 适用场景
- 适合让助手审查本地代码仓库的安全问题、按置信度筛选发现,或检查某个已知 CVE 的根因模式是否出现在代码其他地方。适用于发布前或拉取请求过程中的安全导向代码审查。
- 运行要求
- 以本地 npm 包形式运行(npx mythos-agent),需要桌面环境。模式、密钥、依赖与 IaC 扫描无需 API 密钥;完整的自主 hunt 与 AI 功能需配置模型提供方(Anthropic,或通过配置或 ANTHROPIC_BASE_URL 环境变量接入 OpenAI 兼容或本地端点)。可选安装 Semgrep、Gitleaks、Trivy、Checkov、Nuclei 等外部工具以扩大覆盖。
安装
在 SourceWeft 中
- 打开 控制台中的 Mythos Agent,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
English · 简体中文
[mythos-agent — Cerby the guard puppy]
[mythos-agent — 10-second security check demo]
mythos-agent
AI code-review assistant for application security.
Open-source. Reads your code, flags likely security issues, explains its reasoning, suggests fixes.
[CI] [npm] [License] [Discord] [Node] [Wired scanners] [Experimental scanners] [Rules]
Quick Start • How It Works • Commands • Hunt Mode • Variant Analysis • Integrations • Contributing • Vision • Roadmap
mythos-agent reviews your code the way a reviewer on a security-focused team would. It walks through likely issue patterns, checks for variants of known CVEs, ranks findings by confidence, and suggests fixes you can accept or reject. See VISION.md for the full framing.
For new contributors: the active 6-month working plan is in the pinned issue
[Roadmap] mythos-agent H1 2026 Goals. Look for 🙋 markers to spot items where help is wanted. New here? See CONTRIBUTING.md forgood-first-issueguidance.For security teams and EU CRA-compliant downstream manufacturers: see SECURITY.md for our vulnerability disclosure SLAs, docs/security/cra-stance.md for our EU CRA role declaration, docs/security/threat-model.md for our public threat model, and RELEASES.md for our versioning, LTS, and EOL policy. OpenSSF Best Practices Badge (Passing) submission targeted June 2026; releases are signed via Sigstore and ship with CycloneDX SBOMs for downstream Manufacturer compliance.
Quick Start
How It Works
mythos-agent combines three things no other open-source tool does together:
1. Hypothesis-Driven Scanning
Instead of matching known patterns, the AI reasons about what COULD go wrong, generating hypotheses like "this transaction doesn't lock the row, potential race condition" or "this auth check uses string comparison, potential timing attack."
2. Variant Analysis (Big Sleep technique)
Given a known CVE, mythos-agent finds structurally similar but syntactically different code in your codebase. Same root cause, different location. This is how Google's Big Sleep found 20 real zero-days.
3. Multi-Stage Verification
Every finding goes through a confidence pipeline:
- Pattern scan → candidate
- AI hypothesis → theoretical risk confirmed
- Smart fuzzer → dynamically tested
- PoC generator → concrete exploit proves it's real
Only findings that survive multiple stages are reported as "confirmed."
Commands
Hunt Mode
mythos-agent hunt runs the full multi-agent pipeline:
Variant Analysis
Find code in your project that has the same root cause as known CVEs:
The variant analyzer extracts the root cause pattern from the CVE (not the surface syntax) and searches your codebase for structurally similar code.
Scanners (15 wired + 28 experimental, 329+ rules)
The Default scanners run on every mythos-agent scan. Experimental scanners are implemented + unit-tested classes that ship in the tarball but are not yet reachable from any CLI, HTTP, MCP, or agent entry point. They are tracked by KNOWN_EXPERIMENTAL in the wiring-invariant test.
Additional experimental scanners (21 more, not yet wired into default scan)
SQL injection deep, XSS deep, NoSQL, command injection, deserialization, path traversal, open redirect, XXE, input validation, clickjacking, DNS rebinding, subdomain enumeration, dep confusion, environment variables, logging, error handling, cache, email, upload, memory safety, permissions.
Each exists as a class under src/scanner/ and has unit tests in src/scanner/__tests__/coverage-scanners.test.ts / new-scanners.test.ts, but is not invoked by any CLI command, HTTP API route, MCP handler, or agent pipeline. See KNOWN_EXPERIMENTAL in the wiring-invariant test for each scanner's deferral reason. Wiring one up follows the pattern of the HeadersScanner / JwtScanner / SessionScanner / BusinessLogicScanner commits on main.
Beyond the scanners above, mythos-agent ships complementary analyses (not counted in the scanner totals): call-graph + taint engine, DAST smart fuzzer, AI hypothesis agent, variant analysis, and git-history mining.
External tool integrations: Semgrep (30+ languages), Gitleaks (100+ patterns), Trivy (SCA + containers), Checkov (1000+ IaC policies), Nuclei (9000+ DAST templates)
Integrations
AI Providers
Pattern scanning, secrets, deps, and IaC work without any API key.
See docs/multi-model.md for the full tier-system policy + the staged rollout (this README is the summary; that doc is the canonical reference).
Comparison
This feature table is a capability comparison, not an accuracy claim. For reproducible, third-party-runnable accuracy numbers vs Semgrep CE / Snyk Code / CodeQL on OWASP Benchmark, CyberSecEval 3, Vul4J, and our CVE replay harness, see docs/benchmarks/external-scores.md.
Contributing
See CONTRIBUTING.md for details.
Architecture
License
MIT
来源:README.md,提交 a14abd1
工具
0版本历史
1- v4.0.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分