Thanks very much for coming to this Spy vs. Spy presentation. My name is Michael. This is my cohort in Shenanigans, Chris, and we're going to talk about spyware that's on cell phones. And we're going to start with the opening comment that I'd like to introduce you to the latest spy in spyware. That would be this green guy right up here. And we say that because it's incredibly easy for spyware to show up on mobile devices. And a lot of times that involves duping the user to installing an app, but it happens. And if you believe Lookout Secure, you'll believe that it happens three times more likely on a mobile phone than it does on a desktop computer, which is kind of a scary thought, which means people have left their brains at home when it comes to working with mobile devices. And there's a lot of spyware and malware out there. Right? The third quarter of 2011 saw a 500% increase in spyware. Okay. And this spyware exists in raw malware form, but also in the form of a commercially available product. Outstanding. You can go buy it if you want to. And it started in January 2011. Sound miner came out. And it was grabbing all sorts of credit card information and whatever people were typing in their keypads and they were sending it off via stealthy text messages, which was great. As we moved to August 2011, F Secure dropped this news article out there saying people are stealing pictures for blackmailing purposes. And they ufid you the box. And then we had a whole host of people color the Internet with beautiful pictures of all sorts of wonderful things. And that showed up everywhere and long live spyware. Nikibot came out in September 2011. And Nikibot was critically analyzed by the Department of Computer Science down at the North Carolina State University. And they dissected, dissected the code, and I gave you the link up on the screen, and it's in available in the presentation if you want to look at it. And we noticed there was spyware that was responding to text messages. Where the spyware would intercept a text message and say is this for me? It is great. I won't show the user but I'll perform a certain set of functions. Okay. And this application showed up as the Android system log. So it didn't appear very stealthily but people were still duped and Nikki bot showed up. And then we had a whole bunch of commercialization of spyware. It's everywhere. And it's primarily sold under three types of advertising venues. One, it's designed to catch your cheating spouse. You're no good, dirty lying, lousy cheater, boyfriend, girlfriend, husband, wife, dog, whatever. Children. That was for you. Employees. I mean, it was designed to capture all those people. But if you take a look at the screen, you'll notice it's not just for one platform. It's for just about every platform in the world. It's designed to capture all those people. It's for every platform that's out there. Whether it was Android, iPhone, I mean, the Blackberry, taking a look, Windows mobile, Nokia. And it was pretty popular. And there was a real short list on this particular website that said, hey, you don't have to buy any one particular package. We're going to list five or six right here. Well, this is the short list. Turns out that there are dozens of commercially available spyware packages out there. And they're all sold as subscription services. You don't just buy the software and install it and run it. You actually buy the software and install it and run it. You don't just buy the software and install it and then you pay to log in to the website to retrieve the data that's out there. And the subscription service is usually sold for either three months, six months or one year at a time. I couldn't be bothered to spy on someone for a year at a time. But that's the way they sell it. Yeah, I do have a short attention span. So there's a lot of commercial versions out there. And you would think that most of the time it would require rooting of an Android phone. But that's not the case. There's a lot of commercial versions out there. And you discover that's not necessarily the case anymore. There are spyware packages for rooted and nonrooted phones. But in the case, you'll notice that there's an asterisk on the screen. In the case of iPhones, they always wanted it jailbroken. Every single time. Okay. So I'll play. We'll jailbreak it. So I don't know if you've been looking to see what this spyware does. So quick little rundown just so we're on the same page. Most of the spyware packages out there do the same thing. They will scoop up all the text messages that are bound for a phone. They will ship them off to a website. They'll grab GPS coordinates and we'll go over a point shortly that shows that that is somewhat misleading. It will scoop up all the pictures. It will grab whatever videos are on the phone. It will capture call logs, browser activity, not necessarily the cache, but the URLs that people have used. It will pull off emails and identify whether or not a SIM card has been changed on a particular phone. And all of this stuff just runs on a routine. And every so often, it sends it right up to the website. Now, some of these spyware packages operate in interactive mode. Which means if I send a specially crafted text message to the phone, the phone is going to respond. And sometimes it's going to be remotely launching the camera to take a picture. Sometimes it's going to record a video for 15 to 30 seconds and upload that to the website. Sometimes it's going to automatically engage the phone. And sometimes it's going to automatically engage the phone call where it doesn't light up the phone. So essentially it's stealth mode so you can record what's happening. Sometimes it's going to wipe the phone. I think that's a great way to bug someone. You buy a cheap phone. You install the spyware. You drop it in someone's car. And when you think you're about to be discovered, you hit wipe. Unfortunately, the wipe command here doesn't wipe the phone. It just wipes user sensitive data and leaves all the applications there. And on some of the newer spyware, you actually get a chance to remotely view what the user would be doing. So you can see what the user would see on their particular phone, which I thought was kind of crafty. And it all works the same way. All of this phone is taken, harvested up and sent automatically across the net to, you know, the infecting website. And all that is done through an Internet connection. None of it is done through audio. It's all done through the data channel. And it's fairly routine. And there's a number of examples out there. For example, if you go to Spybubble's website, it looks a bit like a third grader designed it if you look at the fonts. But the functions are on the left-hand side. And then you get all sorts of call detail records that show up with the date, the time, whether it's an inbound or outbound call with the listing of the numbers. You'll notice you can capture live pictures. You'll see one here. It's black. The phone was actually in my pocket at the time when it went off. So that's a picture of my pocket. The one next to it, I was actually holding the phone at the time when it went off. And you'll notice that most of these photos are just raw camera activity, raw flashes of the camera. The flash doesn't go off. So none of them are focused. So a lot of them are blurry and they show up. You get a listing of all the text messages that show up and this particular screen is from Moby Stealth. And then a lot of times you can grab GPS coordinates and the GPS coordinates are supposed to identify where the phone is. Well, I can tell you for this particular phone that was infected with spyware, you're not seeing the location of the phone. You're seeing all the cell phone towers that the signals bounced off of. So I was in, you know, part of northern Virginia. I drove to the airport and all of a sudden you see towers all over the place. So the phone wasn't actually there. You also get recorded phone calls that you can download and play at your convenience, which is kind of nice. It will automatically record the call and then send it up, which I thought was a nifty feature and it worked fairly well. And a lot of times in addition to sending all of this data directly up to a website, it will also capture the information and send an alert to the spy, the guy who's watching me. And what usually happens is one of two things. The phone that's been infected will send a message. It will go out to the website, whether it's Flexi Spy or Moby Stealth and then they will send a message directly over to the user. I feel like I've been buzzed. It's not me. The other thing is sometimes there is a text message that might go out directly from the user and go over and hit directly to the spying phone. So you have two ways of notifying people when activity happens. So if there's a message that's coming from the user, you can send it to the spy. If there's a certain e-mail that's showing up or if there's a certain text message that you're watching for, the information goes out and gets relayed to you. Sending commands back to the infected phone is interesting. It's usually done one of two ways. The first way is if the spyware is designed for it, I send a specially crafted text message to the phone, it intercepts it, it actually formats a process. Or I can go to my particular website. I can say go retrieve the data and the infected phone will send a message to the spyware. And the infected phone will actually pull the website and say, oh, there's a waiting command for me, I'm going to go out, I'm going to go run the command and then send the data back up. So if I need to automatically know where someone is, I can send the command, out it goes. If I need to find out what particular e-mail is there, please tell me right away. If I want you to take a picture right now because I think something is happening, you can go do that. And that worked for malware, the malware version of spyware and it also worked for the commercial version of spyware. But there was a two major differences in looking at spyware from the malware version and the commercialized version. One is the attack vector. And the second was the manner of logging that takes place on commercial spyware. It's just downright scary to see how much logging takes place. So with respect to the installation attack vector, for all of the products that we looked at, you had to be in physical possession of the phone to install the spyware. And that was for two reasons. One, you actually have to go out and download the software to install on the phone. The second thing is you actually have to go out and you have to enter in the registration key that goes with your software to unlock it. So it's not enough to have the software installed, you actually have to enter a registration key. Android didn't necessarily require a routing to take place. iPhone always required jail breaking to take place. It was always necessary to have an Internet connection because that's how the data was going to be transferred. And then you have to go out and download it. On Android phones you had to flip the switch to say, hey, allow apps to be installed from unknown sources. And in some cases, and this killed me, you had to reboot the phone after you installed the spyware. That's not real stealthy, especially if you don't know the password for that particular phone. And then lastly you need the software registration key. That's a whole lot of information. So if you're planning on installing spyware on someone's phone when they run off to the bathroom, hopefully they're going to be in there for a while. I mean, because you're going to be there in four, five, six, seven, eight minutes. It's not a real quick thing. Or you just knock them on the head and then while he's out like a light, then you go do it. And according to the websites, all this stuff is undetectable. They all make the claim. We cannot be detected by the user. Undetectable. Undetectable. Challenge accepted. Okay. We'll see if you're undetectable. So that brings us up to the big question. How can you tell if you've been pwned? All right. He's a paranoid bastard. He wants to know if someone is spying on him. I'm a paranoid bastard. I want to know if someone is spying on me. I want to know if they've installed spyware on my phone. So how do we tell if we can do that? Well, we thought about that. Here's what we did. We decided to forensically examine five phones using the same tools that the cops would use. Nothing special. We would want to know what the feds or local law enforcement would do. And we used five different phones, five different spyware packages. And here's what we came up with. We grabbed an HTC Wildfire S, an LG Optimus Elite, an LG Optimus 5, a Samsung Galaxy, no, I'm going to say 5. Think Roman. Samsung, what? I'm Greek. I'm Greek. I'm Greek. I'm Greek. I'm Greek. I'm Greek. I don't care if you're Greek. Can the goons remove him? Samsung Galaxy Prevail and an Apple iPhone 4S. And we picked the different packages. We grabbed a copy of Flexi Spy because they advertised really well and it's a U.K. company and we thought they spoke neat with funny accents. We grabbed a copy of Spy Bubble. We grabbed a copy of Moby Stealth. We grabbed a copy of Mobile Spy. And lastly, we grabbed a copy of Spyra. That company is based out of Hong Kong. We picked them all up. We listed the individual versions of Android that were on the phones. We didn't do anything special to the phones. We literally walked into Best Buy. I'd like to buy some phones. Okay. What kind of phones do you want? Here are the five phones I want. You want five? Yeah, I want five. Really? Do you want to sell me the phones or not? Okay. Do you want me to sell you the phones? We'll set you up. No. One month, please. We got a month to do this. We kept the version of Android that was on those phones. We didn't upgrade them. So we played the dumb user. Well, he did. So the dumb user, so we just, no upgrade. We grabbed it. We took it home. We registered. We activated it. We picked, hey, dude, cut it out. We picked up T-Mobile. We picked up Virgin. Sprint and Boost. We also picked up our iPhone, which was unlike the others. We locked on T-Mobile as well. Now, I'm not an attorney. He's not an attorney. And if there's an attorney here, I don't know and I don't want to know. But they had some legal text on all their websites so we thought we'd share that with you just to make sure everyone here was informed before we got into our shenanigans. Flexi spy came out and said we will never release your private information or your account information except under the threat of legal action or court order. So they're up front about it. They're like they threaten us. We're coughing up all your data. Don't do anything you shouldn't. If you ask nicely, we'll give it to them. You had all sorts of people list the computer fraud and abuse act. This was Moby Stealth's particular web page. They literally just copied the text and pasted it there and said we're going to make sure you adhere to that. Spy bubble comes out and says we're basically designed for monitoring your spouse, children, children, children, children, children, or employees having smart phone. Either you should own the phone or you should have permission to monitor the user. Really? I'm going to go up to my kid and say hey, junior, I'm going to spy on you. I need your permission. What do you say? No, dad, screw you. Then we have mobile spy. Mobile spy came out and said you have to own the device or you have to have the expressed written consent of the owner. You should have permission to monitor the user. written consent. Right. Hi, employee, I'm going to spy on you here. I need written consent from you to let me do that. And then we have spy error and I love this one. They came out and said it's the responsibility of the user to ascertain and obey all applicable laws to use spy error for sneaky purposes. Outstanding. At least they know, I mean, they're being honest. They're like, hey, we know what you're going to do. But they give all this legal text. Actually, if you read their disclaimer statement, they are more concerned about you stealing their intellectual property than going out and getting caught. And a number of the user agreements come out and say, look, we know you're going to spy on someone, but we don't want you reverse engineering our software. That would be wrong. So I'm just going to ‑‑ okay. I'll be more than happy not to reverse engineer your software. It doesn't mean I can't do a forensic examination with these three tools. So we went out and we picked up a copy of physical analyzer. We grabbed a copy of device seizure and we picked up micro system x-ray. Here we go. So we pick up flexi spy. Now, flexi spy is owned by the company called flexi spy, but it's sold through a third party called gate to shop online solutions. And that's an interesting point. All of these packages you don't buy directly from the software maker. You buy it through a third party source. A lot of times those third party sources are based in the U.S. So while flexi spy might be based in the U.K., if the software company is based in the U.S. and you sell it, where do you think the feds are going to go to try to find out who purchased the software? Are they going to try to fight the battle overseas or are they going to try to fight the battle domestically? Right. That's what I thought. So let's talk about flexi spy. And we're going to do all these presentations in the exact same way. We're going to show some history or evidence of download. We're going to talk about some of the operational activity and then we're going to start diving underneath the covers to find out what's going on. Flexi spy I'm going to stay out of your covers. Don't worry. I don't want to be in there. Dude. And I'd be so sorely disappointed. So flexi spy sits there and you can download stuff directly from that website. They give you the registration key so you can go download it. And according to their instructions, they have you delete the cache and delete all sorts of information to get information from the browser. Even after we did that with the forensic tools, we still found the particular URL from where we downloaded the spyware. And this particular URL had the registration key unique to that installation right there. That's our first piece of attributable information. We can tie it back to a particular purchase. Okay. Doesn't sound like it's too invisible. If we yank the SD card, it's gone. It's gone. It's gone. It's gone. It's gone. It's gone. It's gone. We were able to find stuff in the download directly, specifically the APK that was used for the installation. That doesn't sound too stealthy to me. I'm smelling something that's detectable. So I start looking around and I dive in the cache. And this is kind of cool. I dug down into the bookmark thumbnail cache for this particular software and there was this neat picture there. It was the installation page for the software. With the registration key, as part of the picture. Really? Along with the support address. Support at flexispy.com. Now I don't have to wonder about what type of spyware got installed. I now have a name. It's right there. I thought that, you know, particular piece of attribution was interesting. So we now have evidence that, yeah, it was downloaded and we tied it to a particular purchase, particular registration key. Then we noticed some glitches in the registration key. We noticed some glitches in the software itself. Every one of the pieces of software had glitches in them. Yeah. I don't know if you can hear them. They all had glitches. They had lots of glitches. They were all buggy in one way or another. And some of them was pretty darn obvious. In Flexispy, every 10 to 15 minutes, a little message would pop up at the top of the screen that says, unknown, just obtained super user access. Really? And now sometimes the software, you know, occasionally I'd reboot the file. I'd reboot the file. I'd reboot the file. I'd reboot the phone because I was looking at it. And the software would just stop working. So I called support or I e-mailed them and they said, oh, yeah, we're having a glitch. We need you to wipe the phone and reinstall the spyware. Very stealthy. Really? Very stealthy. I'm spying on a guy. You want me to completely wipe the phone? Yes. All right. Okay. So the question up front in the front row, which was asked in a very polite fashion was, was this a rooted phone? HTC Wildfire S was a rooted phone. The other phones were not. So this one was rooted. And it still had issues. The message appeared on this phone running this spyware. We didn't cross contaminate them. Because if we cross contaminated it and did a five by five matrix, well, then all of a sudden we would have issues and we would start seeing artifacts from different phones. So one phone to one spyware. It was a very, very, very, very good phone. It wouldn't always work. So they had me reinstall it. The next thing is I picked up a CDMA phone, an HTC Wildfire S, CDMA. I install the software. I send my first stealthy text command to the phone. And the phone shows up in the clear. I'm like, what the hell? So I'm like, I must have done something wrong. I must have mistyped the big long registration key. So I do it again. And it still shows up in the clear. I'm like, son of a gun. So I send them another support message and said, hey, you know what? I'm going to do it again. I'm going to do it again. I'm going to do it again. I'm a stupid user. I must be doing something wrong. What's the deal? And they're like, oh. We forgot to tell you. We don't really work well on CDMA phones. You should make sure that your user, you know, flip them over to GSM. Hold it. You had me wipe their phone. Now I've got to go up to the person and say, you're not going to notice that I'm changing the logo from Verizon to AT&T, are you? And change the billing. And they're like, it only works with GSM. We're sorry. Goodbye. So I took that phone. I ditched it. I went out and bought another phone. Go back to the Best Buy. You're back? I need another phone. So then I go out and I pick up an HTC Wildfire S, GSM version, and I go to root that. Has anyone here tried to root an HTC Wildfire S, GSM? It's a pain in the ass. So now we had to go order an XTC clip from England, have that shipped shipped over, we finally get into the phone, we unlock it and then we root it and we're good to go. I go through all this. Two months later the company released a new version of the software. Son of a bitch. That's okay. I'm just going to stick with my current plan. We noticed when we ran this through one of the tools that 152 running apps showed up for our Android phone. We didn't do anything. We installed the root checker just to see if we rooted things correctly and we installed this particular spyware. And wouldn't you know that super user shows up as one of the running applications. Hmm. Interesting. Nowhere in their description of trying to hide applications and icons did they even mention trying to get rid of super user. The next thing that shows up, we dug down under data slash system slash usage data slash blah, blah, blah, blah. And we found a reference to an application. It didn't show up on the application list. But com.android.m security. Bingo. We found our spyware. We actually pulled that out. And then we noticed this big, large directory structure. Data slash mish slash DM. That's a lot of files for something that's supposed to be undetectable. It was cool. So we started rifling through that. Handed some of the files to him. Handed some of the files to me. Start digging. And then all of a sudden we hit this little file called FX.log. Holy crap. This thing is a scam. It's a scam. It's a scam. is journaling all the activity that the spyware does on the phone. Everything. We have confirmation that we've connected to the remote website. We have the registration key. We have the name of the product, the software version, Pro X. We have all the little hidden commands so if I want to start sending more stealthy commands to it, you know, it shows up. For all you guys who are sitting there back there trying to text me right now, the phones are off and they're not here. They're dead. Interesting that it all showed up. We kept going down and now all of a sudden we start to see attribution. We now start to see the phone number that's doing the spying. So as I send text messages to the phone that's infected, all of a sudden there's a record saying, hey, the guy who's spying on you, this is his phone number. Really? I've seen debug logs that aren't this thorough. It was rather impressive. Uh-huh. Did it start to hide it? It did. However, there was a little glitch. So I activated the remote spying feature and I flip it in and I start listening on the phone call. And I have the other phone sitting across the room and all of a sudden I coughed. They heard the cough on the other end. See, what actually happens is it establishes a phone call directly to the infected phone. Phone calls are bidirectional. Bidirectional. You have to hit mute on your phone. Otherwise they hear you. Is this the spyware of choice for Rupert Burdock? This is a British company, right? It is a British company. Yes. If this was yeah. It does, doesn't it? No kidding. So foiled. So they did a better job of hiding the actual text messages that are being received. But then they go and keep a log of everything that happens. So the user doesn't necessarily see this, but it didn't take much to peel back the layers and find this. Right. So as we move in, we find another file called logcat. And logcat starts to confirm outbound connections from the phone. And it tells me where it's going. It tells me when it's making the connection. Now, to their credit, the software vendor actually starts to purge the database every so often. And that's what happens. No problem. We actually have a record of it cleaning up the database itself and running through that. We also notice that this particular spyware was starting to watch other services on the phone. I don't know why the spyware would watch and be concerned whether or not the phone was charging or not. But it looked. It also made references to slacker radio, including all the process ID numbers. Thank you for making our life easier. We do appreciate that. We wish everyone did the same thing. Now we start to go through logcat some more and we see the database maintenance routines. This is a dirty database. I need to do maintenance. I have to call it out. And now I have a listing of all the demons that get used. Outstanding. Now I know what's actually running my spyware. Now, we also picked up one of the tools, the celebrate you fed was kind of outstanding in this regard in doing a physical dump from the phone and we started looking through the raw data and we found data that was supposedly deleted from the phone during the purging of this database in these log files. And we found records that went all the way back to the very first moment that the spyware was installed. So it's not like, you know, they would keep only 100 records in their file. It's actually several hundred records. But when they would delete it, we would still find it on other portions of the phone. And some of the stuff we found, just to make it easier for you to read, looked like this. We were able to identify when the SIM card was changed, which means, you know, this spyware wasn't tied to information on the SIM card. We still had the spyware number and we still had instructions being sent back and forth to the command. We also saw the controlling phone number. The phone number that was spying on you in the deleted data. So even after this particular piece of spyware was uninstalled and we deleted those records, we still found all of that old data. And with that, we're going to move over to spybubble. All you guys are doing is you can keep your clicker thing. You're really good at it. Thank you. Trying to make you feel better. So spybubble is a different company, different set of rules. They are a, I already forgot. California-based company. California-based company that, yeah, they were. Yeah, California-based company. Actually, they sold their software through a company called Plymouth in California. So very easy for law enforcement to go after them. If you want to install one of them, this is the one that I would go with because it makes the FBI's job a lot easier. The URL history, we had a download link from where we downloaded the actual file. That still showed up in the history file. The downloads database still showed a registry of the APK file coming in. Your downloads backup, the database, has time stamps on every one of those entries. So we knew exactly when the spyware was downloaded onto the phone. This was the only phone that didn't come with an SD card. So we had to supply an SD card to the phone. We had to install an SD card with it. And that actually changed some things. Because this was an external SD card that was getting the spyware installed onto it, because it was downloading to that SD card, it was externally mounted media, that actually caused this piece of spyware to log some things that weren't logged on the other phones, which actually gave us even more artifacts to look at later. The, to turn on the spyware once it was installed, you were supposed to go into the dialer like you're making a phone call. You're supposed to go into the dialer like you're making a phone call. And kind of like with standard GSM calls, you dial a pound 9999 was the default ID number, and then a star, and that's supposed to activate the user interface for the spyware. Now, I'm sure their intention was to hook the dialer and make this a special function that did nothing but open this up. But it actually tried to call this phone number. So back to how stealthy they were, you now have this in the call logs any time the user hits the recent button and looks to see what else they've done. And then you have this in the call logs any time the user hits the set of buttons they've been calling, this was there. Which meant they were going to dial it out of curiosity and see this interface that's on the screen. Brilliant design plan. So they, that six-digit number is someone that you can configure if you wanted to change it to something else. But we can figure out what it was pretty easily. when we looked through the ROD dump of what was on the device, we came across the actual execution. That technically executables. In this particular screen shot we're showing that the text message that gets delivered to the person that's spying on you to tell you that it's installed successfully is on disk in about 30 different languages. Multicultural. I thought it was nice of them. So we were able to find that which led us back to the actual executable which led us back to all of its partner apps and everything that went with it. Not well hidden at all. It was merely hidden from normal user activity. Just like any other app, it had a data partition for all of its user data. In here we found a whole host of log files and settings files that told us everything about how this piece of spyware was going to operate. Most of that was... You're fingering at me like you were going to say something. In the advanced settings text file there was everything we needed to know about how the settings were working. This relates back to that screen shot where it shows us turning all the settings on and off. This is where they're actually saved. We could see what those settings were even if we're dealing with a dead device and not going through the user interface to find it. There are user intervals that are listed on the bottom of that. Tells us how often the spyware is going to look at our phone and then how often is it going to call me to tell me what you're doing on this piece of phone. Next one. Anything useful in that one? It's basically the same thing. GPS was enabled on this one. It would actually send us back the locations of where the device was. Every 15 minutes I would get an update sent out to a website and then we could log in to the website and follow this phone as it was moving around. The next file down from that was buddy.txt. This is the phone number of the person who is using the device. This is a phone number of the person who is spying on you. I love the name. Buddy. Hi, buddy. Really? Really. So very small text file. Just had a phone number in it. This gave us attribution. So now we not only know what's installed, we can actually go find it. By finding the executable that had the name embedded into it so we know what website to go to, we know what company to subpoena for records, but now we actually have which bad guy do I want to go after. And then we can actually go back to the user because we've got his phone number of the phone he's using to control our spy don phone. There was a secret.txt file that contained just the pin number. So instead of six nines, we could change that number to whatever we wanted to. That got saved in this text file. Then we were able to see what that was. This is especially helpful if the user has changed it and we don't know how to bring up that interface. We can image the phone, dig through all these files. Now we know how to pull the interface up and we can go back to the phone and show the user that they've been getting spied on. They like that. There was also a serial text file in there. This gave us the registration number that was used to license this piece of software. This gave us our third piece of attribution because now we've got this registration ties to a purchase database back at the company which tells us whose credit card paid for this piece of software to be on this device. And then what was the name of this one? I don't remember the name of this one. SpyPurse.XML. This is more preferences. This gave us a time stamp of every single piece of activity that was going on on the phone. So the spyware is logging all the different things that it's done and giving us a time of when was the last time the user made a phone call, when was the last time he sent a text image. And we were able to track a lot of activity about the device and about the spyware activating on the device through this file. We sent this one, one of the features that it had, we could via text message or the website sent off the request? I forget now. You can do both. Either one. So we would send a text message to his phone and that would tell his phone take a picture of whatever you see. Now there was a small lag in getting the text message on to his phone and then getting the spyware to activate. So the first one that we tried to do this with, it actually went off in his pocket, which is why the picture is just a black square. So we tried it again with him taking the phone out and leaving it up on a counter. And what we ended up with was a blurry mess that you can't tell what's going on because it's not using the actual camera app to take the photo. It's just doing a raw dump of whatever the camera can see, which means it doesn't focus. Didn't make it terribly useful in any of the photos we tried to grab with this thing. One last thing. Those particular photos we didn't find on the phone? We didn't find those file names on the phone or those time date stamps anywhere, which was interesting. We actually pulled up some of the photos and grabbed some of the raw code and tried to do a hex search for it and still didn't find the pictures. What we did find, though, was if we started looking through the Android logs, not related to the spyware itself, but Android itself kept ‑‑ it was throwing fatal exceptions. So the spyware was causing errors in Android. And a lot of the errors were related back to the spyware executing or, in this particular screenshot, the camera app. So it appears what the spyware does to get the picture is causes an error in the camera app, which gives us a log of every time we tried to take a picture. So even though we couldn't find the actual pictures on the device, we were able to go through the event logs that are tied to Android and find events tied with every one of those pictures being taken. You're doing the finger thing again. I did the next thing. Come on. We've got 15 minutes. So there's another exception that was thrown that was related to ‑‑ which one was this related to? Live picture service. Live picture service. It's still related to the pictures. Next one. We've already moved on from that. App history. When we get into the app history, this is another Android file. This isn't related to the spyware itself, but this tells us all of the installed apps that Android is tracking. And this one in here, which actually shows all the apps that are being installed. The spyware being installed. This also gives us a date time stamp of when this was installed. This one actually works out to be a couple minutes after it was downloaded, which works well in our timeline of what's going on. Next. We're also able to pull up a bunch of recent activity. This is another Android thing where it's tracking all the recent things that happened inside the phone and gives us date time stamps and activity. And if you just search for the radio app, because that's what they actually named their app, was radio ADV. If you just search for that in there, you'll find all of those event logs. You ended up with a date time stamp and a list of activities of everything the spyware was doing on the phone that was infected. We also, since the phone was on and live when we did the image on here, we've got the list of running processes. It did nothing to try and hide itself from the list of running processes. Since normal users can't see that anyway, they didn't care. I thought it was a great coincidence, though, that it happened to be process ID 666. And that moves us off to Mobistill. So we're going to look at the application. So we're going to look at the application. So Mobistill, a company based out of Massachusetts, they sell their software through Plymouth as well. We found a history of that software the same way we did before. It's in the URL history. It showed up. And they were very creative in what they called their application. Mobistill V2. So we actually dug through the list of apps and this is what we thought interesting. They actually called the application from the user's point of view Lookout Secure. I wonder if Lookout's aware that they're using that name. So we actually start to go through it. Now this is a picture of what you see on the website. And the website allows you to send particular commands directly to the phone. It also allows you to configure the phone remotely. So here where we have particular arrows pointed, we add a key word and we add a phone number. And the spyware says if I receive a text message with that word from that phone number, I'll do whatever you say. I will report the location information. Great. So I added my phone number. I added the word location. I added the location. And then I went and looked at the phone. And wouldn't you know that I found the database with the word location and with my phone number. A SQLite database. I now know who's doing the spying of me on the phone. I also went down and I found another debug log. These guys love debug logs. I've never seen someone do this so much. But we found a debug log down here and we were able to identify a lot of the services. And the GPS information and the coordinates, which was great. And they carried out something like 12 to 15 digits. And then I went down and checked the GPS coordinates. If you go directly to the website, you'll see the exact same numbers and the GPS coordinates reported correctly. But all of that information shows that you have a time history of when this particular software was running. Now, this particular piece of spyware also grabbed all the photos off the phone. And when it grabbed the photos off the phone, it used a time stamp in the name. And we found that in the log file under logged pictures.ser. We found three pictures that were taken directly from the phone. They went directly to the website. I've highlighted one here. And all of a sudden it goes up. And you'll notice that the names are the same. So we took the picture from the phone and we took the picture directly from the website and downloaded it and we hashed it. They were identical. So we can trace the activity directly to that particular user account. Now, this is the part that kills me, though. This super ‑‑ don't tell anyone. This super secret stealthy software uses FTP to send all its data. . . . . . . . . . . . . . . . All of it. The website name, the credentials, all of that is listed in an XML file directly on the phone. All fully readable. Outstanding. I think that's great. So if we were worried about attribution before, when it got installed, when it was running, I think we've taken care of that with this product. That moves us on to Mobile Spy. Mobile Spy is based out of Jacksonville, Florida. But they, just like all the others, they're using somebody else to do all their credit card transactions. These came through a Dutch company. It was one of the few that went outside the U.S. to do their credit card purchases. But it's a legit company. It's the same one you go to Tuxera to buy your NTFS drivers and such with. They showed up in the downloads history. The one thing they did different, they do have a separate website that you're downloading the APK from so that it almost doesn't attribute back to them except for the fact that it does say MS for Mobile Spy right in the, you know, the URL. This one did have a couple of problems with how it executed. We were, you're supposed to be getting emails sent to the person that's monitoring you. And sometimes we would receive an email that told us a certain action had occurred and we would log into the website to see the full log of activity and it wouldn't be there. So sometimes the logs weren't being updated correctly. The other problem we have with this particular piece of spyware is the battery life on the phone got cut into a little less than half as soon as we installed it. We had to keep this phone plugged in for the rest of the day every time we played with it after that. Oh, this is good. Oh, this is it. I like this one. Oh, yeah, I almost forgot about this one. This one actually pissed both of us off. The spyware, after a few days, what was it, 60 days? It was 60 days. It threw us out an email telling us that we needed to go log back into their website and change our username and password. And we were, like, so happy that they were actually employing D.C. security policy. So we logged in, we changed our username and password, and then we stopped receiving alerts from the phone because you also have to go to the phone and change the username and password there, otherwise it doesn't know how to log into the service and upload its data. So I'm still baffled as to how they think that's supposed to work, especially on an enterprise level. Yeah. This one we had the same kind of thing where any application you install is going to have its own user data. So we had a new section full of files. This one, just like all the others, had a whole host of log files and settings files that we were able to go through. For this particular piece of software, they called the application Retina. So once we figured that out, Googling, or not Googling, searching for that name throughout the device brought us back a whole bunch of extra files. We had a packages XML file. This is part of Android, not part of the spyware. We had a package XML file. This is part of Android. And in there, we were able to see all of the installed packages on the device. So we were able to find it, even though it was attempting to hide from the user. We found a bunch of information about it being installed. There was a shared preferences section, which gave us all of the different preferences for the spyware, which when we started digging through what all those different preferences settings were, it gave us the website information, the username information associated with the person who's doing the spying on us. Great. I always wanted the e-mail address of the person who's spying on me. If you're going to have a stalker, that's the best way to have one. Literally. There's their e-mail address. We also got a time stamp in here every time it was updating back to us so we know how long it's been doing it. And this friendly number. This one was the other one that pushed me over the edge. This is the phone number of the person that's spying on me. So now I have his e-mail address and his phone number, and we've got all the other information about the serial and licensing from before that we can go subpoena and prove he paid for it. It's only fair. So that brings us, that was four, right? That's four. That brings us up to four. We got them. Do you have a question on four or do you want us to do five first? Okay. Well, we're going to talk about the iPhone in just a minute. So I'm going to ask you to hold off on that for just a second. We're going to hit our last one, which is based out of Hong Kong, although they're selling their software through a California-based firm. I had to include this one because we were beating up on Android so much. I wanted to be fair and beat up on Apple as well. Right. So we took a look at this. As soon as we popped it up on our forensics site, we had a lot of questions. We had a lot of questions. We were asking about the cameras. We were asking if we had good cameras. We had the cameras, the tools, they all came back and said hey, this phone has been jailbroken. Okay. That's going to be a problem. We noticed a couple of funny listed applications on the phone. Hmm. Cydia shows up as well as own spy. demon. Okay. That's fine. So we took a look at the phone and we grabbed a copy of the screen to show you we didn't have any applications there. So we didn't find any apps there. All right. So, hey, maybe there's no software there. So, hey, we're selling our iPhone. We are we pulled up the icon state P list to identify all the applications were good, but then we compared it directly to the desired icon state and we noticed that there were two applications at the bottom that are being hidden. When we compare the two files, we identify the fact that one, it has been jailbroken and the second one, we have spyware running on our phone. Now, when we go in and we pick up this particular file here, you'll notice that we have a very unique key. This is the one that takes us back to the spyware software company and also takes us back to the company that sold it to us. So if the Hong Kong company doesn't want to play ball and we notice that they routed their traffic to a whole bunch of different websites before sending it back home, we can always go back to Plymouth and just say, hey, you're the ones who sold it, just like the way a gun dealer would sell a particular gun. You don't go back to the manufacturer. They can track that information. We also have a whole bunch of preference information that shows up to let us know what's running on this particular spy phone. So we have a whole bunch of preference information that shows up to let us know. We also have information that says, yes, it had to be jailbroken and yes, this information runs in the background. Good news, this guy decided to create logging as well called own spy.log. In there we have a whole bunch of information. The very first time the spyware has been run. I know when it's installed, and as soon as it's installed it goes out and checks. Are you registered, are you registered, are you registered, Bueller, Bueller. It's registered, and now all the sudden we start to see activity. And there's even a thank you note in there. In the logs, yeah. You could have read it in reports and stuff like that. logs. Thank you for registering. The user never sees it. I didn't see it when I installed it, but I was thanked, you know, you're welcome. Coming along, we also found that unique information. We also dig the fact that this particular piece of spyware gave an MD5 of the device itself. It uniquely identified that particular phone. We also have a listing of the demon that runs it. We have check information. We can also see that it goes through and checks the SMS log and says I found something. I'm going to go upload it. I'm going to give you the date and time. I'm also going to tell you how fast your phone is moving. And then we found a whole bunch of cached images. Do any of those logos look familiar to you? Huh. Interesting. I cleared out everything that I was asked to, but these cached files still show up. I also have the date and time when this was installed on the phone. Now, the your company, for all you app developers out there, yeah, that's the official your company. He never changed a default. And then I have a whole bunch of files that show up. Tons of them that come up on this particular list. I also have other information that identifies the particular application in library. And a big long list and X ray and the U fed were able to identify both of those. So that with 90 seconds to go brings us to the bottom line. Because there is a bottom line. There's always a bottom line. How can you tell if you've been phoned? Pretty easy. Check the SD card, check the history, see what's been downloaded and installed in the phone. Then go to the check to see what other databases are running there because chances are there's going to be configuration information sitting there in the clear. Lastly, you're going to find all sorts of logging. Great. Go read the logs. I mean, you don't need a special tool to go read the logs, but you can go pick them up. You can also check to see if there are new services running on the phone. So while an application might be, you know, withheld from the screen interface, you're still going to see certain processes and then you can go look for signs of rooting and jail breaking. One last note. This particular presentation has been updated since the DVD. There's a little more information. We gave you an e‑mail address at the bottom of the screen. Give me the presentation at gmail.com. You send us the e‑mail address. We'll send you back. It's a big file, like 18 to 20 megs in size because it has pretty pictures. We'll be happy to share that with you. That takes us to 50 minutes. We're going to the Q&A room. We'd love to see you there. Probably won't all fit unless we drive a clown car, but we could try it anyway. Enjoy the rest of the con.