Tracing USB activit...
 
Notifications
Clear all

Tracing USB activity in Ubuntu?

10 Posts
4 Users
0 Reactions
719 Views
(@nathan_84)
Eminent Member
Joined: 16 years ago
Posts: 31
Topic starter  

Hi all,

Just a quick question really. I spent the best part of yesterday even reading a pdf called Tracing USB Device artefacts on Windows XP by Victor Chileshe Luo. It was really interesting and got me thinking how if the same could done with Ubuntu?

Now I checked Ubuntu's syslog and that manages to recongise a device has been plugged in. Is there anywhere elese I could search within Ubuntu for more info? ie another log?

Thanks in advance!


   
Quote
(@farmerdude)
Estimable Member
Joined: 20 years ago
Posts: 242
 

Nathan,

If nothing else look into the /etc/blkid.tab and /etc/blkid.tab.old files.

Cheers!

farmerdude

www.onlineforensictraining.com

www.forensicbootcd.com


   
ReplyQuote
(@nathan_84)
Eminent Member
Joined: 16 years ago
Posts: 31
Topic starter  

Apologies for the delay farmerude.

Thanks for the advice. Will most defiantly give that a shot!

Nathan


   
ReplyQuote
(@seanmcl)
Honorable Member
Joined: 19 years ago
Posts: 700
 

Did you look at dmesg? This, typically, records when devices are detected by the OS.


   
ReplyQuote
(@farmerdude)
Estimable Member
Joined: 20 years ago
Posts: 242
 

Hi Nathan,

No worries. blkid.tab and blkid.tab.old will wait for you )

While the contents of 'dmesg' are volatile and soon to be forgotten, blkid.tab files are there until something forces them to change or go away. )

Cheers!

farmerdude

www.onlineforensictraining.com

www.forensicbootcd.com


   
ReplyQuote
(@buster)
Eminent Member
Joined: 18 years ago
Posts: 28
 

Apparently not anymore!

The below is from this bug report.

The system frequently invokes blkid, however it invokes it in "direct
probe" mode and stores the results in the udevdb - which is where all
modern software gets the information.

So it's quite normal for blkid.tab to be a dangling symlink until an
application that hasn't been ported to udev runs blkid (at which point
it's populated)

The reason you don't see one is because most things have switched to
udev

I have just verified this on my Ubuntu 9.10 (x64) box which has USB devices plugged in and out of it all the time.

I have not had the chance to look at "udev" yet.

Stu


   
ReplyQuote
(@seanmcl)
Honorable Member
Joined: 19 years ago
Posts: 700
 

While the contents of 'dmesg' are volatile and soon to be forgotten, blkid.tab files are there until something forces them to change or go away. )

True. I was suggesting "in addition to" not "instead of" blkid.

As for "soon to be forgotten", modern Linuxes have fairly large kernel buffers. I have some systems that have been up for over a year and I haven, yet, flushed the kernel buffer of all of the records from the bootup.

I also have systems where there exists no /etc/blkid.tab or /etc/blkid/blkid.tab (for FHS compliant Linuxes) after a USB insertion.


   
ReplyQuote
(@farmerdude)
Estimable Member
Joined: 20 years ago
Posts: 242
 

My interpretation of the original question was "If I have to analyze a Linux system where can I find historical USB information". With that, I have found much more information in the blkid.tab files than in the system messages over any period of time.

Cheers!

farmerdude

www.onlineforensictraining.com

www.forensicbootcd.com


   
ReplyQuote
(@seanmcl)
Honorable Member
Joined: 19 years ago
Posts: 700
 

My interpretation of the original question was "If I have to analyze a Linux system where can I find historical USB information". With that, I have found much more information in the blkid.tab files than in the system messages over any period of time.

As they say, "your mileage may vary.

lol


   
ReplyQuote
(@nathan_84)
Eminent Member
Joined: 16 years ago
Posts: 31
Topic starter  

Thanks again for your help guys. Much appreciated, especially as I'm a newbie to both computer forensics and Linux. Alot to take in but without a doubt beats by old desktop support job hands down! )


   
ReplyQuote
Share: