PHY Covert Channels: Can you see the Idles? Ki - - PowerPoint PPT Presentation

phy covert channels can you see the idles ki suh lee
SMART_READER_LITE
LIVE PREVIEW

PHY Covert Channels: Can you see the Idles? Ki - - PowerPoint PPT Presentation

PHY Covert Channels: Can you see the Idles? Ki Suh Lee Chupja Cornell University Joint work with Han Wang, and Hakim Weatherspoon 1


slide-1
SLIDE 1

PHY ¡Covert ¡Channels: ¡ Can ¡you ¡see ¡the ¡Idles? ¡

Ki ¡Suh ¡Lee ¡ Cornell ¡University ¡ ¡

Joint ¡work ¡with ¡Han ¡Wang, ¡and ¡Hakim ¡Weatherspoon ¡

¡

1 ¡

첩 자

Chupja ¡

slide-2
SLIDE 2

첩자 (chupja) ¡

2 ¡

slide-3
SLIDE 3

Network ¡Covert ¡Channels ¡

  • Hiding ¡informaJon ¡

– Through ¡communicaJon ¡not ¡intended ¡for ¡data ¡transfer ¡

¡

3 ¡

slide-4
SLIDE 4

Network ¡Covert ¡Channels ¡

  • Hiding ¡informaJon ¡

– Through ¡communicaJon ¡not ¡intended ¡for ¡data ¡transfer ¡ – Using ¡legiJmate ¡packets ¡(Overt ¡channel) ¡

  • Storage ¡Channels: ¡Packet ¡headers ¡
  • Timing ¡Channels: ¡Arrival ¡Jmes ¡of ¡packets ¡

4 ¡

slide-5
SLIDE 5

Network ¡Covert ¡Channels ¡

  • Hiding ¡informaJon ¡

– Through ¡communicaJon ¡not ¡intended ¡for ¡data ¡transfer ¡ – Using ¡legiJmate ¡packets ¡(Overt ¡channel) ¡

  • Storage ¡Channels: ¡Packet ¡headers ¡
  • Timing ¡Channels: ¡Arrival ¡Jmes ¡of ¡packets ¡

5 ¡

slide-6
SLIDE 6

Goals ¡of ¡Covert ¡Channels ¡

  • Bandwidth ¡

– How ¡much ¡informaJon ¡can ¡be ¡delivered ¡in ¡a ¡second ¡

  • Robustness ¡

– How ¡much ¡informaJon ¡can ¡be ¡delivered ¡without ¡loss ¡/ ¡error ¡

  • Undetectability ¡

– How ¡well ¡communicaJon ¡is ¡hidden ¡

6 ¡

slide-7
SLIDE 7

Goals ¡of ¡Covert ¡Channels ¡

  • Bandwidth ¡

– How ¡much ¡informaJon ¡can ¡be ¡delivered ¡in ¡a ¡second ¡ – 10~100s ¡bits ¡per ¡second ¡

  • Robustness ¡

– How ¡much ¡informaJon ¡can ¡be ¡delivered ¡without ¡loss ¡/ ¡error ¡ – Cabuk’04, ¡Shah’06 ¡

  • Undetectability ¡

– How ¡well ¡communicaJon ¡is ¡hidden ¡ – Liu’09, ¡Liu’10 ¡

7 ¡

ApplicaJon ¡ Transport ¡ Network ¡ Data ¡Link ¡ Physical ¡

slide-8
SLIDE 8

8 ¡

Current ¡network ¡covert ¡channels ¡ ¡ are ¡implemented ¡in ¡L3~4 ¡(TCP/IP) ¡layers ¡ ¡ and ¡are ¡extremely ¡slow. ¡

slide-9
SLIDE 9

Chupja: ¡PHY ¡Covert ¡Channel ¡

  • Bandwidth ¡

– How ¡much ¡informaJon ¡can ¡be ¡delivered ¡in ¡a ¡second ¡ – 10~100s ¡bits ¡per ¡second ¡

  • Robustness ¡

– How ¡much ¡informaJon ¡can ¡be ¡delivered ¡without ¡loss ¡/ ¡error ¡ – Bit ¡Error ¡Rate ¡< ¡10% ¡

  • Undetectability ¡

– How ¡well ¡communicaJon ¡is ¡hidden ¡ – Invisible ¡to ¡detecJon ¡socware ¡

9 ¡

ApplicaJon ¡ Transport ¡ Network ¡ Data ¡Link ¡ Physical ¡ Physical ¡

  • ­‑> ¡10s~100s ¡Kilo ¡bits ¡per ¡second ¡
slide-10
SLIDE 10

10 ¡

Chupja ¡is ¡a ¡network ¡covert ¡channel ¡ ¡ which ¡is ¡faster ¡than ¡priori ¡art. ¡ ¡ ¡ It ¡is ¡implemented ¡in ¡L1 ¡(PHY), ¡ ¡ robust ¡and ¡virtually ¡invisible ¡to ¡socware. ¡

slide-11
SLIDE 11

Outline ¡

  • IntroducJon ¡
  • Design ¡
  • EvaluaJon ¡
  • Conclusion ¡

11 ¡

slide-12
SLIDE 12

Outline ¡

  • IntroducJon ¡
  • Design ¡

– Threat ¡Model ¡ – 10 ¡Gigabit ¡Ethernet ¡

  • EvaluaJon ¡
  • Conclusion ¡

12 ¡

slide-13
SLIDE 13

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡

Threat ¡Model ¡

13 ¡

ApplicaJon ¡ Transport ¡ Network ¡ Data ¡Link ¡ Physical ¡ ApplicaJon ¡ Transport ¡ Network ¡ Data ¡Link ¡ Physical ¡ ApplicaJon ¡ Transport ¡ Network ¡ Data ¡Link ¡ Physical ¡ ApplicaJon ¡ Transport ¡ Network ¡ Data ¡Link ¡ Physical ¡ Sender ¡ Receiver ¡ Passive ¡ Adversary ¡ Commodity ¡Server ¡ Commodity ¡NIC ¡

slide-14
SLIDE 14

10 ¡Gigabit ¡Ethernet ¡

  • Idle ¡Characters ¡(/I/) ¡

– Each ¡bit ¡is ¡~100 ¡picosecond ¡wide ¡ – 7~8 ¡bit ¡special ¡character ¡in ¡the ¡physical ¡layer ¡ ¡ – 700~800 ¡picoseconds ¡to ¡transmit ¡ – Only ¡in ¡PHY ¡

14 ¡

Packet ¡i ¡ Packet ¡i+1 ¡ Packet ¡i+2 ¡ ApplicaJon ¡ Transport ¡ Network ¡ Data ¡Link ¡ Physical ¡

slide-15
SLIDE 15
  • Interpacket ¡delays ¡(D) ¡and ¡gaps ¡(G) ¡
  • Homogeneous ¡packet ¡stream ¡

– Same ¡packet ¡size, ¡ ¡ – Same ¡IPD ¡(IPG), ¡ ¡ – Same ¡desJnaJon ¡

¡

Terminology ¡

15 ¡

IPG ¡ Packet ¡i ¡ Packet ¡i+1 ¡ IPD ¡ Packet ¡i ¡ Packet ¡i+1 ¡ Packet ¡i+2 ¡

slide-16
SLIDE 16

Chupja: ¡Design ¡

  • Homogeneous ¡stream ¡
  • Sender ¡
  • Receiver ¡

16 ¡

Packet ¡i ¡ Packet ¡i+1 ¡ Packet ¡i+2 ¡ G ¡-­‑ ¡Ɛ ¡ G ¡+ ¡Ɛ ¡ D ¡-­‑ ¡Ɛ ¡ D ¡+ ¡Ɛ ¡ ‘0’ ¡ ‘1’ ¡ Packet ¡i ¡ Packet ¡i+2 ¡ ¡ ¡Gi ¡ Gi+1 ¡ Di ¡ Di+1 ¡ ‘0’ ¡ ‘1’ ¡ Packet ¡i+1 ¡ Packet ¡i ¡ Packet ¡i+2 ¡ G ¡ G ¡ D ¡ D ¡ IPG ¡ IPG ¡ Packet ¡i+1 ¡

slide-17
SLIDE 17

Chupja: ¡Design ¡

  • With ¡shared ¡G ¡

– Encoding ¡‘1’: ¡Gi ¡= ¡G ¡+ ¡ε ¡ – Encoding ¡‘0’: ¡Gi ¡= ¡G ¡-­‑ ¡ε ¡

17 ¡

Packet ¡i ¡ Packet ¡i+1 ¡ Packet ¡i+2 ¡ G ¡-­‑ ¡Ɛ ¡ G ¡+ ¡Ɛ ¡ D ¡-­‑ ¡Ɛ ¡ D ¡+ ¡Ɛ ¡ ‘0’ ¡ ‘1’ ¡

slide-18
SLIDE 18

ImplementaJon ¡

  • SoNIC ¡[NSDI ¡’13] ¡

– Socware-­‑defined ¡Network ¡Interface ¡Card ¡ – Allows ¡control ¡and ¡access ¡every ¡bit ¡of ¡PHY ¡

  • In ¡realJme, ¡and ¡in ¡socware ¡ ¡
  • 50 ¡lines ¡of ¡C ¡code ¡addiJon ¡

18 ¡

ApplicaJon ¡ Transport ¡ Network ¡ Data ¡Link ¡ Physical ¡

slide-19
SLIDE 19

Outline ¡

  • IntroducJon ¡
  • Design ¡
  • EvaluaJon ¡

– Bandwidth ¡ – Robustness ¡ – Undetectability ¡

  • Conclusion ¡

19 ¡

slide-20
SLIDE 20

EvaluaJon ¡

  • What ¡is ¡the ¡bandwidth ¡of ¡Chupja? ¡
  • How ¡robust ¡is ¡Chupja? ¡

– Why ¡is ¡Chupja ¡robust? ¡

  • How ¡undetectable ¡is ¡Chupja? ¡

20 ¡

slide-21
SLIDE 21

What ¡is ¡the ¡bandwidth ¡of ¡Chupja? ¡

21 ¡

slide-22
SLIDE 22

EvaluaJon: ¡Bandwidth ¡

  • Covert ¡bandwidth ¡equals ¡to ¡packet ¡rate ¡of ¡overt ¡channel ¡

22 ¡ 1.E+02 ¡ 1.E+03 ¡ 1.E+04 ¡ 1.E+05 ¡ 1.E+06 ¡ 1.E+07 ¡ 1.E+08 ¡ 0.01 ¡ 0.1 ¡ 0.5 ¡ 1 ¡ 3 ¡ 6 ¡ 9 ¡ Covert ¡Channel ¡Capacity ¡(bps) ¡ Overt ¡Channel ¡Throughput ¡(Gbps) ¡ 64B ¡ 512B ¡ 1024B ¡ 1518B ¡

1518B ¡1Gbps ¡ 81kbps ¡

slide-23
SLIDE 23

How ¡robust ¡is ¡Chupja? ¡ ¡

23 ¡

slide-24
SLIDE 24

¡ ¡ ¡ ¡

Boston ¡ Cornell ¡(Ithaca) ¡ Cornell ¡(NYC) ¡ NLR ¡(NYC) ¡ Chicaco ¡ Cleveland ¡

Sender ¡ Receiver ¡

¡ ¡ ¡ ¡

SW1 ¡ SW1 ¡ SW2 ¡ SW2 ¡ SW3 ¡ SW4 ¡

Sender ¡ Receiver ¡

EvaluaJon ¡Setup ¡

  • Small ¡Network ¡

– Six ¡commercial ¡switches ¡ – Average ¡RTT: ¡0.154 ¡ms ¡

¡

  • NaJonal ¡Lambda ¡Rail ¡

– Nine ¡rouJng ¡hops ¡ – Average ¡RTT: ¡67.6ms ¡ – 1~2 ¡Gbps ¡External ¡Traffic ¡

24 ¡

slide-25
SLIDE 25

EvaluaJon: ¡Robustness ¡

  • Overt ¡Channel ¡at ¡1 ¡Gbps ¡(D ¡= ¡12211ns, ¡G=13738 ¡/I/s) ¡
  • Covert ¡Channel ¡at ¡81 ¡kbps ¡

25 ¡

¡ ¡ ¡

? ¡

Sender ¡ Receiver ¡

0 ¡ 0.1 ¡ 0.2 ¡ 0.3 ¡ 0.4 ¡ 0.5 ¡ 0.6 ¡ 16 ¡ 32 ¡ 64 ¡ 128 ¡ 256 ¡ 512 ¡ 1024 ¡ 2048 ¡ 4096 ¡ BER ¡ Ɛ ¡(/I/s) ¡ Small ¡No ¡Ext. ¡ Small ¡Ext ¡3.6G ¡ NLR ¡

7.7% ¡ 2.8% ¡ 8.9% ¡

slide-26
SLIDE 26

¡ ¡ ¡

? ¡

EvaluaJon: ¡Robustness ¡

  • Overt ¡Channel ¡at ¡1 ¡Gbps ¡(D ¡= ¡12211ns, ¡G=13738 ¡/I/s) ¡
  • Covert ¡Channel ¡at ¡81 ¡kbps ¡
  • Modula=ng ¡IPGS ¡at ¡1.6us ¡scale ¡(=2048 ¡/I/s) ¡

26 ¡

Sender ¡ Receiver ¡

0 ¡ 0.1 ¡ 0.2 ¡ 0.3 ¡ 0.4 ¡ 0.5 ¡ 0.6 ¡ 16 ¡ 32 ¡ 64 ¡ 128 ¡ 256 ¡ 512 ¡ 1024 ¡ 2048 ¡ 4096 ¡ BER ¡ Ɛ ¡(/I/s) ¡ Small ¡No ¡Ext. ¡ Small ¡Ext ¡3.6G ¡ NLR ¡

7.7% ¡ 2.8% ¡ 8.9% ¡

slide-27
SLIDE 27

Why ¡is ¡Chupja ¡robust? ¡

27 ¡

slide-28
SLIDE 28

EvaluaJon: ¡Why? ¡

  • Switches ¡do ¡not ¡add ¡significant ¡perturbaJons ¡to ¡IPDs ¡
  • Switches ¡treat ¡‘1’s ¡and ¡‘0’s ¡as ¡uncorrelated ¡

– Over ¡mul=ple ¡hops ¡when ¡there ¡is ¡no ¡external ¡traffic. ¡ – With ¡external ¡traffic ¡

28 ¡

slide-29
SLIDE 29

EvaluaJon: ¡Why? ¡

  • Switches ¡do ¡not ¡add ¡significant ¡perturbaJons ¡to ¡IPDs ¡
  • Switches ¡treat ¡‘1’s ¡and ¡‘0’s ¡as ¡uncorrelated ¡

– Over ¡mul=ple ¡hops ¡when ¡there ¡is ¡no ¡external ¡traffic. ¡ – With ¡external ¡traffic ¡

29 ¡

¡ ¡ ¡ ¡

Sender ¡ Homogeneous ¡ 1518B ¡at ¡1 ¡Gbps ¡ Receiver ¡

¡ ¡ ¡ ¡

Sender ¡ Chupja ¡(Ɛ ¡= ¡256/I/s) ¡ ¡ 1518B ¡at ¡1 ¡Gbps ¡ Receiver ¡

slide-30
SLIDE 30

EvaluaJon: ¡Why? ¡ ¡

  • Switches ¡do ¡not ¡add ¡significant ¡perturbaJons ¡to ¡IPDs ¡
  • Switches ¡treat ¡encoded ¡‘0’ ¡and ¡‘1’ ¡as ¡uncorrelated ¡

– Over ¡mul=ple ¡hops ¡when ¡there ¡is ¡no ¡external ¡traffic. ¡ ¡

30 ¡

0.000001 ¡ 0.00001 ¡ 0.0001 ¡ 0.001 ¡ 0.01 ¡ 0.1 ¡
  • 1. ¡
11343.51515 ¡ 12211.2 ¡ 13078.88485 ¡ Interpacket ¡Delayy ¡(ns) ¡

1 ¡hop ¡ 3 ¡hop ¡ 6 ¡hop ¡ 9 ¡hop ¡ 12 ¡hop ¡ 15 ¡hop ¡ 15 ¡hop ¡ D ¡-­‑ ¡Ɛ ¡ ¡ 90% ¡in ¡ ¡ D ¡-­‑ ¡Ɛ ¡± ¡250ns ¡

0.000001 ¡ 0.00001 ¡ 0.0001 ¡ 0.001 ¡ 0.01 ¡ 0.1 ¡
  • 1. ¡
11343.51515 ¡ 12211.2 ¡ 13078.88485 ¡ Interpacket ¡Delay ¡(ns) ¡

1 ¡hop ¡ 3 ¡hop ¡ 6 ¡hop ¡ 9 ¡hop ¡ 12 ¡hop ¡ 90% ¡in ¡ ¡ D ¡± ¡250ns ¡ Homogeneous ¡stream ¡ Chupja ¡stream ¡( ¡Ɛ=256/I/s ¡) ¡ 90% ¡in ¡ ¡ D ¡± ¡100ns ¡ 90% ¡in ¡ ¡ D ¡– ¡Ɛ ¡± ¡100ns ¡ D ¡+ ¡Ɛ ¡ ¡

slide-31
SLIDE 31

EvaluaJon: ¡Why? ¡ ¡

31 ¡

¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡

Boston ¡ Cornell ¡(Ithaca) ¡ Cornell ¡(NYC) ¡ NLR ¡(NYC) ¡ Chicaco ¡ Cleveland ¡

  • Most ¡of ¡IPDs ¡are ¡within ¡some ¡range ¡from ¡original ¡IPD ¡

– Even ¡when ¡there ¡is ¡external ¡traffic. ¡

Encoded ¡‘Zero’ ¡ Encoded ¡‘One’ ¡ Sender ¡ Receiver ¡

Ɛ ¡(/I/s) ¡ (ns) ¡ 256 ¡ (=204.8ns) ¡ 512 ¡ (=409.6) ¡ 1024 ¡ (=819.2) ¡ 2048 ¡ (=1638.4) ¡ 4096 ¡ (=3276.8) ¡ BER ¡ 0.367 ¡ 0.391 ¡ 0.281 ¡ 0.089 ¡ 0.013 ¡

slide-32
SLIDE 32

EvaluaJon: ¡Why? ¡

  • Switches ¡do ¡not ¡add ¡significant ¡perturbaJons ¡to ¡IPDs ¡
  • Switches ¡treat ¡‘1’s ¡and ¡‘0’s ¡as ¡uncorrelated ¡

– Over ¡mul=ple ¡hops ¡when ¡there ¡is ¡no ¡external ¡traffic. ¡ – With ¡external ¡traffic ¡

32 ¡

¡ ¡ ¡

? ¡

Sender ¡ Receiver ¡ 1518B ¡at ¡1 ¡Gbps ¡

With ¡sufficiently ¡large ¡Ɛ, ¡ ¡ the ¡interpacket ¡spacing ¡holds ¡throughout ¡ ¡ the ¡network, ¡and ¡BER ¡is ¡less ¡than ¡10% ¡ ¡

slide-33
SLIDE 33

How ¡undetectable ¡is ¡Chupja? ¡ ¡

33 ¡

slide-34
SLIDE 34

EvaluaJon: ¡DetecJon ¡Setup ¡

  • Commodity ¡server ¡with ¡10G ¡NIC ¡

– Kernel ¡Jmestamping ¡

34 ¡

¡ ¡ ¡ NLR ¡

Sender ¡ Kernel ¡ Jmestamping ¡ Receiver ¡

¡ ¡ ¡ NLR ¡

Sender ¡ SoNIC ¡ Jmestamping ¡ Receiver ¡

slide-35
SLIDE 35

EvaluaJon: ¡DetecJon ¡

35 ¡ 0.00001 ¡ 0.0001 ¡ 0.001 ¡ 0.01 ¡ 0.1 ¡

  • 1. ¡

1228 ¡ 12211 ¡ 23194 ¡ Interpacket ¡Delay ¡(ns) ¡ HOM ¡ 1024 ¡ 4096 ¡ 0.000001 ¡ 0.00001 ¡ 0.0001 ¡ 0.001 ¡ 0.01 ¡ 0.1 ¡

  • 1. ¡

1228 ¡ 12211 ¡ 23194 ¡ Interpacket ¡Delay ¡(ns) ¡ HOM ¡ 1024 ¡ 4096 ¡

  • Adversary ¡cannot ¡detect ¡paPerns ¡of ¡Chupja ¡

Kernel ¡Timestamping ¡ SoNIC ¡Timestamping ¡

Ɛ ¡= ¡1024 ¡ Ɛ ¡= ¡4096 ¡ Ɛ ¡= ¡1024 ¡ Ɛ ¡= ¡4096 ¡

slide-36
SLIDE 36

EvaluaJon: ¡Summary ¡

  • What ¡is ¡the ¡bandwidth ¡of ¡Chupja? ¡

– 10s~100s ¡Kilo ¡bits ¡per ¡second ¡

  • How ¡robust ¡is ¡Chupja? ¡

– BER ¡< ¡10% ¡over ¡NLR ¡ – Why ¡is ¡Chupja ¡robust? ¡

  • Sufficiently ¡large ¡Ɛ ¡holds ¡throughout ¡the ¡network ¡
  • How ¡undetectable ¡is ¡Chupja? ¡

– Invisible ¡to ¡socware ¡

36 ¡

slide-37
SLIDE 37

Conclusion ¡

  • Chupja: ¡PHY ¡covert ¡channel ¡

– High-­‑bandwidth, ¡robust, ¡and ¡undetectable ¡

  • Based ¡on ¡understanding ¡of ¡network ¡devices ¡

– PerturbaJons ¡from ¡switches ¡ – Inaccurate ¡endhost ¡Jmestamping ¡

  • hvp://sonic.cs.cornell.edu ¡& ¡GENI ¡(ExoGENI)!!! ¡ ¡

37 ¡

첩 자

slide-38
SLIDE 38

Thank ¡you ¡

38 ¡