supply chain security€¦ · supply chains are hard even when security isn’t a concern –...

98
Supply Chain Security: “If I Were a Nation-State…” Bluehat.il 2019 bunnie @bunniestudios

Upload: others

Post on 23-Aug-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Supply Chain Security:“If I Were a Nation-State…”

Bluehat.il 2019 bunnie

@bunniestudios

Page 2: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

I’m a Hardware Guy.

Page 3: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

When Everyone Was Doing the Dotcom Thing...

Page 4: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

I Wasted My Time Doing This…

Page 5: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Time Passes…

Page 6: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

נהור סגי לעווירא צווחין סמייא בשוק“In the land of the blind, the one-eyed man is King”

(if Google is to be believed)

Page 7: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

A Few Years Designing Silicon…

Page 8: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Now: Mostly, I Build Systems…

Page 9: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Which Means Dealing with Supply Chains.

Page 10: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Supply Chains are Not Friendly Territory

Page 11: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 12: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 13: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 14: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 15: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Supply Chain Attacks: Why, What, & Where

Page 16: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Supply Chain Attacks: Why?

● Getting in– Backdoors to assist rootkits/exploits

● Getting out– Exfiltrating or leaking data

● Sabotage– Selective defeat/destruction of equipment

Page 17: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 18: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 19: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 20: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 21: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 22: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 23: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 24: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 25: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Substitute Component

● Simple “BOM swap”: many components look alike

Page 26: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 27: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 28: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

So Only Accept “Authentic” Chips! Right?

Page 29: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Fun Fact: Kingston Doesn’t Have a Fab.Then Where Do Kingston DDR Chips Come From?

Page 30: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

The RAM Market is Fluid

● RAM makers produce RAM chips faster than they can test them– eTT/uTT (effectively tested, untested) & “downgrade” sold as

unmarked chips– Substantially cheaper

Page 31: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 32: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 33: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 34: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Add System Component

Page 35: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

About Them X-Rays...

Page 36: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Obvious

Less obvious

Page 37: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 38: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Add IC in package

● Hide an additional chip inside a package● Chips are harder to see under X-ray● Multiple chips in package is a mature technology

Page 39: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

A Closer Look: Wirebonding

Page 40: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 41: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Wirebonding

Page 42: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 43: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Wirebonding is Versatile: Chip on Chip

Page 44: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

● Complex, 3D bonding patterns● Purpose: supply chain

flexibility– Mfg will routinely swap out

sub-components to optimize cost, yield

Design or Implant?

Page 45: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

● Silicon is fairly transparent to X-rays

● Copper traces tend to mask silicon

Page 46: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Closer Look: A “Typical” Wirebond IC

3D View X-Ray view

Page 47: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Piggybacking an Implant IC

Unmodified With implant

Page 48: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

X-Ray View

Unmodified With implant

Page 49: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

An Actual Piggy Back in X-Ray

https://electroiq.com/chipworks_real_chips_blog/2010/09/13/samsungs-eight-stack-flash-shows-up-in-apples-iphone-4/

Top view: looks like straight wires

Side view: visible, but requires unobstructed line of sight

Page 50: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Wirebonded Implants

● Leverages mature, commodity technology● $ few thousand, few weeks to develop

– Using commodity outsourced equipment– Maybe couple $100k’s to buy wirebonder + molding line outright– Can use commodity MCUs/FPGAs for exploit

● Detectable in X-rays

Page 51: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Concept: Through-Silicon Via

https://www.youtube.com/watch?v=20t4FCH3K60

0.1-0.2mm

Page 52: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Implant IC with TSV

Unmodified With implant

Page 53: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 54: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

X-Ray View: Wirebond Positions Unchanged

Unmodified With implant

Page 55: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Wirebond + TSV Implants

● Requires bespoke MITM chip● Harder to detect with X-rays

Page 56: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

What about WLCSP?

WaferLevelChipScalePackage

● No wirebonds● Direct chip-to-

board via solderballs

Page 57: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

WLCSPs are Increasingly Popular...

iFixit CC BY NC SA 3.0

Page 58: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 59: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 60: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Detection: Unmodified

WLCSPs Often Have a Seam

Page 61: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

WLCSP Implants

● Pro: Logistically easier than wirebond implants– Target chips sold in chip form– No package to reverse engineer

● Pro: TSV/WLCSP is commodity tech– WLCSP very common in mobile, increasingly common in servers– HBM graphics chips use TSV (Radeon R9, Nvidia GP100, GV100, Titan V)

● Con: Requires fabricating custom TSV template for attacks– mid-$100k’s to set up– Needs access to a mid-end fab

● Pro: Hard to detect– Almost no X-ray footprint– Almost no visual footprint

Page 62: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 63: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Total IC Substitution

● Develop or adapt an exploit IC● Possible objectives:

– Add shadow memory● This is trivial: e.g. enlarge I2C/SPI EEPROM

– Modify system control behaviors● PSU/reset/clocks controlled by simple ICs● Emulate system controllers with e.g. FPGA of about same die size + RDL

https://electroiq.com/2011/05/rdl-an-integral-part-of-today-s-advanced/

Page 64: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 65: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Ultimate Attack: IC Backdoors

● “Ultimate” attack– Bimodal – hard to set up the relationships to execute, but once

established, easy to repeat

● Persistent● Hard to attribute● Hard to detect

https://www.cl.cam.ac.uk/~sps32/ches2012-backdoor.pdf

Page 66: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 67: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 68: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 69: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 70: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Netlist Tampering: ASIC vs COT

● ASIC – “Application Specific Integrated Circuit”– Customer does RTL + floorplan– Foundry does detail place/route,

IP integration, pad ring– Popular for e.g. cheap support

chips: ● Server BMC● Disk controllers● Set top boxes

● COT – “Customer Owned Tooling”– Customer does full flow, down

to a nominal GDS-II mask– Several extra headcount +

$millions for back-end tooling software

– Necessary for high-performance / flagship products (CPU/GPU/router)

Page 71: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

ASIC Flow Example: SOCIONEXT

● $1.3bb revenue (2016)

Page 72: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

So I’m Safe with COT, Right?

Page 73: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

COT Weaknesses: “Hard IP” Tampering

● COT designers still leave large “holes” in the layout for hard IP– Foundry merges proprietary

blocks with agreed upon connection points

https://cornell-ece5745.github.io/ece5745-tut8-sram/

Page 74: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Hard IP: What Types?

● RF/analog– PLL, ADC, DAC, bandgap

● RAM● ROM● eFuse● Pad rings● Basically, all the points you need to backdoor your RTL

Page 75: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 76: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Mask Editing

● All masks also go through an editing (“checking”) step

Proc. of SPIE Vol. 8322 83220C-1

Page 77: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Example: Dopant Tampering

● No morphological change● Circuit behavior change

http://people.umass.edu/gbecker/BeckerChes13.pdf

Page 78: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Spare Cell Rewiring

● Place/route doesn’t use 100% of silicon area– Best practice adds “spare”

logic throughout for easier mask fixes

– Requires large morphological changes

Page 79: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Signal Bypass

https://www.researchgate.net/figure/Layout-of-a-D-Flip-Flop-with-asynchronous-reset-containing-8-dummy-gates-4-gaps-and-2_fig2_274254091

https://www.researchgate.net/figure/The-architecture-of-a-typical-DFF_fig11_221922917

Page 80: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Signal Bypass

Page 81: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Supply Chain Attacks: Where?

Page 82: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 83: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 84: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

https://arstechnica.com/tech-policy/2014/05/photos-of-an-nsa-upgrade-factory-show-cisco-router-getting-implant/

Page 85: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 86: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

wallet.fail @ 35C3 (T. Roth, D. Nedospasov, J. Datko)

Page 87: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 88: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 89: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 90: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 91: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

How Far Away Can We Target one Individual?

● “BTO” (Build To Order)– “Mass Customization” (MC)– “Custom Turnkey Order” (CTO)

https://blogs.opentext.com/maintaining-apples-customer-satisfaction-levels-its-all-about-logistics/

Page 92: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

From the Factory to Your Doorstep!

● Operations like CTS push “flavoring” deep into the supply chain

https://www.wired.co.uk/article/liam-casey

Page 93: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 94: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Note: Swapping Chips is “Easy”

● Replacing BGA chips in ~30 mins

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

Page 95: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

So: Big Picture Likely Correct; Details Sketchy

● Reported scheme doesn’t pass Occam’s Razor– The implant as described is hard to

build, easy to find

Page 96: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,
Page 97: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Key Take-Aways

● Supply chains are hard even when security isn’t a concern– Fakes, gray markets already a hard problem– The red team doesn’t care about your secrets, they just want your money :-)

● Accessible, commodity tech readily adapted to yield difficult-to-detect implants– Fakes/scammers “seed” the market for implant tech– low-$10k’s can yield a wirebond implant– mid-$100k’s can yield a WLCSP implant

● Very large attack surface– Workers & couriers: porous, transient communities– Distributors, factories: misaligned interests– BTO practices extends attack surface across borders and companies

Page 98: Supply Chain Security€¦ · Supply chains are hard even when security isn’t a concern – Fakes, gray markets already a hard problem The red team doesn’t care about your secrets,

Thanks!

@bunniestudios