Can You Insert Hardware Trojan Spyware IP into an IC at the Fab? Yes
eejournal.com
eejournal.com
There are also some (unconfirmed) tales of extra, tiny ICs soldered on to existing connections on a PCB at just the right spot to spy on a data bus (those would definitely be more plausible than compromising an IC at the Fab).
It's also possible to add trojan hardware into an IC at the design phase (most likely with the "help" of the owner or otherwise forcing them via lawful or unlawful means by government entities).
Why do you assume this? Surely any number of the three/four letter agencies could pull this off with ease, if they haven't already.
If this were true, then the Apple M1 would never be as reverse engineered as it is now.
It is even possible that chip designers insert back doors into their chips intentionally (no state-sponsored moles required) so they can covertly sell those capabilities to state actors as an additional revenue source. This might not even be illegal.
But that would put a back door on every chip made from that design, and it would increase the odds of it being discovered.
Shows we should not conflate right/wrong with legal/illegal.
Some overlap, but certainly down from 100%.
The illegality is the damages regardless of how they occurred, but potentially also breach of contract if you think to specify "no backdoors" in your contract.
One rumor I've heard for a while is that messing with the doping at the right time can bias HWRNGs in a way that you wouldn't be able to notice even with physical inspection with an electron microscope.
And security agencies have proved that they take a layered, multipronged approach to SIGINT, even against companies that are directly working with them. Google working with the NSA didn't stop the NSA from also tapping Google's inter-datacenter traffic without telling Google.
https://www.zdnet.com/article/windows-xp-leak-confirmed-afte...
The only missing component was winlogin.exe, probably because of its involvement with the activation process.
That being said, some of the leaks also simply provide enough code to compile a more or less complete system. https://fossbytes.com/youtuber-compiles-windows-xp-leaked-so...
If Intel wants to put a backdoor ME would probably be a bad choice because it's a too obvious and monitored location
IP are often black boxes akin to proprietary software libs.
It's a dumb name but it has been in use for decades now.
Supposing they did get the full layout to an external network, they still likely wouldn't be able to do an ECO because most of the major players will be using custom standard cell libraries, and not the foundru-supplied ones. Even if it were using foundry libraries, the same rogue actor who has access to the chip layout probably wouldn't (and definitely shouldn't) even have access to the foundry's standard cell IP.
At this point it's already a virtual impossibility, but let's keep going. The next step is to actually perform the ECO, which requires a "net list", or a text equivalent of the schematic. Can you get one from the layout? Absolutely. That's how all Layout-vs-Schematic tools work. And the research paper says it's trivial, which it is. But what's not trivial is turning the transistor-level netlist to a gate-level net list. Again - standard cells aren't actually standard, especially bigger and more complex ones. Even harder still is using a netlist to figure out what those logic gates are doing. Trust me, I've tried. Is it doable? Theoretically. But with millions, or potentially even billions of logic gates, it's going to take a very, very long time.
Then you've got static timing analysis and power analysis to worry about. With the layout and a gate level netlist, you have all you need to run the tools. But again, it's going to take an extremely long time. Real designs are built hierarchically, so each team is doing timing/power closure for their own blocks and summarizing those for the parent block. If you have a massively flat structure it will be impossibly slow.
The underlying research paper makes some massive assumptions , which don't have me convinced at all. Their "trojan horse" circuit is legitimate - you create a digitally controlled oscillator tied to some critical data bus like in an AES subsytem, and the changing data modulates the current consumption of the oscillator which can be measured externally. This type of side channel attack is well known.
To me, the Trojan horse implementation is trivial, though. The much harder part is pulling off the ECO.
Not sure about kayson, but I've done essentially that on a couple occasions (usually to some C++ abomination that refuses to compile away from the authors' build server). It's not that difficult.[0]
> Unlike those pirate crackers who sometimes can pull this off, imagine you have no idea what the binary does, and even if you "run" it in simulation (super slowly) everything is gibberish.
Realisticly, you usually do have a pretty good idea what the chip does[1], and may have 'extra'/'lost' stock from the previous revision to compare its behaviour against, especially if you're attacking something popular enough to be worth compromising (= probably more than one batch ordered).
0: Most off-the-top-of-head example from my notes file:
fix caja(glib) wrong(decimal) unit prefixes:
at libglib-2.0.so.0.4105.0:7CFB1
[... more at ...]
change 4 bytes in g_format_size_full
from: 41 F6 C4 02 test r12b 0x02 # if(flags&G_FORMAT_SIZE_IEC_UNITS)
into: 48 83 FB 00 cmp rbx byte(+0x00) # if(size!=0)
1: Presuming 'you' are a intelligence agency, ie the kind of thing that would credibly try such a attack, not a isolated disgruntled fab employee.What safe guards are there from a hardware trojan? Solutions like zero trust and segmentation only go so far in a scenario like this.
There are many large companies which discourage or forbid the access of the designers to other parts of the project than those that are strictly required to do their jobs.
The result is that very few, if any, have any understanding about how the entire device is supposed to work, besides of passing the cases of the testing plan.
Because of that, even if some backdoor is inserted and everybody sees it, there are good chances that nobody can guess its purpose and recognize that it is something that should not be there.
https://www.cisco.com/c/en/us/products/security/what-is-netw...
I was referring to the network, not the people building the hardware. The article asks a question at the end. How does one defend against a hardware trojan? Where that trojan would exist, perhaps dormant and invisible, inside a critical asset.
But...he outlined a How To:
https://www.youtube.com/watch?v=46D_5F3_J4A
https://informatik.rub.de/wp-content/uploads/2021/11/SuRI_20...