|
| |||||||||||||||||||||||||
|
| |||||||||||||||||||||||||
|
Sponsored by:
Affiliates: ![]() ![]() ![]()
EC-Council ECSA Training Videos
Web Hosting: |
Hardware Key Logging Part 2: Welcome to Part Two of my article on USB keyloggers. For those that have not read part one, check it out at: http://www.irongeek.com/i.php?page=security/usb-hardware-keyloggers-1-keycarbon It covers many of the whys, whens and wheres of hardware keyloggers. This time around I have three new (to me at least) keyloggers to cover:
1. KeyGhost USB/HUB Keylogger - TimeDate 2 MB (Cable Style) You will notice in the picture at right that the KeeLog product is the smallest of the three, followed by the plug style KeyGhost and then the cable style KeyGhost. I tossed the KeyCarbon from my previous article in to help you with the size comparison. I'm not sure why KeyGhost chose to make their Time/Date stamping cable as big as it is. One failed on me during testing so I took it apart to see if I could reset it somehow. The core electronics look like they could easily be put into a smaller package. Maybe in later releases they will shrink down the housing. All of these keyloggers have their tradeoffs which I will cover shortly. Keyloggers In Use As stated in the first article, installation of these sorts of devices is simple. Just plug the keylogger inline with the keyboard. From there it should start logging key strokes. Retrieval and configuration, on the other hand, varies somewhat from model to model. KeyGhost I'll cover the two products from KeyGhost first. Both the cable and the plugs style work in much the same way as the KeyCarbon from my pervious article: just open a text editor and type in a certain changeable key sequence. They keylogger will then type out a menu for you to choose from. This menu varies somewhat between the two KeyGhost products, but the core functionality is the same.
Choose the option you want by
typing its number in the menu. The number one choice in both cases is to dump
the keystroke log. Unfortunately, at this time KeyGhost does not have a high
speed keylog downloader option for their USB line of keyloggers (they do
for their PS2 models). You can change the KeyGhosts typing speed if you wish,
but if you set it too high your menu options won't be readable. Setting the
speed to 3 worked well for me. You will notice that the more expensive cable
style TimeDate keylogger has extra options. These extra options let you set
things like the time, date and stealth modes. A representative from KeyGhost told me that one of their main engineering focus points was stealth,
which I have to say they did a very good job of in the case of their cable style
product (if you disregard its physical size). I plan to cover more of the details of keylogger stealth later in
this article, but for now I want to cover the possible stealth settings that
the KeyGhost TimeDate cable gives you: Medium - USB HUB only (Ghost keyboard only enumerates when required). Only the real keyboard shows up in the device manager until the KeyGhost's virtual keyboard is needed for setting options and typing back keystrokes, but the hub is always present. High - AUTO SENSING - (USB Hub and Ghost keyboard only enumerate when required). In this mode the KeyGhost cable is pretty much invisible. The plug style KeyGhost is also pretty stealthy as you will see shortly, but pales next to the cable. There are no configurable stealth options with the plug. The logs from the two KeyGhost products look something like the following (Note - I backspaced over my typing after I was done):
http://www.keyghost.com/download/index.htm The log analyzer takes some of the work out of parsing the key stroke logs for meaningful information. The analyzer tries to pluck out useful data like usernames, passwords, email addresses and URLs from the log. It's not perfect, so you may still want to look over the raw text yourself . Still, it's a useful addition.
KeeLog
Password=KBS If you need a different keyboard layout to support another language you can download a LAYOUT.TXT file from: http://www.keelog.com/download.html#layout and put it on the root of the thumbdrive. I think the idea of turning the keylogger into a flash disk to recover the logs is pretty nifty. The down side
is that you can't type anything on the keyboard it's hooked to while it's acting
as a UFD. To make it start logging again you have to unplug and re-plug it in, or use the
Another weird issue I had with the KeeLogger was that on some computers (Dell gx260/gx280) my Dell sk-8135 and sk-8125 keyboards would log garbage instead of the real keystrokes. I'd type: "I seem to be getting odd results with the KeeLog" and it would log: [Sh]Isoti d rlts th teeeog like it was missing characters. However the same keyboard would work fine with the KeeLogger on a different make of computer, and the computers that were giving the keylogger hell with the sk-8135 and sk-8125 would work fine if I used a different keyboard inline (My IBM Model M using a PS2 to USB and my Gandtec FLY-2000 both worked great). Be warned that that sometimes the KeeLog fails with different combinations of computer and keyboard. I've been talking to KeyLog and they are working on the problem. Maybe it will be fixed in the near future. The logs from the KeeLogger product look something like the following (Note - I backspaced over my typing after I was done):
It would be nice if KeeLog had some software for parsing out useful information from the logs like KeyGhost's Log Analyzer, but you could likely roll your own using Perl or Python. KeeLog seems to have more of the old school hacker mindset, with products on their website designed so you can roll your own home built keyloggers if you wish. They also offer the best prices of any hardware keylogger company I've found. Stealth and Detectability In my review of the KeyCarbon product I tested how detectable it was, and I plan to do the same for these keyloggers. The key tool I'm using for this is USBView under Linux. USBView lets you see what sort of USB devices are plugged in, as well as important information about the device like its vendor id, product id and connection speed. For convenience I've include a screen shot of USBView next to each of the keyloggers. Also, in the summaries I'll refer to an "inline thumbdrive". This means I tested the keylogger by inserting a thumbdrive directly inline between it and the host's USB port to test out connection speed.
Summary Of the four USB hardware keyloggers I've tested, my first choice would be the KeeLogger because of price ($89.99) , fair stealth and a fast way of extracting the logs. Too bad the KeeLog seems to be flaky with some keyboard/computer combinations, hopefully there will be a new firmware release to fix these issues. If you need absolute stealth (software wise) and time/date logging go with the KeyGhost cable, but just keep in mind that it's price puts it out of the hands of most folks. If KeyGhost would just take the electronics from their cable version and put it in a housing like their plug model's, it would be a real winner. I hope you have found this review useful. I may cover this topic again in one of my future videos. Keyloggers – content monitoring exploits
blog comments powered by Disqus
Ten most recent posts on Irongeek.com:
| ||||||||||||||||||||||||
If
you would like to republish one of the articles from this site on your
webpage or print journal please contact IronGeek.
Copyright 2010, IronGeek
Louisville / Kentuckiana Information Security Enthusiast