How much money and time would it take for someone to install keylogger/malware into something like a powerbank? Whether its a powerbank for laptop or powerbank that is used for portable devices? Woudl it be even worth the time and money though? But if they knew the buyers had crypto on their computer for example, then wouldn't some scum do that?
Money? Probably just a few bucks
Time? Depends on the actual microcontroller you try to tamper with.
You can't generalize this by saying it takes X minutes/hours/days.
Some USB sticks, for example, can be tampered with within a few minutes (software side).
Others would require to replace the controller completely.
Each devices is different and it almost always is not a trivial task.
But the real micro controller tampering you are talking about, what devices would this include? I assume
1. Modems
2. Routers
3. Printers
4. Powerbanks
5. Mouse
6. Keyboard
Anything which has a microcontroller which doesn't verify the firmware.
So, yes.. everything in your list. At least on a theoretical level.
Wouldn't mouse and keyboard be the easiest and least detectable thing because most ppl wouldnt even think about it? Example imagine someone knows a certain someone has crypto in their computer and does not have nano ledger etc. Someone could lend or give someone a mouse or keyboard...they connect to their computer, they are now screwed right?
Sure.
There also already have been many cases where keylogger have been hid in keyboards.
Not directly manipulating the microcontroller, but inserted a small chip which reads out the keyboard buffer each X milliseconds.
There are countless ways to gain access to sensitive information. Effectively you can not protect yourself against all of them. It is a probability game.
If you buy your hardware from a trusted seller and don't let some shady techy people (who want to harm you) access it, you are pretty much safe.
But where would you rank powerbanks? What about powerbanks that only connect to the power outlet in your laptop? I mean it does not connect to your laptop usb.
What if someone lends you say their asus or dell laptop charger? Is it possible for them to lend or sell you an asus or dell laptop ac adapter charger where connecting it gives you malware/keylogger? Of course it connects to the power plug in your laptop only... not the usb-c port in your laptop.
As others have mentioned, if there is no data connection, no data can be transmitted.
And therefore no malware can be transmitted / installed.
You keep playing the "what if?" game and never seem to want to make an actual decision. If you keep doing that, you'll eventually get to the level of: "Well, what if someone drops a dirty bomb on the bank where my cryptosteel is stored in a safety deposit?"
Well.. what if this happens? Is it safe to spread my cryptosteel around 10 banks then? What if there are a lot of bombs being dropped ? Is it safe then ?