Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Sysmon events with User fields #171

Merged
merged 1 commit into from
Oct 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>