The Compromise of a Production VPS
A production VPS was compromised by attackers who deployed crypto-mining malware and persistence services. The attacker likely gained access through a recently disclosed React vulnerability or exposed ports, and the system was fully taken over at root level.
medium.com
Published on medium.com
Security incidents often arrive quietly, without alarm bells or dramatic warnings. They sneak into production environments when we least expect them, on weekends, during moments of downtime, or when routine vigilance slips just a little.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a remote code execution vulnerability in a React server component (CVE-2025-55182) combined with a default firewall that allowed all inbound traffic and applications running as root.
Impact
The attacker used the server for crypto-mining, causing over 16 hours of downtime and making the system unstable; the application data was not accessed, but the system was fully compromised at root level.
What the attacker needed
Exposed VPS with default firewall; applications running as root; likely vulnerable React server
The fix
The server was rebuilt on a fresh VPS with strict firewall rules, non-root users for each service, and only necessary ports exposed.
How it was found
- The owner noticed the production app was not loading and SSH connections were timing out.
- After logging in, the owner ran top and saw a process named rysyslo consuming about 80% CPU.
- The owner deleted the suspicious binary and killed rogue processes, but the system remained unstable.
- The next day, top showed xmrig and other disguised binaries, and the owner found malicious services alive.service and lived.service that restarted scripts from /tmp/runnv.
- The owner backed up data using pgdump and rsync despite frequent SSH drops.
- The owner shut down the compromised VPS and migrated to a fresh instance.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A server was broken into and used to mine cryptocurrency, which made it very slow. The attacker left hidden programs that kept restarting the mining software even after the owner deleted it. The owner could not find exactly how the attacker got in, but thinks it was through a software bug or because too many network ports were open.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.