Skip to content

Commit

Permalink
Merge pull request #171 from AndrewRathbun/master
Browse files Browse the repository at this point in the history
Update Sysmon events with User fields
  • Loading branch information
AndrewRathbun authored Oct 27, 2021
2 parents 1ceebdf + 00d11cf commit 3159737
Show file tree
Hide file tree
Showing 18 changed files with 193 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ EventId: 1
Channel: Microsoft-Windows-Sysmon/Operational
Provider: Microsoft-Windows-Sysmon
Maps:

-
Property: UserName
PropertyValue: "ParentUser: %ParentUser%"
Values:
-
Name: ParentUser
Value: "/Event/EventData/Data[@Name=\"ParentUser\"]"
-
Property: ExecutableInfo
PropertyValue: "%CommandLine%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ EventId: 10
Channel: Microsoft-Windows-Sysmon/Operational
Provider: Microsoft-Windows-Sysmon
Maps:
-
Property: UserName
PropertyValue: "SourceUser: %SourceUser% | TargetUser: %TargetUser%"
Values:
-
Name: SourceUser
Value: "/Event/EventData/Data[@Name=\"SourceUser\"]"
-
Name: TargetUser
Value: "/Event/EventData/Data[@Name=\"TargetUser\"]"
-
Property: ExecutableInfo
PropertyValue: "CallTrace: %CallTrace%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ EventId: 11
Channel: Microsoft-Windows-Sysmon/Operational
Provider: Microsoft-Windows-Sysmon
Maps:
-
Property: UserName
PropertyValue: "%User%"
Values:
-
Name: User
Value: "/Event/EventData/Data[@Name=\"User\"]"
-
Property: PayloadData1
PropertyValue: "ProcessID: %ProcessID%, ProcessGUID: %ProcessGUID%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ EventId: 12
Channel: Microsoft-Windows-Sysmon/Operational
Provider: Microsoft-Windows-Sysmon
Maps:
-
Property: UserName
PropertyValue: "%User%"
Values:
-
Name: User
Value: "/Event/EventData/Data[@Name=\"User\"]"
-
Property: PayloadData1
PropertyValue: "ProcessID: %ProcessID%, ProcessGUID: %ProcessGUID%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ EventId: 13
Channel: Microsoft-Windows-Sysmon/Operational
Provider: Microsoft-Windows-Sysmon
Maps:
-
Property: UserName
PropertyValue: "%User%"
Values:
-
Name: User
Value: "/Event/EventData/Data[@Name=\"User\"]"
-
Property: PayloadData1
PropertyValue: "ProcessID: %ProcessID%, ProcessGUID: %ProcessGUID%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ EventId: 14
Channel: Microsoft-Windows-Sysmon/Operational
Provider: Microsoft-Windows-Sysmon
Maps:
-
Property: UserName
PropertyValue: "%User%"
Values:
-
Name: User
Value: "/Event/EventData/Data[@Name=\"User\"]"
-
Property: PayloadData1
PropertyValue: "ProcessID: %ProcessID%, ProcessGUID: %ProcessGUID%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ EventId: 15
Channel: Microsoft-Windows-Sysmon/Operational
Provider: Microsoft-Windows-Sysmon
Maps:
-
Property: UserName
PropertyValue: "%User%"
Values:
-
Name: User
Value: "/Event/EventData/Data[@Name=\"User\"]"
-
Property: PayloadData1
PropertyValue: "ProcessID: %ProcessID%, ProcessGUID: %ProcessGUID%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ EventId: 17
Channel: Microsoft-Windows-Sysmon/Operational
Provider: Microsoft-Windows-Sysmon
Maps:
-
Property: UserName
PropertyValue: "%User%"
Values:
-
Name: User
Value: "/Event/EventData/Data[@Name=\"User\"]"
-
Property: PayloadData1
PropertyValue: "ProcessID: %ProcessID%, ProcessGUID: %ProcessGUID%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ EventId: 18
Channel: Microsoft-Windows-Sysmon/Operational
Provider: Microsoft-Windows-Sysmon
Maps:
-
Property: UserName
PropertyValue: "%User%"
Values:
-
Name: User
Value: "/Event/EventData/Data[@Name=\"User\"]"
-
Property: PayloadData1
PropertyValue: "ProcessID: %ProcessID%, ProcessGUID: %ProcessGUID%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ EventId: 2
Channel: Microsoft-Windows-Sysmon/Operational
Provider: Microsoft-Windows-Sysmon
Maps:

-
Property: UserName
PropertyValue: "%User%"
Values:
-
Name: User
Value: "/Event/EventData/Data[@Name=\"User\"]"
-
Property: PayloadData1
PropertyValue: "ProcessID: %ProcessID%, ProcessGUID: %ProcessGUID%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ EventId: 22
Channel: Microsoft-Windows-Sysmon/Operational
Provider: Microsoft-Windows-Sysmon
Maps:
-
Property: UserName
PropertyValue: "%User%"
Values:
-
Name: User
Value: "/Event/EventData/Data[@Name=\"User\"]"
-
Property: PayloadData1
PropertyValue: "ProcessID: %ProcessID%, ProcessGUID: %ProcessGUID%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ EventId: 24
Channel: Microsoft-Windows-Sysmon/Operational
Provider: Microsoft-Windows-Sysmon
Maps:
-
Property: UserName
PropertyValue: "%User%"
Values:
-
Name: User
Value: "/Event/EventData/Data[@Name=\"User\"]"
-
Property: ExecutableInfo
PropertyValue: "%Image%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ EventId: 25
Channel: Microsoft-Windows-Sysmon/Operational
Provider: Microsoft-Windows-Sysmon
Maps:
-
Property: UserName
PropertyValue: "%User%"
Values:
-
Name: User
Value: "/Event/EventData/Data[@Name=\"User\"]"
-
Property: ExecutableInfo
PropertyValue: "%Image%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ EventId: 5
Channel: Microsoft-Windows-Sysmon/Operational
Provider: Microsoft-Windows-Sysmon
Maps:
-
Property: UserName
PropertyValue: "%User%"
Values:
-
Name: User
Value: "/Event/EventData/Data[@Name=\"User\"]"
-
Property: ExecutableInfo
PropertyValue: "%FilePath%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ EventId: 7
Channel: Microsoft-Windows-Sysmon/Operational
Provider: Microsoft-Windows-Sysmon
Maps:
-
Property: UserName
PropertyValue: "%User%"
Values:
-
Name: User
Value: "/Event/EventData/Data[@Name=\"User\"]"
-
Property: ExecutableInfo
PropertyValue: "%ImageLoaded%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ EventId: 8
Channel: Microsoft-Windows-Sysmon/Operational
Provider: Microsoft-Windows-Sysmon
Maps:
-
Property: UserName
PropertyValue: "SourceUser: %SourceUser% | TargetUser: %TargetUser%"
Values:
-
Name: SourceUser
Value: "/Event/EventData/Data[@Name=\"SourceUser\"]"
-
Name: TargetUser
Value: "/Event/EventData/Data[@Name=\"TargetUser\"]"
-
Property: PayloadData1
PropertyValue: "StartAddress: %StartAddress%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ EventId: 9
Channel: Microsoft-Windows-Sysmon/Operational
Provider: Microsoft-Windows-Sysmon
Maps:
-
Property: UserName
PropertyValue: "%User%"
Values:
-
Name: User
Value: "/Event/EventData/Data[@Name=\"User\"]"
-
Property: PayloadData1
PropertyValue: "ProcessID: %ProcessID%, ProcessGUID: %ProcessGUID%"
Expand Down
68 changes: 68 additions & 0 deletions evtx/Maps/Windows-PowerShell_PowerShell_800.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
Author: Andrew Rathbun
Description: Pipeline Execution Details
EventId: 800
Channel: Windows PowerShell
Provider: PowerShell
Maps:
-
Property: PayloadData1
PropertyValue: "%HostApplication%"
Values:
-
Name: HostApplication
Value: "/Event/EventData/Data"
Refine: "HostApplication=(.+)"
-
Property: PayloadData2
PropertyValue: "%HostName%"
Values:
-
Name: HostName
Value: "/Event/EventData/Data"
Refine: "HostName=(.+)"
-
Property: PayloadData3
PropertyValue: "%HostVersion%"
Values:
-
Name: HostVersion
Value: "/Event/EventData/Data"
Refine: "HostVersion=(.+)"

# Documentation:
# https://www.myeventlog.com/search/show/975
#
# Example Event Data:
# <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
# <System>
# <Provider Name="PowerShell" />
# <EventID Qualifiers="0">600</EventID>
# <Level>4</Level>
# <Task>6</Task>
# <Keywords>0x80000000000000</Keywords>
# <TimeCreated SystemTime="2001-01-01T01:01:01.012345678Z" />
# <EventRecordID>18</EventRecordID>
# <Channel>Windows PowerShell</Channel>
# <Computer>name.domain.tld</Computer>
# <Security />
# </System>
# <EventData>
# <Data>Registry, Started, ProviderName=Registry
# NewProviderState=Started
#
# SequenceNumber=1
#
# HostName=ConsoleHost
# HostVersion=5.1.18362.145
# HostId=b3dfcb89-d2f8-4b8b-a784-a6a9bcf61bd8
# HostApplication=powershell -command Set-ItemProperty -Path HKCU:\Software\Microsoft\Office\16.0\Outlook\AutoDiscover -Name 'ExcludeExplicitO365Endpoint' -Value 1 -Type DWORD -Force
# EngineVersion=
# RunspaceId=
# PipelineId=
# CommandName=
# CommandType=
# ScriptName=
# CommandPath=
# CommandLine=</Data>
# </EventData>
# </Event>

0 comments on commit 3159737

Please sign in to comment.