Trusted Design

T1004 - Winlogon Helper DLL

概要

Winlogon.exe is a Windows component responsible for actions at logon/logoff as well as the secure attention sequence (SAS) triggered by Ctrl-Alt-Delete. Registry entries in HKLM\Software[Wow6432Node]Microsoft\Windows NT\CurrentVersion\Winlogon\ and HKCU\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\ are used to manage additional helper programs and functionalities that support Winlogon. (Citation: Cylance Reg Persistence Sept 2013)

Malicious modifications to these Registry keys may cause Winlogon to load and execute malicious DLLs and/or executables. Specifically, the following subkeys have been known to be possibly vulnerable to abuse: (Citation: Cylance Reg Persistence Sept 2013)

Adversaries may take advantage of these features to repeatedly execute malicious code and establish Persistence.

管理者によるコメント

T1004「Winlogon Helper DLL」 は、Windowsのログオンプロセスを管理する Winlogon サービスに悪意のあるDLLを登録し、ユーザーのログイン時に自動的にコードを実行させる手法です。

「永続化(Persistence)」と「権限昇格(Privilege Escalation)」の両方に使われる、非常に伝統的かつ強力な手法です。

1. 概要

この手法で攻撃者は、「ユーザーがログインするたびに、システム権限でマルウェアを自動起動させること」を実現します。

何を実現できるのか

2. 攻撃の流れ

攻撃者は、レジストリを書き換えるために管理者権限を入手した後にこの操作を行います。

  1. 悪意のあるDLLの配置:
    攻撃用のDLLをシステム上の目立たない場所(例:C:\Windows\System32\ など)に配置します。

  2. レジストリの書き換え:
    Windowsレジストリの以下のキーを編集します。

    • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\
    • この中の ShellUserinit、あるいは Notify という項目に、悪意のあるDLLや実行ファイルのパスを追記します。
  3. 実行の待機:
    ユーザーが次回ログインするのを待ちます。

  4. コードの自動実行:
    Winlogonが起動する際、レジストリに登録されたパスを読み込み、マルウェアを読み込んで実行します。

3. 防御・対策

「レジストリの監視」と「権限の保護」が防御の要です。

4. 重要ポイント

5. 関連する主なCWE

6. 関連する代表的なCVE

T1004は設定の悪用であるため、特定のソフトウェア脆弱性(CVE)というよりは、OSの仕様を突いた攻撃として分類されます。しかし、これを実現するために悪用される関連脆弱性はあります。

調査のアドバイス

Userinit の値が通常 C:\Windows\system32\userinit.exe,(コンマを含む)になっているか確認してください。これに加えて別のパスが記述されている場合は、感染の可能性を疑う必要があります。

分析

この攻撃手法を利用する脅威アクター

この攻撃手法を利用する脅威アクターは登録されていません。

関連する CVE

攻撃手法 – 脅威アクター Graph


← Technique一覧に戻る ← Tactics一覧に戻る