# Nginx WAF rules for SHELLS
location / {
set $attack_detected 0;
if ($request_uri ~* "@pm gzip compress deflate br zstd") {
set $attack_detected 1;
}
if ($request_uri ~* "@lt 1") {
set $attack_detected 1;
}
if ($request_uri ~* "@lt 1") {
set $attack_detected 1;
}
if ($request_uri ~* "@pmFromFile web-shells-php.data") {
set $attack_detected 1;
}
if ($request_uri ~* "@rx
r57 Shell Version [0-9.]+|r57 shell") {
set $attack_detected 1;
}
if ($request_uri ~* "@rx ^.*?(?: -)? W[Ss][Oo] [0-9.]+") {
set $attack_detected 1;
}
if ($request_uri ~* "@rx B4TM4N SH3LL.*") {
set $attack_detected 1;
}
if ($request_uri ~* "@rx Mini Shell.*Developed By LameHacker") {
set $attack_detected 1;
}
if ($request_uri ~* "@rx .:: .* ~ Ashiyane V [0-9.]+ ::.") {
set $attack_detected 1;
}
if ($request_uri ~* "@rx Symlink_Sa [0-9.]+") {
set $attack_detected 1;
}
if ($request_uri ~* "@rx CasuS [0-9.]+ by MafiABoY") {
set $attack_detected 1;
}
if ($request_uri ~* "@rx ^rnrnGRP WebShell [0-9.]+") {
set $attack_detected 1;
}
if ($request_uri ~* "@rx NGHshell [0-9.]+ by Cr4shn$") {
set $attack_detected 1;
}
if ($request_uri ~* "@rx SimAttacker - (?:Version|Vrsion) : [0-9.]+ -") {
set $attack_detected 1;
}
if ($request_uri ~* "@rx ^nn") {
set $attack_detected 1;
}
if ($request_uri ~* "@rx ^nnnn
Ru24PostWebShell") {
set $attack_detected 1;
}
if ($request_uri ~* "@rx s72 Shell v[0-9.]+ Codinf by Cr@zy_King") {
set $attack_detected 1;
}
if ($request_uri ~* "@rx ^rnrnnnnng00nshell v[0-9.]+") {
set $attack_detected 1;
}
if ($request_uri ~* "@contains punkholicshell") {
set $attack_detected 1;
}
if ($request_uri ~* "@rx ^n n azrail [0-9.]+ by C-W-M") {
set $attack_detected 1;
}
if ($request_uri ~* "@rx >SmEvK_PaThAn Shell v[0-9]+ coded by n.*? ~ Shell Inn