Skip to content

Commit af13f5c

Browse files
committed
Update Find-MicrosoftDefender-DetectionEvents.ps1
1 parent 728ce1b commit af13f5c

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

Pwsh/Events/Find-MicrosoftDefender-DetectionEvents.ps1

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,53 @@ $query = Get-WinEvent @getWinEventSplat
1515
$query | Join-string -sep ("`n`n") -p Message
1616
$query | Ft -auto
1717

18+
<# outputs
19+
$query[1]|fl * -Force
20+
21+
Message :
22+
Microsoft Defender Antivirus has detected malware or other potentially unwanted software.
23+
For more information please see the following: https://go.microsoft.com/fwlink/?linkid=37020&name=Trojan:PowerShell/ScriptSmug.A&threatid=2147914598&enterprise=0
24+
Name: Trojan:PowerShell/ScriptSmug.A
25+
ID: 2147914598
26+
Severity: Severe
27+
Category: Trojan
28+
Path: file:_G:\2023-git\SeeminglyScience👨\dotfiles\Documents\PowerShell\NamespaceAwareCompletion.ps1
29+
Detection Origin: Local machine
30+
Detection Type: Concrete
31+
Detection Source: User
32+
User: nin8\cppmo_000
33+
Process Name: C:\Users\cppmo_000\AppData\Local\GitHubDesktop\app-3.4.1\resources\app\git\mingw64\bin\git.exe
34+
Security intelligence Version: AV: 1.413.626.0, AS: 1.413.626.0, NIS: 1.413.626.0
35+
Engine Version: AM: 1.1.24050.5, NIS: 1.1.24050.5
36+
Id : 1116
37+
Version : 0
38+
Qualifiers :
39+
Level : 3
40+
Task : 0
41+
Opcode : 0
42+
Keywords : -9223372036854775808
43+
RecordId : 95171
44+
ProviderName : Microsoft-Windows-Windows Defender
45+
ProviderId : 11cd958a-c507-4ef3-b3f2-5fd9dfbd2c78
46+
LogName : Microsoft-Windows-Windows Defender/Operational
47+
ProcessId : 6756
48+
ThreadId : 25376
49+
MachineName : nin8
50+
UserId : S-1-5-18
51+
TimeCreated : 2024-07-01 10:58:54 AM
52+
ActivityId :
53+
RelatedActivityId :
54+
ContainerLog : Microsoft-Windows-Windows Defender/Operational
55+
MatchedQueryIds : {}
56+
Bookmark : System.Diagnostics.Eventing.Reader.EventBookmark
57+
LevelDisplayName : Warning
58+
OpcodeDisplayName : Info
59+
TaskDisplayName :
60+
KeywordsDisplayNames : {}
61+
Properties : {System.Diagnostics.Eventing.Reader.EventProperty, System.Diagnostics.Eventing.Reader.EventProperty,
62+
63+
#>
64+
1865
<#
1966
# A defender module. It uses CIM. Very slow.
2067

0 commit comments

Comments
 (0)