LinuxQuestions.org
Help answer threads with 0 replies.
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 11-07-2010, 12:29 PM   #1
linuxunix
Member
 
Registered: Mar 2010
Location: California
Distribution: Slackware
Posts: 235

Rep: Reputation: 18
USB theft monitoring in the datacenter


Hello,

We have around 20-30 HP and Dell Hardware where we have attached Pen Drive. There is no Rack-lock facility. A misuse of Pen Drive is reported and it happens every alternative day that someone unplug and theft the drive attached.There is no camera facility to monitor.

I have a plan to write a script which will login to every machine through ILO and watch the USB availability. In case anyone dettach the USB, a mail will be sent to the administrator and thereby the steps could be taken.Does this idea look feasible.

Any comments?
 
Old 11-07-2010, 01:36 PM   #2
struct
Member
 
Registered: Feb 2009
Posts: 68

Rep: Reputation: 10
It sounds pretty good. but don't you want to catch who is doing it? maybe setup your script that alerts you and takes a snapshot of a person who is doing this with a webcam. that'll be pretty cool.
 
Old 11-07-2010, 01:47 PM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
I'm no expert on the matter, but I believe the udev system is intended to allow monitoring and dispatch of programs based on USB (and other) activity. You should be able to contrive a rule that will invoke a mail sender when the USB key is removed. Googling 'usb udev rules' seems to turn up a lot of useful looking links.

--- rod.
 
Old 11-07-2010, 05:53 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,996

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
I'd get a tube of superglue. They won't be pulling it out without some force. Use it either on the usb slot to secure the usb in or on the outside of the usb. Either way it should provide some fun. Post a note that no one is to touch the usb drives.

I'd get rid of the usb's all together.

Last edited by jefro; 11-07-2010 at 05:56 PM.
 
Old 11-08-2010, 01:05 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in <Security> (kind of), and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 11-08-2010, 07:45 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,661

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by linuxunix View Post
Hello,
We have around 20-30 HP and Dell Hardware where we have attached Pen Drive. There is no Rack-lock facility. A misuse of Pen Drive is reported and it happens every alternative day that someone unplug and theft the drive attached.There is no camera facility to monitor.

I have a plan to write a script which will login to every machine through ILO and watch the USB availability. In case anyone dettach the USB, a mail will be sent to the administrator and thereby the steps could be taken.Does this idea look feasible.
Any comments?
Well, you might not be able to lock the RACKS, but can you lock the DOOR?? Grant access to just a few folks???

The webcam idea is a good one too...mount the camera up high, looking down the rows of servers, so you can see who's there. There are even motion-sensitive cameras that only activate when there's movement. And why have something that 'logs in', to watch the USB drive? Just have a script running on each box, that checks for the presence of the /dev/sdXXX device, and if it's not there (as in REMOVED), send an email. Compare that to the time stamp on the webcam footage.
 
Old 11-08-2010, 08:32 AM   #7
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Quote:
Originally Posted by TB0ne View Post
Just have a script running on each box, that checks for the presence of the /dev/sdXXX device, and if it's not there (as in REMOVED), send an email.
Isn't that what udev does? After my earlier reply, I started exploring the udev rules on the box I'm running right now, and there are rules that trigger when a device is removed. Firing a script to send an e-mail when the pen-drive is removed seems to be fairly straightforward.
If I get a few minutes, I might try to cobble something together to do that.

--- rod.
 
Old 11-08-2010, 11:30 AM   #8
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Can I ask why the pen drives are there in the first place? It would seem the easiest way to deter theft is to have nothing to steal. This may be more of a reflection of my ignorance, but I just can't figure out why a datacenter would need that many pen drives attached to the servers. Or any pen drives for that matter.
 
Old 11-08-2010, 01:46 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,661

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by theNbomr View Post
Isn't that what udev does? After my earlier reply, I started exploring the udev rules on the box I'm running right now, and there are rules that trigger when a device is removed. Firing a script to send an e-mail when the pen-drive is removed seems to be fairly straightforward.
If I get a few minutes, I might try to cobble something together to do that.

--- rod.
Very true, but I'd find it easier to write a small shell script to look for the presence of the /dev/sdXX device, rather than do a udev rule. Especially if I had to work with others to maintain the systems.

But as with most things Linux...there's always several ways to do things.
 
Old 11-09-2010, 01:52 PM   #10
unixfool
Member
 
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 782
Blog Entries: 8

Rep: Reputation: 158Reputation: 158
Any datacenter worth it's salt will have better security than what you now have...seriously. If they can take a thumb/pen drive, they can take anything, including the machines themselves.

Also, running a script that monitors WHEN a USB drive gets stolen isn't preventative in the least. Aren't you concerned with how to STOP the theft (and not record it)? Maybe you're thinking that it helps to know when it was taken so that you could maybe check the center's visitor logs so that you could possibly find the culprit (IF the center even has logs...if there's no security, there's probably accurate logging of visitors).

I've some old machines that had hardware epoxied in place (inside the case). You might get away with that.

Last edited by unixfool; 11-09-2010 at 01:55 PM.
 
Old 11-09-2010, 02:11 PM   #11
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
i would have to agree with the above posts

1. find a better solution to replace the pen drives, a nas or file server of some sort for instance

2. do a better job of restricting access to the data center, plain and simple, if only trusted personnel are allowed into the room to begin with then you will have less to worry about a pen drive or server growing legs and walking off the premises, physical access trumps any software based security anyone can put into place and logging and determining who did it is like fixing the barn door after the horse got out, the pen drive could have been sold on the black market or given to someone else by the time you catch the person who actually stole it
 
Old 11-09-2010, 04:04 PM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by unixfool View Post
Any datacenter worth it's salt will have better security than what you now have...seriously. If they can take a thumb/pen drive, they can take anything, including the machines themselves.
Well actually ... a thumb drive fits in your pocket.

A 4U 19" rack mount server doesn't. A blade doesn't.
 
Old 11-09-2010, 05:30 PM   #13
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Quote:
Originally Posted by Tinkster View Post
Well actually ... a thumb drive fits in your pocket.

A 4U 19" rack mount server doesn't. A blade doesn't.
granted but given the time and resources, say someone sneakin in after hours when nobody is there to stop them it's not entirely impossible to walk away with a server
 
Old 11-10-2010, 07:42 PM   #14
unixfool
Member
 
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 782
Blog Entries: 8

Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by frieza View Post
granted but given the time and resources, say someone sneakin in after hours when nobody is there to stop them it's not entirely impossible to walk away with a server
EXACTLY. It sounds as if security is non-existent.

If someone is messing with physical aspects of the OP's system, it is an indication of security failure. About Tinkster's comment on size, if nothing prevents a physical change to the system, the chance of someone stealing a pen drive or whole system is rather feasible, IMO. 4U? There's a way around that too. Bring a busted one in with you (in case there's a front desk) and swap it out with the OP'S, then walk out. There are also pen drives that can sniff or log. Walk to OP's server, insert drive, let it gather data, come back a day later to pick up gathered data, then leave. One could also tap into the DC's network, breaking down the integrity of the whole data center.

Basically, with data centers, if physical security is lacking, you're just asking for trouble.

Last edited by unixfool; 11-12-2010 at 08:57 AM. Reason: corrected typos
 
1 members found this post helpful.
  


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
[SOLVED] virtualized datacenter solution considerations on storage chakoshi Linux - Virtualization and Cloud 7 05-02-2010 02:21 PM
How to setup remote datacenter wordpress failover documentation/scripts? wpfan Linux - General 0 07-13-2009 02:55 AM
How to build a datacenter? LinuxCrazy General 6 07-27-2007 09:23 AM
LXer: Grown-up Linux in the Datacenter LXer Syndicated Linux News 0 05-27-2006 06:33 AM
Port forwarding (moving datacenter) ipfw/iptables/ipportfw RyanT2k Linux - Networking 7 12-04-2002 02:03 PM

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

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