Skip to content

Commit bef87d2

Browse files
authored
Add FPR for coraza-corerulesets (#999)
* Add FPR for coraza-corerulesets Signed-off-by: egibs <20933572+egibs@users.noreply.github.com> * Run make yara-x-fmt Signed-off-by: egibs <20933572+egibs@users.noreply.github.com> --------- Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent 8d759ca commit bef87d2

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

rules/false_positives/coraza.yara

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// https://github.com/corazawaf/coraza-coreruleset/blob/9b73b5e90a09613c7535d391a15cc9cb08c05a8d/rules/%40owasp_crs/web-shells-php.data
2+
// https://github.com/corazawaf/coraza-coreruleset/blob/9b73b5e90a09613c7535d391a15cc9cb08c05a8d/rules/%40owasp_crs/RESPONSE-955-WEB-SHELLS.conf#L441
3+
// Keep the overrides low so they still show up on analyze reports
4+
rule coraza_coreruleset_override: override {
5+
meta:
6+
description = "web-shells-php.data; RESPONSE-955-WEB-SHELLS.conf"
7+
SIGNATURE_BASE_H4Ntu_Shell__Powered_By_Tsoi_ = "low"
8+
SIGNATURE_BASE_Ironshell_Php = "low"
9+
SIGNATURE_BASE_Lamashell_Php = "low"
10+
SIGNATURE_BASE_Safe0Ver_Shell__Safe_Mod_Bypass_By_Evilc0Der_Php = "low"
11+
SIGNATURE_BASE_Webshell_Ru24_Post_Sh = "low"
12+
SIGNATURE_BASE_Webshell_Simple_Cmd = "low"
13+
14+
strings:
15+
$coraza1 = "# Enable Coraza, attaching it to every transaction. Use detection"
16+
$coraza2 = "# Allow Coraza to access request bodies. If you don't, Coraza"
17+
$coraza3 = "# Coraza blocked the content. But the next, commented example contains"
18+
$import = "github.com/corazawaf/coraza-coreruleset/v4"
19+
20+
condition:
21+
all of them
22+
}

0 commit comments

Comments
 (0)