Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

For eg., how could I measure the normal power consumption of my usb keyboard?

After I got my statistics, I may easily notice when a hardware keylogger gets installed, by the changed power consumption. :)

share|improve this question
1  
What is your real question or problem? Do you want to know how much your keyboard consumes (if so, why)? Do you actually just want to know whether there's a keylogger installed? Is your question purely hypothetical or are you in a situation where you suspect a keylogger being installed? – slhck Jun 8 '12 at 16:13
1  
If a hardware keylogger is installed, you should notice by actually seeing the device sitting between the usb port and the keyboard connector. – psusi Jun 8 '12 at 23:46
The question is hypothetical. I'm just curious about how to know the consumption for no particular reason. On the other hand, a hardware keylogger would be installed inside the case of my keyboard, I think. Then it would be hard to spot, or else it would be pointless. – naxa Jun 9 '12 at 7:07

4 Answers

up vote 5 down vote accepted

USB current/voltage meters exist. Here's one on Amazon (though unfortunately out of stock at the moment). Here's the same model on eBay (from Germany, but ships worldwide).

enter image description here

Alternatively, if you're up for a bit of DIY, see this project on Instructables. You'll need a multimeter, though, because that's just a passive passthrough connector that simply provides a couple of test points.

share|improve this answer
Thanks, I like it. I'll wait a bit to see if a computer-based solution comes up, in case if it's possible. On the other hand the computer would be also a target for such an attack, while a newly bought/made usb c/v meter won't. :) – naxa Jun 9 '12 at 7:11
i'll just provide some further identification related things from your links PC Computer Check Diagnostic USB Port Voltage Current Tester Checker Extend Cable by Winter El. Co. on amazon. And, UPT- 0049 USB-Port-Spannungs- + Strommesser [7739] on ebay from seller m-ware. I could ask him re this... but could ask you perhaps. I see it's rectangular. On one side is a USB cable hardwired in, on the other There is a female usb socket and a power supply socket on it. does it need the power supply socket, and for what? – barlop May 9 at 9:45
+1 just to add. I have tried the device, and while it has the socket, no power supply is necessary(so who knows why it's there). it has a little switch for volts or amps, and shows volts and amps nicely. though it hasn't given me any insight into why my usb hdd is recognized in one computer and not another. The one I got , same thing, on ebay, was called PC USB 2.0 Cable Device Voltage Current Meter Tester Item Number 290754313719 $14.25 USD – barlop May 9 at 11:52

I haven't tried it but you could get a regular Mains Power Meter plug and unplug the keyboard and measure the difference.

What I have tried, is you could also connect a multimeter in series and measure the current. Like break the usb cable and connect your multimeter in between. If somebody can describe that process fully then that'd be great and a better answer than mine. Given the Voltage(5V) and current/amps, you can measure the Power/watts.
Power(P) = Current(I) * Voltage(V)
P=I*V

added- now tried indrek's solution.. PC USB 2.0 Cable Device Voltage Current Meter Tester

share|improve this answer

I would recommend this USB power meter...

http://www.smartronixstore.com/index.cfm?fuseaction=product.display&product_ID=53

I use it and it works great. Better than hacking up cables and trying to tie in a multimeter.

share|improve this answer

You didn't specify, but I know Windows (and probably other modern OS's) will tell you how much power is "required" for each attached USB device in the properties of each "USB Root Hub" in the Device Manager.

USB Root Hub Properties

Regardless of that, unless you're talking about a physical hardware keylogger that has to be in-line with the keyboard, then you're not going to be able to detect it by electrical draw in the way you are suggesting (by watching the keyboard).

share|improve this answer
1  
Please note that the "Power required" data is whatever the usb devices is reporting as its maximum, it's not an actual measurement. Nothing prevents a device from reporting 100 mA and actually drawing more (up to a limit, of course). So, if you have an in-line keylogger, it will not be reflected here since the USB keyboard does not know about it. – haimg Jun 8 '12 at 17:43
@haimg and techie007, Thanks for both answer and comment. – naxa Jun 9 '12 at 6:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.