Analysis Reveals Linux RAT with Localhost C2 and Credential-Theft Capabilities

Summary
Analysis of a custom 64-bit Linux RAT found HTTP tasking configured for 127.0.0.1:8080, credential theft, persistence and network-pivoting capabilities. A sandbox run confirmed registration and execution of six commands; the sample’s origin and real C2 remain unknown.
Key points
- The custom C-written Linux RAT identifies itself as sysmond 1.2.4 and polls its C2 every five seconds over HTTP.
- This sample is configured to contact 127.0.0.1:8080. The analysis says this could reflect a default or test build, or a tunnelled deployment; the file does not establish which.
- In an isolated sandbox, the sample registered with a fake server, accepted six commands and returned results.
- Its capabilities include shell commands, file operations, system and network discovery, SSH-key and password-hash collection, persistence, a SOCKS5 proxy and port forwarding.
- A built-in privilege-escalation scanner checks for misconfigurations and known kernel CVEs, then prints suggested commands; it does not exploit vulnerabilities itself.
- The article provides detection advice, including checking for its API paths, shortened Chrome 125 user-agent string and unexpected listeners or forwarding on local port 8080.
Article Details
- Attack Vectors
- The Linux RAT polls a configured HTTP C2 endpoint every five seconds for tasks and posts results; the analyzed sample was configured to use 127.0.0.1:8080, which the article says could indicate a test/default build or a tunnelled deployment.
- The operator can execute shell commands and browse, read, modify, delete, upload, and download files.
- The agent can collect /etc/shadow password hashes and SSH private and host keys.
- When ordered, it can establish persistence through cron, a systemd user service, shell profile changes, desktop autostart entries, or SSH authorized_keys.
- The agent can provide a SOCKS5 proxy and port forwards for access to other machines on the victim network.
- It can fetch URLs using curl, wget, or its own HTTP client, and scan TCP ports and host system details.
- Defensive Notes
- Treat an unfamiliar sysmond process as suspicious, but do not rely on that name because the operator can rename the file; check whether the file belongs to an installed package.
- Look for cron entries under a # Updates comment, shell profile entries under # Init ending in disown, unexpected files in ~/.config/systemd/user/ or ~/.config/autostart/, and unrecognized keys in authorized_keys.
- If the agent is found, the article advises assuming SSH keys, password hashes, and cloud credentials on the machine were stolen and rotating them.
- Monitor for /api/v1/register, /api/v1/tasks/, and /api/v1/results together with the shortened Chrome 125 user agent; tunnelled instances may show this traffic on the loopback interface.
- Check for processes listening on or forwarding to local port 8080 on hosts where the file was found.
Indicators of compromise
| Type | Indicator | Context |
|---|---|---|
| MD5 | 12388b33a2c9f8e652ac47e454c9697f | MD5 hash listed as an indicator of compromise for the Linux backdoor. |
| SHA256 | 3229dd1e29fc26fd99dff313ef5039afab699c89bd1f295311d380c8031ac2fd | SHA256 hash listed as an indicator of compromise for the Linux backdoor. |
MITRE ATT&CK
T1003.008 · /etc/passwd and /etc/shadowWhen running as root, the agent can read password hashes from /etc/shadow.T1046 · Network Service DiscoveryThe agent includes a TCP port scanner.T1053.003 · CronThe operator can order the agent to establish persistence with a cron job.T1057 · Process DiscoveryThe agent can collect process details.T1059.004 · Unix ShellThe agent can run arbitrary shell commands, including commands it does not recognize as its own.T1071.001 · Web ProtocolsThe agent registers, polls for tasks, and posts results using JSON over HTTP.T1082 · System Information DiscoveryThe agent can collect system details.T1090 · ProxyThe agent can provide a SOCKS5 proxy and up to eight port forwards for pivoting through the victim machine.T1098.004 · SSH Authorized KeysThe operator can order the agent to add an SSH key to authorized_keys.T1105 · Ingress Tool TransferThe agent can fetch URLs and transfer files to and from the infected machine.T1543.002 · Systemd ServiceThe agent can establish persistence with a systemd user service.T1546.004 · Unix Shell Configuration ModificationThe agent can add persistence through .bashrc, .zshrc, or .profile.T1547.013 · XDG Autostart EntriesThe agent can create a hidden desktop autostart entry for persistence.T1552.004 · Private KeysThe agent collects SSH private keys from home directories and SSH host keys.T1613 · Container and Resource DiscoveryThe agent can collect container details, including Docker, Kubernetes, and LXC information.
Tools
capaTools used: Malcat, capa, objdump and a sandboxed run against a local test server.MalcatTools used: Malcat, capa, objdump and a sandboxed run against a local test server.objdumpTools used: Malcat, capa, objdump and a sandboxed run against a local test server.REMnuxThis analysis and write-up were produced by Claude (Opus 5.5), working as an agent in Claude Code on a REMnux analysis VM.
