Skip to content

Commit ba55c12

Browse files
authored
chore(rules): 2026/04/16 FPR (#1473)
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent 206d15f commit ba55c12

27 files changed

Lines changed: 270 additions & 28 deletions

rules/exec/install_additional/pip_install.yara

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ rule pip_installer_url: critical {
6161
$not_langchain_comment1 = "Please install the exllamav2 library with (cuda 12.1 is required)"
6262
$not_langchain_comment2 = "example : "
6363
$not_langchain_comment3 = "\"!python -m pip install https://github.com/turboderp/exllamav2/releases/download/v0.0.12/exllamav2-0.0.12+cu121-cp311-cp311-linux_x86_64.whl\""
64+
$not_mlflow_docker = "from mlflow.environment_variables import MLFLOW_DOCKER_OPENJDK_VERSION"
6465
6566
condition:
6667
filesize < 8192 and $ref and none of ($not*) and (hash.sha256(0, filesize) != "f6a373322759ccc2736fb25d25d8c402dfe16b5d9a57cfccb1ca8cb136e09663")

rules/false_positives/ansible.yara

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,16 @@ rule ansible_override: override {
1414
condition:
1515
$ansible and ($async or $become)
1616
}
17+
18+
rule ansible_report_coverage: override {
19+
meta:
20+
description = "report-coverage.sh from Ansible collections CI scripts"
21+
pip_installer_url = "low"
22+
23+
strings:
24+
$coverage = "ansible-test coverage xml"
25+
$pipelines = "Generate code coverage reports for uploading to Azure Pipelines"
26+
27+
condition:
28+
filesize < 2048 and all of them
29+
}

rules/false_positives/bento.yara

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ rule bento_bin: override {
44
CAPE_Nitrogenloader = "harmless"
55

66
strings:
7-
$golang = /(google.){0,1}golang.org/
8-
$repo = "github.com/warpstreamlabs/bento"
7+
$go_module = "github.com/warpstreamlabs/bento/cmd/bento"
8+
$go_pkg = "github.com/warpstreamlabs/bento/public/service"
99
1010
condition:
11-
filesize < 250MB and #golang > 38000 and #repo > 21000
11+
filesize > 200MB and filesize < 300MB and all of them
1212
}

rules/false_positives/couchdb.yara

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
rule couchdb_doc: override {
2+
meta:
3+
description = "/usr/share/couchdb/share/docs/couchdb.1"
4+
exotic_tld = "low"
5+
download_sites = "low"
6+
selinux_disable_val = "low"
7+
chmod_group_writeable = "low"
8+
9+
strings:
10+
$apache_couchdb = "Apache CouchDB"
11+
$man_header = "APACHECOUCHDB"
12+
13+
condition:
14+
filesize > 500000 and filesize < 3000000 and all of them
15+
}
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
rule fastfetch_override: override {
22
meta:
3-
description = "/usr/bin/fastfetch"
4-
proc_d_cmdline = "medium"
5-
proc_d_exe_high = "medium"
3+
description = "/usr/bin/fastfetch, /usr/bin/flashfetch"
4+
proc_d_cmdline = "medium"
5+
proc_d_exe_high = "medium"
6+
multiple_gcc = "harmless"
7+
multiple_gcc_high = "medium"
68

79
strings:
810
$fastfetch = "fastfetch/packages/%s.txt"
911
$repo = "https://github.com/fastfetch-cli/fastfetch"
1012
1113
condition:
12-
any of them
14+
filesize < 5MB and any of them
1315
}

rules/false_positives/gemini_cli.yara

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@ rule gemini_cli_third_party: override {
33
description = "gemini-cli bundled third-party npm dependencies"
44
exotic_tld = "low"
55
iplookup_website = "low"
6+
geoip_website_value = "low"
67
browser_extension_installer = "low"
78
obfuscated_payload = "low"
9+
load_agent_with_payload = "low"
810
bash_persist = "low"
911
bash_persist_persistent = "low"
1012

1113
strings:
12-
$gemini_module = "@google/gemini-cli"
13-
$gemini_core = "gemini-cli-core"
14+
$lighthouse = "lighthouse-devtools-mcp-bundle.js"
15+
$entities = "entities-nostats.json"
1416
1517
condition:
1618
filesize < 100MB and all of them

rules/false_positives/grub.yara

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
rule grub_boot_images: override {
22
meta:
3-
description = "GRUB i386-pc boot images"
3+
description = "GRUB i386-pc boot images (boot.image, boot_hybrid.image)"
44
single_load_rwe = "medium"
55

66
strings:
@@ -9,3 +9,55 @@ rule grub_boot_images: override {
99
condition:
1010
filesize < 64KB and $grub
1111
}
12+
13+
rule grub_cdboot_image: override {
14+
meta:
15+
description = "GRUB i386-pc CD boot image"
16+
single_load_rwe = "medium"
17+
18+
strings:
19+
$cdrom_fail = "cdrom read fails"
20+
$no_boot = "no boot info"
21+
22+
condition:
23+
filesize < 8KB and all of them
24+
}
25+
26+
rule grub_diskboot_image: override {
27+
meta:
28+
description = "GRUB i386-pc disk boot image"
29+
single_load_rwe = "medium"
30+
31+
strings:
32+
$blocklist = "blocklist_default_start"
33+
$notification = "notification_string"
34+
35+
condition:
36+
filesize < 8KB and all of them
37+
}
38+
39+
rule grub_lnxboot_image: override {
40+
meta:
41+
description = "GRUB i386-pc Linux boot image"
42+
single_load_rwe = "medium"
43+
44+
strings:
45+
$move_mem = "move memory fails"
46+
$setup = "setup_sects"
47+
48+
condition:
49+
filesize < 8KB and all of them
50+
}
51+
52+
rule grub_pxeboot_image: override {
53+
meta:
54+
description = "GRUB i386-pc PXE boot image"
55+
single_load_rwe = "medium"
56+
57+
strings:
58+
// PXE boot stub: mov dl,0x7f followed by far jump to 0x0000:0x8200
59+
$pxe_entry = { b2 7f ea 00 82 00 00 }
60+
61+
condition:
62+
filesize < 4096 and $pxe_entry
63+
}

rules/false_positives/keep.yara

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
rule keep_ui_tweetnacl: override {
2+
meta:
3+
description = "keep-ui Next.js server chunk containing bundled tweetnacl crypto library"
4+
from_secret_key = "low"
5+
unsigned_bitwise_math_excess = "low"
6+
7+
strings:
8+
$nacl_box_keypair = "crypto_box_keypair"
9+
$nacl_secretbox = "nacl.secretbox"
10+
$sentry = "_sentryDebugIds"
11+
12+
condition:
13+
filesize < 1048576 and all of them
14+
}

rules/false_positives/kibana.yara

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,21 @@ rule security_solution_plugin: override {
3434
filesize < 5MB and all of ($license*) and $security_solution and ($jsonp or $xpac)
3535
}
3636

37+
rule security_solution_prepackaged_rules_index: override {
38+
meta:
39+
description = "prepackaged_rules/index.js"
40+
backdoor_likely = "low"
41+
reverse_shell = "low"
42+
ssh_backdoor = "low"
43+
44+
strings:
45+
$elastic_copyright = "Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V."
46+
$raw_rules = "exports.rawRules"
47+
48+
condition:
49+
filesize < 200KB and all of them
50+
}
51+
3752
rule security_detection_engine: override {
3853
meta:
3954
casing_obfuscation = "low"

rules/false_positives/knative.yara

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,17 @@ rule kobalos_override: override {
99
condition:
1010
(hash.sha256(0, filesize) == "572235f7943a8bab5377ed94c9dbdd8c2471e08e19ff6bc1edd0f1f3680ab25d")
1111
}
12+
13+
rule knative_eventing_ingress: override {
14+
meta:
15+
description = "knative-eventing ingress binary"
16+
ESET_Kobalos = "harmless"
17+
SIGNATURE_BASE_APT_MAL_LNX_Kobalos = "harmless"
18+
19+
strings:
20+
$knative_eventing = "knative.dev/eventing"
21+
$ingress_module = "knative.dev/eventing/cmd/broker/ingress"
22+
23+
condition:
24+
filesize < 100MB and all of them
25+
}

0 commit comments

Comments
 (0)