sdr against smart tvs; url and channel injection attacks con 27/def con 27... · 2019-09-30 · •...

50
DefCON 27, Pedro Cabrera SDR Against Smart TVs; URL and channel injection attacks DefCON 27, Pedro Cabrera @PCabreraCamara

Upload: others

Post on 30-Mar-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

DefCON 27, Pedro Cabrera

SDR Against Smart TVs; URL and channel injection attacks

DefCON 27, Pedro Cabrera

@PCabreraCamara

DefCON 27, Pedro Cabrera

Industrial engineer, UAV professional pilot, Radio Ham (EA4HCF)

Ethon Shield, Founder

2018 RSA: “Parrot Drones Hijacking”2017 BH Asia Trainings (+ Simon Roses):

“Attacking 2G/3G mobile networks, smartphones and apps”

RogueBTS, IMSICatchers, FakeStations: www.fakebts.com

@PCabreraCamara

About Me

DefCON 27, Pedro Cabrera

This.Presentation:

I. HbbTV 101. Digital TV introduction

II. Hacking TV & HbbTV.

III. HbbTV RX stations.

IV. Targeting the Smart TV browser.

V. Conclusions

DefCON 27, Pedro Cabrera

[I] Hybrid Broadcast Broadband Televison

HbbTV(2009)

H4TVproject

HTML profitproject

Hybrid television because it merges digital television content and web content.

The HbbTV specification extends DVB-T by introducing additional metadata formats that mix broadband Internet content into the digital television channel.

SPA ENG

DefCON 27, Pedro Cabrera

[I] TV Distribution Network

Generic TV Network

DefCON 27, Pedro Cabrera

[I] DVB-T

DVB-T characteristics (Spain):

• 8 MHz bandwidth

• Transmission mode: 8k (6,817 carriers).

• Modulation schemes: 64 Quadrature Amplitude Modulation (OFDM)

• Code Rate for internal error protection: 2/3.

• Length of guard interval: 1/4.

DefCON 27, Pedro Cabrera

[I] DVB-T

DVB-T characteristics (Spain):

• 8 MHz bandwidth

• Transmission mode: 8k (6,817 carriers).

• Modulation schemes: 64 Quadrature Amplitude Modulation (OFDM)

• Code Rate for internal error protection: 2/3.

• Length of guard interval: 1/4.

DefCON 27, Pedro Cabrera

[I] Generic DVB-T receiver

RadioFrequency

MPEG-2Multiplex

DeModulator DeMultiplexer

Video Decoder

Audio Decoder

Metadata Decoder

DVB-TTuner

RTL-SDR:Rafael 820T2

RTL-SDR:Realtek RTL2832u

DefCON 27, Pedro Cabrera

[I] DVB-T demodulator

MPEG-2MUX

RadioFrequency RadioFreq

Receiver ADC Synchronizer

Fast FourierTransformer

ChannelEstimator

&Channel Equalizer

Inner Deinterleaver

Viterbi Decoder

Outer Deinterleaver

Reed Solomon Decoder

DeScrambler

DefCON 27, Pedro Cabrera

[I] DVB-T linux demodulator

• Bogdan Diaconescu(YO3IIU)

gr-dvbt(USRP N210)

• GNU Radio:

gr-dtv (USRP)

• Ron Economos (W6RZ)

dtv-utils (BladeRF)

DefCON 27, Pedro Cabrera

DVB-T Modulation:

- 8 MHz Bandwidth (SR)

- Transmission mode: 8k

- Modulation scheme:64 QAM

- Code Rate: 2/3.

- Length of guard interval:1/4

[I] DVB-T linux demodulator

DefCON 27, Pedro Cabrera

[I] TV Channels & Frequencies

D ig ita l M u tip le x C h a n n e l F r e q u e n c y

M P E 5 a tre s e r ie s H D 482 .000 .000

M P E 5 B e M a d tv H D 482 .000 .000

M P E 5 R e a lm a d r id T V H D 482 .000 .000

M P E 4 T R E C E 514 .000 .000

M P E 4 E n e rg y 514 .000 .000

M P E 4 m e g a 514 .000 .000

M P E 4 B o i n g 514 .000 .000

M P E 1 P A R A M O U N T C H A N N E L 570 .000 .000

M P E 1 G O L 570 .000 .000

M P E 1 D M A X 570 .000 .000

M P E 1 D is n e y C h a n n e l 570 .000 .000

T L 0 6 M T R E C E 618 .000 .000

T L 0 6 M In te re c o n o m ia T V 618 .000 .000

T L 0 6 M H IT T V 618 .000 .000

T L 0 6 M M e g a S ta r 618 .000 .000

T L 0 6 M C G T N - E s p a ñ o l 618 .000 .000

T L 0 6 M C a n a l G a le r ía 618 .000 .000

T L 0 6 M B u s in e s s T V 618 .000 .000

T L 0 6 M 8 m a d rid 618 .000 .000

R G E 2 td p H D 634 .000 .000

R G E 2 T E N 634 .000 .000

R G E 2 D K IS S 634 .000 .000

R G E 2 td p 634 .000 .000

R G E 2 C l a n H D 634 .000 .000

D ig ita l M u tip le x C h a n n e l F r e q u e n c y

M P E 3 T e le c in c o 698 .000 .000

M P E 3 T e le c in c o H D 698 .000 .000

M P E 3 C u a tro 698 .000 .000

M P E 3 C u a tro H D 698 .000 .000

M P E 3 F D F 698 .000 .000

M P E 3 D iv in ity 698 .000 .000

M A U T T e le m a d r id H D 746 .000 .000

M A U T T e le m a d r id 746 .000 .000

M A U T LA O T R A 746 .000 .000

M A U T B O M 746 .000 .000

R G E 1 La 2 H D 770 .000 .000

R G E 1 La 2 770 .000 .000

R G E 1 La 1 H D 770 .000 .000

R G E 1 La 1 770 .000 .000

R G E 1 C la n 770 .000 .000

R G E 1 2 4 h 770 .000 .000

M P E 2 n o v a 778 .000 .000

M P E 2 n e o x 778 .000 .000

M P E 2 la S e x ta H D 778 .000 .000

M P E 2 la S e x ta 778 .000 .000

M P E 2 a n te n a 3 H D 778 .000 .000

M P E 2 a n te n a 3 778 .000 .000

DefCON 27, Pedro Cabrera

482 570 618 698 746 770 & 778

MPE5 MPE1 TL06M MPE3 MAUT

RGE1 & MPE2

514

MPE4

634

RGE2

DefCON 27, Pedro Cabrera

DefCON 27, Pedro Cabrera

[II] Background: TV hijacking attacks

• East Coast USA 1986. At 12:32, HBO (Home Box Office) received its satellite signal from itsoperations center on Long Island in New York interrupted by a man who calls himself "CaptainMidnight". The interruption occurred during a presentation by The Falcon and the Snowman.

• CHICAGO 1987 WGN (Channel 9) sportscast is hijacked at 9:14 pm on November 22. Someonewearing a Max Headroom mask and wearing a yellow blazer interrupted a recorded segment ofthe "Chicago Bears" for about 25 seconds. At 23:15 the broadcast of an episode of "Dr. Who" onthe WTTW network was interrupted by the same character, this time with strange audio, anappearance of another person and a longer time in the air.

• Lebanon war 2006. During the Lebanon War of 2006, Israel overloaded the satellite broadcast ofAl Manar TV of Hezbollah to broadcast anti-Hezbollah propaganda. https://en.wikipedia.org/wiki/

Broadcast_signal_intrusion

DefCON 27, Pedro Cabrera

[II] Smart TV attacks state of the art

• June 2014 - Weeping Angel (CIA) - WikiLeaks. It shows exactly what an agent must do to turn a Samsung SmartTV into a microphone. Attack requires local access to the Smart TV.

• April 2015 - Yossef Oren and Angelos D. Keromytis "Attacking the Internet using Broadcast Digital Television".Theoretical study on the potential attacks on the HbbTV System.

• February 2017 - Rafael Scheel "Hacking a Smart TV". It presents two vulnerabilities to two Samsung Smart TV webbrowsers: Flash and Javascript, which it exploits by creating its own HbbTV application, broadcasting it through itsown DVB-T channel. For this, it uses a low-cost proprietary device and an unpublished SW. In no case does it useSDR or OpenSource tools.

DefCON 27, Pedro Cabrera

[II] DVB-T Channel Hijacking

Channel injection

URL injection

DefCON 27, Pedro Cabrera

Using the same frequency and channel metadata as in the original channel, we will transmit our video file using BladeRF, HackRF or any capable SDR supported by GNURadio:

gr-dtv(gr-dvbt)

Video file

HbbTVChannelmetada

[II] DVB-T Channel Hijacking

DefCON 27, Pedro Cabrera

We must generate a "Transport Stream" (TS file) with the same parameters of the legitimate channel and the new A/V content:

Transportstream file

Video file ffmpeg

original_network_id = XXXXtransport_stream_id = YYservice_id = [ZZZ]pmt_pid = [VV]

[II] DVB-T Channel Hijacking

DefCON 27, Pedro Cabrera

We must generate a "Transport Stream" (TS file) with the same parameters of the legitimate channel and the new A/V content:

Transportstream file

Video file

HbbTVMetadata

(hbbtv-dvbstream)1. ffmpeg 2. OpenCaster

original_network_id = XXXXtransport_stream_id = YYservice_id = [ZZZ]pmt_pid = [VV]

Video TS

Audio TS

[II] DVB-T Channel Hijacking

DefCON 27, Pedro Cabrera

[II] DVB-T Channel Parameters

DefCON 27, Pedro Cabrera

[II] DVB-T Channel Parameters

Linux command line:dvbv5-scan (DVBv5 Tools)

DefCON 27, Pedro Cabrera

[II] DVB-T Channel Hijacking

DefCON 27, Pedro Cabrera

[III] TV antenna facility attack

We can eliminate the radio phase by injecting our signal into the antenna facility, replacing the main TV stream from the antenna with our stream.

Amplifier

Splitter

DefCON 27, Pedro Cabrera

TV antenna facility

TV splitters (1/3)

[III] TV antenna facility attack

DefCON 27, Pedro Cabrera

TV antenna facility

TV splitters (1/4)

[III] TV antenna facility attack (II)

TV Amplifier

DefCON 27, Pedro Cabrera

[III] TV antenna facility attack

DefCON 27, Pedro Cabrera

[III] Why miniaturization ?

https://www.uavsystemsinternational.com/how-much-weight-can-a-drone-lift/

DefCON 27, Pedro Cabrera

[III] Miniaturization – Drone attacks

GPD 480grBladeRF 170gr

HackRF 100grBateria iPhone 10.000mA 280grBateria Solar 24.000mA 350grBateria NeoXeo 6.000mA 100gr

Odroid C2 68grCarcasa Odroid 32gr

300 gr

DefCON 27, Pedro Cabrera

[III] Drone attack

DefCON 27, Pedro Cabrera

[III] DVB-T Channel Hijacking: Impact

Generic TV Network

DefCON 27, Pedro Cabrera

[III] DVB-T Channel Hijacking: Impact

DefCON 27, Pedro Cabrera

[IV] URL Injection attack

The HbbTV standard allows Smart TVs to send GET requests to the URL transmitted by the channel (station) every so often:

URL

DefCON 27, Pedro Cabrera

[IV] URL Injection attack

DefCON 27, Pedro Cabrera

[IV] URL Injection attack: Basic

We add the URL of our fake server in the HbbTV metadata: application name, base URL, web page, organizationId and applicationId

gr-dtv(gr-dvbt)

Video file

HbbTVChannel

Metada (URL)

DefCON 27, Pedro Cabrera

[IV] URL Injection attack: Video Replay

gr-dtv(gr-dvbt)

Channel video & audio

HbbTVChannel

Metada (URL)

DVBv5 Toolsdvbsnoop

DefCON 27, Pedro Cabrera

We must generate a "Transport Stream" (TS file) with the same parameters of the legitimate channel and the new Application/URL content:

Video file Transportstream file

[IV] URL injection attack

HbbTVMetadata

(hbbtv-dvbstream)1. ffmpeg 2. OpenCaster

appli_name = [“DefCON27"]appli_root = ["http://10.0.0.1/"] appli_path = ["index1.htm"]

Video TS

Audio TS

DefCON 27, Pedro Cabrera

UserBrowser

HbbTVBrowser

[IV] One SmartTV, two browsers

SDR URL injection attack

ARP Poison/DNS Hijacking URL injection attack

[ ]

· HbbTV Browser(remote)

· HbbTV & User Browsers

(requires WLAN access)

HbbTVBrowser

DefCON 27, Pedro Cabrera

[IV] One SmartTV, two browsers

Samsung TV:

HbbTV/1.2.1 (+DRM+TVPLUS;Samsung;SmartTV2017;T-KTMDEUC-1106.2;;)

Mozilla/5.0 (SMART-TV; Linux; Tizen 3.0) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/2.0 Chrome/47.0.2526.69 TV safari/537.36

Panasonic TV:

HbbTV/1.2.1 (;Panasonic;VIERA 2014;3.101;6101-0003 0010-0000;)

Mozilla/5.0 (X11; FreeBSD; U; Viera; es-ES) AppleWebKit/537.11 (KHTML, like Gecko) Viera/3.10.14 Chrome/23.0.1271.97 Safari/537.11

DefCON 27, Pedro Cabrera

[IV] Smart (TV) scanning

Apache Log files:

• Public IP address

• Models/Manufacturers(UA)

• DVB-TChannels/Audienceanalysis

DefCON 27, Pedro Cabrera

[IV] Video replay & URL injection attack

dvbv5-zapgr-dvbt

dvbsnooptscbrmuxer

DefCON 27, Pedro Cabrera

[IV] Social engineering (SE) attacks

DefCON 27, Pedro Cabrera

[IV] Keylogger attack

DefCON 27, Pedro Cabrera

[IV] Crypto Mining

https://www.coindesk.com/hackers-infect-50000-servers-with-sophisticated-crypto-mining-malware

https://medium.com/tebs-lab/cryptojacking-hackers-just-want-to-borrow-your-cpu-ebf769c28537

https://www.tripwire.com/state-of-security/latest-security-news/4k-websites-infected-with-crypto-miner-after-tech-provider-hacked/

https://www.express.co.uk/finance/city/911278/cryptocurrency-hacking-bitcoin-ripple-ethereum-mining-youtube-adverts

DefCON 27, Pedro Cabrera

[IV] Crypto Mining attack

DefCON 27, Pedro Cabrera

[IV] Hooking user browser

DefCON 27, Pedro Cabrera

[IV] User browser attack

DefCON 27, Pedro Cabrera

[V] Conclusions

https://www.eff.org/files/2019/07/09/whitepaper_imsicatchers_eff_0.pdf

https://maritime-executive.com/editorials/mass-gps-spoofing-attack-in-black-sea

DefCON 27, Pedro Cabrera

[V] Conclusions

https://www.choice.com.au/electronics-and-technology/home-entertainment/tvs-and-projectors/buying-guides/tvs

https://voicebot.ai/2018/07/19/smart-tv-market-share-to-rise-to-70-in-2018-driven-by-streaming-services-alexa-and-google-assistant/

DefCON 27, Pedro Cabrera

Thank You

2019 August, DefCON 27

Gonzalo ManeraPepe CámaraAlvaro CastellanosLuis Bernal (aka n0p)

github.com/pcabreracamara/DC27