How can I check for malware after some odd Linux activity?

November 23, 2026 3 answers
Asked by 4q~gasketcompass_628

A couple of services have been using more CPU than expected, and a USB drive notification showed unexpected characters even though the drive name uses Latin characters. The files look normal on another system. Can I scan a large drive from a live environment, and could this just be a display bug?

Answers

9c+bracketpouch_371

Neither symptom proves malware. A high CPU load can come from a service doing ordinary work or getting stuck, and garbled text could be a notification, encoding, or display problem.

Check what is using CPU with top or ps, then inspect that process before killing it if you can. lsof can show files and network sockets associated with a process. Service logs may also help explain what it was doing. For the USB notification, compare the drive label as reported by the system with what the desktop notification displays.

Reply to this answer
_c56+zordexo.9

ClamAV is an option for scanning the mounted drive from a live Linux environment. Update its signatures first, then scan the mounted data directory recursively. You can scan the whole drive rather than checking files one by one, though 1.5 TB may take a while.

Mount the drive read-only if possible and save the scan report somewhere else. A clean result is useful but not proof that the files or system are safe. Treat detections as leads to investigate rather than automatically deleting irreplaceable files.

3k!gobletlatch_629:

A live scan also won't show what was running on the installed system before shutdown, so it complements process and log checks rather than replacing them.

Reply to this answer
6g~bracketpocket_531

If you find an unexpected process or connection and think a compromise is plausible, disconnect the machine from the network while investigating. Look at listening ports and active connections, but an unfamiliar address alone doesn't establish an intrusion.

Keep a backup of the data you care about. If you can't trust the installed system, a clean reinstall is an option, followed by restoring your data carefully. Reinstalling the OS doesn't itself clean files you copy back from the old drive.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions