The Silent Miners: How Cybercriminals Are Abandoning Root Access to Hide Inside Linux Systems + Video

Listen to this Post

Featured Image

Introduction: The New Era of Stealth Cryptojacking

Cryptocurrency mining malware has entered a more advanced and dangerous phase. Attackers are no longer focused only on gaining the highest level of control over compromised machines. Instead, some threat actors are deliberately reducing their privileges, hiding behind ordinary user accounts, and blending into normal system activity to avoid detection.

A recent investigation by Group-IB uncovered a sophisticated Monero cryptomining campaign targeting Linux servers where attackers initially obtained root access but later abandoned it. Their goal was not to maintain obvious administrative control, but to disappear into the background by impersonating low-privileged users.

This unusual strategy represents a shift in cybercriminal thinking. Traditional malware campaigns often depend on powerful privileges, persistence mechanisms, and aggressive system modifications. However, modern attackers increasingly understand that visibility is their biggest enemy. A root account compromise immediately attracts attention from security teams, while suspicious activity performed under common user accounts can remain unnoticed for months.

The campaign discovered in May 2026 demonstrates how cryptojacking operators are adopting techniques normally associated with advanced persistent threats. They manipulated Linux authentication mechanisms, disabled security monitoring, erased traces, disguised malicious processes, and even deleted their own mining software from disk.

The result is a highly evasive mining operation designed not just to steal computing resources, but to survive investigations.

Attackers Replace Root With Ordinary Users to Escape Detection

A Strategic Privilege Downgrade

According to Group-IB research published on July 30, 2026, the attackers gained initial access through a trusted third-party relationship connected to the victim environment. After entering the network, they escalated privileges and obtained root-level control.

However, instead of continuing to operate as root, the attackers performed a calculated downgrade.

They exploited the Linux Pluggable Authentication Modules (PAM) framework, specifically abusing the pam_rootok policy, which allows root users to authenticate without a password under certain conditions.

By abusing this mechanism, attackers were able to assume the identities of multiple normal user accounts without knowing their passwords.

This approach provided a major advantage:

Root activity generates immediate security alerts.

Standard user activity often appears normal.

Multiple accounts create confusion during investigations.

Security teams may remove one compromised account while hidden persistence remains elsewhere.

The attackers effectively transformed the Linux permission model into a hiding mechanism.

Deep Analysis: How the Linux PAM Abuse Worked

Understanding the Authentication Manipulation

Linux systems rely heavily on PAM to control authentication processes. PAM acts as a bridge between applications and authentication methods, deciding how users prove their identity.

The attackers abused this trust relationship.

A simplified example of PAM inspection:

cat /etc/pam.d/system-auth

or:

grep pam_rootok /etc/pam.d/

Security teams can search for suspicious PAM configurations using:

grep -R "pam_rootok" /etc/pam.d/

A compromised system may show unexpected authentication rules allowing unauthorized identity switching.

Attackers used this technique to move between accounts while avoiding password-based authentication logs.

The danger of this approach is that many organizations focus heavily on protecting privileged accounts but pay less attention to unusual behavior from ordinary accounts.

A normal-looking username running abnormal processes can be far harder to detect than a root account performing suspicious actions.

A Digital Smoke Screen Designed for Investigators

Destroying Evidence Before Analysts Arrive

Group-IB described the attackers' approach as a “forensic smokescreen.”

The campaign was built around creating confusion.

Instead of relying on a single malicious process, attackers distributed persistence mechanisms across multiple accounts. They created redundant cron jobs so that if one infection point was removed, another could restore the malware.

Example cron investigation:

crontab -l

Security teams can search all user cron entries:

for user in $(cut -f1 -d: /etc/passwd); do
echo "Checking $user"
crontab -u $user -l 2>/dev/null
done

This method allowed the attackers to survive cleanup attempts.

If administrators removed the main implant, hidden accounts could simply rebuild it.

Destroying Logs and Hiding Authentication Activity

Covering the Evidence Trail

The attackers also targeted Linux logging systems.

They stopped important logging services and manipulated authentication records to reduce forensic visibility.

Common Linux logging locations include:

/var/log/auth.log

and:

/var/log/secure

Attackers attempting to hide activity may:

Stop logging services.

Modify authentication records.

Delete command history.

Remove timestamps.

Prevent security agents from collecting events.

Example defensive checks:

systemctl status rsyslog

and:

journalctl --since "24 hours ago"

However, once local logs are compromised, organizations must depend on external monitoring systems.

This is why centralized and tamper-resistant logging has become essential in modern security operations.

Process Masquerading: Pretending to Be Legitimate Software

Malware That Looks Like SSH

The attackers expanded their deception beyond user accounts.

The malware included process masquerading capabilities, allowing malicious processes to appear under legitimate names.

For example, a mining process could pretend to be:

ssh

instead of displaying an obvious mining-related name.

This technique maps to the MITRE ATT&CK technique:

T1564.013 – Hide Artifacts: Process ID Obfuscation

Security analysts checking running processes might see something that appears normal.

Example:

ps aux

A suspicious process named “ssh” consuming large amounts of CPU should immediately raise suspicion.

Additional investigation:

top

or:

htop

can reveal unusual resource consumption.

The Self-Deleting Monero Miner

Malware That Disappears After Execution

The mining implant itself was a modified version of XMRig 6.25.0, a popular open-source Monero mining application.

The malware was customized for stealth.

After execution, it performed several defensive actions:

Created a lock file.

Removed its own binary.

Continued running in memory.

Adjusted mining performance.

Disabled competing miners.

The lock mechanism:

ls -la /tmp/.lock

prevented multiple mining processes from running simultaneously.

This avoided excessive CPU consumption that could alert administrators.

Memory-Only Mining: The End of Traditional Malware Scanning

Why Disk Scanners May Fail

One of the most important characteristics of this campaign was self-deletion.

After launching, the malware removed its executable from the filesystem.

Traditional antivirus scanning often depends on detecting suspicious files stored on disk.

But this malware moved into memory.

Security teams increasingly need memory analysis tools:

ps aux
lsof -i
netstat -tulpn
ss -tulpn

Memory-based threats require a different investigation approach.

The question is no longer:

“Is there a malicious file?”

The question becomes:

“What is currently running that should not exist?”

Optimizing Mining Performance Through Hardware Detection

Turning Servers Into Invisible Mining Farms

The malware analyzed CPU architecture and optimized mining operations.

It used:

CPU topology detection.

Model-specific registers (MSR).

Huge Pages allocation.

Dynamic worker threads.

Example Huge Pages check:

grep HugePages /proc/meminfo

Huge Pages improve mining efficiency by reducing memory overhead.

The attackers were not simply installing miners. They were engineering a professional cryptocurrency operation designed for maximum profit.

Network Evasion Through Fake Traffic Patterns

Making Mining Look Like Normal Applications

The mining communication was also disguised.

The attackers modified Stratum mining traffic by using a Java/Agent user agent.

The purpose was simple:

Make malicious mining communication resemble ordinary application traffic.

Organizations monitoring network behavior may ignore traffic that appears related to common software components.

This demonstrates why behavioral detection is becoming more important than simple signature-based security.

XOR Encryption and Hidden Campaign Identity

Protecting Malware Configuration

The malware stored configuration information behind multiple XOR encryption layers.

After researchers decrypted the configuration, they discovered identifiers connecting the operation to a broader mining infrastructure.

Attackers commonly encrypt configuration data to hide:

Mining pools.

Wallet addresses.

Campaign identifiers.

Command infrastructure.

Security researchers increasingly rely on reverse engineering to uncover these hidden connections.

What Undercode Say:

The Future of Cryptojacking Is About Remaining Invisible

The Group-IB discovery highlights an important transformation in cybercrime.

Attackers no longer need complete control forever.

They need quiet control.

The traditional image of a hacker is someone who breaks into a system and immediately performs destructive actions.

Modern attackers often behave differently.

They understand that long-term access produces more profit.

Cryptojacking is especially suitable for stealth operations because victims may only notice performance degradation.

A server running slower may appear to be a hardware issue.

A high CPU workload may look like a software bug.

A strange user account may appear to be an employee mistake.

This creates a perfect environment for hidden mining campaigns.

The decision to abandon root access is particularly interesting.

It shows that attackers are studying defensive behavior.

Security teams have trained themselves to react quickly to root compromises.

Therefore, criminals are moving below the radar.

The attack demonstrates that privilege is not always the goal.

Persistence is the goal.

A low-privileged account that survives for six months can be more valuable than a root account discovered within minutes.

The PAM abuse technique also exposes a weakness in many Linux security strategies.

Organizations often focus on external attacks.

However, internal authentication mechanisms can become powerful weapons when abused.

Linux administrators should treat authentication configuration as a critical security boundary.

The campaign also proves that traditional antivirus approaches are becoming less effective.

A malware sample that deletes itself challenges the assumption that malicious files will always leave evidence.

Memory analysis, behavioral monitoring, and centralized logging are becoming mandatory.

The use of process masquerading shows that attackers are adopting techniques previously associated with espionage groups.

Cryptojacking is no longer just a simple resource theft problem.

It is becoming a sophisticated intrusion category.

The connection through trusted third parties is another warning.

Supply-chain relationships remain one of the easiest ways for attackers to bypass strong external defenses.

Organizations must evaluate vendors, partners, and connected environments carefully.

Real-time external logging is now essential.

Local logs cannot be trusted after an attacker gains administrative access.

Security teams should monitor:

Unexpected user switching.

Abnormal cron activity.

Hidden processes.

Memory-only applications.

Strange CPU behavior.

Unauthorized PAM changes.

The future of Linux security will depend less on preventing every intrusion.

It will depend on detecting abnormal behavior quickly.

Attackers have learned how to hide.

Defenders must learn how to find what does not belong.

✅ Confirmed: Group-IB Reported a Linux Monero Mining Campaign

The research described by Group-IB identified a Monero cryptomining operation targeting Linux environments.

The campaign involved stealth techniques including PAM abuse, process hiding, and self-deleting malware behavior.

The technical details match known Linux threat patterns involving XMRig-based mining malware.

✅ Confirmed: PAM Abuse Can Enable Identity Manipulation

Linux PAM controls authentication behavior, and misconfigured or abused PAM modules can create serious security risks.

The pam_rootok module does allow root authentication without password verification under specific conditions.

Attackers abusing authentication frameworks represent a realistic enterprise threat.

✅ Confirmed: Memory-Based Malware Challenges Traditional Detection

Malware capable of deleting itself after execution can bypass many file-based security tools.

Memory forensics and external telemetry are increasingly important defensive techniques.

Organizations relying only on endpoint file scanning may miss advanced persistence methods.

Prediction

(+1) Cryptojacking Detection Will Become More Behavioral and AI-Driven

Security platforms will increasingly focus on abnormal behavior rather than malware signatures alone.

AI-powered monitoring systems will likely detect unusual account switching, hidden processes, and suspicious resource consumption faster.

Organizations will invest more heavily in:

Continuous Linux monitoring.

Automated threat hunting.

Memory analysis.

Identity-based security controls.

(-1) Linux Server Attacks Will Continue Growing Through Trusted Relationships

As organizations become better protected externally, attackers will increasingly target vendors, partners, and connected environments.

Cryptomining campaigns will likely become more stealthy, using legitimate system tools and authentication mechanisms instead of obvious malware.

The biggest challenge will not be finding malware.

It will be recognizing malicious activity hiding inside normal operations.

▶️ Related Video (80% Match):

🕵️‍📝Let’s dive deep and fact‑check.

🎓 Live Courses & Certifications:

Join Undercode Academy for Verified Certifications

🚀 Request a Custom Project:

Secure, high-velocity infrastructure and disruptive technological engineering. Contact our engineering team for high-tier development and proprietary systems:
[email protected]
💎 Smart Architecture | 🛡️ Secure by Design | ⭐ Trusted by Thousands

References:

Reported By: www.infosecurity-magazine.com
Extra Source Hub (Possible Sources for article):
https://www.quora.com
Wikipedia
OpenAi & Undercode AI

Image Source:

Unsplash
Undercode AI DI v2

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow UndercodeNews & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin | 🦋BlueSky | 🐘Mastodon | 📺Youtube