0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

(仕事用備忘録)Windowsイベントログ削除ログ1102

0
Posted at

イベントログが削除されたログ
これがあったら危険かも?

ログの名前:         Security
ソース:           Microsoft-Windows-Eventlog
日付:            2026/08/21 23:27:03
イベント ID:       1102
タスクのカテゴリ:      ログの消去
レベル:           情報
キーワード:         成功の監査
ユーザー:          N/A
コンピューター:       DESKTOP-1D3M8AH
説明:
監査ログが消去されました。
サブジェクト:
	セキュリティ ID:	DESKTOP-1D3M8AH\test
	アカウント名:	test
	ドメイン名:	DESKTOP-1D3M8AH
	ログイン ID:	0x586BFCA
イベント XML:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-Eventlog" Guid="{fc65ddd8-d6ef-4962-83d5-6e5cfe9ce148}" />
    <EventID>1102</EventID>
    <Version>1</Version>
    <Level>4</Level>
    <Task>104</Task>
    <Opcode>0</Opcode>
    <Keywords>0x4020000000000000</Keywords>
    <TimeCreated SystemTime="2026-08-21T15:27:03.7044814Z" />
    <EventRecordID>257642</EventRecordID>
    <Correlation />
    <Execution ProcessID="1676" ThreadID="10412" />
    <Channel>Security</Channel>
    <Computer>DESKTOP-1D3M8AH</Computer>
    <Security />
  </System>
  <UserData>
    <LogFileCleared xmlns="http://manifests.microsoft.com/win/2004/08/windows/eventlog">
      <SubjectUserSid>S-1-5-21-174186783-2995220913-2214441074-1001</SubjectUserSid>
      <SubjectUserName>test</SubjectUserName>
      <SubjectDomainName>DESKTOP-1D3M8AH</SubjectDomainName>
      <SubjectLogonId>0x586bfca</SubjectLogonId>
      <ClientProcessId>7384</ClientProcessId>
      <ClientProcessStartKey>9007199254749263</ClientProcessStartKey>
    </LogFileCleared>
  </UserData>
</Event>

実際に実行以前のログが全て消えました。
image

gcc test.c -o test.exe
test.c
#include <stdlib.h>

int main() {
    // セキュリティログをクリア
    system("wevtutil cl Security");
    
    // システムログをクリア
    system("wevtutil cl System");
    
    return 0;
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?