mirror of
https://github.com/Yara-Rules/rules
synced 2026-06-08 12:58:40 +00:00
Create RAT_CrossRAT.yar
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import "hash"
|
||||
|
||||
global private rule javaarchive
|
||||
{
|
||||
strings:
|
||||
$magic = { 50 4b 03 04 ( 14 | 0a ) 00 }
|
||||
$string_1 = "META-INF/"
|
||||
$string_2 = ".class" nocase
|
||||
|
||||
condition:
|
||||
filesize < 400KB and
|
||||
$magic at 0 and 1 of ($string_*)
|
||||
}
|
||||
|
||||
rule CrossRAT: RAT
|
||||
{
|
||||
meta:
|
||||
description = "Detects CrossRAT known hash"
|
||||
author = "Simon Sigre (simon.sigre@gmail.com)"
|
||||
date = "26/01/2018"
|
||||
ref = "https://simonsigre.com"
|
||||
ref= "https://objective-see.com/blog/blog_0x28.html"
|
||||
|
||||
condition:
|
||||
filesize < 400KB and
|
||||
hash.md5(0, filesize) == "85b794e080d83a91e904b97769e1e770"
|
||||
}
|
||||
Reference in New Issue
Block a user