Trusted Design

T1015 - Accessibility Features

概要

Windows contains accessibility features that may be launched with a key combination before a user has logged in (for example, when the user is on the Windows logon screen). An adversary can modify the way these programs are launched to get a command prompt or backdoor without logging in to the system.

Two common accessibility programs are C:\Windows\System32\sethc.exe, launched when the shift key is pressed five times and C:\Windows\System32\utilman.exe, launched when the Windows + U key combination is pressed. The sethc.exe program is often referred to as "sticky keys", and has been used by adversaries for unauthenticated access through a remote desktop login screen. (Citation: FireEye Hikit Rootkit)

Depending on the version of Windows, an adversary may take advantage of these features in different ways because of code integrity enhancements. In newer versions of Windows, the replaced binary needs to be digitally signed for x64 systems, the binary must reside in %systemdir%\, and it must be protected by Windows File or Resource Protection (WFP/WRP). (Citation: DEFCON2016 Sticky Keys) The debugger method was likely discovered as a potential workaround because it does not require the corresponding accessibility feature binary to be replaced. Examples for both methods:

For simple binary replacement on Windows XP and later as well as and Windows Server 2003/R2 and later, for example, the program (e.g., C:\Windows\System32\utilman.exe) may be replaced with "cmd.exe" (or another program that provides backdoor access). Subsequently, pressing the appropriate key combination at the login screen while sitting at the keyboard or when connected over Remote Desktop Protocol will cause the replaced file to be executed with SYSTEM privileges. (Citation: Tilbury 2014)

For the debugger method on Windows Vista and later as well as Windows Server 2008 and later, for example, a Registry key may be modified that configures "cmd.exe," or another program that provides backdoor access, as a "debugger" for the accessibility program (e.g., "utilman.exe"). After the Registry is modified, pressing the appropriate key combination at the login screen while at the keyboard or when connected with RDP will cause the "debugger" program to be executed with SYSTEM privileges. (Citation: Tilbury 2014)

Other accessibility features exist that may also be leveraged in a similar fashion: (Citation: DEFCON2016 Sticky Keys)

管理者によるコメント

T1015「Accessibility Features」(アクセシビリティ機能) は、Windowsのログオン画面などで利用できる「固定キー機能」や「スクリーンキーボード」といったアクセシビリティ(補助)機能を悪用して、ログインすることなくシステム権限でコマンドを実行する手法です。

この手法は、パスワードを知らなくてもOSを操作できる「バックドア(Backdoor)」として非常に有名です。

1. 概要

この手法で攻撃者は、「ログインパスワードを入力することなく、システム最高権限(SYSTEM)のシェルを取得すること」を実現します。

何を実現できるのか

2. 攻撃の流れ

攻撃者は、あらかじめシステムファイルやレジストリを操作できる権限(管理者権限)を一時的に得るか、物理的にディスクを別OSから読み込むことで仕込みを行います。

  1. ターゲットの特定:
    悪用する機能を選びます。代表的なのは sethc.exe(固定キー機能)や utilman.exe(コンピュータの簡単操作)です。

  2. ファイルの置き換え(またはデバッガ登録):

    • 方法A(置換):
      C:\Windows\System32\sethc.exe をバックアップし、代わりに cmd.exesethc.exe という名前にリネームして配置します。

    • 方法B(レジストリ):
      「イメージファイル実行オプション(IFEO)」というデバッグ機能を悪用し、sethc.exe のデバッガとして cmd.exe を登録します。

  3. トリガーの実行:
    ログイン画面で Shiftキーを5回連打 します。

  4. コード実行:
    Windowsは「固定キー機能」を起動しようとしますが、中身が cmd.exe になっているため、SYSTEM権限のコマンドプロンプトが画面上に表示されます。

3. 防御・対策

「システムファイルの保護」と「レジストリの監視」が不可欠です。

4. 重要ポイント

5. 関連する主なCWE

6. 関連する代表的なCVE

T1015はOSの設計上の挙動を悪用するものであるため、特定のCVEとして管理されることは稀ですが、関連する攻撃ツールや事例は豊富です。

実務上のアドバイス

もし身近なPCで、ログイン画面でShiftキーを5回押して「固定キー機能を有効にしますか?」というダイアログではなく、黒い画面(コマンドプロンプト)が出たら、その端末は既に完全に支配されています。直ちに使用を停止して調査を行う必要があります。

分析

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

関連する CVE

この攻撃手法に関連する CVE は登録されていません。

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


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