← Back to SOC feed Coverage →

Osiris Device Guard Bypass - file Invoke-OSiRis.ps1

yara HIGH signature-base
evasionflorian-roth
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at signature-base →
Retrieved: 2026-08-04T11:00:00Z · Confidence: medium

Hunt Hypothesis

This detection identifies adversaries attempting to bypass Windows Device Guard protections by executing the specific Invoke-OSiRis.ps1 script, a technique often used to evade code integrity controls during initial access or lateral movement phases. Proactive hunting for this behavior in Azure Sentinel is critical because successful bypasses can grant attackers unrestricted execution capabilities, allowing them to deploy custom payloads that would otherwise be blocked by standard security policies.

YARA Rule

rule Invoke_OSiRis {
   meta:
      description = "Osiris Device Guard Bypass - file Invoke-OSiRis.ps1"
      author = "Florian Roth"
      reference = "Internal Research"
      date = "2017-03-27"
      modified = "2025-03-21"
      score = 70
      hash1 = "19e4a8b07f85c3d4c396d0c4e839495c9fba9405c06a631d57af588032d2416e"
      id = "bc0fe826-6c8a-52e6-afb1-85d499093e50"
   strings:
      $x1 = "$null = Iwmi Win32_Process -EnableA -Impers 3 -AuthenPacketprivacy -Name Create -Arg $ObfusK -Computer $Target" ascii wide
      $x3 = "-Arg@{Name=$VarName;VariableValue=$OSiRis;UserName=$env:Username}" ascii wide
      $x4 = "Device Guard Bypass Command Execution" ascii wide
   condition:
      filesize < 8MB
      and 1 of them
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 4 string patterns in its detection logic.

References

False Positive Guidance

Here are 5 specific false positive scenarios for the Osiris Device Guard Bypass rule triggered by Invoke-OSiRis.ps1, along with recommended filters and exclusions:

Original source: https://github.com/Neo23x0/signature-base/blob/main/yara/gen_ps_osiris.yar