Windows event log ยท Windows PowerShell403 Engine state is changed from Available to Stopped
- PowerShell
- 3 fields
Windows PowerShell.evtxPowerShell
Fields EvtxECmd extracts
3 columns in the EvtxECmd CSV
- PayloadData1
%HostApplication%- %HostApplication% = /Event/EventData/Data
- PayloadData2
%HostName%- %HostName% = /Event/EventData/Data
- PayloadData3
%HostVersion%- %HostVersion% = /Event/EventData/Data
Sample event
Event XML from the map file
<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>References
4 links
- static1.squarespace.com/static/552092d5e4b0661088167e5c/t/59c1814829f18782e24f1fe2/1505853768977/Windows+PowerShell+Logging+Cheat+Sheet+ver+Sept+2017+v2.1.pdf(opens in new tab)
- ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=600(opens in new tab)
- powershellmagazine.com/2014/07/16/investigating-powershell-attacks/(opens in new tab)
- nsfocusglobal.com/Attack-and-Defense-Around-PowerShell-Event-Logging(opens in new tab)
Source: evtx/Maps/Windows-PowerShell_PowerShell_403.map(opens in new tab) by Brian MacKenna and contributors(opens in new tab), MIT License(opens in new tab)