cognis-digital/phishforge

GitHub: cognis-digital/phishforge

一款可自托管的开源网络钓鱼模拟工具,帮助小团队无需重基础设施即可开展安全意识培训活动并生成风险评分报告。

Stars: 0 | Forks: 0

PHISHFORGE # PHISHFORGE ### 开源网络钓鱼模拟 — 活动、模板、培训 [![PyPI](https://img.shields.io/pypi/v/cognis-phishforge.svg?color=6b46c1)](https://pypi.org/project/cognis-phishforge/) [![CI](https://static.pigsec.cn/wp-content/uploads/repos/2026/06/16a72c3413181350.svg)](https://github.com/cognis-digital/phishforge/actions) [![License: COCL 1.0](https://img.shields.io/badge/License-COCL%201.0-2b6cb0.svg)](LICENSE) [![Suite](https://img.shields.io/badge/Cognis-Neural%20Suite-6b46c1.svg)](https://github.com/cognis-digital) *蓝队 / 防御 — 为小团队提供的检测、欺骗和监控。*
``` pip install cognis-phishforge phishforge scan . # → prioritized findings in seconds ``` ## 用法 — 分步指南 `phishforge` 运行用于安全意识培训的网络钓鱼模拟活动(仅限授权的内部使用)。所有输出均在本地进行;不会发送任何电子邮件。 1. **安装**(从克隆的仓库中,可编辑模式): pip install -e . phishforge --version 2. **渲染**每位收件人的模板(需要一个模板 JSON 和一个带有 `email` 列的收件人 CSV 文件): phishforge render --template template.json --recipients recipients.csv \ --campaign q3-awareness --base-url https://sim.example.com 3. **记录结果**并生成活动报告。事件以 `email=event` 的形式传递(例如 `opened`、`clicked`、`submitted`、`reported`): phishforge report --template template.json --recipients recipients.csv \ --campaign q3-awareness --event alice@corp.com=clicked 4. **读取输出** — 使用 `--format json` 获取机器可读的计数、比率和用户风险等级: phishforge --format json score --template template.json \ --recipients recipients.csv --event alice@corp.com=submitted 5. **在 CI 中自动化** — 为安全意识仪表板生成稳定的跟踪 token 和 JSON 报告: phishforge --format json report --template template.json \ --recipients recipients.csv --campaign nightly > report.json ## 目录 - [为什么选择 phishforge?](#why) · [功能](#features) · [快速开始](#quick-start) · [示例](#example) · [架构](#architecture) · [AI 技术栈](#ai-stack) · [对比](#how-it-compares) · [集成](#integrations) · [随处安装](#install-anywhere) · [相关项目](#related) · [贡献](#contributing) ## 为什么选择 phishforge? 开源的网络钓鱼模拟 — 活动、模板、培训 — 无需搭建繁重的基础设施。 `phishforge` 是单一用途、可脚本化且可自托管的:将其指向目标,以您的工作流已使用的格式(表格 · JSON · SARIF)获取优先级排序的结果,通过它来控制 CI,并让 agent 通过 MCP 驱动它。
↑ 返回顶部
## 功能 - ✅ 生成 Token - ✅ 渲染模板 - ✅ 记录事件 - ✅ 风险等级 - ✅ 用户评分 - ✅ 活动报告 - ✅ 可在 Linux/macOS/Windows · Docker · devcontainer 上运行 - ✅ 支持 Python、JavaScript、Go 和 Rust 移植版本 (`ports/`)
↑ 返回顶部
## 快速开始 ``` pip install cognis-phishforge phishforge --version phishforge scan . # scan current project phishforge scan . --format json # machine-readable phishforge scan . --fail-on high # CI gate (non-zero exit) ```
↑ 返回顶部
## 示例 ``` $ phishforge scan . [HIGH ] PHI-001 example finding (./src/app.py) [MEDIUM ] PHI-002 another signal (./config.yaml) 2 findings · risk score 5 · 38ms ```
↑ 返回顶部
## 架构 ``` flowchart LR IN[message / domain] --> P[phishforge
analyze posture] P --> OUT[verdict + report] ```
↑ 返回顶部
## 从任何 AI 技术栈中使用 `phishforge` 与所有流行的 AI 使用方式互操作: - **MCP server** — `phishforge mcp` (Claude Desktop、Cursor、Cognis.Studio、[uncensored-fleet](https://github.com/cognis-digital/uncensored-fleet)) - **兼容 OpenAI / JSON** — 将 `phishforge scan . --format json` 通过管道传递给任何 agent 或 LLM - **LangChain · CrewAI · AutoGen · LlamaIndex** — 一行代码将 CLI/JSON 封装为工具 - **CI / 脚本** — 为非 AI pipeline 提供退出代码 + SARIF
↑ 返回顶部
## 对比 | | **Cognis phishforge** | gophish | |---|:---:|:---:| | 可自托管,无需账号 | ✅ | 视情况而定 | | 单一命令,零配置 | ✅ | ⚠️ | | 用于 CI 的 JSON + SARIF | ✅ | 视情况而定 | | MCP 原生(AI agent) | ✅ | ❌ | | 多语言端口 (JS/Go/Rust) | ✅ | ❌ | | 开源许可证 | ✅ COCL | 视情况而定 | *本着 **gophish/gophish** 的精神打造,以 Cognis 的方式重新构建。遗漏了版权信息?欢迎提交 PR。*
↑ 返回顶部
## 集成 接入您的技术栈:用于代码扫描的 **SARIF**,用于任何场景的 **JSON**,用于 AI agent 的 **MCP server** (`phishforge mcp`),以及用于 SIEM/Slack/Jira 的 webhook 转发器。详见 [`docs/INTEGRATIONS.md`](docs/INTEGRATIONS.md)。
↑ 返回顶部
## 安装 — 各种方式,全平台 ``` pip install "git+https://github.com/cognis-digital/phishforge.git" # pip (works today) pipx install "git+https://github.com/cognis-digital/phishforge.git" # isolated CLI uv tool install "git+https://github.com/cognis-digital/phishforge.git" # uv pip install cognis-phishforge # PyPI (when published) docker run --rm ghcr.io/cognis-digital/phishforge:latest --help # Docker brew install cognis-digital/tap/phishforge # Homebrew tap curl -fsSL https://raw.githubusercontent.com/cognis-digital/phishforge/main/install.sh | sh ``` | Linux | macOS | Windows | Docker | 云平台 | |---|---|---|---|---| | `scripts/setup-linux.sh` | `scripts/setup-macos.sh` | `scripts/setup-windows.ps1` | `docker run ghcr.io/cognis-digital/phishforge` | [DEPLOY.md](docs/DEPLOY.md) (AWS/Azure/GCP/k8s) |
↑ 返回顶部
## 相关的 Cognis 工具 - [`sentrylog`](https://github.com/cognis-digital/sentrylog) — 适合小团队的单文件 SIEM — Sigma 规则 + 多源摄取 - [`edrgap`](https://github.com/cognis-digital/edrgap) — EDR 覆盖和绕过检测器 — 协调 MDM + EDR + AD 清单 - [`canarynet`](https://github.com/cognis-digital/canarynet) — 自托管的 canary token 网络 — AWS 密钥、DNS、文档、Web URL - [`sbomgate`](https://github.com/cognis-digital/sbomgate) — 持续的 SBOM 差异和漏洞监控,包含维护者变更跟踪 - [`honeytrace`](https://github.com/cognis-digital/honeytrace) — 主动诱饵网络诱捕系统 — SSH、RDP、SMB、Web 蜜罐 **探索套件 →** [🗂️ 全部 170+ 工具](https://github.com/cognis-digital/cognis-neural-suite) · [⭐ awesome-cognis](https://github.com/cognis-digital/awesome-cognis) · [🔗 cognis-sources](https://github.com/cognis-digital/cognis-sources) · [🤖 uncensored-fleet](https://github.com/cognis-digital/uncensored-fleet) · [🧠 engram](https://github.com/cognis-digital/engram)
↑ 返回顶部
## 互操作性 `{}` 与包含 300+ 工具的 Cognis 套件组合使用 — JSON 输入/输出以及共享的 兼容 OpenAI 的 `/v1` 主干。请参阅 **[INTEROP.md](INTEROP.md)** 获取 套件图谱、组合模式和参考技术栈。 ## 许可证 在 **Cognis Open Collaboration License (COCL) v1.0** 下源代码可见 — 个人、内部评估、研究和教育用途免费;**商业/生产用途需要许可证** (licensing@cognis.digital)。请参阅 [LICENSE](LICENSE)。
Cognis Digital · 170+ 工具套件之一 Cognis Neural Suite · Making Tomorrow Better Today
标签:LNA, Python, 可视化界面, 开源安全工具, 数据可视化, 无后门, 日志审计, 请求拦截, 逆向工具, 逆向工程平台