gophish-campaign
它能做什么
这份指南涵盖使用 GoPhish 工具设置和追踪钓鱼模拟。适合运行授权安全意识测试、并希望统计点击和提交次数的安全团队。
适用场景
- ✓当授权的安全意识测试需要一个带有分组和模板的可追踪活动时。
- ✓当团队想获得关于谁点击了模拟邮件的报告时。
- ✓当防守团队已确认该活动及其发送时间窗口时。
技能链接
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/phisher/gophish-campaign/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为下周二的员工测试设置一个可追踪的钓鱼安全意识活动,并确保所需的批准已经到位?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体通过 GoPhish 界面创建发件配置、目标分组和邮件模板,在获得批准后启动活动,并收集点击和提交事件用于报告。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
GoPhish Campaign
GoPhish drives the credential-harvest landing-page flow and the
click/submit tracking the report needs. Use it for the "fake login
page" path; use evilginx2-proxy instead when you must defeat MFA.
Prerequisites
- GoPhish running in the sandbox (
gophishbinary; admin API onhttps://127.0.0.1:3333, phish server on:80/:443). GOPHISH_API_KEYexported (read from the admin UI once).- The
lure-deconflictionhandshake COMPLETE for this campaign. - A sender domain with SPF/DKIM/DMARC (
lookalike-domain) and a pretext (pretext-engineering).
Flow (REST API)
API=https://127.0.0.1:3333/api
H="Authorization: Bearer $GOPHISH_API_KEY"
# 1. Sending profile (SMTP)
curl -sk -H "$H" -H 'Content-Type: application/json' $API/smtp/ -d '{
"name":"eng-smtp","host":"smtp.lure-domain.example:587",
"from_address":"it-support@lure-domain.example",
"username":"...","password":"...","ignore_cert_errors":true}'
# 2. Target group (from plan/phisher/pretext.md shortlist)
curl -sk -H "$H" -H 'Content-Type: application/json' $API/groups/ -d '{
"name":"wave1","targets":[{"email":"alice@acme.example","first_name":"Alice","last_name":"R"}]}'
# 3. Email template (include the X-Decepticon-Eng header + opt-out URL)
curl -sk -H "$H" -H 'Content-Type: application/json' $API/templates/ -d '{
"name":"sso-migration","subject":"Action needed: SSO re-enrollment",
"html":"<a href=\"{{.URL}}\">Re-enroll</a> {{.Tracker}}"}'
# 4. Landing page (capture creds, then redirect to the real site)
curl -sk -H "$H" -H 'Content-Type: application/json' $API/pages/ -d '{
"name":"sso-landing","html":"<form>...</form>",
"capture_credentials":true,"redirect_url":"https://login.microsoftonline.com"}'
# 5. Launch
curl -sk -H "$H" -H 'Content-Type: application/json' $API/campaigns/ -d '{
"name":"acme-wave1","template":{"name":"sso-migration"},
"page":{"name":"sso-landing"},"smtp":{"name":"eng-smtp"},
"url":"https://login.acme-portal.example","groups":[{"name":"wave1"}]}'
# 6. Poll results
curl -sk -H "$H" $API/campaigns/ | jq '.[].results[] | {email,status}'
Evidence
Each submitted credential → Credential node linked to the User
node with an OBTAINED_VIA edge carrying the campaign id. Save the raw
GoPhish results JSON under evidence/phisher/<campaign>.json.
OPSEC / failsafe
- Send rate matches
opsec_level(stealth ≤2/h, standard ≤20/h). gophish_pause_campaign(PUT $API/campaigns/:id/complete) halts sending instantly on a SOC stop request.- Every template carries the engagement header + opt-out link.
常见问题
该指南追踪什么?
模拟中的点击和表单提交,以便团队报告结果。
需要先获得批准吗?
需要。该指南指出,防守团队必须在发送之前确认该活动。
它只用于培训吗?
它用于在书面范围内进行的安全意识和安全测试,而不是收集真实的凭据。
详情
作者的原始描述
Build and launch a tracked phishing campaign with the GoPhish REST API — sending profile, groups, email template, landing page, launch, and event polling.
热度
- GitHub 星标
- 6.5k
- 排名
- #14116
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/1
评论
- …