Skip to content

Commit c7d3bf1

Browse files
committed
Updated datper yara rule #14
1 parent 00a0b82 commit c7d3bf1

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

utils/datperscan.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@
3030
$a1 = { E8 03 00 00 } \
3131
$b1 = "|||" \
3232
$c1 = "Content-Type: application/x-www-form-urlencoded" \
33+
$delphi = "Borland\\Delphi" ascii wide \
3334
$push7530h64 = { C7 C1 30 75 00 00 } \
3435
$push7530h = { 68 30 75 00 00 } \
35-
condition: $a1 and $b1 and $c1 and ($push7530h64 or $push7530h)}'
36+
condition: $a1 and $b1 and $c1 and $delphi and ($push7530h64 or $push7530h)}'
3637
}
3738

3839
CONFIG_PATTERNS = [

yara/rule.yara

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,11 @@ rule Datper {
202202
$a1 = { E8 03 00 00 }
203203
$b1 = "|||"
204204
$c1 = "Content-Type: application/x-www-form-urlencoded"
205+
$delphi = "Borland\\Delphi" ascii wide
205206
$push7530h64 = { C7 C1 30 75 00 00 }
206207
$push7530h = { 68 30 75 00 00 }
207208
208-
condition: $a1 and $b1 and $c1 and ($push7530h64 or $push7530h)
209+
condition: $a1 and $b1 and $c1 and $delphi and ($push7530h64 or $push7530h)
209210
}
210211

211212
rule PlugX {
@@ -500,7 +501,7 @@ rule Quasar {
500501
hash1 = "390c1530ff62d8f4eddff0ac13bc264cbf4183e7e3d6accf8f721ffc5250e724"
501502

502503
strings:
503-
$quasarstr1 = "Client.exe" wide
504+
$quasarstr1 = "Client.exe" wide
504505
$quasarstr2 = "({0}:{1}:{2})" wide
505506
$sql1 = "SELECT * FROM Win32_DisplayConfiguration" wide
506507
$sql2 = "{0}d : {1}h : {2}m : {3}s" wide
@@ -528,20 +529,20 @@ rule Elf_plead {
528529
condition: 3 of them
529530
}
530531

531-
rule asyncrat {
532+
rule asyncrat {
532533
meta:
533534
description = "detect AsyncRat in memory"
534535
author = "JPCERT/CC Incident Response Group"
535536
rule_usage = "memory scan"
536537
reference = "internal research"
537-
hash1 = "1167207bfa1fed44e120dc2c298bd25b7137563fdc9853e8403027b645e52c19"
538+
hash1 = "1167207bfa1fed44e120dc2c298bd25b7137563fdc9853e8403027b645e52c19"
538539
hash2 = "588c77a3907163c3c6de0e59f4805df41001098a428c226f102ed3b74b14b3cc"
539540

540-
strings:
541+
strings:
541542
$salt = {BF EB 1E 56 FB CD 97 3B B2 19 02 24 30 A5 78 43 00 3D 56 44 D2 1E 62 B9 D4 F1 80 E7 E6 C3 39 41}
542543
$b1 = {00 00 00 0D 53 00 48 00 41 00 32 00 35 00 36 00 00}
543544
$b2 = {09 50 00 6F 00 6E 00 67 00 00}
544-
$s1 = "pastebin" ascii wide nocase
545+
$s1 = "pastebin" ascii wide nocase
545546
$s2 = "pong" wide
546547
$s3 = "Stub.exe" ascii wide
547548
condition: ($salt and (2 of ($s*) or 1 of ($b*))) or (all of ($b*) and 2 of ($s*))
@@ -553,7 +554,7 @@ rule Wellmess {
553554
author = "JPCERT/CC Incident Response Group"
554555
rule_usage = "memory scan"
555556
reference = "internal research"
556-
hash1 = "0322c4c2d511f73ab55bf3f43b1b0f152188d7146cc67ff497ad275d9dd1c20f"
557+
hash1 = "0322c4c2d511f73ab55bf3f43b1b0f152188d7146cc67ff497ad275d9dd1c20f"
557558
hash2 = "8749c1495af4fd73ccfc84b32f56f5e78549d81feefb0c1d1c3475a74345f6a8 "
558559

559560
strings:
@@ -581,4 +582,4 @@ rule Elf_wellmess {
581582
$botlib4 = "botlib.AES_Encrypt" ascii
582583
583584
condition: (uint32(0) == 0x464C457F) and all of ($botlib*)
584-
}
585+
}

0 commit comments

Comments
 (0)