Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacyΒ© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
security checks β€” linux security checks | Kitploit
Tools/GitLabGitLab/abdom.seada/security-checks
Defensive ToolsMemory ForensicsVulnerability AnalysisNetwork ForensicsConfiguration AuditingForensicsMalware AnalysisDigital ForensicsIntrusion DetectionIncident ResponseLog Analysis
46Mar 25, 2026Not yet reviewed
GitLab
abdom.seada/security-checks

security checks

linux security checks

View Repository
Share

πŸ” Miner Hunter

Crypto-miner detection, removal, and hardening toolkit for Linux servers.

Built from real-world incident response β€” detects miners that hide from ps, top, htop, and btop using rootkit techniques.


πŸ“¦ Installation

git clone https://gitlab.com/abdom.seada/security-checks.git
cd security-checks
sudo bash setup.sh

πŸ”€ Branch: master β€” This toolkit lives on the master branch. Other security scripts may be added on separate branches in the future.


βš™οΈ Setup

⚠️ Run setup.sh once right after cloning β€” skipping this is the #1 cause of errors.

sudo bash setup.sh

setup.sh handles everything automatically:

StepWhat it does
βœ… Permissionschmod +x on miner-hunter and all lib/*.sh scripts
βœ… DirectoriesCreates /var/log/miner_hunter/ and /var/lib/miner_hunter/ (root-only, 700)
βœ… DependenciesChecks perf, mpstat, iptables, fail2ban, bc, strings β€” auto-installs missing ones
βœ… Self-testRuns ./miner-hunter --version to confirm everything is wired up correctly

Expected output when setup succeeds:

βœ… Setup complete β€” all checks passed!

  Next steps:
    sudo ./miner-hunter scan        # Safe read-only scan
    sudo ./miner-hunter full        # Scan β†’ Kill β†’ Harden

πŸ’‘ Why is this needed? Linux won't execute a file unless it has the +x flag. Git and SCP transfers strip this. setup.sh fixes all files in one shot β€” including the lib/ modules the main script depends on.


πŸš€ Quick Start

sudo ./miner-hunter scan            # βœ… Safe β€” read-only, zero changes
sudo ./miner-hunter full            # ⚠️  Full pipeline: Scan β†’ Kill β†’ Harden
sudo ./miner-hunter scan --dry-run  # πŸ‘οΈ  Preview mode β€” shows what would happen

πŸ“‹ Commands & Options

Commands

CommandDescriptionChanges system?
scanFull detection scan β€” hidden processes, CPU, network, persistenceβœ… No
killKill identified miners, block pool IPs, remove artifacts⚠️ Yes
hardenPost-incident hardening β€” SSH, firewall, watchdog, integrity baseline⚠️ Yes
fullRuns scan β†’ kill β†’ harden with confirmation prompts between phases⚠️ Yes
reportDisplay the most recent scan reportβœ… No

Options

OptionDescription
-d, --dry-runPreview all actions without making any changes
-e, --evidence DIRSave evidence to a custom directory instead of /root/miner_evidence_*
-h, --helpShow help
-v, --versionShow version

🎭 Case Scenarios

Real-world situations and exactly what to run in each one.


πŸ”΄ Scenario 1 β€” "My server CPU is at 100% but top shows nothing"

This is the classic rootkit symptom. The miner is hiding from userspace tools but cannot hide from hardware performance counters.

# Step 1: Run a safe scan first β€” confirm what's there before touching anything
sudo ./miner-hunter scan

What you'll see if a miner is present:

🚨 [CRITICAL]  CPU anomaly: 97% user CPU but top shows max 2% per process
🚨 [CRITICAL]  perf detected 4 hidden threads consuming ~94% total CPU
🚨 [CRITICAL]  Active connection to 185.x.x.x:9200 (known mining port)
🚨 [CRITICAL]  Fake kernel thread PID=3421 NAME=[kworker/0:1] EXE=/tmp/.x/miner
# Step 2: Kill the miner and block its pool
sudo ./miner-hunter kill

# Step 3: Harden the server so it can't come back
sudo ./miner-hunter harden

🟑 Scenario 2 β€” "I think I was hacked but I'm not sure"

You noticed something suspicious β€” unusual outbound traffic, a cron job you didn't create, a process with a weird name β€” but you're not certain.

# Run a full scan β€” completely safe, read-only, zero changes
sudo ./miner-hunter scan

# Then read the structured report
sudo ./miner-hunter report

The report at /root/miner_evidence_*/report.txt categorizes every finding by severity:

  • [CRITICAL] entries β†’ proceed to kill immediately
  • [WARNING] entries β†’ review manually before acting
  • Empty report β†’ server appears clean

🟠 Scenario 3 β€” "I killed the miner manually but it keeps coming back"

The miner has a persistence mechanism β€” a cron job, systemd service, PM2 entry, or shell profile backdoor that respawns it after you kill it.

sudo ./miner-hunter scan

Look for these in the output:

⚠️  [WARN]     Suspicious cron entry: * * * * * /tmp/.x/update
🚨 [CRITICAL]  Malicious systemd service: /etc/systemd/system/update-check.service
🚨 [CRITICAL]  PM2 process 'app-worker' has 8432 restarts β€” likely miner respawn loop
🚨 [CRITICAL]  Shell profile backdoor detected in /root/.bashrc
# kill removes ALL persistence artifacts β€” not just the running process
sudo ./miner-hunter kill

# Then harden to install the watchdog so you're alerted if anything respawns
sudo ./miner-hunter harden

πŸ’‘ After kill, the watchdog cron runs every 5 minutes and logs to /var/log/miner_hunter/watchdog_alerts.log β€” you'll know immediately if something comes back.


πŸ”΅ Scenario 4 β€” "I want to harden a fresh server before anything happens"

Proactive hardening before deploying β€” no miner, no incident, just locking things down.

# Run harden standalone β€” no scan or kill needed
sudo ./miner-hunter harden

This will:

  • Audit your SSH config and print the recommended settings
  • Verify fail2ban is active with an sshd jail
  • Create a /usr/bin integrity baseline (MD5 checksums β€” so you can detect tampered binaries later)
  • Install a cron watchdog that checks every 5 minutes for miner indicators
  • Persist any existing iptables rules across reboots via a systemd service

⚫ Scenario 5 β€” "The miner survived the kill β€” CPU is still high"

After kill, the verify step reports the miner may still be running:

⚠️  MINER MAY HAVE RESPAWNED
CPU: 89% | Mining conns: 1
Firewall blocks are in place β€” miner can't reach pool
Consider a REBOOT or OS REINSTALL
# 1. Firewall blocks are already in place β€” miner CANNOT reach its pool
#    Confirm blocks are active:
iptables -L OUTPUT -n | grep DROP

# 2. Run a second scan to see what survived
sudo ./miner-hunter scan

# 3. Check for a kernel module rootkit hiding the process
lsmod | grep -iE 'diamorphine|reptile|kovid|rootkit'

# 4. Non-zero taint = out-of-tree kernel modules loaded (rootkit indicator)
cat /proc/sys/kernel/tainted

If the kernel taint value is non-zero or a known rootkit module appears β€” the miner has kernel-level control. The safest path at this point is a full OS reinstall from a known-clean snapshot.


🟣 Scenario 6 β€” "I want ongoing monitoring without running scans manually"

After harden, the watchdog cron is already installed. Here's how to work with it:

# Watch the alert log in real time
tail -f /var/log/miner_hunter/watchdog_alerts.log

# Confirm the watchdog cron job is registered
cat /etc/cron.d/miner-watchdog

# Check for /usr/bin binary changes since your baseline was taken
md5sum --check /var/lib/miner_hunter/usrbin_baseline.md5 --quiet

Any output from the last command means a system binary was modified after your baseline β€” investigate immediately.


πŸ”¬ What It Detects

Hidden Process Detection

TechniqueWhat it catches
/proc vs ps comparisonProcesses invisible to userspace tools
LD_PRELOAD hijackingMalicious shared libraries hooking libc to hide processes
Kernel module rootkitsDiamorphine, Reptile, Kovid, and other known rootkits
Fake kernel threadsMiners masquerading as [kworker], [kthreadd], [kswapd]
Modified system binariesReplaced ps, top, ls, ss, netstat

CPU Profiling

Download Tool

Related Tools

  • wazuh

    Open-source XDR and SIEM platform for threat detection, log analysis, file integrity monitoring, vulnerability assessment, and compliance management across endpoints and cloud workloads.

  • suricata

    Open-source network IDS/IPS/NSM engine for real-time traffic inspection, intrusion detection and prevention, protocol analysis, and rule-based threat hunting.

  • zeek

    Zeek is a powerful network analysis framework that is much different from the typical IDS you may know.

Most Popular

View all β†’

Discover the most used tools by our community.

  • 1

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    1.3k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    761
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher platform that deploys a rogue GSM cell to intercept SMS, inject messages and track mobile devices

    690
  • 4

    opencti

    opencti-platform/opencti

    Open Cyber Threat Intelligence Platform

    509
  • 5

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    448
  • 6

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    432

Explore all tools

Browse our collection of tools

View all tools β†’