This detection identifies adversaries deploying a malicious JSP web shell named “up.jsp” to establish a persistent foothold and execute arbitrary commands on compromised web servers. Proactive hunting for this artifact in Azure Sentinel is critical because web shells often serve as an initial entry point for lateral movement and data exfiltration, requiring immediate containment before attackers can expand their presence within the environment.
rule webshell_jsp_up {
meta:
description = "Web Shell - file up.jsp"
license = "Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE"
author = "Florian Roth (Nextron Systems)"
date = "2014/01/28"
score = 70
hash = "515a5dd86fe48f673b72422cccf5a585"
id = "393e738a-b4c2-5630-a55f-c3caee4ff75e"
strings:
$s9 = "// BUG: Corta el fichero si es mayor de 640Ks" fullword
condition:
all of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the Web Shell - file up.jsp detection rule, including suggested filters and exclusions tailored for an enterprise environment:
Scenario: Scheduled Backup or Deployment Scripts
up.jsp utility to the web root (/webapps) to verify connectivity or trigger post-deployment health checks. These scripts are legitimate and run on a fixed schedule rather than via user interaction.10.20.5.15) or filter events where the Process Name is java running under a specific service account (e.g., svc-deploy). Additionally, exclude files created during maintenance windows (e.g., 02:00–04:00 UTC).Scenario: Vendor Support Portal Updates
up.jsp file for their specific module integration. These files are part of standard patching cycles and not indicative of an attacker uploading a malicious shell.Salesforce-Connector, SAP-Updater) or exclude file creation paths under specific vendor directories (e.g., /webapps/vendor-modules/*).Scenario: Internal Admin Maintenance Tasks
up.jsp file to test new Tomcat configurations, update JSP libraries, or troubleshoot application errors. This is a common “ad