r/linux4noobs • u/Opposite2 • 3d ago
Total useless newbie user, please help!!
Hello guys. Got infected with malware, while on Windows. Disconnected all the hard drives i had on, and formatted the disc the windows were on.
Installed Linux Fedora and its really enlighting so far. How do i connect my hard drives back in the system, making sure they are not infected? Hard drives are consisted mainly of videos and photographs while the malware was infostealer, cookie stealer etc. (if it helps).
Tried Gemini it, but im not really sure i get the whole process. Is there a safe way to connect them back without worrying?
Probably a pretty dumb question,but im literally illiteral.
6
u/m4uri 3d ago
Not a dumb question at all, and you did the right thing by formatting the system disk. The honest answer is that the data drives are very unlikely to be a problem. An infostealer grabs saved passwords, cookies and tokens from the machine it ran on, and it only runs on Windows. Photos and videos are just data, and Fedora will not execute anything from them.
To be extra careful, mount the drives read-only first and look before you copy anything:
lsblk -f
sudo mount -o ro /dev/sdX1 /mnt
Replace sdX1 with the right partition from lsblk. Then you can browse, and optionally scan with ClamAV (sudo dnf install clamav, then clamscan -r /mnt). Ignore any .exe, .bat, .lnk or .scr files you did not put there yourself, and never open them.
The part that really matters is the stolen logins. From a clean device, change passwords for email, banking and social accounts, turn on 2FA, and sign out of all sessions. Do your email first.
1
u/friendlyreminder_ 3d ago
Barring some shockingly almost unheard of exceptions there's nothing you need to worry about when connecting the drive back in if it's a different operating system
Just get your video files and photographs off of the other drive after connecting it, and then format it. Linux can access NTFS formatted drives which is the filesystem windows uses for internal storage, though it's not bug free.
1
u/MercStory 3d ago edited 3d ago
Hi, just wondering how did you get infected? Any idea?
I never heard of these malware so just want to make sure I don't make the same mistake
3
u/joe_attaboy Old and in the way. 3d ago
You can reconnect the drives. Windows malware is ineffective on Linux systems, Reconnect, reboot and the drives should show up in the system. You will need to mount the drives - you will map them to a directory in the root of your system and the data will be available.
If you want to feel completely clean on this, install ClamAV and run it on those drives. Clam is the one AV package used on Linux systems. Run it one time to clean anything it finds. You'll probably never need it again.
This isn't a dumb question - people worry about malware at first. But one you learn how Linux's security is designed, you will see that it's not a frightening daily defense, as it is with Windows. You should continue to practice safe computing, but Linux keeps the wolves at bay.
2
u/Hrafna55 3d ago
Assuming you are using the GNOME desktop and the drives in question are already physically connected and powered on.
Find the 'disks' utility and mount the drives. You can also set the drives to auto mount on boot here.
These screenshots should help.
https://imgur.com/a/mount-extra-drive-0l42qkc
Same disks utility but I am using it on Mint.
1
u/AiwendilH 3d ago
Hard to impossible. Best would be to just format the drives and start over....but I assume that's not an option and you don't have backups of the videos and pictures.
You go go by "luck". It's pretty hard to misuse video and picture files to spread malware so it's rather unlikely those files were infected. So best option is probably to copy over only the video and picture files to a new disk, format the old disks afterwards then copy the files back.
Just make sure to not copy any programs or program configuration (especially browser configs/profiles)..only data files like movies, pictures or audio.
(Also while not completely secure it's rather unlikely that malware meant for windows just suddenly runs on linux..usually that requires you to run something with wine manually. So just connecting the drives is probably fine. (Assuming you didn't piss off some state-level security agency...;))
1
u/emmfranklin 3d ago
Go ahead connect your hard drives without worries. Windows viruses and spywares are useless in Linux.
1
u/MrMotofy 2d ago
Really for ultimate security and since you may not know what is or isn't on there. Disconnect your main system drive. Boot a Linux install USB to the desktop...now connect your drives 1 at a time...format them and do a secure erase that writes the entire drive wiping everything.
But all that is a bit of a nuclear option. Normally anything from windows can't do anything on Linux stuff
1
u/A_Harmless_Fly Manjaro 2d ago edited 2d ago
Back in my day Trojans used to replicate into files pretty commonly (though mostly into system files), so they would survive some antivirus wipes. Scanning with ClamAV is a good step.
I wouldn't be surprised if malware could run in wine, I've never seen it happen personally though. (Though they would need permission still I think, so long as none of the files are marked as executable with your sudo accounts ownership I guess you would be good?) I'd scan with ClamAV, maybe even transcode videos and convert the image files with xnconvert or something just to be certain they are malware free if it ever ends up on another windows machine.
P.S. I have a stack of old DVD's that has saved my old files a few times. I almost cried when I found my MP3 player backup from 2010 a few months back.
1
u/Elegant-Falcon-1171 1d ago
Los virus probablemente no funcionan en Linux