這個指令做什麼?
事件調查:An account was successfully logged on.。固定提供者 Microsoft-Windows-Security-Auditing;事件 ID 4624。讀取事件證據,不代表偵測到入侵;需結合上下文判讀。 An account was successfully logged on. Subject: Security ID: %1 Account Name: %2 Account Domain: %3 Logon ID: %4 Logon Information: Logon Type: %9 Restricted Admin Mode: %22 Remote Credential Guard: %23 Virtual Account: %26 Elevated Token: %28 Impersonation Level: %21 New Logon: Security ID: %5 Account Name: %6 Account Domain: %7 Logon ID: %8 Linked Logon ID: %27 Network Account Name: %24 Network Account Domain: %25 Logon GUID: %13 Process Information: Process ID: %17 Process Name: %18 Network Information: Workstation Name: %12 Source Network Address: %19 Source Port: %20 Detailed Authentication Information: Logon Process: %10 Authentication Package: %11 Transited Services: %14 Package Name (NTLM only): %15 Key Length: %16 This event is generated when a logon session is created. It is generated on the computer that was accessed. The subject fields indicate the account on the local system which requested the logon. This is most commonly a service such as the Server service, or a local process such as Winlogon.exe or Services.exe. The logon type field indicates the kind of logon that occurred. The most common types are 2 (interactive) and 3 (network). The New Logon fields indicate the account for whom the new logon was created, i.e. the account that was logged on. The network fields indicate where a remote logon request originated. Workstation name is not always available and may be left blank in some cases. The impersonation level field indicates the extent to which a process in the logon session can impersonate. The authentication information fields provide detailed information about this specific logon request. - Logon GUID is a unique identifier that can be used to correlate this event with a KDC event. - Transited services indicate which intermediate services have participated in this logon request. - Package name indicates which sub-protocol was used among the NTLM protocols. - Key length indicates the length of the generated session key. This will be 0 if no session key was requested.
PARAMETERS
參數怎麼填?
回溯時數
必填以本次執行時間往前計算;離線 EVTX 也套用時間範圍。 範圍:1~8760。 預設/範例:24。 必填。
24最多回傳筆數
必填限制輸出筆數;不會變更資料來源。 範圍:1~5000。 預設/範例:100。 必填。
100最多讀取候選事件
必填先以提供者、事件 ID、時間查詢,再比對資料欄位;此上限可能截斷結果。 範圍:1~10000。 預設/範例:1000。 必填。
1000事件通道
必填此事件原始通道;不同 Windows 版本可手動調整。通道未啟用時不會自動啟用。 預設/範例:Security。 必填。
Security離線 EVTX 檔案路徑(選填)
選填填寫後讀取既有 EVTX,不讀取本機通道;空白表示本機。 可留空。
留空;必填時請於執行前設定資料欄位比對方式
必填套用到下方事件專屬欄位;所有非空條件須同時成立。 可選:包含、等於、正規表示式。 必填。
包含事件讀取順序
必填一般日誌可選順序;Analytic/Debug 日誌若要求由舊到新,會自動改採最舊優先。掃描上限會依此順序截斷。 可選:最新優先、最舊優先。 必填。
最新優先SubjectUserSid(win:SID)
選填僅篩選此事件的 SubjectUserSid;空白不限制。原始型別 win:SID,以事件中的文字值比對。 可留空。
留空;必填時請於執行前設定SubjectUserName(win:UnicodeString)
選填僅篩選此事件的 SubjectUserName;空白不限制。原始型別 win:UnicodeString,以事件中的文字值比對。 可留空。
留空;必填時請於執行前設定SubjectDomainName(win:UnicodeString)
選填僅篩選此事件的 SubjectDomainName;空白不限制。原始型別 win:UnicodeString,以事件中的文字值比對。 可留空。
留空;必填時請於執行前設定SubjectLogonId(win:HexInt64)
選填僅篩選此事件的 SubjectLogonId;空白不限制。原始型別 win:HexInt64,以事件中的文字值比對。 可留空。
留空;必填時請於執行前設定TargetUserSid(win:SID)
選填僅篩選此事件的 TargetUserSid;空白不限制。原始型別 win:SID,以事件中的文字值比對。 可留空。
留空;必填時請於執行前設定TargetUserName(win:UnicodeString)
選填僅篩選此事件的 TargetUserName;空白不限制。原始型別 win:UnicodeString,以事件中的文字值比對。 可留空。
留空;必填時請於執行前設定其他事件欄位條件 JSON(選填)
選填例如 {"ProcessId":"1234"}。支援此事件的其餘欄位;此物件只用於比對,不執行程式碼。 可留空。
留空;必填時請於執行前設定