PIN apps: Hacking on the hoof
'Grey hat' apps are a new phenomenon in software that enable street hackers to delve into your smartphone and access your data, and more besides.
Wireless analysis applications are plentiful across Windows, Mac and Linux operating systems. Netstumbler, PRTG Network Monitor, and Wireshark – all do the same sort of job. However, lugging around a laptop is not as easy as toting a slimline smartphone. Now the open nature of Google's Android, coupled with the immense portability of smartphones, has created a new genre of wireless apps that do everything the laptop applications do, but on a wider scale.
Since the end of 2011, after the release of version 4.x and 5.x of the feature-rich Apple portable operating system known as iOS, a number of wireless analysis apps have started appearing on the iPhone and iPad platforms. Conspiracy theorists have attributed the arrival of interrogative Wi-Fi network apps for the Apple portable operating system platform to the passing of former CEO Steve Jobs; but it seems that the powerful upgrade of iOS 5.x in October 2011 has given programmers the ability to dive deep into the iPhone and iPad's innermost workings to launch a species of so-called Prosumer Interrogative Network (PIN) apps.
Three of these new apps – SharkforRoot (Android), SubNetInsight (iOS) and Fing (Android and iOS) – also differ from their desktop peers in covering several network analysis bases on an all-in-one basis. To use a Western movie analogy, these apps can be used for 'white hat' hacking and network analysis, as well as 'black hat' hacking and cyber criminality – a development that marks a new cause for concern among the mobile security sector.
Rooting out the limitations
This new generation of smartphone apps often requires a 'rooting' of the device to allow software privileged control (known as 'root access') within the Android environment on the Google Android platform. The idea behind rooting is that it overcomes the limitations that cellular carriers and hardware manufacturers impose on some portable devices, allowing hackers to alter or replace system applications and settings, as well as running specialised apps that require administrator-level permissions. On the Android platform, however, rooting can also support the complete removal and replacement of the device's operating system; no mean feat.
These 'swing both ways' Wi-Fi analysis apps give a smartphone user the ability to secrete a handset in their pocket or purse, walk right into the target premises, and – while they appear to be making or taking call – actually be penetration-testing the network from inside the network perimeter.
From a white- or black-hat hacking perspective, this is a major step forwards. It means that while a local IT security manager might be suspicious of a site visitor using a high-powered laptop in the firm's coffee lounge to run what appears to be network analysis software, for example, no one is going to bat an eyelid if a visitor stands in the foyer 'checking their email' on a smartphone.
The problem is that most organisations have spent a fortune defending against external attack, normally defined as IP-based transmissions from outside the company network and firewall. The idea that someone could attack your network wirelessly is totally new to many IT security professionals. Until recently, most apps required users to log into the wireless network – and if the IT security manager routinely allows access the firm's network, one could argue that they get what they deserve.
There is a grey area when it comes to public access wireless networks such as those in coffee shops, railway stations, fast-food restaurants, airports, public libraries, and which often form part of a national network (indeed, there are calls for them to assume a more integral role in this regard). With these Wi-Fi networks, the router is normally configured to allow all users to authenticate to the IP network and then access a controlled Web session that typically limits Internet access until they log in via the service's Web portal.
Prior to logging in via the controlled Web portal, this means that users cannot access the full Internet. They can often, however, use an app such as SubNetInsight to snoop around on the router's peered IP sessions and, where appropriate, open up an HTTP session into the device concerned.
It is usually possible, for example, to open up an HTTP session into an IP-connected printer, from where – if you were so inclined – you could insert a printer firmware update containing malicious code, allowing Internet users gateway access to the corporate network.
If this sounds far-fetched, it is worth noting that security researcher Ang Cui demonstrated this very hacker methodology at the Black Hat briefings in Las Vegas at the end of 2011 (take a look on YouTube: http://bit.ly/z43M5a).
Scanning for Wi-Fi networks
While it is possible to use interrogative apps like Fing and SubNetInsight to explore devices hooked up to a public access Wi-Fi network – this reporter was able to interrogate a fellow shopper's Android handset and access a shop's printer while out shopping at an out-of-town UK shopping centre at the end of last year, for example – you do need to find the wireless access points that are available in the first place. For this you can use supplementary apps such as Network Discovery for Android, which has the advantage of not requiring the smartphone or tablet computer to be rooted.
There is also the free Android network toolkit known as Anti, from Israeli company Zimperium (an iOS version is now in development). As you would perhaps expect from an Israeli-sourced app, Anti supports automated tools to carry out penetration testing tasks on insecure wireless networks, running scans to discover open networks, locating devices on those networks, and then determining vulnerabilities on the peered devices.
Moreover, once the vulnerabilities have been identified, the app runs exploits from the Metasploit and ExploitDB applications to gain partial or complete access to the device, since they can use the software's brute force password cracking facility – complete with downloadable dictionaries – to gain access.
If this sounds too powerful for a humble smartphone processor, it is important to understand that many apps are actually pay-per-use gateway applications allowing smartphone users to leverage Internet-based resources to carry out the serious processing work. This is where Zimperium's cloud-based systems come into play, with Anti giving users seamless access to its servers to complete the cracking process, in return for a fee of $10 for 20 exploit analyses, or $50 for 200 analyses.
If your Android device is rooted, then you can run an app called DroidSheep, which is named after the FireSheep plug-in for the Firefox browser that allows hijacking of social networking sessions on services such as Facebook and Twitter. DroidSheep takes the interesting approach of analysing encrypted IP network traffic and looking for patterns that identify encrypted (SSL, or secure sockets layer) sessions on sites such as Facebook, Twitter and Wordpress.
Turning the smartphone into a Wi-Fi honeypot
One hacking technique that moves Wi-Fi network cracking to a whole new level is the use of a rooted Android device to operate an ad hoc Wi-Fi hot spot. It is also possible to use any Android device – running Android 2.2 or later – to do this, but the software flexibility is more limited. Assuming you have inserted a 3G data SIM into the handset, you can then use an app such as SharkforRoot that logs all the IP data flowing across the Wi-Fi connection to the smartphone's SD card.
Analysis of the data stored on the SD card will then yield all manner of user credentials, although it should be remembered by E&T readers in the UK that creating a wireless honeypot – as such systems are known in IT security circles – is almost certainly an offence under sections of the Computer Misuse Act (CMA) 1990.
But is the use of an app – such as SubNetInight on an Apple iPhone or Fing (available on iOS and Android) – to analyse the IP traffic of a public access Wi-Fi hotspot on, for example, The Cloud network - an offence? After all, you are only loading software that is available on commercial app stores – SubNetInsight, for example, was developed as a network analysis utility by BlueSwine Inc, a Japanese software vendor – and then running the software on an out-of-the-box basis; but on the new app frontier, it may not be that straightforward.
Legal pedants may argue that, since the software is supplied by Apple's iTunes store, and you are passively using it on a public access Wi-Fi base station in your local shopping mall, then you are doing nothing legally untoward.
According to Professor Peter Sommer, a leading IT security expert and expert witness in IT-related court cases – and whose experience dates back to the 1980s – this is a moot point; and, while it is arguable from a defence standpoint that the use of an interrogative Wi-Fi app is not an offence under the Computer Misuse Act, it is still something of a grey area, especially with regard to apps and allied cloud- (or Internet-) based services.
"The reality is that the 1990 Act was designed before these services were developed - the Act was written when most computer users were sat at a terminal," Sommer says, adding that "the success or failure of a prosecution is down to what the court will infer were your intentions when using the app and/or cloud-based allied service and interpretations of the word 'use' in relation to unauthorised access. That might amount to a Section 1 offence."
Is it a hacking tool?
Professor Sommer, who is a visiting reader at the Open University and former visiting professor at the London School of Economics'and Political Science, goes on to say that part of the CMA makes reference to hacking tools. However, he observes, is a Wi-Fi discovery app on a smartphone or tablet computer a hacking tool as defined under section 3 A: 'Making, supplying or obtaining articles for use in offence under section 1 or 3'?
From a legal perspective, the case is arguable either way, although this journalist – after reporting on computer and IT security matters for some 27 years – predicts that a legal test case is likely to be seen in the near future, especially given the fact that there are now millions of smartphones in active usage in the UK.
Sophisticated player: Inside SubNetInsight
It could be argued that Android may be a distant relative of the Unix/Linux platform, but most IT observers view the Apple iPhone and its iOS operating system as a much more secure environment, largely because Apple vets all the apps before allowing them on the iTunes store.
Yet SubNetInsight – a £2.49 app from Japan's BlueSwine – has been available since June 2011, and has a wealth of interrogative features, including:
Auto-scan: scans automatically when it gets connected to Wi-Fi networks without any user configuration
Network logging: manages public IP address and its history, along with geo-location data
Powerful host scan: discovers all hosts in the subnet including hidden hosts
Name resolution: resolves host names via NIC Vendor, NetBIOS, Bonjour, MDNS, UPNP and other cloud resources
Port scanning: scans all available and known ports for hosts
Host fingerprinting: analyses what platform a connected host is running – for example Windows, Linux/Unix, Mac OSX, mobile device, network printer and VoIP telephony.
The app is popular in Europe, where it has been logged in the iTune's top 100 charts in several countries (AppsLists.net - http://bit.ly/A5LXt4), but is not thought to be popular yet in the UK and US. In use, the app logs pretty well everything that a desktop networking cracking application such as WireShark does, but on an Apple iPhone or iPad. An iPod Touch will also run most features. On a controlled test session at Sheffield's Meadowhall shopping centre, the app discovered several other smartphones peered to The Cloud's Wi-Fi access point, as a well as networked printer in a local retail store.
Opening up an HTTP session to the printer revealed data on the inception of the unit, as well as pages printed and – in theory – allowing a user to upload hacked firmware update such as the 'Print me if you Dare' exploit developed by Ang Cui at the December 2011 Black Hat sessions (http://bit.ly/z43M5a). This app is arguably one of the most powerful iPhone Wi-Fi 'analysis' applications seen on the Apple iOS platform.
|To start a discussion topic about this article, please log in or register.|
"Africa is abundant with engineering opportunity. We look at some of the projects and the problems."
- Isolation for repair of transformer feeder [03:32 pm 22/05/13]
- Wires numbering in Motor Control Cabinet (MCC) - continuous or not? [03:16 pm 22/05/13]
- "Contracts for Difference" in the Explanatory Notes to the Energy Bill [02:02 pm 22/05/13]
- Old LV Switchgear replacement Companies [12:54 pm 22/05/13]
- Delegated Powers Memorandum [12:33 pm 22/05/13]
Tune into our latest podcast