News for hackers. Stuff that matters.
Re:China wants to become a semiconductor superpower, budgeti... by nraynaud on Saturday January 30, 2016 @05:14AM (#11001355)
I was curious about how a CPU backdoor would work:

http://es.slideshare.net/ortegaalfredo/deep-submicronbackdoo...

This example is a memory inspector and poker. On a side note, I think using a LEON MCU would be smart for this kind of demonstration, the code is free and it's synthetisable in a lot of targets.

Re:China wants to become a semiconductor superpower, budgeti... by stock_toaster on Saturday January 30, 2016 @05:28AM (#11001384)
Another example[1] (actual paper[2]) of potential for cpu backdoors.

[1]: https://ece.umass.edu/news/paper-stealthy-trojans-attracting...

[2]: http://sharps.org/wp-content/uploads/BECKER-CHES.pdf

Re:China wants to become a semiconductor superpower, budgeti... by Cieplak on Saturday January 30, 2016 @05:31AM (#11001390)
At minute 39:30, the lecturer demonstrates a snippet of HDL which will transition the CPU to ring 0 if a very specific instruction is passed to the processor core:

https://www.youtube.com/watch?v=fwyh3Vychj8

Re:China wants to become a semiconductor superpower, budgeti... by thesz on Saturday January 30, 2016 @05:47AM (#11001420)
BTW, this kind of backdoor would be very visible in Bluespec. Bluespec is very concerned about resource use and you will have to make extra effort to bring (really unneeded) resources to be accessible during interesting stages of CPU pipeline.
Re:China wants to become a semiconductor superpower, budgeti... by Cieplak on Saturday January 30, 2016 @06:08AM (#11001465)
Absolutely true, if you have the source code, which is trade secret. Correct me if I'm wrong, but Bluespec is like Haskell that compiles to Verilog? Seems pretty neat.

Any such thing as circuit decompilers? In my imagination, they look like as huge boxes with tunneling electron microscopes inside, where you input a chip and it outputs source code.

Re:China wants to become a semiconductor superpower, budgeti... by joshvm on Saturday January 30, 2016 @07:00AM (#11001562)
The closest I've seen to that are the guys that reverse engineered a 6502 at the transistor level and built a "perfect" emulator for it. http://www.visual6502.org/

I think even with modern computer vision techniques, it would be very very difficult to do this kind of thing automatically. If you were a big state with cheap labour, you could probably hire a load of people to do nothing but map traces all day.

Re:China wants to become a semiconductor superpower, budgeti... by Cieplak on Saturday January 30, 2016 @07:09AM (#11001573)
@joshvm looks like we ran out of thread depth..

That's super cool. I wanted to show you this too if you hadn't seen it already:

http://zeptobars.ru/en/read/KR580VM80A-intel-i8080-verilog-r...

Re:China wants to become a semiconductor superpower, budgeti... by CamperBob2 on Saturday January 30, 2016 @04:23PM (#11003820)
That is extremely neat. I wouldn't have thought you could build an 8080 in less than 1K lines of Verilog.
Re:China wants to become a semiconductor superpower, budgeti... by imglorp on Saturday January 30, 2016 @11:07AM (#11002334)
Network controllers with DMA would also be prime targets that could even be tailored for a specific victim's network. They can sit passively and monitor for interesting network traffic as well as sift through memory unimpeded. And when something needs exfiltrating, it can send out packets undetectable by the cpu.

Edit- oh, and dropping code into memory for the CPU to run is not unpossible either.