diff --git a/third_party/yara/bartblaze/APT/StormDNS.yar b/third_party/yara/bartblaze/APT/StormDNS.yar new file mode 100644 index 000000000..9a6415a10 --- /dev/null +++ b/third_party/yara/bartblaze/APT/StormDNS.yar @@ -0,0 +1,36 @@ +rule StormDNS +{ + meta: + id = "75nX2TPCk53RAhU55yBeFd" + fingerprint = "v1_sha256_542a8af37bd4bc18218190cd82495146a4daa5d01db24804b9ff16ff04023a5a" + version = "1.0" + date = "2025-07-24" + modified = "2025-07-24" + status = "RELEASED" + sharing = "TLP:WHITE" + source = "BARTBLAZE" + author = "@bartblaze" + description = "Identifies StormDNS, a DNS shell used by Storm-260 to receive and execute commands from a C2." + category = "MALWARE" + malware = "STORMDNS" + malware_type = "WEBSHELL" + reference = "https://www.microsoft.com/en-us/security/blog/2025/07/22/disrupting-active-exploitation-of-on-premises-sharepoint-vulnerabilities" + hash = "1eb914c09c873f0a7bcf81475ab0f6bdfaccc6b63bf7e5f2dbf19295106af192" + + strings: + $str_a = "Slept for %d seconds" + $str_b = "Failed to allocate memory" + $str_c = "cmd.exe /c %s 2>&1" + $str_d = "Failed to execute command" + $str_e = "Failed to reallocate memory" + $str_f = "Command executed with no output" + $str_g = "fragment_received" + $str_h = "result_received" + $str_i = "s%st%04zup%04zu" + + $pdb_part = "\\work\\tools\\ak47c2\\" + $pdb_full = "C:\\Users\\Administrator\\Desktop\\work\\tools\\ak47c2\\dnsclinet-c\\dnsclient\\x64\\Release\\dnsclient.pdb" + + condition: + 8 of ($str_*) or any of ($pdb_*) +} diff --git a/third_party/yara/bartblaze/RELEASE b/third_party/yara/bartblaze/RELEASE index bc45860e1..3d5c3703b 100644 --- a/third_party/yara/bartblaze/RELEASE +++ b/third_party/yara/bartblaze/RELEASE @@ -1 +1 @@ -255135e922b571965ab942554fcd7b9b6162f091 +cbd71a2d37ebf8178fcf23dc9a0cfbbc85400690 diff --git a/third_party/yara/bartblaze/hacktools/Extract_MachineKey_SharePoint.yar b/third_party/yara/bartblaze/hacktools/Extract_MachineKey_SharePoint.yar new file mode 100644 index 000000000..5b40774a2 --- /dev/null +++ b/third_party/yara/bartblaze/hacktools/Extract_MachineKey_SharePoint.yar @@ -0,0 +1,51 @@ +import "dotnet" +rule Extract_MachineKey_SharePoint +{ + meta: + id = "5rgC2cpznLmamBSQ9etlFh" + fingerprint = "v1_sha256_267976231782f0458c369172e8d922508daf670089ef3c91ad2570fe3600d6c4" + version = "1.0" + date = "2025-07-25" + modified = "2025-07-25" + status = "RELEASED" + sharing = "TLP:WHITE" + source = "BARTBLAZE" + author = "@bartblaze" + description = "Identifies webshell that extracts SharePoint's MachineKey configuration." + category = "TOOL" + tool = "WEBSHELL" + reference = "https://x.com/Gi7w0rm/status/1948027800591466773" + hash = "3461da3a2ddcced4a00f87dcd7650af48f97998a3ac9ca649d7ef3b7332bd997" + + strings: + $xml = "