Detectionhightest

Potential Persistence Via Powershell Search Order Hijacking - Task

Detects suspicious powershell execution via a schedule task where the command ends with an suspicious flags to hide the powershell instance instead of executeing scripts or commands. This could be a sign of persistence via PowerShell "Get-Variable" technique as seen being used in Colibri Loader

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
Martin Mueller, Florian Roth (Nextron Systems)Created Fri Apr 08Updated Fri Feb 03b66474aa-bd92-4333-a16c-298155b120dfwindows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic1 selector
detection:
    selection:
        ParentImage: 'C:\WINDOWS\System32\svchost.exe'
        ParentCommandLine|contains|all:
            - '-k netsvcs'
            - '-s Schedule'
        CommandLine|endswith:
            - ' -windowstyle hidden'
            - ' -w hidden'
            - ' -ep bypass'
            - ' -noni'
    condition: selection
False Positives
Unknown

False positive likelihood has not been assessed. Additional context may be needed during triage.

Related Rules
Similar

6e8811ee-90ba-441e-8486-5653e68b2299

Rule not found
Rule Metadata
Rule ID
b66474aa-bd92-4333-a16c-298155b120df
Status
test
Level
high
Type
Detection
Created
Fri Apr 08
Modified
Fri Feb 03
Path
rules/windows/process_creation/proc_creation_win_schtasks_powershell_persistence.yml
Raw Tags
attack.privilege-escalationattack.executionattack.persistenceattack.t1053.005attack.t1059.001
View on GitHub