Skip to content

Commit b029825

Browse files
committed
Run make yara-x-fmt
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent 3ac1b53 commit b029825

7 files changed

Lines changed: 19 additions & 17 deletions

File tree

rules/anti-behavior/blocklist/user.yara

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ rule common_username_block_list: critical {
3737
$ = "test" fullword
3838
$ = "w0fjuOVmCcP5A" fullword
3939
40-
$not_grafana1 = "self.webpackChunkgrafana=self.webpackChunkgrafana||[]"
41-
$not_grafana2 = "The Grafana LLM plugin is not installed."
42-
$not_grafana3 = "grafana.debug.scenes"
43-
$not_jitsu = "jitsu.com"
44-
$not_redpanda = "redpanda"
45-
$not_sqlmetal1 = "sqlmetal"
46-
$not_sqlmetal2 = "asqlmetal_test_net_2_0, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c5753d8c47f40083f549016a5711238ac8ec297605abccd3dc4b6d0f280b4764eb2cc58ec4e37831edad7e7a07b8fe4a9cbb059374c0cc047aa28839fed7176761813caf6a2ffa0bff9afb50ead56dd3f56186a663962a12b830c2a70eb70ec77823eb5750e5bdef9e01d097c30b5c5463c3d07d3472b58e4c02f2792309259f"
47-
$not_sqlmetal3 = "asqlmetal_test_net_4_0, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c5753d8c47f40083f549016a5711238ac8ec297605abccd3dc4b6d0f280b4764eb2cc58ec4e37831edad7e7a07b8fe4a9cbb059374c0cc047aa28839fed7176761813caf6a2ffa0bff9afb50ead56dd3f56186a663962a12b830c2a70eb70ec77823eb5750e5bdef9e01d097c30b5c5463c3d07d3472b58e4c02f2792309259f"
48-
$not_wireshark = "wireshark.org"
40+
$not_grafana1 = "self.webpackChunkgrafana=self.webpackChunkgrafana||[]"
41+
$not_grafana2 = "The Grafana LLM plugin is not installed."
42+
$not_grafana3 = "grafana.debug.scenes"
43+
$not_jitsu = "jitsu.com"
44+
$not_redpanda = "redpanda"
45+
$not_sqlmetal1 = "sqlmetal"
46+
$not_sqlmetal2 = "asqlmetal_test_net_2_0, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c5753d8c47f40083f549016a5711238ac8ec297605abccd3dc4b6d0f280b4764eb2cc58ec4e37831edad7e7a07b8fe4a9cbb059374c0cc047aa28839fed7176761813caf6a2ffa0bff9afb50ead56dd3f56186a663962a12b830c2a70eb70ec77823eb5750e5bdef9e01d097c30b5c5463c3d07d3472b58e4c02f2792309259f"
47+
$not_sqlmetal3 = "asqlmetal_test_net_4_0, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c5753d8c47f40083f549016a5711238ac8ec297605abccd3dc4b6d0f280b4764eb2cc58ec4e37831edad7e7a07b8fe4a9cbb059374c0cc047aa28839fed7176761813caf6a2ffa0bff9afb50ead56dd3f56186a663962a12b830c2a70eb70ec77823eb5750e5bdef9e01d097c30b5c5463c3d07d3472b58e4c02f2792309259f"
48+
$not_wireshark = "wireshark.org"
4949
$gpt_tokenizer1 = "GPTTokenizer"
5050
$gpt_tokenizer2 = "GPT-4"
5151

rules/anti-static/obfuscation/padding.yara

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ rule msxml2_http: critical {
66
$a = /M.{0,48}S.{0,48}X.{0,48}M.{0,48}L.{0,48}2.{0,48}\.X.{0,48}M.{0,48}L.{0,48}H.{0,48}T.{0,48}T.{0,48}P.{0,48}/
77
88
// https://github.com/mailru/FileAPI/blob/5b50e8ed012e089eb578e586d860a6fd035e16d8/lib/FileAPI.core.js#L298
9-
$not_fileapi = "MSXML2.XMLHttp.3.0\")}catch(c){b=new ActiveXObject(\"Microsoft.XMLHTTP\")}return b},isArray:l,support:{dnd:s&&\"ondrop\"i"
9+
$not_fileapi = "MSXML2.XMLHttp.3.0\")}catch(c){b=new ActiveXObject(\"Microsoft.XMLHTTP\")}return b},isArray:l,support:{dnd:s&&\"ondrop\"i"
1010
$not_i18next1 = "i18nextHttpBackend"
1111
$not_i18next2 = "u[\"User-Agent\"]=\"i18next-http-backend (node/\".concat(S.process.version,\"; \")"
1212

rules/data/base64/external.yara

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ rule base64_shell_double_encode: critical {
3535
strings:
3636
$ref = /base64[\s>].{0,32}\|\s{0,2}base64/
3737
38-
$not_gpgme = "if (!base64 || base64 == -1) /* Make sure that we really have a string. */"
38+
$not_gpgme = "if (!base64 || base64 == -1) /* Make sure that we really have a string. */"
3939
$not_unix_rb = "echo '%<base64>s' | base64 --decode > %<file>s"
4040
4141
condition:

rules/evasion/mimicry/fake-process.yara

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ rule fake_kworker: critical linux {
66
$kworker1 = /\[{0,1}kworker\/[\w\%:\-\]]{1,16}/
77
$kworker2 = "[kworker"
88
9-
$not_rescue = "kworker/R-%s"
9+
$not_rescue = "kworker/R-%s"
1010
$not_psutil_comment1 = "root 4 0.0 0.0B 0.0B -20 idle Mar27 00:00 kworker/0:0H"
1111
$not_psutil_comment2 = "root 20414 0.0 0.0B 0.0B idle Apr04 00:00 kworker/4:2"
1212
$not_psutil_comment3 = "root 22338 0.0 0.0B 0.0B idle 02:04 00:00 kworker/1:2"

rules/exfil/stealer/wallet.yara

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ rule crypto_stealer_names: critical {
3333
$not_clef1 = "These data types are defined in the channel between clef and the UILedger"
3434
$not_clef2 = "The `transaction` (on input into clef) can have either `data` or `input`"
3535
$not_geth_site = "https://geth.ethereum.org"
36-
$gpt_tokenizer1 = "GPTTokenizer"
37-
$gpt_tokenizer2 = "GPT-4"
36+
$gpt_tokenizer1 = "GPTTokenizer"
37+
$gpt_tokenizer2 = "GPT-4"
3838
3939
condition:
4040
filesize < 100MB and $http and 2 of ($w*) and none of ($not*) and (#gpt_tokenizer1 < 3 and #gpt_tokenizer2 < 65)
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
rule arangodb_override: override {
22
meta:
33
R3C0NST_Shellcode_Apihashing_FIN8 = "low"
4+
45
strings:
5-
$ = "https://github.com/arangodb-helper/arangodb"
6+
$ = "https://github.com/arangodb-helper/arangodb"
67
$ = "/home/build/arangod"
78
$ = "application/x-arango-dump"
89
$ = "arangodb"
10+
911
condition:
1012
all of them
1113
}

rules/impact/degrade/win_defender.yara

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
rule win_defender_configure: high {
22
meta:
33
description = "Uses powershell to configure Windows Defender"
4-
filetypes = "exe,pe,ps1"
4+
filetypes = "exe,pe,ps1"
55

66
strings:
77
$exclusion = /[\w \'\:\\\"\-]{0,32}Add-MpPreference[\w \'\:\\\"\-]/
@@ -13,7 +13,7 @@ rule win_defender_configure: high {
1313
rule win_defender_exclusion: critical {
1414
meta:
1515
description = "Uses powershell to define Windows Defender exclusions"
16-
filetypes = "exe,pe,ps1"
16+
filetypes = "exe,pe,ps1"
1717

1818
strings:
1919
$exclusion = /[\w \'\:\\\"\-]{0,32}Add-MpPreference.{0,32}Exclusion[\w \'\:\\\"]{0,32}/

0 commit comments

Comments
 (0)