performing-initial-access-with-evilginx3
できること
EvilGinx3は、「中間者攻撃」をシミュレーションして、ログイン情報やセッションCookieを盗み取る状況を再現するツールです。セキュリティチームは、ID盗難対策が機能しているかどうかをテストできます。
使う場面
- ✓攻撃をシミュレーションして、企業のセキュリティをテストするとき。
- ✓データ窃取への防御が機能しているかを確認するとき。
- ✓定期的なセキュリティ監査を実施するとき。
スキルのリンク
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-initial-access-with-evilginx3/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“フィッシング攻撃をシミュレーションして、Microsoft 365の認証情報とセッションCookieを取得してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このツールは、被害者と本物のWebサイトの間に入り込み、入力された情報とセッション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 |
…
よくある質問
「中間者攻撃」とは何ですか?
会話の途中に割り込んで、やり取りを盗み聞きしたり横取りしたりする行為のようなものです。デジタルの世界では、ツールがあなたと利用中のWebサイトの間に割り込みます。
「セッションCookie」とは何ですか?
ログイン済みであることを覚えておくために、Webサイトがブラウザに保存する小さなファイルです。この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
35kAIエージェントに、明確で構成のしっかりした文章の書き方を教えます。
achieving-cmmc-level-2-compliance
35kエージェントがCMMC Level 2への準拠に向けた環境を整えられるようにします。セキュリティ要件を実装し、必要なドキュメントを管理します。
acquiring-disk-image-with-dd-and-dcfldd
35kエージェントがハードディスクの完全なコピーを作成できるようにします。調査中に情報が失われたり改変されたりしないようにするのに役立ちます。
似ているスキル
test-driven-development
311k機能や修正を作る前に、まず失敗するテストを書き、それが失敗するのを確認してから、合格させる最小のコードを書くようエージェントに教えます。
verification-before-completion
311kタスク、修正、ビルドが完了した、または合格したと主張する前に、実際のチェックを実行し、その出力を読むようエージェントに教えます。
migrate-to-shoehorn
310kテストファイル内の危険な型キャストを、shoehornライブラリに置き換え、テストが部分的なデータを使いつつ型チェックを通るようにします。