RT-2026-001: Bitmain Antminer: the API port tells anyone your pool settings
Status: Design choice, no vendor fix recorded · Severity: Not a vulnerability; insecure default · CVE: Not applicable · Published: 2026-12-02
In short
Antminers with Bitmain's stock firmware have a built-in "API": a service on network port 4028 that monitoring tools use to ask the miner how it is doing. It answers anyone who can reach it, with no password. Among the answers are your pool settings, including your pool worker names and passwords.
This is how Bitmain designed it, not a bug, so there is no update to wait for. Block port 4028 for everything except your own monitoring computer, and change your pool worker passwords if strangers could have reached it.
Am I affected?
- Checked: Antminer S19j Pro and Antminer S21 (both with the Amlogic A113D control board), running Bitmain's stock firmware. The S19j Pro build dates from 2022-12-26 and the S21 build from 2024-02-02.
- Not checked: other Antminer models and firmware builds, and third-party firmware.
- Fixed: not applicable. This is the intended behavior.
Who can read it: anyone who can reach the miner on your network. That includes other people and devices on the same network, such as guests, a compromised laptop or a smart TV. If port 4028 is reachable from the internet, it includes anyone on the internet.
What's going on
Think of a shop with a "staff only" back office whose door is always open, and no one checks who walks in. Bitmain left this door open on purpose so monitoring tools can read the miner's status easily.
The catch is what is inside. Besides temperatures and hashrate, the API hands out the miner's pool configuration, including the worker name and password it uses to log in to your pool.
You can't simply close the door on the miner itself. The API has a setting for which computers may connect, but the stock web interface resets it to "everyone" each time you save your pool settings.
What could someone do?
At the very least, a stranger learns which pool and account you mine to. What else they can do with your worker details depends on your pool. If your pool uses the worker password for anything, or you reuse it elsewhere, treat it as exposed.
On the two builds we checked, the commands that would let a stranger switch your pool or restart the miner are not included in the firmware. So this is about reading information, not taking over the miner. One command that reloads the miner's configuration is reachable, but we did not test what it does.
Is there a fix?
No. Bitmain built it this way, and we found no switch in the stock firmware that turns the API off or adds a password to it. The protection has to come from your network.
What you can do now
- Block port 4028 on your router or firewall for every device except your own monitoring computer. Put the rule on the network, not on the miner: the miner's own setting gets reset each time you save your pool settings.
- Keep miners on their own network, separate from guest Wi-Fi and everyday devices.
- Never forward port 4028 to the internet.
- Change your pool worker passwords if anyone else could have reached port 4028, and don't reuse them anywhere else.
Technical details
For readers who want the specifics:
- Both builds report BMMiner 1.0.0 / API 3.1. The API listens on all interfaces on TCP 4028, with no authentication, before and after setup.
- Unauthenticated reads return status, hardware and pool data, including pool and worker credentials. We confirmed this live on hardware. The S21 was a control-board test unit without hashboards.
- The stock pool-configuration CGI rewrites the permissive API access grant every time pool settings are saved, so a hand-edited API allow-list does not survive. Whether it survives a reboot or update was not tested.
- The classic pool-switch, restart and other privileged write commands are compiled out of both reviewed builds, which we confirmed from the binary's command table. A configuration-reload command is exposed but was not exercised.
Timeline
| Date | Event |
|---|---|
| 2026-08-07 | Found by the 256 Foundation Red Team on an S19j Pro |
| 2026-08-11 | Same behavior confirmed on an S21 |
| 2026-09-02 | Rechecked; unchanged |
| 2026-12-02 | Published |
Credits
Found by the 256 Foundation Red Team.
References
- CWE-1188: Initialization of a Resource with an Insecure Default
- CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
- Scoring: not scored (design choice, not a vulnerability)
Revision history
| Date | Change |
|---|---|
| 2026-12-02 | Initial publication |
This is a hardening note about a deliberate design choice, not a vulnerability, so it did not go through coordinated disclosure. Vulnerabilities follow our Responsible Disclosure Policy.