Trusted Design

T1165 - Startup Items

概要

Per Apple’s documentation, startup items execute during the final phase of the boot process and contain shell scripts or other executable files along with configuration information used by the system to determine the execution order for all startup items (Citation: Startup Items). This is technically a deprecated version (superseded by Launch Daemons), and thus the appropriate folder, /Library/StartupItems isn’t guaranteed to exist on the system by default, but does appear to exist by default on macOS Sierra. A startup item is a directory whose executable and configuration property list (plist), StartupParameters.plist, reside in the top-level directory.

An adversary can create the appropriate folders/files in the StartupItems directory to register their own persistence mechanism (Citation: Methods of Mac Malware Persistence). Additionally, since StartupItems run during the bootup phase of macOS, they will run as root. If an adversary is able to modify an existing Startup Item, then they will be able to Privilege Escalate as well.

管理者によるコメント

T1165は「Startup Items(スタートアップアイテム)」として定義されていた、macOS環境のシステムブート時に実行される自動起動手法です。

macOSの極めて古い起動システムの仕様を悪用し、特定のシステムフォルダにスクリプトやバイナリを配置することで、「Macが起動した直後」にマルウェアを自動的にroot権限(最高権限)で実行させる手法です。

1. 概要

この手法で攻撃者は、「ユーザーがログインする前の段階で、OSの最高権限(root)を伴ったバックドアを自動起動させること」を実現します。

何を実現できるのか

2. 攻撃の仕組み

macOSのスタートアップアイテムは、特定のフォルダ内に「実行スクリプト(またはバイナリ)」と、実行順序などを定義したStartupParameters.plist」という設定ファイルをセットで配置する仕様になっています。

攻撃者は、システム全体に影響を与える以下のフォルダを標的にします。

3. 防御・対策と「Appleによる非推奨化」

これが最も重要なポイントですが、この「Startup Items(T1165)」はAppleによって何年も前に公式に「非推奨(廃止)」とされた古い仕様です。

Appleは OS X 10.4(Tiger)の時代に、より安全で洗練されたサービス管理アーキテクチャである launchd(T1159/T1160で解説した Launch Agent や Launch Daemon)を導入しました。

4. 関連する主なCWE

実務上のアドバイス

インシデント調査において、現代のMacであれば T1165(Startup Items)が使われるリスクは極めて低く、攻撃者はほぼ確実に T1160(Launch Daemon)T1159(Launch Agent) を選択します。

しかし、古いMacのフォレンジック調査を行う際は、基本のチェックリストとして /Library/StartupItems/ の中身が空であるか、あるいは見覚えのないスクリプトが残っていないかを確認する癖をつけておくと、見落としのない確実なトリアージが可能になります。

分析

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

関連する CVE

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


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