forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for FileDelete events (event id 23) to sysmon module (ela…
…stic#18340) FileDelete events were added in Sysmon v11. Prior to this change processing such events lead to an 'unexpected sysmon event_id' error message. Closes elastic#18094 (cherry picked from commit 0a327bb)
- Loading branch information
1 parent
d38ea1b
commit 7630c38
Showing
7 changed files
with
161 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file added
BIN
+68 KB
x-pack/winlogbeat/module/sysmon/test/testdata/sysmon-11-filedelete.evtx
Binary file not shown.
74 changes: 74 additions & 0 deletions
74
x-pack/winlogbeat/module/sysmon/test/testdata/sysmon-11-filedelete.evtx.golden.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
[ | ||
{ | ||
"@timestamp": "2020-05-07T07:27:18.722Z", | ||
"event": { | ||
"code": 23, | ||
"kind": "event", | ||
"module": "sysmon", | ||
"provider": "Microsoft-Windows-Sysmon" | ||
}, | ||
"fields": { | ||
"event": { | ||
"category": [ | ||
"file" | ||
], | ||
"type": [ | ||
"deletion" | ||
] | ||
} | ||
}, | ||
"file": { | ||
"name": "C:\\Windows\\ServiceProfiles\\LocalService\\AppData\\Local\\lastalive0.dat" | ||
}, | ||
"hash": { | ||
"sha1": "115106f5b338c87ae6836d50dd890de3da296367" | ||
}, | ||
"host": { | ||
"name": "vagrant-2012-r2" | ||
}, | ||
"log": { | ||
"level": "information" | ||
}, | ||
"process": { | ||
"entity_id": "{42f11c3b-b2b6-5eb3-18ab-000000000000}", | ||
"executable": "C:\\Windows\\System32\\svchost.exe", | ||
"name": "svchost.exe", | ||
"pid": 776 | ||
}, | ||
"rule": { | ||
"name": "-" | ||
}, | ||
"sysmon": { | ||
"file": { | ||
"archived": true, | ||
"is_executable": false | ||
} | ||
}, | ||
"user": { | ||
"domain": "NT AUTHORITY", | ||
"name": "LOCAL SERVICE" | ||
}, | ||
"winlog": { | ||
"api": "wineventlog", | ||
"channel": "Microsoft-Windows-Sysmon/Operational", | ||
"computer_name": "vagrant-2012-r2", | ||
"event_id": 23, | ||
"process": { | ||
"pid": 664, | ||
"thread": { | ||
"id": 2360 | ||
} | ||
}, | ||
"provider_guid": "{5770385f-c22a-43e0-bf4c-06f5698ffbd9}", | ||
"provider_name": "Microsoft-Windows-Sysmon", | ||
"record_id": 11, | ||
"user": { | ||
"domain": "NT AUTHORITY", | ||
"identifier": "S-1-5-18", | ||
"name": "SYSTEM", | ||
"type": "Well Known Group" | ||
}, | ||
"version": 5 | ||
} | ||
} | ||
] |