LinuxQuestions.org
Review your favorite Linux distribution.
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 07-31-2014, 06:40 AM   #1
mike acker
Member
 
Registered: Feb 2014
Location: Michigan
Distribution: Debian 10
Posts: 199

Rep: Reputation: Disabled
USB device firmware


interesting article on USB device firmware on Wired this morining:
http://www.wired.com/2014/07/usb-security/

from the article it sounds like firmware from the stick executes in the system like a device driver... not good (unacceptable) without a signature, naturally.

? any comments /notes on how this is handled in Linux ?
 
Old 07-31-2014, 11:10 AM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
http://it.slashdot.org/story/14/07/3...ices-turn-evil

this was also reported on slashdot. im not sure how Linux will handle this. i hope something is changed fast to prevent this from getting to wide spread in linux. bad things happen when powerful tools like this get into the hands of the real badguys. oh yeah you might know them as the NSA and the like.
 
Old 07-31-2014, 03:07 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Since it's firmware and USB apparently accepts any firmware update you could probably flash it. Then again that would also mean having firmware you trust (read: built yourself). Hmmm, I'll wait for the presentation.
 
Old 07-31-2014, 06:30 PM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
yeah its a bit disheartening
 
Old 08-01-2014, 08:28 AM   #5
mike acker
Member
 
Registered: Feb 2014
Location: Michigan
Distribution: Debian 10
Posts: 199

Original Poster
Rep: Reputation: Disabled
additional reading:

a better explanation for us from ExtreemeTech Friday 8/1

in the comments i found a note stating : "Firmware runs on an embedded microcontroller inside the device, not on your computer." Makes sense to me, and that being the case we are interested in what that firmware instructs the host O/S to do.

Devices, for example, will often go into an install process. Hopefully they are installing authorized drivers, and hopefully the host o/s is checking MD5s or GnuPG signatures

a critical element in security today lies in a change in attitude -- for those who like to throw software around like advertisements. that practice has to end.

I don't really see software abuse as a problem in Linux, -- as it is on some other systems.

Last edited by mike acker; 08-01-2014 at 08:30 AM. Reason: update
 
Old 08-01-2014, 02:45 PM   #6
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Any one know of a USB firmware reading/writing tool? Seems to me you could at least check what you have now, maybe copy it and use it as a backup/verified version. Better than nothing... a little googling found mptools for Windows in posts a few years old.

BTW, the articles specifically said there is no signature /GPG etc process, and we are all vulnerable.

Last edited by mostlyharmless; 08-01-2014 at 02:47 PM.
 
Old 08-02-2014, 07:08 AM   #7
mike acker
Member
 
Registered: Feb 2014
Location: Michigan
Distribution: Debian 10
Posts: 199

Original Poster
Rep: Reputation: Disabled
from my reading on this: when you plug in a USB device the program stored in the firmware in the USB device's built in microprocessor boots and executes -- in the USB firmware,-- and "announces" itself to the host o/s. at which time then the host o/s will proceed with <whatever>

it's the <whatever> we are concerned with . if <whatever> declares "I must have driver.xxx from xyz.qrs.tuv" then we need the o/s to stop and challenge for credentials. what is the reputation of this driver.xxx from xyz.qrs.tuv ?????

if the host o/s assumes "this is from a manufactured usb stick so it must be ok" then it has signed it's own papers. as an industry we must learn that we must authenticate all software.

I see Linux and Open Source as leaders in this regard as we are able to recognize and respond to issues that other systems may try to just ostridge out on .
 
Old 08-02-2014, 07:48 AM   #8
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Hi

The USB device cannot tell the kernel to download drivers and run them. But what it can do, is say, I'm a keyboard or a mouse. The kernel will accept it, and it can send keystokes that can be commands. But since desktops on Linux tend to be so different, I guess it would be difficult to make general malware.
 
Old 08-02-2014, 08:51 AM   #9
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
All of a sudden... people are shocked at this?

It violates the first Rule of Security....
If I can touch it, (or get you to touch it for me) = p0wn3d

They're disposable for a reason.
Evil Maid scenario.
 
Old 08-02-2014, 10:34 AM   #10
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
The real problem here is that people plug USB devices like their phones...everywhere...to get power. If someone has a affected phone with a self-propagating firmware, they could infect a lot of public plug in spots. However, I assume, maybe incorrectly, that USB power plugs are immune since they only supply power. But if you plug your phone into a computer, or your car, or a rental car...

It isn't just a matter of plugging a device into your computer, it's also where you plug in any of your devices and bring them home.

As far as being shocked, well, personally, I am surprised that most USBs have rewritable memory that doesn't require special equipment or disassembly and that can be accessed by the USB port. I would have assumed that economic considerations would have made them considerably cheaper without that feature. Without the self-propagating part, I agree that this problem is not much worse than any other.
 
  


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
Wireless--Device not ready Firmware Missing pgb205 Fedora 3 02-13-2011 02:13 PM
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 07:32 AM
which module and firmware, a device is currently using?? firewiz87 Linux - Hardware 12 12-03-2009 01:59 AM
loading firmware on USB device with udev 559jmp Linux - General 2 11-09-2008 10:50 PM
trying to index firmware device # strawbee Fedora 1 06-02-2006 11:11 AM

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

All times are GMT -5. The time now is 04:46 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