Detection Engineering Summary
This brief produced 3 detection candidates.
0 production candidates, 3 hunting-only, 0 require environment mapping, and 0 rejected.
3 detections include KQL. 3 include ATT&CK mappings. 3 include triage guidance.
Search metadata extracted for this run includes: CVE-2026-125958, CVE-2026-86206, CVE-2026-86207, T1068, T1190, N-able N-central, Windows, Linux, PHP, web servers, T1059.
No explicit IOCs were preserved for this run.
Deployment blockers or scheduling gates were identified for: N-central NSP Package Write Followed by Elevated Process Spawn; N-central Service Process Spawning Unexpected Shell or Network Tool; Web Server Process Spawning Shell or Interpreter After PHP Execution.
Detection candidates were derived from recent cybersecurity reporting, operational threat research, RSS intelligence feeds, and related detection engineering sources.
Detection 1: N-central NSP Package Write Followed by Elevated Process Spawn
Detection Opportunity
Unsigned NSP upgrade packages written to disk and executed as root on N-central host, enabling arbitrary code execution via unverified upgrade workflow
Intelligence Context
- Rapid7: CVE-2026-125958: N-able N-central Privilege Escalation via Unsigned Upgrade Packages — https://www.rapid7.com/blog/post/ve-cve-2026-125958-n-able-n-central-privilege-escalation-via-unsigned-upgrade-packages
- Context: Rapid7 disclosed that unsigned NSP upgrade packages accepted by N-central allow arbitrary code execution as root. An unauthenticated attacker can chain multiple vulnerabilities to achieve remote code execution by delivering a malicious upgrade package that is executed without signature verification.
Search Metadata
- CVEs: CVE-2026-125958, CVE-2026-86206, CVE-2026-86207
- Threat actors: Not specified
- ATT&CK tags: T1068, T1190
- Products: N-able N-central
- Platforms: Windows, Linux
- Malware: Not specified
- Tools: Not specified
- Search tags: CVE-2026-125958, CVE-2026-86206, CVE-2026-86207, T1068, T1190, N-able N-central, Windows, Linux
Relevant IOCs
No explicit IOCs were preserved for this detection.
Metadata
- Readiness: hunting-only
- Platform: Defender XDR
- Analytic type: correlation
- Severity recommendation: high
- MITRE ATT&CK: Initial Access: T1190 Exploit Public-Facing Application (high); Privilege Escalation: T1068 Exploitation for Privilege Escalation (medium)
Deployment Gates
- Do not schedule yet; validate as an analyst-led hunt first.
Required telemetry:
- DeviceFileEvents, DeviceProcessEvents
KQL
let nspWrites = DeviceFileEvents
| where Timestamp > ago(24h)
| where ActionType in ("FileCreated", "FileModified")
| where FileName endswith ".nsp"
or FolderPath has_any ("ncentral", "n-central", "nable")
| project DeviceName, FileWriteTime = Timestamp, FileName, FolderPath, FileWriteInitiator = InitiatingProcessAccountName;
let elevatedSpawns = DeviceProcessEvents
| where Timestamp > ago(24h)
| where AccountName in~ ("root", "SYSTEM")
or InitiatingProcessAccountName in~ ("root", "SYSTEM")
| where InitiatingProcessFileName has_any ("ncentral", "nable", "java", "tomcat")
| project DeviceName, SpawnTime = Timestamp, ProcessCommandLine, AccountName, SpawnParentProcess = InitiatingProcessFileName;
nspWrites
| join kind=inner elevatedSpawns on DeviceName
| where SpawnTime between (FileWriteTime .. (FileWriteTime + 30m))
| project
DeviceName,
FileWriteTime,
FileName,
FolderPath,
FileWriteInitiator,
SpawnTime,
ProcessCommandLine,
AccountName,
SpawnParentProcess
| order by FileWriteTime desc
False Positives / Tuning / Risks / Caveats
Expected false positives:
- Legitimate N-central upgrade operations that write .nsp packages and then invoke elevated service restart or installer processes.
- Other Java or Tomcat-based applications on the same host that spawn SYSTEM or root processes during normal operation.
Tuning notes:
- Scope DeviceName to the N-central server population by joining against a device group or a list of known N-central hostnames.
- Replace the InitiatingProcessFileName has_any filter with the exact N-central service executable name once confirmed in the deployment.
- Narrow FolderPath to the specific N-central installation directory to eliminate unrelated .nsp file matches.
- Baseline during a legitimate upgrade cycle to confirm the expected FileWriteTime-to-SpawnTime delta and adjust the 30-minute window accordingly.
Risks / caveats:
- DeviceFileEvents.ActionType must include ‘FileCreated’ or ‘FileModified’ for .nsp writes to appear; if the N-central upgrade workflow uses a non-standard write action type it may not surface.
- ParentProcessName is not a native field in DeviceProcessEvents in Defender XDR; the correct field is InitiatingProcessFileName. The original query references ParentProcessName which will return empty results.
- The 30-minute correlation window is a heuristic; legitimate upgrade workflows may fall within this window, requiring threshold adjustment after baselining.
- InitiatingProcessFileName matching on ‘java’ or ‘tomcat’ will match any Java or Tomcat process on the host, not exclusively N-central service processes. Narrowing to the specific N-central service binary name will reduce false positives.
Triage Runbook
First 15 minutes:
- Confirm the affected device is an N-central server and identify whether the alert time aligns with a planned upgrade or maintenance window.
- Review the file write details for the .nsp package name, folder path, and initiating account to see whether the write came from an expected N-central service or an unusual user/process.
- Inspect the spawned elevated process command line and parent process to determine whether it matches normal upgrade behavior or looks like arbitrary command execution.
- Check whether the same host shows additional suspicious activity around the alert time, especially new child processes, service changes, or outbound connections.
Evidence to collect:
- DeviceName, FileWriteTime, FileName, FolderPath, and FileWriteInitiator from the file event.
- SpawnTime, ProcessCommandLine, AccountName, and SpawnParentProcess from the process event.
- Any related DeviceProcessEvents on the same host within 30 minutes before and after the alert.
- Any related DeviceNetworkEvents from the same host and time window, especially unexpected outbound connections from N-central service processes.
Pivot points:
- DeviceFileEvents for other .nsp writes on the same host around the alert time.
- DeviceProcessEvents for child processes spawned by the same N-central service account or parent process.
- DeviceNetworkEvents for outbound connections from the host during the same window.
- DeviceLogonEvents to identify whether an interactive admin session or unusual account activity preceded the event.
Benign explanations:
- A legitimate N-central upgrade or patch deployment that writes .nsp packages and restarts or launches service components.
- A scheduled maintenance task performed by the N-central service account during an approved change window.
- A known Java or Tomcat-based N-central component spawning helper processes as part of normal upgrade workflow.
Escalation criteria:
- The .nsp write was not tied to a known change request or approved upgrade activity.
- The spawned process command line is inconsistent with normal N-central upgrade behavior or includes shell, download, or reconnaissance activity.
- The elevated process is followed by unexpected outbound connections, service tampering, or additional suspicious child processes.
- The initiating account or parent process is not an expected N-central service component.
Containment actions:
- If exploitation is suspected, isolate the N-central host from the network while preserving access for incident response if possible.
- Disable or restrict the affected service account only if it is confirmed to be abused and doing so will not disrupt broader recovery efforts.
- Preserve relevant logs, the written package, and process artifacts before rebooting or remediating the host.
Closure criteria:
- The alert is matched to a documented and validated N-central upgrade or maintenance activity.
- The spawned process is confirmed as an expected upgrade-related component with no additional suspicious follow-on activity.
- No unexpected network connections, persistence changes, or additional malicious processes are found on the host.
Detection 2: N-central Service Process Spawning Unexpected Shell or Network Tool
Detection Opportunity
Unauthenticated RCE exploitation chain against N-central causes anomalous shell or interpreter process to spawn from N-central service account
Intelligence Context
- Rapid7: CVE-2026-125958: N-able N-central Privilege Escalation via Unsigned Upgrade Packages — https://www.rapid7.com/blog/post/ve-cve-2026-125958-n-able-n-central-privilege-escalation-via-unsigned-upgrade-packages
- Context: Rapid7 developed an unauthenticated RCE exploitation chain against N-central. Successful exploitation results in code execution under a privileged service account, which would manifest as unexpected shell or network utility processes spawned from N-central service parents.
Search Metadata
- CVEs: CVE-2026-125958, CVE-2026-86206, CVE-2026-86207
- Threat actors: Not specified
- ATT&CK tags: T1068, T1190
- Products: N-able N-central
- Platforms: Windows, Linux
- Malware: Not specified
- Tools: Not specified
- Search tags: CVE-2026-125958, CVE-2026-86206, CVE-2026-86207, T1068, T1190, N-able N-central, Windows, Linux
Relevant IOCs
No explicit IOCs were preserved for this detection.
Metadata
- Readiness: hunting-only
- Platform: Defender XDR
- Analytic type: scheduled_rule
- Severity recommendation: high
- MITRE ATT&CK: Initial Access: T1190 Exploit Public-Facing Application (high); Privilege Escalation: T1068 Exploitation for Privilege Escalation (medium)
Deployment Gates
- Do not schedule yet; validate as an analyst-led hunt first.
Required telemetry:
- DeviceProcessEvents, DeviceNetworkEvents
KQL
let suspiciousChildren = dynamic(["cmd.exe", "powershell.exe", "bash", "sh", "dash", "python", "python3", "perl", "wget", "curl", "nc", "ncat", "whoami", "id"]);
let nCentralParents = dynamic(["ncentral", "nable", "tomcat", "java"]);
let procEvents = DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName has_any (nCentralParents)
| where FileName has_any (suspiciousChildren)
| project
Timestamp,
DeviceName,
AccountName,
InitiatingProcessAccountName,
InitiatingProcessFileName,
FileName,
ProcessCommandLine;
procEvents
| join kind=leftouter (
DeviceNetworkEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName has_any (suspiciousChildren)
| project
DeviceName,
NetTime = Timestamp,
RemoteIP,
RemotePort,
NetInitiatingProcess = InitiatingProcessFileName
) on DeviceName
| where isnotempty(RemoteIP)
and NetTime between (Timestamp .. (Timestamp + 5m))
or ProcessCommandLine has_any ("whoami", "id", "uname", "ifconfig", "ipconfig", "hostname")
| project
Timestamp,
DeviceName,
AccountName,
InitiatingProcessAccountName,
InitiatingProcessFileName,
FileName,
ProcessCommandLine,
NetTime,
RemoteIP,
RemotePort
| order by Timestamp desc
False Positives / Tuning / Risks / Caveats
Expected false positives:
- Legitimate administrative scripts invoked by N-central service accounts for health checks or maintenance that spawn bash or python.
- Java or Tomcat processes unrelated to N-central on the same host that spawn shell utilities during normal operation.
- Monitoring agents or backup tools that use curl or wget and are invoked from Tomcat-based application contexts.
Tuning notes:
- Scope DeviceName to the N-central server population by joining against a known host list or device group before deploying as a scheduled rule.
- Replace the InitiatingProcessFileName has_any filter with the exact N-central service binary name once confirmed in the deployment to reduce false positives from other Java applications.
- Consider splitting the query into two separate rules: one for network-corroborated shell spawns and one for local reconnaissance commands, to allow independent tuning of each signal.
- Allowlist known legitimate child processes identified during baseline review by adding FileName exclusions.
Risks / caveats:
- ParentProcessName is not a native field in DeviceProcessEvents in Defender XDR; the correct field is InitiatingProcessFileName. The original query references ParentProcessName which will return empty results. The improved KQL corrects this.
- DeviceNetworkEvents.InitiatingProcessFileName must be populated for the network join to correlate correctly; this field may be absent for some process-network event pairs depending on agent version and OS.
- The InitiatingProcessFileName filter on ‘java’ and ‘tomcat’ matches any Java or Tomcat process on the host, not exclusively N-central. Without host scoping this will generate noise across the estate.
- The OR condition between the network join time-window and the command-line reconnaissance filter means either path alone triggers an alert; the reconnaissance-only path has no network corroboration and may produce false positives from legitimate admin activity.
Triage Runbook
First 15 minutes:
- Confirm the host is an N-central server and determine whether the process spawn occurred during a known maintenance or upgrade window.
- Review the child process name and command line for obvious attacker tradecraft such as cmd, powershell, bash, sh, python, curl, wget, nc, or reconnaissance commands.
- Check the initiating process name and account to verify whether the parent is a legitimate N-central service component or an unexpected process masquerading as one.
- Look for immediate network activity from the same process or host, especially outbound connections to unfamiliar IPs or ports.
Evidence to collect:
- Timestamp, DeviceName, AccountName, InitiatingProcessAccountName, InitiatingProcessFileName, FileName, and ProcessCommandLine.
- NetTime, RemoteIP, and RemotePort for any correlated network activity.
- ProcessId and InitiatingProcessId if available to reconstruct the process tree.
- Any related DeviceProcessEvents and DeviceNetworkEvents on the same host within a few minutes of the alert.
Pivot points:
- DeviceProcessEvents for the same host to identify other suspicious child processes spawned by the N-central service context.
- DeviceNetworkEvents for the same host and time window to identify outbound connections from the suspicious child process.
- DeviceLogonEvents to determine whether any interactive logon or unusual administrative access occurred before the alert.
- DeviceFileEvents for dropped files or package writes that may indicate the initial exploitation step.
Benign explanations:
- A legitimate N-central maintenance script that uses shell utilities for health checks, updates, or service restarts.
- A known administrative automation job launched from the N-central environment.
- A benign monitoring or backup tool invoked from a Java or Tomcat context on the same host.
Escalation criteria:
- The child process is a shell, interpreter, or network tool with no approved operational justification.
- The command line shows reconnaissance, file download, credential access, or remote execution behavior.
- The process establishes an outbound connection to an untrusted IP or unusual port shortly after launch.
- Multiple suspicious child processes or package writes occur on the same host in the same time window.
Containment actions:
- If the process appears malicious, isolate the N-central host from the network to stop further command execution.
- Terminate the suspicious child process and any clearly related follow-on processes if containment can be done safely.
- Preserve process, network, and file artifacts before remediation or service restart.
Closure criteria:
- The process is confirmed to be a documented and expected N-central administrative action.
- No suspicious network activity, follow-on child processes, or file writes are associated with the event.
- The host is validated as clean after review of the surrounding process tree and network activity.
Detection 3: Web Server Process Spawning Shell or Interpreter After PHP Execution
Detection Opportunity
Backdoored PHP obfuscator code executing system commands, causing web server processes to spawn unexpected shell or interpreter child processes
Intelligence Context
- SANS ISC: Backdoored PHP Obfuscator, (Sun, Nov 29th) — https://isc.sans.edu/diary/rss/33556
- Context: SANS ISC identified a web-based PHP obfuscator tool that includes backdoor functionality beyond simple code obfuscation. Backdoored PHP commonly executes system commands via functions such as exec, shell_exec, or passthru, which manifest as shell or interpreter processes spawned from web server parent processes.
Search Metadata
- CVEs: Not specified
- Threat actors: Not specified
- ATT&CK tags: T1059
- Products: Not specified
- Platforms: PHP, web servers
- Malware: Not specified
- Tools: Not specified
- Search tags: PHP, web servers, T1059
Relevant IOCs
No explicit IOCs were preserved for this detection.
Metadata
- Readiness: hunting-only
- Platform: Defender XDR
- Analytic type: hunting
- Severity recommendation: medium
- MITRE ATT&CK: Execution: T1059 Command and Scripting Interpreter (medium)
Deployment Gates
- Do not schedule yet; validate as an analyst-led hunt first.
Required telemetry:
- DeviceProcessEvents
KQL
let webServerProcesses = dynamic(["apache2", "httpd", "nginx", "php-fpm", "php", "lighttpd"]);
let suspiciousChildren = dynamic(["bash", "sh", "dash", "zsh", "python", "python3", "perl", "ruby", "nc", "ncat", "curl", "wget", "whoami", "id", "uname"]);
DeviceProcessEvents
| where Timestamp > ago(7d)
| where InitiatingProcessFileName has_any (webServerProcesses)
| where FileName has_any (suspiciousChildren)
| summarize
Count = count(),
CommandLines = make_set(ProcessCommandLine, 10),
AccountNames = make_set(AccountName, 5),
FirstSeen = min(Timestamp),
LastSeen = max(Timestamp)
by DeviceName, InitiatingProcessFileName, FileName, InitiatingProcessAccountName
| where Count < 5
| project
DeviceName,
InitiatingProcessFileName,
InitiatingProcessAccountName,
FileName,
Count,
CommandLines,
AccountNames,
FirstSeen,
LastSeen
| order by FirstSeen desc
False Positives / Tuning / Risks / Caveats
Expected false positives:
- Legitimate PHP CGI scripts that invoke shell utilities for file processing, image manipulation, or system health checks.
- Web server maintenance scripts run under the web server account that spawn bash or python for log rotation or certificate renewal.
- Monitoring agents that use curl or wget and are invoked from web server process contexts.
Tuning notes:
- After initial hunt review, add ProcessCommandLine exclusions for confirmed legitimate CGI or maintenance script patterns to reduce recurring false positives.
- Consider adding a DeviceNetworkEvents join scoped to a short time window after each process spawn to surface shells that establish outbound connections, which are higher-confidence indicators of backdoor activity.
- Adjust the Count threshold based on observed baseline frequency of legitimate web-server-spawned shell processes in the environment.
- Scope to web server hosts by joining against a device group or known web server hostname list to reduce coverage to relevant targets.
Risks / caveats:
- ParentProcessName is not a native field in DeviceProcessEvents in Defender XDR; the correct field is InitiatingProcessFileName. The original query references ParentProcessName which will return empty results. The improved KQL corrects this.
- FolderPath in DeviceProcessEvents refers to the spawned process binary path, not the PHP script path; exclusions based on FolderPath may not correctly exclude CGI directories where the web server binary itself resides.
- The Count < 5 threshold is a heuristic with no empirical basis for any specific environment; legitimate low-frequency CGI scripts will appear in results and require manual review.
- The 7-day lookback window increases the likelihood of capturing legitimate maintenance activity alongside malicious events, requiring analyst triage of all results.
Triage Runbook
First 15 minutes:
- Identify the host and confirm it is a web server or PHP application server before treating the alert as suspicious.
- Review the spawned process name and command line for indicators of malicious behavior such as shell invocation, download tools, or reconnaissance commands.
- Check the parent process and account context to see whether the child process was launched by an expected web server service account.
- Look for repeated occurrences on the same host and whether the process made outbound network connections after spawning.
Evidence to collect:
- DeviceName, InitiatingProcessFileName, InitiatingProcessAccountName, FileName, AccountName, and ProcessCommandLine.
- Count, FirstSeen, LastSeen, and the set of command lines from the hunt output.
- Any related DeviceNetworkEvents from the same host and time range.
- Any related web server logs or application logs that show the HTTP request or PHP script executed at the same time.
Pivot points:
- DeviceProcessEvents for the same host to identify additional shell or interpreter spawns from the web server context.
- DeviceNetworkEvents to determine whether the spawned process reached out to external infrastructure.
- DeviceFileEvents to look for newly written web content, scripts, or dropped binaries on the web server.
- Web server and application logs to correlate the process spawn with a specific request or script execution.
Benign explanations:
- A legitimate PHP CGI or maintenance script that invokes shell utilities for file handling, image processing, or system checks.
- A scheduled web application task such as certificate renewal, log rotation, or backup processing.
- A monitoring or deployment tool that runs under the web server account and uses curl, wget, or a scripting interpreter.
Escalation criteria:
- The command line shows suspicious actions such as downloading payloads, enumerating the system, or launching an interactive shell.
- The event is not explainable by a known application workflow or approved maintenance task.
- The spawned process makes outbound connections to unfamiliar destinations or is followed by additional suspicious child processes.
- The same host shows repeated low-frequency shell spawns that do not match baseline behavior.
Containment actions:
- If malicious PHP execution is suspected, isolate the web server from the network to prevent further command execution or web shell use.
- Disable the affected web application or virtual host if it is the likely entry point and business impact is acceptable.
- Preserve web content, application logs, and process artifacts before cleanup or rebuild.
Closure criteria:
- The process is matched to a known legitimate CGI, maintenance, or monitoring workflow.
- No suspicious network activity, file drops, or repeated shell spawns are found.
- The host and application logs support a benign explanation for the process chain.
Recommended Next Actions
Pre-Deployment Checklist by Dependency Type
Schema / correlation keys:
- N-central NSP Package Write Followed by Elevated Process Spawn: Do not schedule yet; validate as an analyst-led hunt first.
- N-central Service Process Spawning Unexpected Shell or Network Tool: Do not schedule yet; validate as an analyst-led hunt first.
- Web Server Process Spawning Shell or Interpreter After PHP Execution: Do not schedule yet; validate as an analyst-led hunt first.
Shared-table notes:
- DeviceProcessEvents: shared by N-central NSP Package Write Followed by Elevated Process Spawn; N-central Service Process Spawning Unexpected Shell or Network Tool; Web Server Process Spawning Shell or Interpreter After PHP Execution
Sequenced Deployment Plan
- Keep hunting-only detections in analyst-led mode until their promotion criteria are met: N-central NSP Package Write Followed by Elevated Process Spawn; N-central Service Process Spawning Unexpected Shell or Network Tool; Web Server Process Spawning Shell or Interpreter After PHP Execution.
Hunting Agenda and Promotion Criteria
- N-central NSP Package Write Followed by Elevated Process Spawn: Do not schedule yet; validate as an analyst-led hunt first.; baseline expected benign activity and define an alert-volume threshold; prove correlation keys join correctly on real tenant telemetry.
- N-central Service Process Spawning Unexpected Shell or Network Tool: Do not schedule yet; validate as an analyst-led hunt first.; baseline expected benign activity and define an alert-volume threshold; prove correlation keys join correctly on real tenant telemetry.
- Web Server Process Spawning Shell or Interpreter After PHP Execution: Do not schedule yet; validate as an analyst-led hunt first.; baseline expected benign activity and define an alert-volume threshold; prove correlation keys join correctly on real tenant telemetry.
Unique Blind Spot Callout
No unique blind spot was isolated beyond the detection-specific gates above.
Generated by DevSecOpsDadAttack threat intelligence and detection engineering. Validate detections before deployment.