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

New 400,403,600 Maps for Windows PowerShell #21

Merged
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
69 changes: 69 additions & 0 deletions Windows_Powershell_400.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
Author: Brian MacKenna
Description: Engine state is changed from None to Available.
EventId: 400
Channel: Windows 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=(.+)"
# Valid properties include:
# UserName
# RemoteHost
# ExecutableInfo --> used for things like process command line, scheduled task, info from service install, etc.
# PayloadData1 through PayloadData6
# Example XML for this event:
#<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
# <System>
# <Provider Name="PowerShell" />
# <EventID Qualifiers="0">400</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>Available, None, NewEngineState=Available
# PreviousEngineState=None
#
# SequenceNumber=13
#
# HostName=ConsoleHost
# HostVersion=5.1.18362.145
# HostId=3820a72c-10dc-4989-9388-3d4b6523c35f
# HostApplication=powershell -nop -w hidden -encodedcommand JAB...(bad command stuff removed)...ADsA
# EngineVersion=5.1.18362.145
# RunspaceId=b21e91e8-9068-48ae-ac10-15430944932b
# PipelineId=
# CommandName=
# CommandType=
# ScriptName=
# CommandPath=
# CommandLine=</Data>
# <Binary></Binary>
# </EventData>
#</Event>
69 changes: 69 additions & 0 deletions Windows_Powershell_403.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
Author: Brian MacKenna
Description: Engine state is changed from Available to Stopped.
EventId: 403
Channel: Windows 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=(.+)"
# Valid properties include:
# UserName
# RemoteHost
# ExecutableInfo --> used for things like process command line, scheduled task, info from service install, etc.
# PayloadData1 through PayloadData6
# Example XML for this event:
#<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
# <System>
# <Provider Name="PowerShell" />
# <EventID Qualifiers="0">403</EventID>
# <Level>4</Level>
# <Task>4</Task>
# <Keywords>0x80000000000000</Keywords>
# <TimeCreated SystemTime="2001-01-01T01:02:03.012345678Z" />
# <EventRecordID>9</EventRecordID>
# <Channel>Windows PowerShell</Channel>
# <Computer>hostname.domain.tld</Computer>
# <Security />
# </System>
# <EventData>
# <Data>Stopped, Available, NewEngineState=Stopped
# PreviousEngineState=Available
#
# SequenceNumber=15
#
# 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=5.1.18362.145
# RunspaceId=edc7b831-61a1-42d5-ba48-cc1759a51d98
# PipelineId=
# CommandName=
# CommandType=
# ScriptName=
# CommandPath=
# CommandLine=</Data>
# <Binary></Binary>
# </EventData>
#</Event>
68 changes: 68 additions & 0 deletions Windows_Powershell_600.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
Author: Brian MacKenna
Description: Provider is Started.
EventId: 600
Channel: Windows 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=(.+)"
# Valid properties include:
# UserName
# RemoteHost
# ExecutableInfo --> used for things like process command line, scheduled task, info from service install, etc.
# PayloadData1 through PayloadData6
# Example XML for this event:
#<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>