LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Finding Windows malware on thumb drives in Linux (https://www.linuxquestions.org/questions/linux-general-1/finding-windows-malware-on-thumb-drives-in-linux-4175504750/)

Mr. Alex 05-12-2014 02:35 PM

Finding Windows malware on thumb drives in Linux
 
Hi all! If I connect some USB thumb drive to Windows machine and there is malware which copies itself to this thumb drive automatically and hides itself from Windows browsing, will I be able to see file of infection if I connect this drive to Linux machine and browse files? So that I can take a look at contents of a thumb drive in Linux and say "There are no Windows viruses for sure; safe to use in Windows".

bigrigdriver 05-12-2014 03:21 PM

If you have antivirus installed on you Linux machine (such as clamav, avast, or others), you can plug in the thumb drive and mount it. Then run the scan app to scan the thumb drive for malware.

jefro 05-12-2014 06:21 PM

Make a folder called autorun.inf

lleb 05-12-2014 08:04 PM

Quote:

Originally Posted by Mr. Alex (Post 5169514)
Hi all! If I connect some USB thumb drive to Windows machine and there is malware which copies itself to this thumb drive automatically and hides itself from Windows browsing, will I be able to see file of infection if I connect this drive to Linux machine and browse files? So that I can take a look at contents of a thumb drive in Linux and say "There are no Windows viruses for sure; safe to use in Windows".

maybe. as good as clamAV and f-prot are for Linux, they are falling behind in detecting many of the MS junk that is out there. but if the file is hidden from MS, it should be visible with a simple
Code:

ls -laF
command.

Mr. Alex 05-14-2014 08:54 AM

Quote:

Originally Posted by bigrigdriver (Post 5169536)
If you have antivirus installed on you Linux machine (such as clamav, avast, or others), you can plug in the thumb drive and mount it. Then run the scan app to scan the thumb drive for malware.

I wasn't talking about antivirus. Only about finding malware myself. For example if I have only mp3 files on a thumb drive, will malware be another non-mp3 file that is visible in Linux?

Quote:

Originally Posted by jefro (Post 5169617)
Make a folder called autorun.inf

What for?

Quote:

Originally Posted by lleb (Post 5169669)
maybe.

You're not sure? What is it that might not work?

suicidaleggroll 05-14-2014 04:21 PM

Quote:

Originally Posted by Mr. Alex (Post 5170710)
I wasn't talking about antivirus. Only about finding malware myself. For example if I have only mp3 files on a thumb drive, will malware be another non-mp3 file that is visible in Linux?

99.9% of the time, malware and virii are embedded in seemingly innocent files. You can't just look at directory listing and go "yep, this one is a malware file", you actually have to scan through every single file on the drive, byte by byte, looking for hidden malware inside.

lleb 05-14-2014 04:32 PM

maybe, it all depends on the type of malware and if the Linux anti-virus is going to scan for malware. they are not the same and thus are not scanned the same way. this is why in the MS world you have to run both some type of anti-malware and anti-virus program to minimize infection of the system.

linuzfreak 05-14-2014 05:01 PM

It's hard to know for sure if antivirus and malware programs can cut the mustard these days especially in a windows environment.

An interesting article from Symantec:
Symantec Says “Antivirus Software Is Dead”, But What Does That Mean For You?

metaschima 05-14-2014 05:05 PM

It depends on the malware itself. In many cases you should be able to detect it either manually or with a virus scanner. Note that auto-run based viruses do exist for Linux too.

Personally, I don't use USB sticks at all. Yeah I guess I am super paranoid, but I figure there are better ways to distribute data nowadays anyway.

linuzfreak 05-14-2014 05:23 PM

Quote:

Originally Posted by metaschima (Post 5171011)
It depends on the malware itself. In many cases you should be able to detect it either manually or with a virus scanner. Note that auto-run based viruses do exist for Linux too.

Personally, I don't use USB sticks at all. Yeah I guess I am super paranoid, but I figure there are better ways to distribute data nowadays anyway.

If I'm not sure about a USB stick, I would connect to a test PC or junk computer and disconnect any ethernet cables on it.

Mr. Alex 05-15-2014 12:22 PM

Quote:

Originally Posted by metaschima (Post 5171011)
Note that auto-run based viruses do exist for Linux too.

What can they do to a system if run by user (not root)?

Quote:

Originally Posted by metaschima (Post 5171011)
Personally, I don't use USB sticks at all. Yeah I guess I am super paranoid

It's OK to care about your security even if some people call it "too paranoid".

Quote:

Originally Posted by metaschima (Post 5171011)
there are better ways to distribute data nowadays anyway.

Like what?

Emerson 05-15-2014 12:27 PM

If you read the news only 45% of Windows malware can be detected nowadays. This is the fate of an operating system that has thousands of security holes with thousands of viruses written for every hole. Cars without brakes are illegal on public highways, why are Windows computers allowed to connect to the internet?

Mr. Alex 05-15-2014 12:42 PM

Quote:

Originally Posted by Emerson (Post 5171495)
If you read the news only 45% of Windows malware can be detected nowadays. This is the fate of an operating system that has thousands of security holes with thousands of viruses written for every hole.

I think it's more about the architecture, than about specific security holes.

Quote:

Originally Posted by Emerson (Post 5171495)
Cars without brakes are illegal on public highways, why are Windows computers allowed to connect to the internet?

Because the law doesn't protect those who are right and prosecute those who are wrong. The law is a tool used by people and people are foul.

Emerson 05-15-2014 01:20 PM

Quote:

Originally Posted by Mr. Alex (Post 5171505)
I think it's more about the architecture, than about specific security holes.

Nope. Lots of people not very familiar with computers think virus is something that comes and gets you, as you get flu. Not true for computers, to write a successful virus you need to exploit a vulnerability in target system. No security holes = no viruses.

metaschima 05-15-2014 02:32 PM

Quote:

Originally Posted by Mr. Alex (Post 5171490)
What can they do to a system if run by user (not root)?

It's OK to care about your security even if some people call it "too paranoid".

Like what?

They can usually only do what the user can do, but if it contains a keylogger or kernel exploit it can gain root access reasonably easily.

File sharing servers, and there are plenty of them. Some call themselves "cloud", but file sharing servers have existed long before the "cloud". For smaller sized sharing, you can use e-mail. There's usually a 20-50 MB limit on e-mails.


All times are GMT -5. The time now is 10:45 PM.