Detect Exploit Public-Facing Application in CrowdStrike LogScale
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network. The weakness in the system can be a software bug, a temporary glitch, or a misconfiguration. Exploited applications are often websites/web servers, but can also include databases (like SQL), standard services (like SMB or SSH), network device administration and management protocols (like SNMP and Smart Install), and any other system with Internet-accessible open sockets. On ESXi infrastructure, adversaries may exploit exposed OpenSLP services or VMware vCenter servers. If an application is hosted on cloud-based infrastructure and/or is containerized, exploiting it may lead to compromise of the underlying instance or container, allowing adversaries to access cloud or container APIs, escape to the container host, or exploit weak identity and access management policies.
MITRE ATT&CK
- Tactic
- Initial Access
- Technique
- T1190 Exploit Public-Facing Application
- Canonical reference
- https://attack.mitre.org/techniques/T1190/
LogScale Detection Query
#event_simpleName=ProcessRollup2
| ParentBaseFileName = /(?i)^(w3wp|httpd|nginx|apache2|java|python|python3|php|php-cgi|node|ruby|perl|tomcat[0-9]*|ews|umworkerprocess|msexchangeservicehost)\.exe$/
| FileName = /(?i)^(cmd|powershell|pwsh|wscript|cscript|mshta|rundll32|regsvr32|certutil|bitsadmin|curl|wget|nc|ncat|net|net1|whoami|ipconfig|systeminfo|nltest|ping|nslookup|tasklist|quser|schtasks|at|sc|reg)\.exe$/
| ExploitEvidence := case {
FileName = /(?i)^(cmd|powershell|pwsh|wscript|cscript|mshta)\.exe$/ => "Shell Spawned";
FileName = /(?i)^(certutil|bitsadmin|curl|wget|nc|ncat)\.exe$/ => "Download/C2 Tool";
FileName = /(?i)^(whoami|ipconfig|systeminfo|nltest|net|net1|tasklist|quser)\.exe$/ => "Reconnaissance";
FileName = /(?i)^(schtasks|at|sc|reg)\.exe$/ => "Persistence Attempt";
* => "Suspicious Child"
}
| table([timestamp, ComputerName, UserName, FileName, CommandLine, ParentBaseFileName, ParentCommandLine, ExploitEvidence, SHA256HashData, TargetProcessId, ContextProcessId])
| sort(timestamp, order=desc) CrowdStrike LogScale (Humio) CQL query targeting ProcessRollup2 events from the Falcon sensor to detect exploitation of public-facing applications. Matches web server and application runtime parent processes spawning post-exploitation binaries, classifying each by exploitation stage. Uses ParentBaseFileName and FileName fields native to Falcon telemetry.
Data Sources
Required Tables
False Positives & Tuning
- Legitimate use of Python or Node.js web servers in developer environments where the runtime spawns shell commands during build, test, or scaffolding operations
- Enterprise Java applications (e.g., JIRA, Confluence, Jenkins) that use Runtime.exec() to invoke net.exe, sc.exe, or ping.exe for service discovery, cluster health checks, or Windows-specific integrations
- IIS-hosted applications with custom HTTP modules or ISAPI filters that invoke certutil.exe or reg.exe during certificate renewal workflows or registry-backed configuration updates
Other platforms for T1190
Testing Methodology
Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1Web Server Process Spawning Reconnaissance Commands
Expected signal: Sysmon Event ID 1: Process Create events for cmd.exe, whoami.exe, ipconfig.exe, net.exe, systeminfo.exe with respective command lines. Security Event ID 4688 (with command line auditing enabled) for each spawned process. Sysmon Event ID 11: File creation at %TEMP%\argus-t1190-recon.txt.
- Test 2Drop Test Webshell File in IIS Web Root
Expected signal: Sysmon Event ID 11: File Create with TargetFilename='C:\inetpub\wwwroot\argus-test-shell.aspx'. Sysmon Event ID 1: Process Create for powershell.exe with Set-Content command visible in CommandLine. DeviceFileEvents in Microsoft Defender for Endpoint will show the .aspx file creation with the initiating process context.
- Test 3Log4Shell JNDI Lookup Payload in HTTP Request Headers
Expected signal: Web server access log entry (Apache: /var/log/apache2/access.log, Nginx: /var/log/nginx/access.log) showing the JNDI payload strings in User-Agent and custom header fields. If a Java application with Log4j is running on port 80, Sysmon EventCode=3 (or /proc/net/tcp) will show an LDAP connection attempt to 127.0.0.1:1389 from the java.exe/java process.
- Test 4SQL Injection Payloads in Web Application Query Parameters
Expected signal: Web server access logs will contain entries with SQL injection strings in the cs-uri-query field (IIS) or request URI (Apache/Nginx). The HTTP response codes (200, 400, 404, 500) are printed to stdout for each payload. WAF alert events generated if a WAF is in the request path. No database query is executed — the payloads are evaluated only at the HTTP layer.
References (10)
- https://attack.mitre.org/techniques/T1190/
- https://owasp.org/www-project-top-ten/
- https://cwe.mitre.org/top25/index.html
- https://www.mandiant.com/resources/blog/fortinet-malware-ecosystem
- https://www.recordedfuture.com/blog/esxiargs-ransomware-targets-vmware-esxi-openslp-servers
- https://www.microsoft.com/security/blog/2021/03/02/hafnium-targeting-exchange-servers/
- https://www.cisa.gov/news-events/cybersecurity-advisories/aa21-116a
- https://unit42.paloaltonetworks.com/threat-brief-understanding-log4j-vulnerability/
- https://www.secureworks.com/research/bronze-silhouette
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1190/T1190.md
Unlock Pro Content
Get the full detection package for T1190 including response playbook, investigation guide, and atomic red team tests.