Detectionhightest
Suspicious Interactive PowerShell as SYSTEM
Detects the creation of files that indicator an interactive use of PowerShell in the SYSTEM user context
Florian Roth (Nextron Systems)Created 2021-12-07Updated 2022-08-135b40a734-99b6-4b98-a1d0-1cea51a08ab2windows
Log Source
WindowsFile Event
ProductWindows← raw: windows
CategoryFile Event← raw: file_event
Events for file system activity including creation, modification, and deletion.
Detection Logic
Detection Logic1 selector
detection:
selection:
TargetFilename:
- 'C:\Windows\System32\config\systemprofile\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt'
- 'C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-Interactive'
condition: selectionFalse Positives
Administrative activity
PowerShell scripts running as SYSTEM user
References
MITRE ATT&CK
Tactics
Sub-techniques
Rule Metadata
Rule ID
5b40a734-99b6-4b98-a1d0-1cea51a08ab2
Status
test
Level
high
Type
Detection
Created
2021-12-07
Modified
2022-08-13
Path
rules/windows/file/file_event/file_event_win_susp_system_interactive_powershell.yml
Raw Tags
attack.executionattack.t1059.001