LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-16-2010, 05:52 PM   #1
bradful
LQ Newbie
 
Registered: Aug 2010
Posts: 1

Rep: Reputation: 0
Linux live cd and viruses


Is it possible to contract a virus onto your windows hard drive when using a live cd? Say you visit the most infected site on the web that performs a dozen drive-by downloads, or if you insert a flash drive with a ton of infected files, could that some how find its way to your hard drive?

I know, I know, a lot of you are probably rolling your eyes at such a noob question.

Thanks for any replies. And sorry if it's been asked before; I did a search but nothing related.
 
Old 08-16-2010, 06:02 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Sure, it's possible. If you mount a hard drive, and explicitly copy and paste an infected file to the Windows hard disk, then it could be stored there. Of course, you'd have to click on it when you boot back into Windows (the executable won't run under linux most likely).

There are some cross platform malware types (javascript, etc) that theoretically could be passed from one OS to another, but I don't think there have been any seen in the wild.

Most linux machines are just carriers, i.e. you can drop an infected file somewhere and it won't activate until someone opens it under Windows.
 
Old 08-16-2010, 08:54 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Not a bad question at all, in fact a good question. Live cd's are still my favorite way to protect a system.

The cd may even have a virus.

Older live cd's never did mount the local hard drive in most cases. In time they tended to mount them more and more read only then at some point a lot of them mounted them read write. As above you have to watch out what distro you have an how it mounts local drives and if they are mounted read write. As with most live cd's they tend to be setup as root so any slip can be an issue. One would also have to watch any swap sort of file or persistent area or file.


A good choice for live cd would be one that didn't mount local hard drive at all or at least read only. Best if they require a password for you to perform a sudo. Most can be changed at boot.


Any time you are connected to the internet there are plenty of people out there trying to access your data. More so on those sites. Virus and other attacks can be automated and it may not matter which OS you have to what they may try to leave behind.

Last edited by jefro; 08-16-2010 at 08:57 PM.
 
Old 08-17-2010, 03:51 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by bradful View Post
Is it possible to contract a virus onto your windows hard drive when using a live cd? Say you visit the most infected site on the web that performs a dozen drive-by downloads, or if you insert a flash drive with a ton of infected files, could that some how find its way to your hard drive?
This depends on the involved pieces. The most complex and modern your OS is the greatest the chances to get an infection you will get because of a simple reason: modern desktops tend to do things behind the hood without you noticing it.

As long as your browser has the capabilities to store a file to your drive and the relevant disk is mounted (manually or via some desktop feature) all it takes to store the file is some kind of javascript (thanks we don't have activeX in linux, one less thing to worry about).

Of course, this depends on both the browser and how it is configured.

The chance however is that, as said, the malware will probably not run under linux. However windows has some autoplay features. I have no idea what the reach of the problem is, but a script that can store a file can also store contents on the autoplay scripts on the same device, so bear that in mind. I am no expert in windows at all but a file is just that, a file. If windows has autoplay turned then everything is possible.

A quick check with clamav from linux can reveal the menace before you plug the pen again on windows, preventing the whole problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux viruses PastorWirl Linux - Newbie 8 09-23-2007 04:10 AM
Linux Viruses? LinuxPimp Linux - Security 9 10-26-2004 01:51 PM
linux and viruses im_ka Fedora 2 02-13-2004 06:12 PM
linux and viruses??? spyghost Linux - Software 11 09-21-2003 05:45 PM
Linux Viruses? isolationist Linux - Security 14 03-05-2003 12:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration