LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-22-2016, 03:59 AM   #1
grigory
Member
 
Registered: Oct 2015
Posts: 133

Rep: Reputation: Disabled
Is it dangerous to share a USB flashdrive?


Hello!

Recently I've watched a movie "Blackhat" where just by inserting a USB flashdrive he could infect a host PC with some malicious program. Is it true that it's not safe to share USB flashdrives just like that? If yes, how come a "virus" can initiate itself in a host machine without being executed by a user? In other words, doesn't it need to be clicked on first?
 
Old 01-22-2016, 04:39 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
On older Windows systems USB storage devices and optical media are scanned when inserted for the file autorun.ini. If it is found it is parsed and the program specified in it will be started by the OS. This feature can and has been abused by malware, so it should be disabled. Newer Windows systems ask the user if that program should be run.
I don't know how the large Linux DEs handle this, so if they have this feature you might want to disable it.

Last edited by TobiSGD; 01-22-2016 at 06:52 AM.
 
1 members found this post helpful.
Old 01-22-2016, 05:21 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
That was such a stupid movie.

However it was rumoured stuxnet was introduced via infected USB sticks strategically left lying around. And you don't get much more sophisticated than that little contribution from the government.
 
1 members found this post helpful.
Old 01-22-2016, 08:55 AM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,776

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Yes, it's dangerous. The problem is that "U" in USB. It's universal, and supports a wide variety of devices. Those devices identify themselves through firmware contained on the device, and the firmware on a USB flash drive (there's quite a bit of it) can be reprogrammed to look like a different device, for example a keyboard, which, after being recognized as such by the system, starts sending commands which will be acted on just as though you had typed them at your keyboard. See Turning USB peripherals into BadUSB and other hits from https://www.google.com/search?q=usb+...rmware+exploit

These days, USB flash drives have to treated like hypodermic needles -- if it has touched anyone else, it's not safe for you any more.
 
2 members found this post helpful.
Old 01-22-2016, 05:06 PM   #5
grigory
Member
 
Registered: Oct 2015
Posts: 133

Original Poster
Rep: Reputation: Disabled
Okay, thank you all for your replies!
 
  


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
USB flashdrive(s) not seen joseph2020 Ubuntu 2 04-03-2011 03:10 AM
usb flashdrive e.rose28@yahoo.com Linux - Newbie 12 09-25-2010 02:11 AM
usb flashdrive help l3it Red Hat 1 07-19-2009 04:16 AM
usb HD vs. usb flashdrive? fstab entry? bioe007 Linux - Hardware 11 05-07-2007 03:52 PM
USB FlashDrive -- Again kadalz Linux - Newbie 1 10-12-2003 11:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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

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