Skip to content

Commit

Permalink
Create mal_fortinet_coathanger_feb24.yar
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo23x0 committed Feb 16, 2024
1 parent 55cf00d commit cecca0f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions yara/mal_fortinet_coathanger_feb24.yar
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

rule MAL_Fortinet_COATHANGER_Beacon {
meta:
description = "Detects COATHANGER beaconing code"
malware = "COATHANGER"
author = "NLD MIVD - JSCU"
date = "2024-02-06"
reference = "https://www.ncsc.nl/documenten/publicaties/2024/februari/6/mivd-aivd-advisory-coathanger-tlp-clear"
strings:
$chunk_1 = { 48 B8 47 45 54 20 2F 20 48 54 48 89 45 B0 48 B8 54 50 2F 32 0A 48 6F 73 48 89 45 B8 48 B8 74 3A 20 77 77 77 2E 67 48 89 45 C0 48 B8 6F 6F 67 6C 65 2E 63 6F }
condition:
uint32(0) == 0x464c457f and filesize < 5MB and
any of them
}

rule MAL_Fortinet_COATHANGER_Files {
meta:
description = "Detects COATHANGER files by used filenames"
malware = "COATHANGER"
author = "NLD MIVD - JSCU"
date = "2024-02-06"
reference = "https://www.ncsc.nl/documenten/publicaties/2024/februari/6/mivd-aivd-advisory-coathanger-tlp-clear"
strings:
$1 = "/data2/"
$2 = "/httpsd"
$3 = "/preload.so"
$4 = "/authd"
$5 = "/tmp/packfile"
$6 = "/smartctl"
$7 = "/etc/ld.so.preload"
$8 = "/newcli"
$9 = "/bin/busybox"
condition:
(uint32(0) == 0x464c457f or uint32(4) == 0x464c457f)
and filesize < 5MB and 4 of them
}

0 comments on commit cecca0f

Please sign in to comment.