Skip to content

Commit 5365c34

Browse files
authored
Follow-up FPR for a handful of packages (#1073)
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent 7d28a97 commit 5365c34

File tree

7 files changed

+25
-5
lines changed

7 files changed

+25
-5
lines changed

rules/anti-static/obfuscation/bitwise.yara

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ rule unsigned_bitwise_math_excess: high {
141141
$not_elastic1 = "/*! Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one or more contributor license agreements."
142142
$not_elastic2 = "* Licensed under the Elastic License 2.0; you may not use this file except in compliance with the Elastic License 2.0. */"
143143
$not_webpack = "webpack-api-runtime.js" fullword
144+
$not_wso2is = "(self.webpackChunk_wso2is_console=self.webpackChunk_wso2is_console||[])"
144145
145146
condition:
146147
filesize < 5MB and $function and $charAt and (#left > 50 or #right > 50) and none of ($not*)

rules/anti-static/obfuscation/url.yara

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import "math"
22

3-
rule decode_url_component_char_code: high {
3+
rule decode_url_component_char_code: medium {
44
meta:
55
description = "decodes obfuscated URL components"
66
filetypes = "js,ts"

rules/evasion/rootkit/userspace.yara

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ rule readdir_dlsym_interceptor: high {
5858
$f_readlink_maybe_not_needed = "readlink"
5959
$f_proc = "/proc"
6060
61-
$not_j9 = "j9port_" fullword
61+
$not_j9 = "j9port_"
6262
$not_sbcl = "SBCL_HOME" fullword
6363
6464
condition:

rules/false_positives/fastfetch.yara

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ rule fastfetch_override: override {
55
proc_d_exe_high = "medium"
66

77
strings:
8-
$repo = "https://github.com/fastfetch-cli/fastfetch"
8+
$fastfetch = "fastfetch/packages/%s.txt"
9+
$repo = "https://github.com/fastfetch-cli/fastfetch"
910
1011
condition:
11-
$repo
12+
any of them
1213
}

rules/false_positives/nextcloud.yara

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ rule vimeo_psalm_md_php_override: override {
22
meta:
33
description = "Psalm MD files with PHP code excerpts"
44
SIGNATURE_BASE_WEBSHELL_PHP_Dynamic = "harmless"
5+
SIGNATURE_BASE_WEBSHELL_PHP_Generic = "harmless"
56
remote_eval_close = "harmless"
67

78
strings:

rules/false_positives/pouchdb.yara

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
rule pouchdb_override: override {
2+
meta:
3+
description = "pouchdb.min.js"
4+
unsigned_bitwise_math_excess = "medium"
5+
js_many_parseInt = "medium"
6+
7+
strings:
8+
$comment_1 = "// PouchDB 8.0.1"
9+
$comment_2 = "// "
10+
$comment_3 = "// (c) 2012-2023 Dale Harvey and the PouchDB team"
11+
$comment_4 = "// PouchDB may be freely distributed under the Apache license, version 2.0."
12+
$comment_5 = "// For all details and documentation:"
13+
$comment_6 = "// http://pouchdb.com"
14+
15+
condition:
16+
all of them
17+
}

tests/npm/2024.testerrrrrrrrrr/init.js.simple

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ anti-static/obfuscation/bool: medium
33
anti-static/obfuscation/hex: medium
44
anti-static/obfuscation/js: high
55
anti-static/obfuscation/math: medium
6-
anti-static/obfuscation/url: high
6+
anti-static/obfuscation/url: medium
77
c2/addr/server: medium
88
data/encoding/int: medium
99
data/encoding/url: medium

0 commit comments

Comments
 (0)