Security Solutions
MITRE ATT&CK™ Software Discovery: Security Software Discovery - Technique T1518.001
Theory
Practice
#CMD
wmic /namespace:\\root\securitycenter2 path antivirusproduct
#PowerShell cmdlet
Get-CimInstance -Namespace root/SecurityCenter2 -ClassName AntivirusProduct#Check if running
Get-Service WinDefend#PowerShell cmdlet
Get-MpComputerStatus
Get-MpComputerStatus | select RealTimeProtectionEnabledSet-MpPreference -DisableRealtimeMonitoring $true#Enum if its enabled
Get-NetFirewallProfile
Get-NetFirewallProfile | Format-Table Name, Enabled
#Enum rules
Get-NetFirewallRule | findstr "Rule-Name"Set-NetFirewallProfile -Profile Domain, Public, Private -Enabled FalseTest-NetConnection -ComputerName 127.0.0.1 -Port 80
(New-Object System.Net.Sockets.TcpClient("127.0.0.1", "80")).ConnectedResources
Last updated