An HP Printer Designed by the NSA
The story of how an American technology giant tried to convince us that the hardware we had bought was not ours at all, and designed its security as though an accounting department's printer had been worked on by the NSA's own design team.
You buy a printer. You pay. You take it out of the box, plug it in, everything works. You are the happy owner of a piece of plastic that can spit out a printed page. Nothing could be further from the truth. In HP's world, owning hardware is more like a lease agreement, and the corporation sets the terms.
Act I: The revenge of a departing employee
An employee who had just learned he would shortly be parting ways with the company decided to leave a memento behind. Out of spite, he changed the administrator password on the printer belonging to Lucy from accounts.
The next day Andrew, from the IT department, wanted to log into the administration panel (EWS, Embedded Web Server) of an HP Color Laser 150nw. The password did not work, as Andrew painfully discovered. No problem, surely? It is only a printer, after all. Our printer. It turns out that for HP a forgotten password is not a problem but a sin. One of the deadly ones. Without absolution.
Andrew began with the classics: resetting the network settings, button combinations, unplugging the power and the good old tricks of the "hold Cancel and Wireless" variety. The printer responded like the Sphinx. It said nothing. In desperation, Andrew contacted HP technical support.
The answer was: "We have no way of doing that, this printer has no NVRAM reset option." Freely translated from corporate into plain English: "Not our problem, buy a new one."
Act II: Watering a hamster with a fire hose
After a sleepless night Andrew decided to take on the giant. The head of IT considered it a clash between David and Goliath, but did not fancy David's, pardon, Andrew's chances. He told him to place an order for a new printer and added in red marker that it was to be a printer of any brand as long as it was not Hewlett-Packard. So Andrew, alias David, went looking for a sling. On the internet, of course, since this takes place in the twenty-first century.
He learned that the administrator password is stored in NVRAM, the non-volatile memory that holds a device's settings even after the power is disconnected. In this printer the role of NVRAM is played by a small flash memory chip on the mainboard, which the processor talks to over the SPI bus. HP had blocked any way of wiping that memory over USB or with button combinations. Why? Because. Because they can. Because perhaps some specialist from the NSA suggested it to them, citing security reasons, or in order to steer customers deliberately towards paid servicing. This is where our imagination runs out, and everything above is purely our own speculation.
Since the manufacturer had closed the door, what remained was to come in through the window, that is, to read and overwrite the contents of the chip directly, with a programmer. Our brave David (for that is the nickname he has carried in the company ever since) reached for the most popular cheap programmer, the CH341A. What he did not know was that in many versions it is evil incarnate. The popular black version of the CH341A puts 5 V on the data lines, while the chip in the printer runs at 3.3 V. It is a little like trying to water a hamster with a fire hose. The integrated circuit chokes, reads come back with errors, and in the worst case the chip can be permanently damaged. Our hero did not sleep that night either.
Act III: A sling for a few euros
It was then that an actor Andrew had never thought of as servicing equipment walked onto the stage: the Raspberry Pi Pico H. A small microcontroller costing around four euros, which works at 3.3 V logic, so it is safe for such chips, and which, once the right software is loaded onto it, becomes a fully fledged programmer. A bow here to the pico-serprog project, which turns the Pico into a device speaking the serprog protocol, understood by the popular flashrom program. That was David's sling. He found it, the rascal!
To go with it, a SOIC8 clip, affectionately known as the orange frog, which clamps directly onto the legs of the chip on the mainboard. The soldering iron turned out to be unnecessary.
The stone for the sling turned out to be a file holding the memory contents of the same printer, a so-called dump. It was supplied by our Russian brethren. The Russian server was unreachable from the country where our hero works, so David connected to it through a VPN exiting in Moscow. In that cavernous grotto he found everything he needed. He politely declined the offer of a batch of AK-47s, but eagerly made use of the archive of binary files. Among them was a memory dump of the wretched HP Color Laser 150nw. Archaic, with firmware version .08, but with one magical property: it had no password set.
Act IV: Flashrom, flashback and the miracle of forgetting
David connected the Pico, clipped on the frog and first did what every sensible service technician should do before any operation on memory: he saved a copy of the chip's original contents. Then he typed into the terminal the command sudo flashrom -p serprog:dev=/dev/ttyACM0 with the foreign file, and a miracle happened. The trumpets of Jericho sounded. The printer came back to life. Admittedly it greeted him with blinking lights, because the dump came from a device with different toner chips, but it belonged again to the company that had bought it.
Instead of digging further in the NVRAM swamp, David went for broke. Over USB, in forced mode, he flashed the latest official HP firmware, version .20. Officially. Without blocks. Without paying. Without consulting the NSA design department, which in our view had a hand in all of this. The printer restarted and the blinking lights went out. After that it was plain sailing: logging in to the web panel by IP address, entering the admin account with an empty password, WPS and a Wi-Fi network that came up in a second.
What this story teaches us
Beneath the joke lie several quite serious lessons. First, "no possibility of a reset" in a manufacturer's mouth usually means "no possibility for the customer", not a technical impossibility. The data is written somewhere, and since it is written, it can be read and overwritten. Second, before you connect a programmer to anything, check the operating voltage of the chip. The cheapest tool can be the most expensive one when it burns out a mainboard. Third, before the first write, always make a copy of the memory's original contents, because that is the only way back. Fourth, a binary file downloaded from an unknown source is always a risk. Here it was about a printer in an office, but the same principle applies to every device on a network.
And finally the most important thing: if the hardware you paid for refuses to obey you because you have forgotten a password, it is worth asking yourself who really owns it.
Epilogue: A new definition of technical support
Today the printer works without a hitch. Except that it stands on Andrew's desk at home. He received it from his boss as a gift, in recognition of his victorious battle with the giant. The company now buys printers of a different brand which, it seems, does not cooperate closely with the NSA. And whose technical support is capable of helping when help is needed.
The article is written tongue in cheek, but David's story is true.