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

Standardized all maps. Added Documentation. #52

Merged
merged 1 commit into from
Dec 21, 2020
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
161 changes: 161 additions & 0 deletions evtx/Maps/!Channel-Name_Provider-Name_EventID.guide
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
Author: Your name/contact information (optional) goes here
Description: Event description goes here
EventId: EventID number goes here
Channel: Channel goes here
Provider: Provider goes here
# Delete all of these commented lines before submitting your map, including those after the Property values below. Below is an example of Properties and how they can be used in your map.
# Filename for the map should follow the title of this file. _ separates Channel from Provider from EventID. - replaces any spaces or special characters in either Channel Name or Provider Name. Your filename may be long and that is okay.
# The value for "Property: " must be one of the following: RemoteHost, Username, ExecutableInfo, PayloadData1, PayloadData2, PayloadData3, PayloadData4, PayloadData5, or PayloadData6.
# The value(s) for "PropertyValue: " must match whatever you list below under Values for the Name(s). PropertyValue will determine how the data pulled from Name and Value will look to the end user within the CSV output.
# When organizing your PayloadData columns, if your event is similar to preexisting maps, try to follow the same pattern others follow for consistency during analysis. A good example of this is the Sysmon logs.
# PayloadData5 below includes an example of using regex.
# PayloadData6 below includes an example of a Lookup Table.
# No space between "Provider:"" and "Maps:", please.
Maps:
-
Property: Username # Username --> if at all possible, try to include DOMAIN\username if that information is recorded in the event.
PropertyValue: "%domain%\\%user%"
Values:
-
Name: domain
Value: "/Event/EventData/Data[@Name=\"SubjectDomainName\"]"
-
Name: user
Value: "/Event/EventData/Data[@Name=\"SubjectUserName\"]"
-
Property: RemoteHost # RemoteHost --> used for IP addresses, hostname, or anything else that could identify a remote host within an event.
PropertyValue: "%Address%"
Values:
-
Name: Address
Value: "/Event/UserData/EventXML/Address"
-
Property: ExecutableInfo # ExecutableInfo --> used for things like process command line, scheduled task, info from service install, etc.
PropertyValue: "%ProcessName%"
Values:
-
Name: ProcessName
Value: "/Event/EventData/Data[@Name=\"ProcessName\"]"
-
Property: PayloadData1 # PayloadData1 through PayloadData6 --> use these to logically organize the data that normally resides within the Payload column into something more human readable and easily scannable when examining EVTXECmd CSV output. Delete whatever you don't need as not all events have enough data to populate all 6 PayloadData columns.
PropertyValue: "Target: %TargetDomainName%\\%TargetUserName%"
Values:
-
Name: TargetDomainName
Value: "/Event/EventData/Data[@Name=\"TargetDomainName\"]"
-
Name: TargetUserName
Value: "/Event/EventData/Data[@Name=\"TargetUserName\"]"
-
Property: PayloadData2
PropertyValue: "Target: %TargetDomainName%\\%TargetUserName%"
Values:
-
Name: TargetDomainName
Value: "/Event/EventData/Data[@Name=\"TargetDomainName\"]"
-
Name: TargetUserName
Value: "/Event/EventData/Data[@Name=\"TargetUserName\"]"
-
Property: PayloadData3
PropertyValue: "Target: %TargetDomainName%\\%TargetUserName%"
Values:
-
Name: TargetDomainName
Value: "/Event/EventData/Data[@Name=\"TargetDomainName\"]"
-
Name: TargetUserName
Value: "/Event/EventData/Data[@Name=\"TargetUserName\"]"
-
Property: PayloadData4
PropertyValue: "Target: %TargetDomainName%\\%TargetUserName%"
Values:
-
Name: TargetDomainName
Value: "/Event/EventData/Data[@Name=\"TargetDomainName\"]"
-
Name: TargetUserName
Value: "/Event/EventData/Data[@Name=\"TargetUserName\"]"
-
Property: PayloadData5 # Here is an example of regex taken from Cisco-AnyConnect-Secure-Mobility-Client_acvpnagent_2127.map.
PropertyValue: "%PayloadData5% assigned"
Values:
-
Name: PayloadData5
Value: "/Event/EventData/Data"
Refine: "IPv4 address: [0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}"
-
Property: PayloadData6
PropertyValue: "Wake source: %WakeSourceType%"
Values:
-
Name: WakeSourceType
Value: "/Event/EventData/Data[@Name=\"WakeSourceType\"]"
Lookups: # Here is an example of a Lookup Table taken from System_Microsoft-Windows-Power-Troubleshooter_1.map. For more examples, check Microsoft-Windows-TerminalServices-RDPClient-Operational_Microsoft-Windows-TerminalServices-ClientActiveXCore_1026.map and System_Microsoft-Windows-Kernel-Power_42.map.
-
Name: WakeSourceType
Default: Unknown code
Values:
0: Unknown
1: Power button
3: Waking from sleep to hibernate
5: Device (See WakeSourceText for details)
6: Timer (See WakeSourceText for details)

# Delete this line. Please follow the below format when submitting your map. Also, be sure to test your map out on your own data so you know it produces the desired result!
#
# Documentation:
# insert relevant link(s) here, i.e. official Microsoft documentation, any relevant research, blogs, etc. One URL per line, please, and be sure to comment it out! If there is none, please write N/A.
#
# Delete this line. Under Example Event Data, please "cite your source" and cleanse your data of any identifying information so the community can see how these events record the data in the XML format. To convert a .evtx file to XML format, check the README and search for XML. Microsoft often has example XML data that can be used. For other events, be sure sensitive data is removed before you make a commit to GitHub!
#
# Example Event Data:
#- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
#- <System>
# <Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-A5BA-3E3B0328C30D}" />
# <EventID>4742</EventID>
# <Version>0</Version>
# <Level>0</Level>
# <Task>13825</Task>
# <Opcode>0</Opcode>
# <Keywords>0x8020000000000000</Keywords>
# <TimeCreated SystemTime="2015-08-14T02:35:01.252397000Z" />
# <EventRecordID>171754</EventRecordID>
# <Correlation />
# <Execution ProcessID="520" ThreadID="1108" />
# <Channel>Security</Channel>
# <Computer>DC01.contoso.local</Computer>
# <Security />
# </System>
#- <EventData>
# <Data Name="ComputerAccountChange">-</Data>
# <Data Name="TargetUserName">WIN81$</Data>
# <Data Name="TargetDomainName">CONTOSO</Data>
# <Data Name="TargetSid">S-1-5-21-3457937927-2839227994-823803824-6116</Data>
# <Data Name="SubjectUserSid">S-1-5-21-3457937927-2839227994-823803824-1104</Data>
# <Data Name="SubjectUserName">dadmin</Data>
# <Data Name="SubjectDomainName">CONTOSO</Data>
# <Data Name="SubjectLogonId">0x2e80c</Data>
# <Data Name="PrivilegeList">-</Data>
# <Data Name="SamAccountName">-</Data>
# <Data Name="DisplayName">-</Data>
# <Data Name="UserPrincipalName">-</Data>
# <Data Name="HomeDirectory">-</Data>
# <Data Name="HomePath">-</Data>
# <Data Name="ScriptPath">-</Data>
# <Data Name="ProfilePath">-</Data>
# <Data Name="UserWorkstations">-</Data>
# <Data Name="PasswordLastSet">-</Data>
# <Data Name="AccountExpires">-</Data>
# <Data Name="PrimaryGroupId">-</Data>
# <Data Name="AllowedToDelegateTo">%%1793</Data>
# <Data Name="OldUacValue">0x80</Data>
# <Data Name="NewUacValue">0x2080</Data>
# <Data Name="UserAccountControl">%%2093</Data>
# <Data Name="UserParameters">-</Data>
# <Data Name="SidHistory">-</Data>
# <Data Name="LogonHours">-</Data>
# <Data Name="DnsHostName">-</Data>
# <Data Name="ServicePrincipalNames">-</Data>
# </EventData>
# </Event>
149 changes: 149 additions & 0 deletions evtx/Maps/!Channel-Name_Provider-Name_EventID.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
Author: Your name/contact information (optional) goes here
Description: Event description goes here
EventId: EventID number goes here
Channel: Channel goes here
Provider: Provider goes here
Maps:
-
Property: Username
PropertyValue: "%domain%\\%user%"
Values:
-
Name: domain
Value: "/Event/EventData/Data[@Name=\"SubjectDomainName\"]"
-
Name: user
Value: "/Event/EventData/Data[@Name=\"SubjectUserName\"]"
-
Property: RemoteHost
PropertyValue: "%Address%"
Values:
-
Name: Address
Value: "/Event/UserData/EventXML/Address"
-
Property: ExecutableInfo
PropertyValue: "%ProcessName%"
Values:
-
Name: ProcessName
Value: "/Event/EventData/Data[@Name=\"ProcessName\"]"
-
Property: PayloadData1
PropertyValue: "Target: %TargetDomainName%\\%TargetUserName%"
Values:
-
Name: TargetDomainName
Value: "/Event/EventData/Data[@Name=\"TargetDomainName\"]"
-
Name: TargetUserName
Value: "/Event/EventData/Data[@Name=\"TargetUserName\"]"
-
Property: PayloadData2
PropertyValue: "Target: %TargetDomainName%\\%TargetUserName%"
Values:
-
Name: TargetDomainName
Value: "/Event/EventData/Data[@Name=\"TargetDomainName\"]"
-
Name: TargetUserName
Value: "/Event/EventData/Data[@Name=\"TargetUserName\"]"
-
Property: PayloadData3
PropertyValue: "Target: %TargetDomainName%\\%TargetUserName%"
Values:
-
Name: TargetDomainName
Value: "/Event/EventData/Data[@Name=\"TargetDomainName\"]"
-
Name: TargetUserName
Value: "/Event/EventData/Data[@Name=\"TargetUserName\"]"
-
Property: PayloadData4
PropertyValue: "Target: %TargetDomainName%\\%TargetUserName%"
Values:
-
Name: TargetDomainName
Value: "/Event/EventData/Data[@Name=\"TargetDomainName\"]"
-
Name: TargetUserName
Value: "/Event/EventData/Data[@Name=\"TargetUserName\"]"
-
Property: PayloadData5
PropertyValue: "%PayloadData5% assigned"
Values:
-
Name: PayloadData5
Value: "/Event/EventData/Data"
Refine: "IPv4 address: [0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}"
-
Property: PayloadData6
PropertyValue: "Wake source: %WakeSourceType%"
Values:
-
Name: WakeSourceType
Value: "/Event/EventData/Data[@Name=\"WakeSourceType\"]"
Lookups:
-
Name: WakeSourceType
Default: Unknown code
Values:
0: Unknown
1: Power button
3: Waking from sleep to hibernate
5: Device (See WakeSourceText for details)
6: Timer (See WakeSourceText for details)

# Documentation:
#
#
# Example Event Data:
#- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
#- <System>
# <Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-A5BA-3E3B0328C30D}" />
# <EventID>4742</EventID>
# <Version>0</Version>
# <Level>0</Level>
# <Task>13825</Task>
# <Opcode>0</Opcode>
# <Keywords>0x8020000000000000</Keywords>
# <TimeCreated SystemTime="2015-08-14T02:35:01.252397000Z" />
# <EventRecordID>171754</EventRecordID>
# <Correlation />
# <Execution ProcessID="520" ThreadID="1108" />
# <Channel>Security</Channel>
# <Computer>DC01.contoso.local</Computer>
# <Security />
# </System>
#- <EventData>
# <Data Name="ComputerAccountChange">-</Data>
# <Data Name="TargetUserName">WIN81$</Data>
# <Data Name="TargetDomainName">CONTOSO</Data>
# <Data Name="TargetSid">S-1-5-21-3457937927-2839227994-823803824-6116</Data>
# <Data Name="SubjectUserSid">S-1-5-21-3457937927-2839227994-823803824-1104</Data>
# <Data Name="SubjectUserName">dadmin</Data>
# <Data Name="SubjectDomainName">CONTOSO</Data>
# <Data Name="SubjectLogonId">0x2e80c</Data>
# <Data Name="PrivilegeList">-</Data>
# <Data Name="SamAccountName">-</Data>
# <Data Name="DisplayName">-</Data>
# <Data Name="UserPrincipalName">-</Data>
# <Data Name="HomeDirectory">-</Data>
# <Data Name="HomePath">-</Data>
# <Data Name="ScriptPath">-</Data>
# <Data Name="ProfilePath">-</Data>
# <Data Name="UserWorkstations">-</Data>
# <Data Name="PasswordLastSet">-</Data>
# <Data Name="AccountExpires">-</Data>
# <Data Name="PrimaryGroupId">-</Data>
# <Data Name="AllowedToDelegateTo">%%1793</Data>
# <Data Name="OldUacValue">0x80</Data>
# <Data Name="NewUacValue">0x2080</Data>
# <Data Name="UserAccountControl">%%2093</Data>
# <Data Name="UserParameters">-</Data>
# <Data Name="SidHistory">-</Data>
# <Data Name="LogonHours">-</Data>
# <Data Name="DnsHostName">-</Data>
# <Data Name="ServicePrincipalNames">-</Data>
# </EventData>
# </Event>
9 changes: 6 additions & 3 deletions evtx/Maps/Application_Application-Hang_1002.map
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ Maps:
Name: Data
Value: "/Event/EventData/Data[text()]"

# Valid properties include:

# Documentation:
# https://www.manageengine.com/products/eventlog/kb/event-1002-application-hang-error-help.html
# https://kb.eventtracker.com/evtpass/evtpages/EventId_1002_ApplicationHang_61398.asp
#
# Example Event Data:
# <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
# <System>
# <Provider Name="Application Hang" />
Expand Down Expand Up @@ -44,4 +47,4 @@ Maps:
# <Data>Unknown</Data>
# <Binary>{Binary}</Binary>
# </EventData>
# </Event>
# </Event>
15 changes: 6 additions & 9 deletions evtx/Maps/Application_HitmanPro-Alert_911.map
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,11 @@ Maps:
-
Name: Data
Value: "/Event/EventData/Data"


# Valid properties include:
# UserName
# RemoteHost
# ExecutableInfo --> used for things like process command line, scheduled task, info from service install, etc.
# PayloadData1 through PayloadData6


# Documentation:
# N/A
#
# Example Event Data:
#<Event>
# <System>
# <Provider Name="HitmanPro.Alert" />
Expand All @@ -37,4 +34,4 @@ Maps:
# <Binary></Binary>
# </EventData>
#</Event>
#<Event>
12 changes: 5 additions & 7 deletions evtx/Maps/Application_Microsoft-Windows-Audit-CVE_1.map
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@ Maps:
Name: AdditionalDetails
Value: "/Event/EventData/Data[@Name=\"AdditionalDetails\"]"

# Valid properties include:
# UserName
# RemoteHost
# ExecutableInfo --> used for things like process command line, scheduled task, info from service install, etc.
# PayloadData1 through PayloadData6

#Sample Event
# Documentation:
# https://nullsec.us/windows-event-log-audit-cve/
# https://youtu.be/ebmW42YYveI
#
# Example Event Data:
#<System>
# <Provider Name="Microsoft-Windows-Audit-CVE" Guid="{85a62a0d-7e17-485f-9d4f-749a287193a6}" />
# <EventID>1</EventID>
Expand Down
8 changes: 5 additions & 3 deletions evtx/Maps/Application_MsiInstaller_10002.map
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ Maps:
Name: Files
Value: "/Event/UserData/RmApplicationEvent/Files/File[text()]"

# Valid properties include:

# Documentation:
# https://kb.eventtracker.com/evtpass/evtpages/EventId_10002_Microsoft-Windows-RestartManager_62090.asp
#
# Example Event Data:
# <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
# <System>
# <Provider Name="Microsoft-Windows-RestartManager" Guid="{GUID}" />
Expand Down Expand Up @@ -63,4 +65,4 @@ Maps:
# </Files>
# </RmApplicationEvent>
# </UserData>
# </Event>
# </Event>
Loading