forked from Neo23x0/Raccine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
rule SUSP_PowerShell_Loader_Generic { | ||
meta: | ||
description = "Detects different kinds of PowerShell loaders" | ||
author = "Florian Roth" | ||
date = "2020-12-10" | ||
score = 60 | ||
reference = "https://app.any.run/tasks/93fa402c-c6d7-4bc6-bf88-1ec954ae7f51/" | ||
strings: | ||
/* catch the ones that are easy to catch */ | ||
$s1 = "powershell" ascii nocase | ||
$s2 = "-w hidden" ascii nocase | ||
$s3 = " -e" nocase | ||
$enc01 = " IABz" | ||
$enc02 = " IABT" | ||
$enc03 = " cwBl" | ||
$enc04 = " cwBF" | ||
$enc05 = " UwBl" | ||
$enc06 = " UwBF" | ||
$enc07 = " SUVYI" | ||
$enc08 = " aWV4I" | ||
$enc09 = " SQBFAFgA" | ||
$enc10 = " aQBlAHgA" | ||
/* catch the ones that try to hide */ | ||
$p1 = "powershell" nocase fullword | ||
/* filter valid casing */ | ||
$pf1 = "powershell" fullword | ||
$pf2 = "Powershell" fullword | ||
$pf3 = "PowerShell" fullword | ||
$pf4 = "POWERSHELL" fullword | ||
$pf5 = "powerShell" fullword | ||
condition: | ||
/* simple */ | ||
( all of ($s*) and 1 of ($e*) ) or | ||
/* casing anomalies */ | ||
$p1 and not 1 of ($pf*) | ||
} |