Sigma high test sigma

PowerShell Execution With Potential Decryption Capabilities

Detects PowerShell commands that decrypt an ".LNK" "file to drop the next stage of the malware.

View Source

Detection Logic

{
  "selection_img": {
    "Image
| endswith": [
      "\\powershell.exe",
      "\\pwsh.exe"
    ],
    "OriginalFileName": [
      "PowerShell.EXE",
      "pwsh.dll"
    ]
  },
  "selection_cli_dir": {
    "CommandLine
| contains": [
      "Get-ChildItem ",
      "dir ",
      "gci ",
      "ls "
    ]
  },
  "selection_cli_gc": {
    "CommandLine
| contains": [
      "Get-Content ",
      "gc ",
      "cat ",
      "type ",
      "ReadAllBytes"
    ]
  },
  "selection_cli_specific": [
    {
      "CommandLine
| contains
| all": [
        " ^
| ",
        "\\*.lnk",
        "-Recurse",
        "-Skip "
      ]
    },
    {
      "CommandLine
| contains
| all": [
        " -ExpandProperty ",
        "\\*.lnk",
        "WriteAllBytes",
        " .length "
      ]
    }
  ],
  "condition": "all of selection_*"
}

False Positives

  • ⚠ Unlikely

Field Validations

Loading…

Comments (0)

Loading comments...