コンテンツにスキップ

WindowsイベントID 4688: 新しいプロセスの作成

新しいプロセスが起動するたびに記録される。実行ファイルのパス・親プロセス・(設定すれば)コマンドラインまで残るため、攻撃の実行を捉える最重要イベントの一つ。

概要

サブカテゴリは Audit Process Creation。プロセスが作成されるたびに生成され、新プロセスのパス(New Process Name)・作成元プロセス(Creator Process Name)・実行アカウントを記録する。既定ではコマンドライン引数は記録されないが、グループポリシー「プロセス作成イベントにコマンドラインを含める」を有効にすると Process Command Line が加わり、検知能力が大きく向上する。

発生契機・方法

  • あらゆるプロセスの起動。アプリ・スクリプト・OSの内部処理を問わず出る。
  • コマンドライン記録には、Audit Process Creationの成功監査に加え、ProcessCreationIncludeCmdLine_Enabled(前述のGPO)の有効化が必要。

セキュリティ上の確認事項

  • 親子関係: Creator Process Name(親)と New Process Name(子)の組で、不審な起動チェーンを検知する。例: winword.exe から powershell.exe、w3wp.exe から cmd.exe など、本来あり得ない親子は侵害の兆候。
  • LOLBins(環境寄生バイナリ): OS標準ツールの悪用を追う。certutil.exe でのファイルダウンロード、regsvr32.exe でのリモートスクリプト実行、mshta / rundll32 / bitsadmin の不審な使い方など。
  • コマンドライン: エンコードされたPowerShell(-enc)、難読化、-nop -w hidden 等の隠密オプション、外部URLの指定を Process Command Line で探す。
  • 実行アカウント・パス(標準フォルダ外や一時フォルダ)も併せて評価する。

ログレビュー時の注意観点

  • すべてのプロセス起動が出るため極めて大量。SIEM前提で、親子関係・コマンドライン・パスを使った相関ルールとして組まないと運用できない。
  • コマンドラインが空欄なら、前述のGPOが未設定の可能性。検知の前提として設定を確認する。
  • コマンドラインにはパスワード等の機微情報が含まれることがあるため、収集・保管時の取り扱いに注意する。
  • EDRやSysmonのイベントID 1(プロセス作成)と役割が重なる。両方ある場合は照らし合わせ、4688だけのときはコマンドライン設定を必ず有効化する。

MITRE ATT&CKとの対応

テクニック戦術このイベントで見えること
T1059.001 PowerShell実行-enc や -nop -w hidden を含むPowerShellの起動
T1059.003 Windows Command Shell実行w3wp.exe などから起動される cmd.exe
T1204.002 Malicious File実行winword.exe などOffice文書からのシェル起動
T1218 System Binary Proxy Executionステルスregsvr32 / mshta / rundll32 などOS標準バイナリの悪用
T1105 Ingress Tool TransferC2certutil.exe や bitsadmin によるファイルのダウンロード

対応はATT&CK v19.2時点のもの。ATT&CKの検知戦略DET0202(T1059.003)でも、このイベントIDがログソースに挙がっている。テクニックから探すときは ATT&CK逆引き を使う。

検知ルール

このイベントIDを条件に使う公開の検知ルールは、Microsoft Sentinelに68件ある。汎用のルールを先に重要度の高い順で並べ、11件目以降は折りたたんでいる。

ルール種類重要度
CertUtil Used for File Download (Living off the Land)Sentinel分析ルール高
New EXE deployed via Default Domain or Default Domain Controller PoliciesSentinel分析ルール高
Security Service Registry ACL ModificationSentinel分析ルール高
WMI Spawning Suspicious Child Process (Living off the Land)Sentinel分析ルール高
Base64 encoded Windows process command-linesSentinel分析ルール中
Email access via active syncSentinel分析ルール中
Gain Code Execution on ADFS Server via Remote WMI ExecutionSentinel分析ルール中
Gain Code Execution on ADFS Server via SMB + Remote Service or Scheduled TaskSentinel分析ルール中
Malware in the recycle binSentinel分析ルール中
Network endpoint to host executable correlationSentinel分析ルール中
ほかのルール(58件)
ルール種類重要度
NRT Base64 Encoded Windows Process Command-linesSentinel分析ルール中
NRT Process executed from binary hidden in Base64 encoded fileSentinel分析ルール中
Potential Build Process CompromiseSentinel分析ルール中
Potential Fodhelper UAC BypassSentinel分析ルール中
Powershell Empire Cmdlets Executed in Command LineSentinel分析ルール中
PowerShell Encoded Command Execution (Living off the Land)Sentinel分析ルール中
Process executed from binary hidden in Base64 encoded fileSentinel分析ルール中
Process Execution Frequency AnomalySentinel分析ルール中
Sdelete deployed via GPO and run recursivelySentinel分析ルール中
Windows Binaries Executed from Non-Default DirectorySentinel分析ルール中
Potential re-named sdelete usageSentinel分析ルール低
Caramel Tsunami Actor IOC - July 2021Sentinel(個別の脅威)高
Dev-0270 Malicious Powershell usageSentinel(個別の脅威)高
DEV-0270 New User CreationSentinel(個別の脅威)高
Dev-0270 Registry IOC - September 2022Sentinel(個別の脅威)高
Dev-0270 WMIC DiscoverySentinel(個別の脅威)高
Identify Mango Sandstorm powershell commandsSentinel(個別の脅威)高
Identify SysAid Server web shell creationSentinel(個別の脅威)高
Unusual identity creation using exchange powershellSentinel(個別の脅威)高
Zinc Actor IOCs files - October 2022Sentinel(個別の脅威)高
Midnight Blizzard - Script payload stored in RegistrySentinel(個別の脅威)中
Midnight Blizzard - suspicious rundll32.exe execution of vbscriptSentinel(個別の脅威)中
Silk Typhoon New UM Service Child ProcessSentinel(個別の脅威)中
Suspicious command line tokens in LolBins or LolScriptsSentinelハンティング中
Remote Task Creation/Update using Schtasks ProcessSentinelハンティング低
Backup DeletionSentinelハンティング-
Commands executed by WMI on new hosts - potential ImpacketSentinelハンティング-
Cscript script daily summary breakdownSentinelハンティング-
Discord download invoked from cmd lineSentinelハンティング-
Domain controller installation media creationSentinelハンティング-
Download of New File Using CurlSentinelハンティング-
Entropy for Processes for a given HostSentinelハンティング-
Enumeration of users and groupsSentinelハンティング-
Establishing internal proxiesSentinelハンティング-
Exchange PowerShell Snapin AddedSentinelハンティング-
External IP address in Command LineSentinelハンティング-
Host Exporting Mailbox and Removing ExportSentinelハンティング-
Hosts Running a Rare ProcessSentinelハンティング-
Hosts Running a Rare Process with CommandlineSentinelハンティング-
Invoke-PowerShellTcpOneLine Usage.Sentinelハンティング-
Least Common Parent And Child Process PairsSentinelハンティング-
Least Common Processes by Command LineSentinelハンティング-
Least Common Processes Including Folder DepthSentinelハンティング-
Metasploit / Impacket PsExec Process Creation ActivitySentinelハンティング-
New Child Process of W3WP.exeSentinelハンティング-
New PowerShell scripts encoded on the commandlineSentinelハンティング-
New processes observed in last 24 hoursSentinelハンティング-
Nishang Reverse TCP Shell in Base64Sentinelハンティング-
Potential Microsoft Security Services TamperingSentinelハンティング-
Powercat DownloadSentinelハンティング-
PowerShell downloadsSentinelハンティング-
Rare Process PathSentinelハンティング-
Rare Processes Run by Service AccountsSentinelハンティング-
Summary of users created using uncommon/undocumented commandline switchesSentinelハンティング-
Suspected LSASS DumpSentinelハンティング-
Suspicious Enumeration using Adfind ToolSentinelハンティング-
TI Map File Entity to Security EventSentinelハンティング-
Uncommon processes - bottom 5%Sentinelハンティング-

このほか、Sigmaの process_creation カテゴリのルール(1415件)は、pySigmaのwindows-auditパイプラインで4688向けに変換できる(Image は NewProcessName に、ParentImage は ParentProcessName に置き換わる)。ルールはSysmonのイベントID 1のフィールドで書かれているため、ハッシュや OriginalFileName など4688にないフィールドを使う条件は一致しない。

ルールはSigmaHQ r2026-07-01と、2026-10-09時点のAzure-Sentinelから、このイベントIDを条件に含むものを集めた。Sentinelは SecurityEvent か WindowsEvent テーブルを使うルールに限る。「個別の脅威」は特定の攻撃グループやマルウェア向け、「要設定」は環境に合わせた値を入れて使うルール。重要度は各ルールの作者が付けた値。

主なフィールド

フィールド意味
New Process Name起動したプロセスのフルパス
Creator Process Name親(作成元)プロセス。Windows 10以降で取得可
Process Command Lineコマンドライン引数(GPO有効時のみ)
Subject\Account Nameプロセスを起動したアカウント
Token Elevation Type昇格状態(管理者トークンか)

用語メモ

  • LOLBins (Living Off the Land Binaries): OSに元から入っている正規ツールを悪用する手口。新たなマルウェアを置かずに攻撃でき、検知を逃れやすい。

参考