Woolim – Lifting the Fog on DPRK’s Latest Tablet PC 1

Disclaimer o We never visited DPRK o

What we say about DPRK is mostly speculation

o This is not about making fun of them Not about the developers … o … and certainly not about the people of DPRK o

o No focus on security in this talk -> Privacy

2

Agenda o Red Star OS updates o Woolim Hardware o Software o

o Gaining access to the data o Distribution of media o Q&A 3 Source: http://i3.kym-cdn.com/photos/images/original/000/979/926/81d.jpg

Red Star OS Updates o Multiple publications concerning Security (@hackerfantastic) Code Execution in Naenara Browser (old FF) o Command Injection in mailto: handler o Shellshock in RSSMON & BEAM in Server Version o

4

Red Star OS Updates o Multiple publications concerning Security (@hackerfantastic) Code Execution in Naenara Browser (old FF) o Command Injection in mailto: handler o Shellshock in RSSMON & BEAM in Server Version o

o Inter Alias (www.interalias.org) o

Used watermarking to create artifacts in pictures

5

Red Star OS Updates o Multiple publications concerning Security (@hackerfantastic) Code Execution in Naenara Browser (old FF) o Command Injection in mailto: handler o Shellshock in RSSMON & BEAM in Server Version o

o Inter Alias (www.interalias.org) o

Used watermarking to create artifacts in pictures

o Watermarking in the wild http://cooks.org.kp/ o 6 different watermarks appended to JPGs o

6

Motivation o No in-depth analysis yet o

Just some general information available

o Related to our previous research o

Lifting the Fog on Red Star OS (32c3)

o Findings from Red Star OS left open questions Dead code and unused crypto? o More advanced watermarking? o

7

울림 - Woolim – Ul-rim – Ul-lim - Echo o Name of a waterfall in DPRK o One of probably 4 Tablet PCs from DPRKs o

We have hands on for 3

o Manufacturer Hoozo in China o Z100 o

o Similar products sell for ~180€ to ~260€ o Software from/modified by DPRK 8

Product Presentation Woolim

9

A few side notes …

Don’t drive and watch TV …

10

A few side notes …

Updates and Patches available?

11

A few side notes …

Free warrantee service

12

A few side notes …

DVB-T Crypto? Sells as a feature! Remember RedStar AV? 13

Architecture - Hardware o System Information o o o o

o

Allwinner A33 (ARMv7) SoC 8GB SK Hynix flash MicroSD and power plug Not so responsive touchscreen No communication interfaces

14

Architecture - Hardware o System Information o o o o

o

Allwinner A33 (ARMv7) SoC 8GB SK Hynix flash MicroSD and power plug Not so responsive touchscreen No communication interfaces

o USB peripherals available o o o o

o

Modem Wifi LAN DVB-T HDMI (?)

15

Architecture - Software o Android 4.4.2 o Kernel 3.4.39 o Build: Sep 10, 2015

16

Architecture - Software o Android 4.4.2 o Kernel 3.4.39 o Build: Sep 10, 2015

o Preinstalled applications Camera o “Education” o Games o Browser o

17

Application Demos Woolim

Source: http://static3.businessinsider.com/image/5597ee366bb3f7324101480f1200-924/kim-jong-un-135.jpg

18

NAC o Probably used for access to Kwangmyong o PANA / PPPoE / Dialup o Login credentials o Different access points for different regions

19

Red Flag o Schedules thread Takes screenshots in the background o Logs the Browser history o

o o o o

Get IMEI, IMSI and android_id Copies key material “Integrity Check” -> Shutdown system Whitelist check for applications 20

Whitelist examples RedFlag Service

21

Gaining Access Extract all the Things!

22 Source: http://guardianlv.com/wp-content/uploads/2013/08/kimjongunnorthkorea005.jpg

The obvious things … o o o o o

ADB enabled? Can we enable it? Developer options? Can we install APKs? Is there a recovery/download mode?

23

The more advanced things … o File open dialogs in Apps o Attacks via archives Symlinks o Directory Traversal o

o o o o o

Suspicious shell commands in configuration files Java Deserialization for Tetris Flash application XLS macro injections … even more … 24

Exploiting Vulnerabilities?

Android Security Bulletins 11/2016

25 Source: https://source.android.com/security/bulletin/2016-11-01.html

Hardware Avoid Hardware Tampering!

26 Source: http://kimjongunlookingatthings.tumblr.com/image/140761766154

PhoenixCard Create Bootable Images for Allwinner Devices

27 Source: https://androidmtk.com/download-phoenixcard-tool

Test Environment Cheap A33 Tablet with similar functionality 28 Source: https://www.amazon.de/gp/product/B01C84JN5S/ref=oh_aui_detailpage_o07_s00?ie=UTF8&psc=1

Storage Layout

29 Source: http://kimjongunlookingatthings.tumblr.com/image/126030443459

Distribution of Media files in DPRK Achieving absolute control

Source: http://static5.businessinsider.com/image/5208f238eab8ea06490000111200-924/kim-jong-un-inspects-north-korea-smartphone-factory-2.jpg

30

Multiple Ways of Tracing Media Distribution o Watermarking introduced in Red Star OS Append simple watermarks to media files o Compatible code available on Woolim (librealtime_cb.so) o Seems to be refactored out of multiple services of Red Star OS 3.0 o Seems like watermarking parts are not used by default o

o Technically more advanced, more restrictive way of Woolim Based on cryptographic signatures o Gives the government more power over media sources o

31

Red Star OS Watermarking Recap

Plaintext: WMB48Z789B3AZ97 Decryption tool: https://github.com/takeshixx/redstar-tools 32

Original

First user

Second user

33

Original

First user

Second user

34

Tracking the Distribution of Media Files

User 1

33C3.jpg 35

Tracking the Distribution of Media Files

User 1

User 2

33C3.jpg 36

Tracking the Distribution of Media Files

User 1

User 2

User 3

33C3.jpg 37

Tracking the Distribution of Media Files

User 1

User 2

User 3

Government

33C3.jpg 38

Tracking the Distribution of Media Files

User 1

User 2

User 3

Government

Track down dissidents and traitors 33C3.jpg 39

Tracking the Distribution of Media Files o Create social networks o Construct connections between dissidents o Track down sources that create/import media files o Shutdown dissidents/traitors 40 Source: https://i.stack.imgur.com/xWMRJ.jpg

Woolim is More Restrictive o Introduces file signatures Using asymmetric cryptography (RSA) o Goal: PREVENT the distribution of media files o

o Government has full control over signatures o

Absolute control over media sources

o Explicit signature checks on Woolim Apps have to take care of checks o Unlike Red Star OS’s kernel module o

41 Source: http://s.newsweek.com/sites/www.newsweek.com/files/2015/02/23/0227kimjongun01.jpg

Signature Checking o Java interface with native JNI library (gov.no.media.Sign) o o

Called by apps e.g. during file opening/saving Sometimes concealed as “license checks”

o Multiple ways of signing o

o

NATISIGN: Files signed by the government SELFSIGN: Files signed by the device itself

o Files without proper signatures cannot be opened o

By apps that do signature checks 42

Source: http://i.imgur.com/FjOuSdy.jpg

Java Native Interface Libraries o Check if file has a proper signature o Used by various applications, e.g.: o o o o

o o o o

FileBrowser.apk Gallery2.apk Music.apk PackageInstaller.apk PDFViewer.apk RedFlag.apk SoundRecorder.apk TextEditor.apk

43

NATISIGN o Files that have been approved by the government o

Also referred to as “gov_sign”

o Files are signed with a 2048 bit RSA key o Device holds the public key to verify signatures o

Deployed on the device (0.dat)

o Code does some additional obfuscation o

Probably to make manual signing harder

44 Source: https://en.wikipedia.org/wiki/North_Korea#/media/File:Emblem_of_North_Korea.svg

SELFSIGN’ing o Combination of o

o o

Symmetric encryption (Rijndael 256) Asymmetric signatures (RSA) Hashing (SHA224/SHA256)

o Device identity stored in /data/local/tmp/legalref.dat o o

Comprised of IMEI and IMSI Each device‘s „legal reference“

o Files created on the device itself can be opened o

Camera images, office documents, PDFs, etc.

45 Source: http://s1.ibtimes.com/sites/www.ibtimes.com/files/2014/10/09/kim-jong-un.jpg

SELFSIGN Signatures o RSA signature of file hash o Encrypted device identity Rijndael 256 (key and blocks) o IMEI and IMSI o

o Trailer Signature size o ASCII suffix “SELFSIGN“ o

o Fixed size of 792 bytes 46

Files Types Affected by Signing o All kinds of media files o Text and HTML files o Even APKs…

47

Absolute Control of Woolim’s Media Sources

48 Source: http://www.hoozo.cn/uploads/140908/1-140ZR24925135.jpg

Absolute Control of Woolim’s Media Sources Approved by the government

NATISIGN

49 Source: http://www.hoozo.cn/uploads/140908/1-140ZR24925135.jpg

Absolute Control of Woolim’s Media Sources Approved by the government

NATISIGN

SELFSIGN Created on the device itself 50

Source: http://www.hoozo.cn/uploads/140908/1-140ZR24925135.jpg

Absolute Control of Woolim’s Media Sources Approved by the government

NATISIGN

SELFSIGN

Other Woolim tablet PCs

Other devices in DPRK

Created on the device itself Rest of the world 51 Source: http://www.hoozo.cn/uploads/140908/1-140ZR24925135.jpg

Absolute Control of Woolim’s Media Sources Approved by the government

NATISIGN

SELFSIGN

Other Woolim tablet PCs

Other devices in DPRK

Created on the device itself Rest of the world 52 Source: http://www.hoozo.cn/uploads/140908/1-140ZR24925135.jpg

Thanks for Supporting our Research o slipstream/RoL (@TheWack0lian) o

For leaking the Red Star ISOs

o Will Scott (@willscott) o

For translations and other information

o Iltaek o

Translations

o ISFINK (www.isfink.org)

Freedom of Information in North Korea o Provided the tablet -> Big thank you! o

53

Future Work o Free some of the stuff from the tablet Dictionaries o Books o

54

Future Work o Free some of the stuff from the tablet Dictionaries o Books o

o Anybody got a Smartphone from DPRK? o Anybody got Software from DPRK?  We would love to take a look at more technology from DPRK! 55

Questions? Florian: Niklaus: Manuel:

@0x79 @_takeshix @MLubetzki 56

Source: http://1.bp.blogspot.com/-dySbc2VnF20/U-c8C7Z5nUI/AAAAAAAAE1k/imA6IocsiZw/s1600/kim-jong-un-looking-things+(2).jpg

Thank you for your attention! 57 Source: http://i.imgur.com/AEWrS7X.jpg

Woolim – Lifting the Fog on DPRK's Latest Tablet PC - GitHub

17 o Android 4.4.2 o Kernel 3.4.39 o Build: Sep 10, 2015 o Preinstalled applications o Camera o “Education” o Games o Browser. Architecture - Software ...

5MB Sizes 8 Downloads 507 Views

Recommend Documents

Lifting the Fog on RedStar OS - GitHub
Dec 27, 2015 - https://blog.whitehatsec.com/north-koreas-naenara-web-browser-its-weirder-than- .... /lib/modules/2.6.38.8-24.rs3.0.i686/kernel/fs/rtscan.ko. ¬.

Lifting the Fog on the Chief Information Officer Role - Semantic Scholar
information and technology for competitive differentiation and the maturity of ... researchers and practitioners over the last 30 years. 2. Although much has ..... degree to which information and IT are critical for competitive differentiation in the

Cheap New Version Gpd Win Gamepad Tablet Pc Handheld Game ...
Cheap New Version Gpd Win Gamepad Tablet Pc Handh ... d Game Player Free Shipping & Wholesale Price.pdf. Cheap New Version Gpd Win Gamepad ...

Android Quick Start Guide, Android 4.4 KitKat - Android Tablet PC ...
Set up your device. 1. Make yourself at home. 2. Get around. 3. Organize your Home screens. 5. Touch & type. 7. Help & support. 8. Android version & updates. 9. 2 Essentials .... the same thing on a phone, go to Settings > Device > Display. You can o

Resolution Against Lifting the Cap on Commonwealth ...
Resolution Against Lifting the Cap on Commonwealth Charter Schools. WHEREAS, free public schools available to all students regardless of income, ability, need or English language proficiency are foundational to our democracy; and. WHEREAS, all of our

Hands-On Exercises - GitHub
Nov 29, 2011 - Lecture 13: Building a Bioinformatics Pipeline, Part III ... Download protein sequences for the best blast hits from Swiss-Prot ... Download the file unknown1.fas and unknown2.fas from the class website. ... u1.seq[:10].tostring().

rtGCS on GETAC - GitHub
Jun 12, 2015 - ... a few weeks is probably all you need to setup this demonstration. ... I am available to deliver rtGCS to your laptop and walk you through ...

Hands-On Exercises - GitHub
Nov 22, 2011 - Lecture 12: Building a Bioinformatics Pipeline, Part II. Paul M. ... have shown that it is amongst the best performing multiple ... See the MAFFT website for additional references ... MAFFT v6.864b (2011/11/10) ... Once you've confirme

McLab tools on the web - GitHub
Jan 6, 2016 - tools developed under the McLab project. This application is explicitly .... library developed by Facebook[5], and the Flux architecture pattern that complements React's composable. 4 ... Another option is to instead of selectively chan

McLab tools on the web - GitHub
highlighting. ➔ Message terminal. ➔ API for code highlighting using analysis results ... React.js. UI library built by Facebook https://facebook.github.io/react/ ...

Fog Driving tips.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Fog Driving tips.

pdf-15107\why-they-dont-hate-us-lifting-the-veil-on-the-axis-of-evil ...
Connect more apps... Try one of the apps below to open or edit this item. pdf-15107\why-they-dont-hate-us-lifting-the-veil-on-the-axis-of-evil-by-mark-levine.pdf.

The Latest Buzz
President of the Jay Evangelistic. Association since 1977. Retired from the military 2005. Earl - Yes - IBM Project Manager. Al - Yes - Oil Patch, Sub sea ... Earl - Working on the Apollo Lunar Landing Program. Al - The miracle of having and raising

Cheap Kindle fire HD HDX7 Very good Tablet PC kindle Brand ...
Cheap Kindle fire HD HDX7 Very good Tablet PC kindle ... s Send data line Free Shipping & Wholesale Price.pdf. Cheap Kindle fire HD HDX7 Very good Tablet ...

Strongly lifting modules.pdf
Let be a module then an epimorphism. is called a projective cover of a. module if and only if is a. small epimorphism, and is a projective,. equivalently if and only if is an. epimorphism , is a projective and. , see [4], [5] and [3]. 5. An R- module

weight lifting pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. weight lifting pdf.

Cheap OA-9X Desktop Full Motion Dual Arm Laptop+Tablet PC ...
Cheap OA-9X Desktop Full Motion Dual Arm Laptop+Tabl ... Notebook 10-15 inch and All Tablet PC 7-10 inch.pdf. Cheap OA-9X Desktop Full Motion Dual Arm ...

Cheap D07 Dlp Projector 16Gb Tablet Pc Android Wifi Projector 8 ...
Cheap D07 Dlp Projector 16Gb Tablet Pc Android Wifi ... For Home Theater Free Shipping & wholesale Price.pdf. Cheap D07 Dlp Projector 16Gb Tablet Pc Android Wifi P ... For Home Theater Free Shipping & wholesale Price.pdf. Open. Extract. Open with. Si

On Keyboards and Things... - GitHub
The problem with this is that bigrams like ST would jam the typewriter by ... Issues with QWERTY. Many common letter .... 2 Change layouts on your computer.

Influences of winter haze on fog/low cloud over the Indo ...
Mar 9, 2007 - It should be noted that fog observations from Terra MODIS may only repre- sent thick fog events, since some fraction of fog is expected to burn off at the time of Terra overpass (1030 local time). [16] In addition, comparison of the lev