Detecting N-central 4EverAble2Shell: 5 Sigma rules for web, host and network

Detecting N-central 4EverAble2Shell: 5 Sigma rules for web, host and network

The 4EverAble2Shell chain against N-able N-central went from public PoC to root on production servers in about five hours on November 12, 2026, and there is still no fix. When a vendor can’t close the hole yet, detection is what you have left. I covered the bug, the timeline and the mitigation in my analysis of the attack; this post is the defender’s half.

You get five Sigma rules, one per stage of the chain, each with the plain-language logic, the ATT&CK mapping, realistic false positives and a safe way to test it in a lab. Four are built on indicators Huntback and Huntress published; one is my own inference and is marked that way.

At a glance

  • Rules: 5 (1 critical, 3 high, 1 medium).
  • Domains: Web/App, Linux, Network.
  • Log sources: WAF or reverse proxy with request bodies, Sysmon for Linux or auditd or EDR on the appliance, firewall logs.
  • ATT&CK: T1190, T1059.004, T1068, T1543.002, T1053.003, T1105, T1496.001.
  • Status: four rules at test (source-confirmed indicators), one at experimental (inferred process tree).
  • YAML: Detection Rules repo on GitHub.

The case in brief

The chain needs the Legacy API to be enabled, which is off by default. An unauthenticated POST to /dms/services/ServerUI, an Apache Axis 1.x endpoint, carries a SOAP fault whose exceptionName names jline.internal.TerminalLineSettings. Axis builds that class (CVE-2026-90436, unsafe reflection), and its constructor runs a shell command as the nable service account. A Python script then plants a symlink at /var/opt/n-central/flag/flag_default.json pointing at ServerChild.sh, gets the privileged helper nable_wrapper.pl to hand over ownership, writes its own commands into the script and lets the helper run it as root. It keeps serverchild-* backup and result files in /var/opt/n-central/tmp/ and deletes them when done.

As root, the attacker in Huntback’s capture fetched jup.sh from 157.20.241.16 on port 8080, staged XMRig in /tmp/.xvd or /var/tmp/.xvd and set up a watchdog through xvd.service, a crontab line tagged # xvkeep or /etc/cron.d/xvd. Each step leaves something: a request body at the edge, a process tree and file writes on the appliance, and outbound connections at the firewall. The full story is in the analysis post.

Detection map

Detection map: four telemetry sources (WAF, appliance processes, appliance file events, firewall) feed five Sigma rules, one critical, three high and one medium, mapped to T1190, T1059.004, T1068, T1543.002, T1053.003, T1105 and T1496.001, with gaps for symlink, cleanup and user crontab.
Which telemetry feeds which rule, and what stays uncovered without auditd on the appliance.

Read it left to right. The web rule is the only one that fires before the attacker has code running, and it depends on body logging that most people don’t have in front of N-central. The two file rules on the appliance are the sharpest post-exploitation signals because the paths are specific to this tool. The firewall rule is the one almost everyone can run today, but it ages fastest. The dashed box is what none of the rules sees without extra auditd configuration.

Rule overview

RuleDomainLog sourceATT&CK (tactic / technique)LevelStatus
Axis SOAP fault naming JLine TerminalLineSettingsWeb/AppwebserverInitial Access / T1190Criticaltest
Java spawning download tool, interpreter or non-stty shellLinuxlinux / process_creationExecution / T1059.004Mediumexperimental
ServerChild backup or result file createdLinuxlinux / file_eventPrivilege Escalation / T1068Hightest
XVD miner staging or persistence filesLinuxlinux / file_eventPersistence / T1543.002, T1053.003; Impact / T1496.001Hightest
Traffic with campaign infrastructureNetworkfirewallCommand and Control / T1105; Impact / T1496.001Hightest

The rules

1. Axis SOAP fault naming JLine TerminalLineSettings

Context: this is the exploit request itself. Huntress lists a POST to /dms/services/ServerUI containing jline.internal.TerminalLineSettings as an indicator, and Huntback saw it in live traffic. It is the only rule that can fire before the attacker gets a shell.

Condition: alert on any POST to /dms/services/ServerUI whose request body contains the class name jline.internal.TerminalLineSettings.

ATT&CK: Initial Access (TA0001) – T1190 Exploit Public-Facing Application.

title: N-central Axis SOAP Fault Naming JLine TerminalLineSettings - CVE-2026-90436 (4EverAble2Shell)
id: cd9b774f-9fdd-4533-8134-4d7d7ee541f5
status: test
description: |
    Detects a POST to the N-central Apache Axis 1.x endpoint /dms/services/ServerUI whose body names the
    class jline.internal.TerminalLineSettings, the gadget the 4EverAble2Shell chain asks Axis to instantiate
    through the SOAP fault exceptionName element (CVE-2026-90436). Needs a proxy or WAF that logs request bodies;
    request_body is not a standard webserver field, so map it to your body field (for example http.request.body.content).
references:
    - https://huntress.com/blog/n-able-disables-cloud-services-following-disclosure-of-able2shell-exploit-chains
    - https://huntback.io/blog/ncentral-4everable2shell-miners-on-live-servers
    - https://www.cve.org/CVERecord?id=CVE-2026-90436
    - https://netsec101.com/?p=240
author: netsec101.com
date: 2026-11-15
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2026-90436
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection_request:
        cs-method: 'POST'
        cs-uri-stem|contains: '/dms/services/ServerUI'
    selection_body:
        request_body|contains: 'jline.internal.TerminalLineSettings'
    condition: all of selection_*
falsepositives:
    - Authorised penetration tests or vulnerability scanners replaying the public PoC
level: critical

View on GitHub

False positives and tuning: I can’t think of a legitimate client that sends this class name, so the only expected hits are your own pentesters and scanners replaying the public PoC. The catch is coverage, not noise. request_body is not a standard Sigma webserver field; map it to your WAF’s or proxy’s body field (for example http.request.body.content in ECS). Don’t fall back to a URI-only version for alerting: agents and probes use these endpoints all day, so it would only work as a hunting pre-filter. If you want a broader net, hunt for exceptionName in any request body to /dms/services/; that catches other gadget classes too, at the price of needing a baseline.

How to test: don’t fire the exploit. Push a synthetic log line into the SIEM with method POST, URI stem /dms/services/ServerUI and a body field that contains the class name as plain text, then check the converted query matches it.

2. Java spawning a download tool, interpreter or non-stty shell

Context: once Axis builds the class, commands run as nable under the Java web stack, and Huntback describes a raw TCP callback and a Python escalation script next. The precise process tree is my inference from that description, which is why this rule is experimental. It is also the rule most likely to outlive this campaign, since the next gadget class will need a process too.

Condition: alert when a process whose parent is java is curl, wget, Python, nc, ncat or socat, or is sh, bash or dash with a command line that mentions a download tool, Python, /dev/tcp/, /tmp/, /var/tmp/ or base64, unless the command line contains stty. JLine legitimately shells out to stty, and that is exactly the call the exploit abuses, so the filter removes the normal case.

ATT&CK: Execution (TA0002) – T1059.004 Unix Shell; secondary Initial Access (TA0001) – T1190.

title: N-central Java Process Spawning Download Tool, Interpreter or Non-stty Shell
id: 79dc7647-a4e7-41cc-a26e-a9f45d93af95
status: experimental
description: |
    Detects the Java web stack on an N-central server spawning curl, wget, Python, netcat or socat, or a shell whose
    command line fetches or runs something, while excluding the stty calls JLine makes legitimately. 4EverAble2Shell
    turns an Axis class instantiation into shell commands as the nable account; the exact process tree is inferred.
references:
    - https://huntback.io/blog/ncentral-4everable2shell-miners-on-live-servers
    - https://www.cve.org/CVERecord?id=CVE-2026-90436
    - https://netsec101.com/?p=240
author: netsec101.com
date: 2026-11-15
tags:
    - attack.execution
    - attack.t1059.004
    - attack.initial-access
    - attack.t1190
    - cve.2026-90436
logsource:
    product: linux
    category: process_creation
detection:
    selection_parent:
        ParentImage|endswith: '/java'
    selection_child_tool:
        Image|endswith:
            - '/curl'
            - '/wget'
            - '/python'
            - '/python3'
            - '/nc'
            - '/ncat'
            - '/socat'
    selection_child_shell:
        Image|endswith:
            - '/sh'
            - '/bash'
            - '/dash'
        CommandLine|contains:
            - 'curl '
            - 'wget '
            - 'python'
            - '/dev/tcp/'
            - '/tmp/'
            - '/var/tmp/'
            - 'base64'
    filter_main_stty:
        CommandLine|contains: 'stty'
    condition: selection_parent and 1 of selection_child_* and not filter_main_stty
falsepositives:
    - N-central maintenance or update jobs started by the application that call curl, wget or Python (baseline for a week and exclude by full command line)
    - Administrator scripts launched from the N-central UI
level: medium

View on GitHub

False positives and tuning: N-central is an appliance that runs its own maintenance jobs, and some of them may well call curl or Python from Java. Run the rule for a week, collect hits, and exclude by full command line, not by binary name. If your telemetry carries the user name, scoping to User: nable tightens it further. The attacker can sidestep the shell filter by putting stty somewhere in the command; that is a known weakness of any allow-by-string filter, and another reason this sits at medium.

How to test: on a lab Linux machine with Sysmon for Linux, run a tiny Java program whose ProcessBuilder calls sh -c "curl -s http://127.0.0.1/". You should see one hit with ParentImage ending in /java.

3. ServerChild backup or result file created

Context: this is the nable-to-root step, which has no CVE. Huntback and Huntress both list serverchild-* files in /var/opt/n-central/tmp/ (Huntress specifies a 12-character hex suffix). The tool cleans them up afterwards, so checking the disk later can come back clean even on a compromised server. A creation event recorded at the time survives that cleanup.

Condition: alert when a file is created in /var/opt/n-central/tmp/ whose name starts with serverchild- and ends in .bak, .sh or .out.

ATT&CK: Privilege Escalation (TA0004) – T1068 Exploitation for Privilege Escalation.

title: N-central ServerChild Backup or Result File Created - 4EverAble2Shell Root Escalation
id: 7d9c173d-c462-4534-8b58-8530428b40ae
status: test
description: |
    Detects creation of serverchild-*.bak, .sh or .out files in /var/opt/n-central/tmp/, which the 4EverAble2Shell
    escalation script writes while it abuses nable_wrapper.pl and a flag_default.json symlink to run ServerChild.sh
    as root. The tool deletes these files afterwards, so the creation event is the evidence, not the file on disk.
references:
    - https://huntback.io/blog/ncentral-4everable2shell-miners-on-live-servers
    - https://huntress.com/blog/n-able-disables-cloud-services-following-disclosure-of-able2shell-exploit-chains
    - https://www.bleepingcomputer.com/news/security/new-n-able-4everable2shell-zero-day-exploited-hours-after-poc-released/
    - https://netsec101.com/?p=240
author: netsec101.com
date: 2026-11-15
tags:
    - attack.privilege-escalation
    - attack.t1068
    - detection.emerging-threats
logsource:
    product: linux
    category: file_event
detection:
    selection:
        TargetFilename|startswith: '/var/opt/n-central/tmp/serverchild-'
        TargetFilename|endswith:
            - '.bak'
            - '.sh'
            - '.out'
    condition: selection
falsepositives:
    - Unknown. N-central is not documented to create serverchild-* files in this folder; confirm on a clean appliance before paging on it
level: high

View on GitHub

False positives and tuning: I have not seen any source say N-central creates these files on its own, but I can’t rule it out either. Check on a clean appliance before you page on it. The planted symlink at /var/opt/n-central/flag/flag_default.json is a second strong signal, but Sysmon for Linux file events don’t reliably record symlink creation. If you run auditd, a watch such as -w /var/opt/n-central/flag/ -p wa -k ncentral_flag covers it; pair that with this rule.

How to test: on a lab box with the same telemetry, create the folder and run touch /var/opt/n-central/tmp/serverchild-000000000000.out.

4. XVD miner staging or persistence files

Context: the payload. Huntback documents jup.sh installing XMRig under /tmp/.xvd or /var/tmp/.xvd (files x, keep.sh, xm.log) and a watchdog through /etc/systemd/system/xvd.service or /etc/cron.d/xvd. A miner is the least dangerous thing root can do here, but it is also the step this crew has already taken on 21 servers.

Condition: alert when any file is created under /tmp/.xvd/ or /var/tmp/.xvd/, or when /etc/systemd/system/xvd.service or /etc/cron.d/xvd is written.

ATT&CK: Persistence (TA0003) – T1543.002 Systemd Service, T1053.003 Cron; Impact (TA0040) – T1496.001 Compute Hijacking.

title: XVD Miner Staging or Persistence Files Created - N-central 4EverAble2Shell Campaign
id: be2235c4-7763-45ed-8069-29826d11f456
status: test
description: |
    Detects the files written by the jup.sh installer seen after 4EverAble2Shell exploitation: the miner folder
    /tmp/.xvd or /var/tmp/.xvd and its watchdog persistence through /etc/systemd/system/xvd.service or /etc/cron.d/xvd.
references:
    - https://huntback.io/blog/ncentral-4everable2shell-miners-on-live-servers
    - https://netsec101.com/?p=240
author: netsec101.com
date: 2026-11-15
tags:
    - attack.persistence
    - attack.t1543.002
    - attack.t1053.003
    - attack.impact
    - attack.t1496.001
    - detection.emerging-threats
logsource:
    product: linux
    category: file_event
detection:
    selection_staging:
        TargetFilename|startswith:
            - '/tmp/.xvd/'
            - '/var/tmp/.xvd/'
    selection_persistence:
        TargetFilename:
            - '/etc/systemd/system/xvd.service'
            - '/etc/cron.d/xvd'
    condition: 1 of selection_*
falsepositives:
    - Unlikely. Unrelated software using a hidden .xvd folder in /tmp or an xvd systemd unit would match; check owner and content
level: high

View on GitHub

False positives and tuning: these names are specific enough that I would alert straight away. The rule is tied to this crew’s tooling, so pair it with SigmaHQ’s generic “Linux Crypto Mining Indicators” process rule for the next miner. Note that it looks for flags such as --donate-level=0, while this campaign used --donate-level 1 and --rig-id nc_; add those two strings to a local copy if you want process coverage for this specific miner. The crontab variant tagged # xvkeep lives in the user crontab spool and is a file modification, not a creation, so it needs FIM or an auditd watch on the crontab spool directory.

How to test: mkdir /tmp/.xvd && touch /tmp/.xvd/test on a lab box, then delete it.

5. Traffic with campaign infrastructure

Context: Huntback tied 157.20.241.16 to the probes, the weaponised requests, the payload download on port 8080 and the reverse-shell callbacks on ports 19202 to 19418, and named two pool endpoints, 139.99.69.109:10128 and 79.76.51.56:39100. Most N-central owners have firewall logs even when they have nothing on the appliance, so this is the rule that lets you look back at November 12 today.

Condition: alert on any connection from 157.20.241.16, any connection to it, or a connection to either pool address on its documented port.

ATT&CK: Command and Control (TA0011) – T1105 Ingress Tool Transfer; Impact (TA0040) – T1496.001 Compute Hijacking; Initial Access (TA0001) – T1190 for the inbound side.

title: Traffic With 4EverAble2Shell Mining Campaign Infrastructure
id: 5d5efa38-db95-49a5-a684-d8a9dc69827a
status: test
description: |
    Detects inbound connections from the exploit and payload host 157.20.241.16, and outbound connections to it or to
    the two mining pool addresses Huntback tied to the N-central mining campaign of November 12, 2026.
    IOC rule with a short shelf life; use it for retro-hunting and review it after 30 days.
references:
    - https://huntback.io/blog/ncentral-4everable2shell-miners-on-live-servers
    - https://www.bleepingcomputer.com/news/security/new-n-able-4everable2shell-zero-day-exploited-hours-after-poc-released/
    - https://netsec101.com/?p=240
author: netsec101.com
date: 2026-11-15
tags:
    - attack.command-and-control
    - attack.t1105
    - attack.impact
    - attack.t1496.001
    - attack.initial-access
    - attack.t1190
    - detection.emerging-threats
logsource:
    category: firewall
detection:
    selection_inbound:
        src_ip: '157.20.241.16'
    selection_outbound_payload:
        dst_ip: '157.20.241.16'
    selection_outbound_pool_1:
        dst_ip: '139.99.69.109'
        dst_port: 10128
    selection_outbound_pool_2:
        dst_ip: '79.76.51.56'
        dst_port: 39100
    condition: 1 of selection_*
falsepositives:
    - Shared hosting or mining-pool addresses reused by unrelated services after the campaign ends
level: high

View on GitHub

False positives and tuning: an inbound hit from the source IP on a box without the Legacy API enabled is a failed attempt, not a compromise; raise the priority when the destination is your N-central server and the inbound hit is followed by outbound traffic to the same address. Pool addresses on shared hosting get reused. Give this rule 30 days, then retire it or move it to a hunting query.

How to test: replay a firewall log line with destination 139.99.69.109 and destination port 10128 into your SIEM. Do not connect to the real addresses.

Coverage and gaps

StepTacticTechniqueRuleCovered?
SOAP fault to /dms/services/ServerUIInitial AccessT11901, 5Yes, with body logging
Shell commands as nableExecutionT1059.0042Yes, inferred logic
Raw TCP callback, ports 19202-19418Command and ControlT10955Partly, IOC only
nable_wrapper.pl abuse, ServerChild.sh as rootPrivilege EscalationT10683Yes
Symlink at flag_default.jsonPrivilege EscalationT1068NoneGap: needs auditd watch
Cleanup of temporary filesDefense EvasionT1070.004NoneGap: creation events survive it
jup.sh downloadCommand and ControlT11055Yes, IOC
systemd and cron.d persistencePersistenceT1543.002, T1053.0034Yes
Crontab line tagged # xvkeepPersistenceT1053.003NoneGap: needs FIM or auditd
XMRig miningImpactT1496.0014, 5Yes

The biggest gap is not a technique, it’s the box. N-central runs as an appliance, and many owners have no process or file telemetry from it at all. If that’s you, rules 1 and 5 are your coverage, and rule 1 only works with body logging. The cheapest way to close most of the rest is auditd with a handful of watches (the flag folder, /var/opt/n-central/tmp/, the crontab spool, /etc/systemd/system/) forwarded to your SIEM, assuming N-able’s support terms let you add it. For the exploit request, a Suricata rule on the decrypted HTTP body at your reverse proxy is a better fit than Sigma. Agent2Shell, the companion chain against managed Windows endpoints, is outside this rule set; I haven’t seen enough public detail to write rules for it honestly.

Deploying the rules

Grab the YAML from the Detection Rules repo and convert it with sigma-cli for your SIEM. Pick a pipeline that matches each rule’s log source, and check the field mapping for the Linux and web rules: the Windows pipelines won’t map TargetFilename on Linux or a custom request_body field correctly.

# Splunk, Linux file and process rules
sigma convert -t splunk --without-pipeline file_event_lnx_ncentral_serverchild_root_escalation.yml
# Elastic (Lucene) for the web rule, then map request_body to http.request.body.content
sigma convert -t lucene -p ecs_zeek_beats web_cve_2026_90436_ncentral_axis_jline_soap_fault.yml
# Microsoft Sentinel / Defender XDR (KQL)
sigma convert -t kusto -p microsoft_xdr net_firewall_ncentral_4everable2shell_campaign_ips.yml

Pipeline names change between sigma-cli plugin versions, so run sigma list pipelines first and adjust. Run every rule in alert-only mode for a week before it pages anyone, except rule 1, which I’d let page straight away if you have the telemetry for it.

My take

4EverAble2Shell is very detectable on paper and badly detectable in practice. Every step has a specific, low-noise indicator, but most of them sit on an appliance that few teams monitor like a server they own. That is the real lesson for RMM platforms: the box with the keys to every endpoint is often the one with the least logging.

If I could only turn on one rule, it would be the firewall rule, today, run against everything since November 11, because it needs nothing new. If I could add telemetry, it would be auditd on the appliance, which makes rules 3 and 4 work and closes the symlink gap. Rule 1 is the best rule of the set and the hardest to deploy.

N-able could make all of this easier. An RMM server should ship with audit logging for its own privileged helpers, and should log SOAP faults that name classes it doesn’t expect. Until it does, assume you will find out about the next chain from a mining pool’s dashboard rather than from the server.

Sources

One thought on “Detecting N-central 4EverAble2Shell: 5 Sigma rules for web, host and network”

Leave a Reply