gophish-campaign
What it does
This guide covers setting up and tracking a phishing simulation with the GoPhish tool. It is for security teams running authorized awareness tests who want clicks and submissions counted.
When to use it
- ✓When an authorized awareness test needs a tracked campaign with groups and templates.
- ✓When a team wants reports on who clicked a simulated message.
- ✓When the defending team has acknowledged the campaign and its send window.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/phisher/gophish-campaign/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Please set up a tracked phishing awareness campaign for our staff test next Tuesday, with the required approvals in place.”
5 new skills a week. 1 minute to read.
How it works
The agent creates the sending profile, target groups and email template through the GoPhish interface, launches the campaign after approval, and collects click and submit events for the report.
Technical content (original SKILL.md)
Original text by the author, straight from 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.
FAQ
What does the guide track?
Clicks and form submissions in the simulation, so the team can report results.
Does it need approval first?
Yes. The guide says the defending team must acknowledge the campaign before it sends.
Is it for training only?
It is for awareness and security testing under written scope, not for collecting real credentials.
Details
Original description by the author
Build and launch a tracked phishing campaign with the GoPhish REST API — sending profile, groups, email template, landing page, launch, and event polling.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #14116
- License
- Apache-2.0
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
detector-overview
6.5kHelps your agent read code that a scanner flagged and decide which flagged spots are real security bugs and which are false alarms.
exploiter-overview
6.5kHelps your agent join several confirmed security weaknesses into one test chain and check how far that chain could reach.
llm-redteam-overview
6.5kHelps your agent find the right AI red-team guide for a test, covering 15 tactic groups from prompt injection to model abuse.
aatmf-t01-prompt-injection
6.5kExplains prompt injection, where hidden instructions try to override an AI system, so security testers can check for it.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.