Android Debug Bridge (ADB)
What is Android Debug Bridge (ADB)?
Android Debug Bridge (ADB)A command-line developer tool, part of the Android SDK, that lets a host computer communicate with an Android device or emulator over USB or TCP to install apps, read logs, and run shell commands.
ADB is built into Android for debugging and is enabled via Developer Options. It uses a three-part architecture: a client (the adb command on your host), a daemon (adbd) running on the device, and a server process on the host that brokers the connection. It can install APKs, push and pull files, capture bug reports, forward ports, and open a shell running with the shell user's privileges — a foothold attackers can escalate from on rooted or vulnerable devices.
Since Android 4.2.2, ADB uses RSA host-key authentication: the device shows an "Allow USB debugging?" fingerprint prompt the first time a new host connects, and only an authorized key may issue commands over USB. That prompt does not protect TCP mode. Running adb tcpip 5555 exposes adbd on a network port, and historically many Android TVs, set-top boxes, and IoT devices shipped with it open to the internet with no authentication at all.
This fueled real worms. In February 2018 Qihoo 360's Netlab discovered ADB.Miner, which scanned port 5555, installed itself on unauthenticated devices, and mined Monero — reusing port-scanning code from the Mirai botnet, the first time Mirai code targeted Android. It spread to several thousand devices, concentrated in China and South Korea. Later families (Fbot, Trinity) reused the same vector.
ADB remains a staple of mobile pentesting and forensic acquisition.
flowchart LR
subgraph Host
C[adb client] --> S[adb server]
end
S -->|USB: RSA key prompt| D[adbd on device]
S -->|TCP 5555: NO auth prompt| D
D --> SH["shell user\ninstall / pull / run"]
W[ADB.Miner worm] -->|scans port 5555| D
W -.->|installs Monero miner,\nscans for more| WBest practice: keep ADB disabled on production devices, never accept unknown ADB keys, avoid adb tcpip on untrusted networks, and block port 5555 at the perimeter.
● Examples
- 01
A pentester runs adb logcat to capture an app's runtime logs during a test.
- 02
ADB.Miner spread among devices that had left adb tcpip 5555 open on the public internet.
● Frequently asked questions
What is Android Debug Bridge (ADB)?
A command-line developer tool, part of the Android SDK, that lets a host computer communicate with an Android device or emulator over USB or TCP to install apps, read logs, and run shell commands. It belongs to the Mobile Security category of cybersecurity.
What does Android Debug Bridge (ADB) mean?
A command-line developer tool, part of the Android SDK, that lets a host computer communicate with an Android device or emulator over USB or TCP to install apps, read logs, and run shell commands.
How do you defend against Android Debug Bridge (ADB)?
Defences for Android Debug Bridge (ADB) typically combine technical controls and operational practices, as detailed in the full definition above.
What are other names for Android Debug Bridge (ADB)?
Common alternative names include: adb, Debug bridge.