Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cpanel-cve-2026-41940 — cPanel CVE-2026-41940 nuclear.x86 Security Audit & Cleanup Script | Kitploit
Tools/GitHubGitHub/mahfuzreham/cpanel-cve-2026-41940
Defensive ToolsVulnerability ScannersScripting & AutomationConfiguration AuditingForensicsWeb SecurityMalware AnalysisIncident Response
GitHubmahfuzreham/cpanel-cve-2026-41940

cpanel-cve-2026-41940

cPanel CVE-2026-41940 nuclear.x86 Security Audit & Cleanup Script

View Repository
212 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
Website

🔒 cPanel CVE-2026-41940 — Complete Security Toolkit

Bash License CVE CVSS Platform Imunify360

Complete Security Toolkit for cPanel servers infected with CVE-2026-41940 / nuclear.x86. Two scripts — one full audit and one auto cleanup with Imunify360. Works on both original license and bypass/shared license servers.


👨‍💻 Author

NameMD Mahfuz Reham
RoleSystem Admin | Web Hosting Specialist
WebsiteMahfuzReham.Com
WhatsApp+8801790614055
GitHubgithub.com/mahfuzreham

⚠️ Vulnerability Overview

How to tell if your server is infected:

root@kitploit:~
wget google.com
# "Killed" দেখালে → nuclear.x86 এখনো চলছে
# স্বাভাবিক download হলে → malware নেই বা আগেই মরেছে

📦 What's in this Toolkit

ScriptFunctionWhen to use
cpanel_security_check.shFull server audit, malware kill, SSH key rotationRun this first
imunify360_scan_clean.shScan all accounts and cleanup webshells with Imunify360Then run this

⚡ Quick Start — Run both together

root@kitploit:~
cd /root && \
wget -O cpanel_security_check.sh \
  https://raw.githubusercontent.com/mahfuzreham/cpanel-cve-2026-41940/main/cpanel_security_check.sh && \
wget -O imunify360_scan_clean.sh \
  https://raw.githubusercontent.com/mahfuzreham/cpanel-cve-2026-41940/main/imunify360_scan_clean.sh && \
bash cpanel_security_check.sh && \
bash imunify360_scan_clean.sh

⚠️ Make sure to run as root


🔍 Script 1 — cpanel_security_check.sh

Run:

root@kitploit:~
bash <(curl -s https://raw.githubusercontent.com/mahfuzreham/cpanel-cve-2026-41940/main/cpanel_security_check.sh)

What it checks:

Auto cleanup performs:

  • nuclear.x86 process kill
  • SSH key rotation (with backup)
  • cPanel update (/scripts/upcp --force)

🛡️ Script 2 — imunify360_scan_clean.sh

Run:

root@kitploit:~
bash <(curl -s https://raw.githubusercontent.com/mahfuzreham/cpanel-cve-2026-41940/main/imunify360_scan_clean.sh)

What it does:

Webshell filename patterns it searches for:

root@kitploit:~
wp-cache-*.php    wp-check-*.php    wp-sync-*.php
wp-util-*.php     admin-init-*.php  upgrade-*.php
class-wp-*.php    task_*.php        .*\.php (hidden)

Webshell code patterns:

root@kitploit:~
eval(base64_decode    system($_     passthru($_
assert($_             exec($_        shell_exec($_

📋 Requirements

If Imunify360 is not installed, install it:

root@kitploit:~
wget https://repo.imunify360.cloudlinux.com/defence360/imunify-deploy.sh
bash imunify-deploy.sh --key YOUR_LICENSE_KEY

📁 Output Files

root@kitploit:~
/root/cpanel_security_audit_TIMESTAMP.log     ← Script 1 log
/root/imunify360_cleanup_TIMESTAMP.log        ← Script 2 log
/root/imunify360_report_TIMESTAMP.txt         ← Infected files list
/root/webshell_backup/                        ← Deleted files backup

🚨 Emergency Manual Commands

Kill malware:

root@kitploit:~
pkill -9 -f "nuclear.x86"
ps auxf | grep nuclear

Block cPanel ports (until patch is applied):

root@kitploit:~
iptables -I INPUT -p tcp --dport 2083 -j DROP
iptables -I INPUT -p tcp --dport 2087 -j DROP
iptables -I INPUT -p tcp --dport 2095 -j DROP
iptables -I INPUT -p tcp --dport 2096 -j DROP

Update cPanel:

root@kitploit:~
/scripts/upcp --force

Stop cPanel services:

root@kitploit:~
whmapi1 configureservice service=cpsrvd enabled=0 monitored=0 && \
whmapi1 configureservice service=cpdavd enabled=0 monitored=0 && \
/scripts/restartsrv_cpsrvd --stop && \
/scripts/restartsrv_cpdavd --stop

✅ Cleanup Checklist

root@kitploit:~
☐ Run cpanel_security_check.sh
☐ Run imunify360_scan_clean.sh
☐ Reset passwords for all cPanel accounts
☐ Reset all FTP / email / MySQL passwords
☐ Update wp-config.php / .env files
☐ Check for unknown email forwards
☐ Check for unknown cron jobs
☐ Check for unknown FTP accounts
☐ Revoke old SSH keys from GitHub / GitLab
☐ Check for unknown WordPress admin users
☐ Update all WordPress plugins and themes

🖥️ Compatibility

OSStatus
AlmaLinux 8/9✅
CloudLinux 7/8✅
CentOS 7✅
Rocky Linux 8/9✅
Ubuntu 20/22 (cPanel)

📚 Reference

  • cPanel Security Advisory — CVE-2026-41940

📄 License

MIT License — Free to use, share, and modify. Please keep author attribution intact when sharing.


🆘 Support

  • 🌐 MahfuzReham.Com
  • 💬 WhatsApp: +8801790614055
  • 🐙 GitHub: github.com/mahfuzreham

⚠️ Share this toolkit with everyone — anyone with a cPanel server can be infected by this vulnerability.

❤️ Support This Project

If this toolkit helped secure your server or saved you time, consider supporting future development and security research.

☕ Donate / Support

🔗 Donation Link: https://pay.shurjopayment.com/d21kNExwjP

Your support helps with:

  • 🔐 Security research & malware analysis
  • 🛠️ Maintaining cPanel security scripts
  • 🚀 Free community tools for hosting providers
  • 📚 Publishing new security advisories & fixes

Every contribution helps keep hosting servers safer. Thank you for supporting the project ❤️

Download Tool
DetailInfo
CVE IDCVE-2026-41940
CVSS Score9.8 — Critical
AffectedAll supported cPanel & WHM versions
ExploitActively exploited before public disclosure
Malwarenuclear.x86 Linux botnet
Attacker IPs87.121.84.78 · 45.148.120.23
CheckDescription
🦠 Malware processDetect and kill active nuclear.x86 process
🌐 wget/curl testConfirms if malware is active
🔌 Attacker IPsChecks if there is a connection to C2 IPs
📜 History scanSearches shell history for attack signatures
📦 cPanel versionCheck last update and patch status
🔓 Port exposureCheck if 2083, 2087, 2095, 2096 are open
🗝️ SSH keysAudit private key age and authorized_keys
⏰ Cron jobsScan for suspicious cron entries
🐚 WebshellsScan public_html for PHP shells
🔐 SUID binariesDetect unexpected SUID files
StepAction
1Check Imunify360 status and service
2Update malware signature database
3Full scan of all cPanel accounts
4Scan for CVE-2026-41940 webshell patterns
5Auto cleanup + quarantine
6Delete suspicious files (with backup)
7Enable real-time protection
8Setup daily auto-scan cron
9Full summary report
cpanel_security_check.shimunify360_scan_clean.sh
OSCentOS / AlmaLinux / CloudLinux / UbuntuCentOS / AlmaLinux / CloudLinux / Ubuntu
PanelcPanel & WHMcPanel & WHM
AccessRoot SSHRoot SSH
Software—Imunify360 (licensed)
✅