Friday, 3 March 2017

How to prevent the US border guards from reading your mobile phone data.

In recent days there has been reports of the US border guards forcing travellers to the US to hand over their mobile phones with their relevant unlock codes / passwords.

This is not a new phenomenon by any means and travellers have frequently have had to hand over their tech for investigation, laptops as well a mobile devices.

If you were actually on the US soil, then your right to deny access would hold fast. However at the border a kind of grey area prevails with regards to your personal information and your rights to privacy are impinged considerably.
Denying the border guards access to your unlocked device might not go to well in your favour and could lead to your device or yourself being detained or by the government authorities for an undefined amount of time.

This is just the start of what could turn out to be a standard operating behaviour for entering all countries. Imagine a time when it is perfectly acceptable to hand-over your mobile phone with your passport.
Software is being developed, government funded and made to run faster and dive more deeply into the inner workings of the OS on your mobile device.
Making it possible to copy all of the information of your mobile device in a matter of seconds.


Why should I care, I have nothing to hide?
Think of any minutely subversive email you have written or an overtly political post you may have liked, or that time you took a photo of some minor act that could be deemed as in poor taste or with questionable legality. All of this information can be now copied, shared and analysed by all of the US law and security forces and if needs be used as evidence against you should it so be required.
Think of your corporate mobile device, with not only your personal information, but also the keys to your organisations intellectual property.

It's okay though, it will be deleted after 7 days, so they say.
But as of yet there is no proof that this action has ever been actioned.

How do I keep my data private?
So it is most likely that you have nothing to worry about, I have no plans to travel to the US anytime soon. However, what can you do should you want to keep the private content on your mobile device private.
  • Backup : Well as the device itself is the bottle neck here, the first thing you need to do is to back up all this information onto a secure cloud service. There are any number of secure cloud services out there. Google, Box, DropBox with some EMM/MDM products also offering a secure work area for your business critical data.
    Create a backup, ideally to you iOS iCloud of the device setup configuration or a complete back up of your Google Android OS.
  • Factory reset : So either on the flight or before you fly, flatten the OS. A factory reset should drop the device into pre-configured state and should remove all personal information. If your device has a removable SD card, be sure to remove that before you fly and leave it at home. Alternatively if you are feeling slightly subversive, stash somewhere that the border security forces will not find it.
  • Dumb phone : Turn of your smart phone and swap out the SIM card to a cheap dumb phone. I personally use a more recent Nokia feature phone which ensures that I can still receive a 4G cellular signal should anyone need to contact me while I am roaming. I hear that Nokia are re-releasing the Nokia 3300, this could be the perfect excuse to relive that nostalgic age of the early 00's
  • Restore : When you land and are safely on US soil, well away out of the domain of the border forces, simply restore your phone from backup.
    I say simply, yes this may well mean waiting ages for the backup to restore from the cloud. Yes, you may well also have to restore all of your WiFi, Email and social media passwords and re-login to all of your apps and sites.
    Making use of Chrome should ease the transition for saved passwords and using a password manager for your apps like LastPass or 1Password will help also.
Yes the process you need to go through is annoying and you may even have to go through the exact same process when you leave the country also.
Sadly in this day and age our rights are always being challenged, we just need to stay one step ahead of the curve.

Good Luck and safe travelling.



Friday, 14 November 2014

Apple iOS "Masque Attack" Technique

Systems Affected

iOS devices running iOS 7.1.1, 7.1.2, 8.0, 8.1, and 8.1.1 beta.

Overview

A technique labeled “Masque Attack” allows an attacker to substitute malware for a legitimate iOS app under a limited set of circumstances.

Description

Masque Attack was discovered and described by FireEye mobile security researchers.[1] This attack works by luring users to install an app from a source other than the iOS App Store or their organizations’ provisioning system. In order for the attack to succeed, a user must install an untrusted app, such as one delivered through a phishing link.  
This technique takes advantage of a security weakness that allows an untrusted app—with the same “bundle identifier” as that of a legitimate app—to replace the legitimate app on an affected device, while keeping all of the user’s data. This vulnerability exists because iOS does not enforce matching certificates for apps with the same bundle identifier. Apple’s own iOS platform apps, such as Mobile Safari, are not vulnerable.

Impact

An app installed on an iOS device using this technique may:
  • Mimic the original app’s login interface to steal the victim’s login credentials.
  • Access sensitive data from local data caches.
  • Perform background monitoring of the user’s device.
  • Gain root privileges to the iOS device.
  • Be indistinguishable from a genuine app.

Solution

iOS users can protect themselves from Masque Attacks by following three steps:
  1. Don’t install apps from sources other than Apple’s official App Store or your own organization.
  2. Don’t click “Install” from a third-party pop-up when viewing a web page.
  3. When opening an app, if iOS shows an “Untrusted App Developer” alert, click on “Don’t Trust” and uninstall the app immediately.
Further details on Masque Attack and mitigation guidance can be found on FireEye’s blog [1]. US-CERT does not endorse or support any particular product or vendor.

References

Revision History

  • November 13, 2014: Initial Release