Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Parse Security Event Log for ProcessCreation EventID 4688
  • Loading branch information
CarlosCajigas authored Apr 1, 2020
0 parents commit 505c6ae
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Custom.Windows.EventLogs.ProcessCreation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Custom.Windows.EventLogs.ProcessCreation
description: |
Parse Security Event Log for ProcessCreation EventID 4688
by @carlos_cajigas
precondition: SELECT OS From info() where OS = 'windows'

parameters:
- name: processRegex
default: .
- name: parentProcessRegex
default: .
- name: securityLogFile
default: C:/Windows/System32/Winevt/Logs/Security.evtx

sources:
- queries:
- SELECT EventData.NewProcessName AS ProcessName,
EventData.CommandLine AS CommandLine,
EventData.ParentProcessName AS ParentProcessName,
EventData.SubjectUserName AS UserName,
EventData.ProcessId AS ProcessId,
timestamp(epoch=System.TimeCreated.SystemTime) as Time,
System.TimeCreated.SystemTime AS TimeUTC
FROM parse_evtx(filename=securityLogFile)
WHERE System.EventID.Value = 4688
and EventData.NewProcessName =~ processRegex
and EventData.ParentProcessName =~ parentProcessRegex

0 comments on commit 505c6ae

Please sign in to comment.