Skip to content

Commit f3941a7

Browse files
authored
Add rule for recent Crate compromises; run fmt to pick up new yara-x newline formatting (#1140)
* Add rule for recent Crate compromises; run fmt to pick up new yara-x newline formatting Signed-off-by: egibs <20933572+egibs@users.noreply.github.com> * Expand additional rules to capture the URL IOC Signed-off-by: egibs <20933572+egibs@users.noreply.github.com> * Better regex string naming Signed-off-by: egibs <20933572+egibs@users.noreply.github.com> --------- Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent f84894f commit f3941a7

71 files changed

Lines changed: 42 additions & 68 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

rules/anti-static/obfuscation/obfuscate.yara

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@ rule obfuscator {
2020
condition:
2121
$obfuscate
2222
}
23-

rules/anti-static/xor/xor-paths.yara

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,3 @@ rule xor_paths: high {
2929
condition:
3030
filesize < 10MB and any of them
3131
}
32-

rules/c2/addr/discord.yara

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ rule discord: medium {
99
condition:
1010
any of them
1111
}
12-

rules/c2/addr/telegram.yara

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ rule telegram: medium {
99
condition:
1010
any of them
1111
}
12-

rules/c2/addr/url.yara

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,18 @@ rule http_url_with_question: medium {
7676
filesize < 256KB and any of ($f*) and $ref and none of ($not*)
7777
}
7878

79+
rule binary_with_malicious_url: critical {
80+
meta:
81+
description = "binary contains hardcoded, malicious URL"
82+
filetypes = "elf,macho"
83+
84+
strings:
85+
$ = "https://mainnet.solana-rpc-pool.workers.dev"
86+
87+
condition:
88+
filesize < 150MB and elf_or_macho and any of them
89+
}
90+
7991
rule binary_with_url: low {
8092
meta:
8193
description = "binary contains hardcoded URL"

rules/c2/connect/curl_easy.yara

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ rule curl_easy: medium {
88
condition:
99
filesize < 1MB and all of them
1010
}
11-

rules/c2/connect/ping_pong.yara

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ rule ping_pong: medium {
1010
condition:
1111
filesize < 1MB and all of them
1212
}
13-

rules/c2/connect/server.yara

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ rule connect_server: medium {
88
condition:
99
filesize < 1MB and any of them
1010
}
11-

rules/c2/tool_transfer/bitsadmin.yara

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ rule bitsadmin_transfer: high {
2121
condition:
2222
filesize < 250KB and all of them
2323
}
24-

rules/credential/cloud/gcloud.yara

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ rule gcloud_config_value: medium {
99
condition:
1010
any of them
1111
}
12-

0 commit comments

Comments
 (0)