performing-initial-access-with-evilginx3
它能做什么
EvilGinx3 是一款模拟“中间人”攻击的工具,用于窃取登录信息和会话 Cookie。安全团队可以借助它测试身份盗窃防护措施是否有效。
适用场景
- ✓当你需要通过模拟攻击来测试公司安全性时。
- ✓当你需要验证数据窃取防御措施是否正常工作时。
- ✓当你在执行定期安全审计时。
技能链接
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-initial-access-with-evilginx3/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“模拟一次钓鱼攻击,获取 Microsoft 365 的凭据和会话 Cookie。”
每周 5 个新技能,1 分钟读完。
工作原理
该工具会位于受害者与真实网站之间,复制用户输入的信息和会话 Cookie。这样测试人员无需密码或双因素认证,就能“进入”受害者的账户。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Performing Initial Access with EvilGinx3
Overview
EvilGinx3 is a man-in-the-middle attack framework used for phishing login credentials along with session cookies, enabling bypass of multi-factor authentication (MFA). Unlike traditional credential phishing that only captures usernames and passwords, EvilGinx3 operates as a transparent reverse proxy between the victim and the legitimate authentication service, intercepting the full authentication flow including MFA tokens and session cookies. This makes it the primary tool for red teams demonstrating the risk of adversary-in-the-middle (AiTM) attacks against organizations relying solely on MFA for protection.
When to Use
- When conducting security assessments that involve performing initial access with evilginx3
- When following incident response procedures for related security events
- When performing scheduled security testing or auditing activities
- When validating security controls through hands-on testing
Prerequisites
- Familiarity with red teaming concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
Objectives
- Deploy EvilGinx3 with custom phishlets targeting authorized scope
- Configure DNS and SSL certificates for the phishing domain
- Capture session tokens that bypass MFA protections
- Import stolen session cookies into a browser to hijack authenticated sessions
- Integrate with GoPhish or custom delivery mechanisms for phishing email campaigns
- Document the complete attack chain from phishing email to authenticated access
MITRE ATT&CK Mapping
- T1566.002 - Phishing: Spearphishing Link
- T1557 - Adversary-in-the-Middle
- T1539 - Steal Web Session Cookie
- T1078 - Valid Accounts
- T1556 - Modify Authentication Process
- T1550.004 - Use Alternate Authentication Material: Web Session Cookie
Workflow
Phase 1: Infrastructure Setup
- Register a convincing lookalike domain (e.g., using homoglyphs or typosquatting)
- Provision a VPS and point the domain's DNS A record to the server IP
- Install EvilGinx3:
git clone https://github.com/kgretzky/evilginx2.git cd evilginx2 make sudo ./bin/evilginx -p ./phishlets - Configure the domain and IP in EvilGinx3:
config domain example-phish.com config ipv4 <server-ip> - EvilGinx3 automatically provisions Let's Encrypt certificates for configured hostnames
Phase 2: Phishlet Configuration
- Select or create a phishlet for the target service (e.g., Microsoft 365, Google Workspace):
phishlets hostname o365 login.example-phish.com phishlets enable o365 - Verify phishlet is active and SSL certificate is issued:
phishlets - Create a lure URL for the phishing campaign:
lures create o365 lures get-url 0 - Optionally configure a redirect URL for post-capture:
lures edit 0 redirect_url https://legitimate-site.com
Phase 3: Phishing Delivery
- Craft a pretext email with the lure URL embedded
- Use GoPhish or manual SMTP for email delivery:
# Integration with EvilGoPhish for combined campaigns # Provides GoPhish email tracking + EvilGinx3 credential capture - Implement URL masking or shortening if needed for link obfuscation
- Deploy landing page with appropriate social engineering pretext
Phase 4: Session Hijacking
- Monitor EvilGinx3 for captured sessions:
sessions sessions <session-id> - Extract captured session cookies from the session:
# Session output includes: # - Username and password # - Session cookies (authentication tokens) # - Custom captured parameters - Import session cookies into a browser using a cookie editor extension:
- Export cookies in JSON format
- Use Cookie-Editor or EditThisCookie browser extension
- Navigate to the target service to validate session hijack
- Establish persistent access by creating application passwords or OAuth tokens
Phase 5: Post-Access Activities
- Enumerate mailbox contents, contacts, and shared drives
- Identify additional targets for lateral phishing
- Check for access to connected cloud applications (SharePoint, Teams, OneDrive)
- Document all captured credentials and access achieved
Tools and Resources
| Tool | Purpose | Platform |
…
常见问题
什么是“中间人”?
就像有人插到一段对话中间,偷听或截取双方的内容一样。在数字世界里,该工具会介于你和你访问的网站之间。
什么是“会话 Cookie”?
这是网站存储在浏览器中的小文件,用来记住你已经登录。窃取这些 Cookie,别人就可以在不知道你密码的情况下使用你的账户。
使用这个工具需要授权吗?
需要。在任何环境中使用 EvilGinx3 之前,都必须获得明确授权。它是为经过授权的安全测试(红队演练)而设计的。
详情
作者的原始描述
Perform authorized initial access using EvilGinx3 adversary-in-the-middle phishing framework to capture session tokens and bypass multi-factor authentication during red team engagements.
热度
- GitHub 星标
- 35k
- 排名
- #8244
- 许可证
- Apache-2.0
- 更新时间
- 2026/8/31
评论
- …
同一仓库的更多技能
abusing-dpapi-for-credential-access
35k为你的 AI 智能体提供针对特定任务的现成指令,让它完成得更好、更快。
abusing-shadow-credentials-for-privesc
35k教你的 AI 智能体写出清晰、结构良好的文本。
achieving-cmmc-level-2-compliance
35k帮助你的智能体搭建符合 CMMC Level 2 合规要求的环境。它会落实安全要求,并管理必要的文档。
acquiring-disk-image-with-dd-and-dcfldd
35k帮助你的智能体创建硬盘的精确副本。这能确保调查过程中信息不丢失、不被篡改。