0

A power bank has some sort of circuitry, but I am not sure if there is any software on a power bank or if they are only pure batteries, but people are connecting their mobile phones and laptops to them by USB and historically USB sticks represent a medium to transfer malware.

Elzo Valugi
  • 103
  • 1
  • 4
  • 2
    There is nothing to stop someone from putting custom circuitry in a power bank, which would act as a keyboard or other device, but I'm guessing you're asking about a standard device? If so, might be worth editing into the question – Matthew Nov 14 '16 at 13:57

2 Answers2

7

A pure power bank likely cannot - most of them have the data lines not connected to any chips, but rather to resistor networks. However, someone could easily make something that appears to be a power bank but has nasty firmware on it.

You can get data disconnected (power only) USB cables that you could use to plug into a suspect power bank. However, since phones use the data lines to decide how much power they can draw, in disconnected lines they draw the minimum and will charge slower.

You could make up a cable to match your phone, but it gets complicated.

crovers
  • 6,311
  • 1
  • 19
  • 29
  • 2
    Also see [Secure USB cable for charging in untrusted environments](http://security.stackexchange.com/questions/124131/secure-usb-cable-for-charging-in-untrusted-environments) for elaboration on the safe cable. – Sjoerd Nov 14 '16 at 14:45
1

Answering directly to your question. Yes, i believe a power bank can be used to plant malware. If you bought an unknown brand of powerbank or from a questionable source.

One could have a battery that powers a raspberry pi or pi zero in a 'powerbank' case.

Your phone would still charge as if you are plugged into the laptop. Malware can be pushed via adb or other crafted scripts.

In this day and age, you get hacking devices disguised as Power Adapters, Power Strips etc. What's new if a hacking device is guised as a powerbank.

Check out this news article from Gizmodo :)

Lester T.
  • 1,263
  • 1
  • 9
  • 21