Phishing & social engineering

Field Detail
Summary Authorised phishing / awareness testing (GoPhish, evilginx2)
Category Social engineering / initial access
Phase recon, exploitation
Interface CLI + web
Platform Linux
Licence Open source
Docs https://getgophish.com/documentation/ / https://github.com/kgretzky/evilginx2
Related OSINT and recon, Sliver, Wordlists - SecLists, CeWL, crunch

Simulated phishing and pretexting for authorised security-awareness and red-team engagements — measuring and improving human risk, not harvesting real credentials. This sheet is an orientation to the tooling and the rules; it is deliberately not a recipe for deceiving the public.

⛔ Danger — Legal and ethical hard lines Phishing real people without authorisation is fraud (UK: Fraud Act 2006, Computer Misuse Act, GDPR for the personal data). Only ever run against an organisation that has signed written authorisation covering its own staff, with a defined target list, a dedicated infrastructure, data-handling/retention rules, and a debrief/awareness plan. Never impersonate a real third-party brand or clone a real login to capture live credentials outside that scope. If a scenario would work as genuine fraud, don't build it.

Where it sits in an engagement

  1. OSINT (OSINT and recon) — enumerate the authorised target domain's employees, email format, tech (O365/Google), public info that makes a pretext plausible.
  2. Pretext design — agreed with the client; realistic but clearly a test scenario on your infrastructure.
  3. Infrastructure — your own domain + mail server, TLS, sender reputation/warm-up, categorised domain.
  4. Send + track — measured click/submit/report rates.
  5. Payload or capture — awareness landing page, or (red-team) a tracked credential/session capture or an authorised Sliver implant via an attachment/link.
  6. Debrief — report rates, retrain, improve controls. The reporting rate matters as much as the click rate.

GoPhish — awareness-style campaigns (most common, most defensible)

Open-source campaign manager: build a sending profile, email template, landing page and target group, then track engagement on a dashboard.

# Run the binary; admin UI on https://127.0.0.1:3333 , phishing listener on :80/:443
./gophish

Workflow in the UI: Sending Profile (your SMTP) → Landing Page (training page; can capture submitted data if authorised) → Email Template (with tracking pixel + {{.URL}}/{{.Tracker}} variables) → Users & Groups (the authorised target list) → Campaign (launch, watch opens/clicks/submits/reports).

Best practice: landing pages that redirect to a "this was a test" training page rather than storing passwords; capture only what the scope allows.

evilginx2 — MFA/session phishing (red-team, heavily restricted)

A reverse-proxy phishing framework that can relay a login and capture the session cookie, defeating many MFA setups. Powerful and dangerous — treat as red-team-only, against authorised targets, on infrastructure and accounts explicitly in scope.

  • Concept to understand (and defend against): it proxies the real authentication flow, so the victim sees a genuine session and the attacker captures the resulting token — a session-hijack, not just a password.
  • Defensive relevance (what to put in the report): phishing-resistant MFA (FIDO2/WebAuthn/passkeys) defeats it, as do hardware tokens with origin binding, conditional-access/device-compliance policies, and short token lifetimes.

Configuration specifics are intentionally out of scope for this reference; for an authorised engagement, follow the official documentation on dedicated, scoped infrastructure.

SET (Social-Engineer Toolkit)

setoolkit

Menu-driven classic: spear-phishing, "website attack vectors" (clone/credential-harvester — lab/authorised only), QR codes, payload generation. Useful for learning the techniques in a lab; its site-cloning/harvester features are exactly what the legal/ethical lines above restrict to authorised scope.

Technical signals you'll also test/report

Email authentication posture of the target domain (defensive findings that reduce spoofability):

dig +short TXT target.com | grep -i spf        # SPF record present/strict?
dig +short TXT _dmarc.target.com               # DMARC policy: none|quarantine|reject?
dig +short TXT selector._domainkey.target.com  # DKIM

p=reject DMARC + strict SPF/DKIM makes direct-domain spoofing hard — a common recommendation.

Defensive angle (the real deliverable)

  • Phishing-resistant MFA (FIDO2/passkeys) — beats credential and session phishing.
  • DMARC p=reject, SPF -all, DKIM — stop domain spoofing.
  • Mail filtering, link rewriting/sandboxing, external-sender banners.
  • Easy "report phish" button and a no-blame culture — drive the reporting rate up.
  • Regular awareness training measured over time (GoPhish trend lines).

More: recon & validation commands

# Target email-auth posture (spoofability — defensive findings)
dig +short TXT target.com | grep -i spf
dig +short TXT _dmarc.target.com
for s in selector1 selector2 google default; do dig +short TXT $s._domainkey.target.com; done
# Employee names/emails for the AUTHORISED target (see OSINT sheet)
theHarvester -d target.com -b all
# GoPhish runs locally: admin UI 127.0.0.1:3333, phishing listener :80/:443

Keep campaign tooling (GoPhish / evilginx2 / SET) to signed-authorisation engagements on dedicated infrastructure. The deliverable is click-vs-report rates and control fixes (phishing-resistant MFA, DMARC p=reject).

Kill-chain usage

Recon

theHarvester -d target.com -b all        # build the authorised target list

Exploitation

# GoPhish campaign (authorised) -> measure click vs report rates

Where it fits

The human initial-access vector, feeding OSINT in and (for red teams) a C2 foothold out (Sliver). The strongest framing is measurable awareness improvement and the control recommendations above — keep every scenario inside signed authorisation and never let a simulation function as real fraud.