So, I figured I'd start a little bit early, being as you're all here and there's more of you than I thought would be here and stuff. So last time I had a microphone in my hand, I was dressed as a fairy in a gold lame leotard with fake stuff, purple hair, singing Hey Big Spender. So, I've got pictures, quick show of hands, who wants to see what that looks like? Right, you may not recover. I'll be back for it later. Alright, that's enough, you don't want to, I'm sorry about that everybody. So my talk today is, can I just try the other microphone because I kind of like to walk around a little bit. So that you, yeah. Is that working? Sorry, I'll try and turn it down a little bit. So my talk today is Social Networking Special Ops Extending Data Visualization Tools for Faster Pwnage. I almost called it, you know, after Tom Ryan's talk at Black Hat, getting in bed with the Sugmeister, but I thought nobody would turn up to that. So, okay, I'm going to rattle through quite a few slides pretty quickly. There's a ton of stuff out on my website in a white paper, so don't worry too much about the details. It's all in there. Quick disclaimer, if anybody does happen to know who I work for, then this talk has got absolutely nothing to do with that particular organization. I'm just talking here by myself, for myself, and well, you get the idea. Okay, so what are you in for today? First of all, I'll give you a quick intro to social network analysis and visualization. So I'm assuming a lot of people are already familiar with that sort of stuff. So that's going to go through really quickly. The details are in the white paper. I'm going to do a case study with Twitter and a tool called Maltigo, which I'll talk a little bit more about, and then something a little bit darker using Facebook and Maltigo. So, okay, goals of the presentation, I want to leave people with an overview or appreciation of really what's happening in this field. I'm no expert in this sort of stuff, but there's plenty of people that are. So hopefully, congenital. So hopefully, you can generate some interest in this room, and you can go off and play with this yourselves. I want to expose you to some of the ideas that you can imply in different contexts as well. So I'm talking about Twitter and Facebook, but as you'll see, you can apply this to just about anything that you want to look at in terms of visual representation. So, quickly, who's the talk aimed at so that I don't waste anybody's time? Well, I might waste your time, but at least, you know, that's your decision then. So. So on the left-hand side, you've got data visualization dudes, and on the bottom, you've got social network analysis dudes. So if, like me, you fit into the new category, this talk will probably be pretty interesting to you. If you fit into this category and you're a data visualization expert or a social network analysis expert, you may get something out of it. And if you're there, then you probably already get it. But stick around, because I've got a free skateboard. So who am I? So I don't know if it's the same for everybody else, but, you know, when you sign up for Twitter, you look for a name, and that name's gone. So my nickname at school used to be Suggie, and everybody calls me Suggie back at home. So I looked for Suggie, and somebody's got that. So then I thought, well, I'll try the Sugginator, because that's kind of rad. And somebody had got that as well. So then I went for the Suggmeister. And there it was. And this is my favorite cup that a friend got me for Christmas. I don't know what they were trying to tell me. By day, I'm in corporate security. By night, I do this sort of stuff, data analysis, visualization, watch TV. I didn't put that on there. I figured everyone does that. And I attend DC4420, one of the DEF CON chapters. If you're not familiar with DEF CON chapters, go and take a look at them. Excellent source of information. And a strange sequence of events led to me appearing here, which I'll talk about shortly. So, okay, quick slide here. Social network analysis, target-rich environment equals a problem or an opportunity, depending on how you're sort of viewing it, really. This dude here, Jacob Marino, he's sort of credited with being, if you like, the grandfather of social network analysis. And that sort of graph first appeared in the New York Times. In 1933. And it's, you know, around the whole Gestalt psychology movement. But before then, you can, you know, you can date this stuff back to the Greeks. But, you know, they didn't really have the same sort of computing power that we've got. So they were limited, largely. So target-rich environment, real quick. There's a Cisco report that said there's 21 exabytes of data flowing around per month or something like that. There was another report that had a different figure, but of personal content like photos and music and CV, resumes, sorry, and, you know, that kind of stuff. Before I got out here, I heard that Facebook had 500 million-ish users. So, you know, Twitter, what was it, 100 million and so on. So there's a lot of people got their information out there. And then there was this thing I noticed, which was called sort of the privacy paradox, or what I termed the privacy paradox. There was a study published. It was done by Stanford University. At least I think it was Stanford where it might have been Carnegie. I can't remember now. It's in the white paper. Where they interviewed a bunch of students. And the students said, well, I take security and privacy seriously, especially with social networking. But when they actually then looked at their profiles on these social networking sites, they were doing the exact opposite, which is kind of helpful. So 89% used their real names. 61% used, you know, identifiable pictures. And what happened? They didn't have you. And then finally, this is a really cool paper, especially if you've been trying to explain to your friends who say, well, I've got nothing to hide. I really don't mind. They're probably not going to read this paper because it's quite a wedge. But maybe you can read it and just sort of summarize it for them. I've got nothing to hide and other misunderstandings of privacy. So you can help them with this as well. So while my searches are anonymous, I don't care that Google's correlating all my IP addresses, for example, if they are. I don't know if they are. But they're not all that anonymous. And this lady here, Thelma Arnold, the New York Times, again, there's her name, got a bunch of search results from AOL and managed to figure out that, you know, this lady who was searching for dogs and stuff like that, dog grooming in Georgia was this lady called Thelma Arnold. And her name didn't appear in it at all. They were just able to track it back. And that was like in 2006 or something. So you can Google her. There's a lot of background for that if it interests you. The data is still out there, actually, so you can perform that sort of analysis yourself and see if you arrive at the same conclusion. So opportunity, lots of data, lots of noise. So how do you find the interesting stuff? Just a little bit quicker is really what this talk is about. By combining data mining, screen scraping techniques, name density recognition, meta crawling, that sort of stuff, and visualization. So a quick intro to some of the things. We're going to talk about in the next two sections, name density recognition or NER. If you look on Wikipedia, you'll see that this kind of definition here, parsing data to extract and classify information. So sweet. Get up, man. Nice one. Come up here and say a few words. Oh, my gosh. All I got to say is that ever since I was a kid, I've enjoyed skateboarding in addition to being here and enjoying this conference. But this is absolutely beautiful. And I don't want to take up your time too much, but I really appreciate it. And thank you very much for the opportunity. Ice skate to create. Sweet. Thanks very much. Nice one. Thank you. Google is doing pretty good then, actually. If you want to come up and finish that. Yeah. So, yeah. So completely at randomly, I chose this phrase. Greg bought 300,000 shares of Legat in 2010. And if you were to put that, if you don't know about Legat, then please do Google that. It's very interesting. Legat and attrition. And you should be on to something. So if you run that phrase through name density recognition, you'd come out with something a little bit like this. Now, I'm mentioning name density recognition because it's a feature in Maltego, which is a tool I'm going to talk about a little bit later. There's a bunch of products out there that I mentioned in the white paper called Open Calais and stuff like that. It's really cool. Go check it out. So data visualization. This guy here has done an incredible amount with data visualization. If you've not read this book, I recommend you go and get it. And he mentions a tool called processing, which is a pretty phenomenal data visualization tool if you've not used it. But he also lists these kinds of steps here on the right about how you go and get visual data. So you're acquiring data, parsing it, filtering it, mining it. And then eventually you render it. And then you can interact with it. Well, I was really interested in this interaction piece because I want to interact with data but not leave the visualization sort of interface. So I'm going to talk a little bit more about that. But check out the book. It's really good. And then I met this guy here just before the talk. I met up with him a few times here at Black Hat and B-Sides and what have you and here at DEF CON, Rafael Marti. And he's written this book. And he's put together this secviz.org site. If you're into visualization, security visualization, check him out. He seems to know everyone in the field and has done some really great work. And I appreciate him sort of reaching out to me. So these are the tools, some of the tools. It's not an exhaustive list. You know, the secviz will show you a little bit more multi-ego processing. Prefuse and Prefuse Flare are really nice environments. There's a Linux distribution as well, a Linux environment you can play with. But I'm going to focus on multi-ego. So this is where we change the pace of the talk a little bit from the science. If the stuff in the previous, in this section has interested you, the white paper will have all the references. So what's multi-ego? So multi-ego is an information gathering tool that allows you to visualize. You can visually see relationships. And typically that's been like infrastructure, like DNS names, web servers, IP addresses and whatnot. And also human information, like email addresses, phone numbers and stuff. And this is really the cool bit. It's extendable by design. So if you haven't got something in there by default, you can add what are called local transforms. I'll talk a little bit more about that. So you go to the Perturba.com site. This is written by two guys, Rolof Tmingi and Andy McPherson or Andrew Mohawk. They were with Sensepost originally and left to create this company. And right now, this week, I'm not on commission, by the way, but there's a 25% discount if you use the coupon code BLACKHAT. So you fire up multi-ego, you get an interface that looks a little bit like this. And then let's say you want to have a look at some of the domains. I just chose six domains at random. You can't really read it here, but it's like legat, legatsecurity, thecyberwars.com, and securitygeek.com with threes in the geek bit. And that's my website. And I wanted to see if there was sort of anything in common with these websites. So here's the interesting thing about the MX records. High Tech Hustler, Cyber Wars, Legat International Security or legat.com all point to these MX records, which, of course, could be completely by chance. And mine is off to something completely different. You can go a lot further with that then. You can sort of have a look at which websites are hosted on that domain. What I also played around with, but I'm not going to share here today, is that you could get all of the email addresses that appear on those websites. And then you can see what other websites those email addresses appear on. So I did that. I got a bunch of email addresses, ran a transform against all of those email addresses, and found out that those email addresses appeared largely in two main sites, which were attrition.org and pastebin. So, you know, if you know nothing about it, you'll find out something. So, okay. Second part of the talk really is around doing this sort of stuff, but with Twitter. Okay. I thought Twitter was a little bit lame until I came to DEF CON last year and had my mind changed and thought I'd get into it. There's a couple of people I started following. One of the guys was Ryan Russell. I don't know if he's here. He was heading off to the Hofbrauhaus. But, yeah, so he's a good guy to follow, actually. And another guy I followed was this dude, Tony Hawk, the skateboard dude. I'm not sure how that happened. But I got involved in something called a Tony Hawk Twitter hunt, which is basically where he hides boxes or delivers boxes to people to hide around the world. And then they send Tony clues of where they've hidden packages, and Tony tweets out the clue to all of his 2 million plus followers. And then they go around and try and hunt it down. He got the idea as he was driving home one day. And had a broken skateboard that he had just wrecked and chucked it out of the window along some interstate here in the U.S. And said, hey, I've just thrown a board out of the window. Go get it. And a bunch of people went and found it. So, anyway, he sent out a tweet last year sort of after DEF CON saying, I'm doing something really big. If you want to get involved with it, send me a tweet of who you are, where you live, and why I can trust you. So, you know, I did that. And then, to my surprise, I got selected to, you know, get involved in this event. And I was, like, really excited because, you know, I mean, I'm pushing 40 years of age. So, clearly, anything that's to do with, like, a skateboard legend and, you know, Tony Hawk, I'm like, oh, yes, fantastic. Which is probably a little bit sad. But my wife tolerates it because she's seen his house on MTV Cribs and thinks it's the coolest thing she's ever seen. So, I'm telling you. All of my colleagues at work who are also, you know, in security and whatnot, far later than I am, I said, oh, I'm doing this thing with Tony Hawk on Twitter. And he's going to send me a box to my house. And I'm going to hide it somewhere. So, one of my colleagues, a gentleman called Pat Udor who's sitting down here, he said, okay, Chris, so you've given your address to somebody on Twitter who claims to be Tony Hawk. And he's going to send you a box which you're going to hide in a city that got rid of dustbins because of the IRA. And no problems there at all, Chris, were his exact words. And then, you know, a couple of days ago, over dinner, he was saying, oh, yeah, that would be great. That would be a really cool thing to do. Pretend to be somebody else on Twitter. Get them engaged with what you're doing. Let's say you have a Twitter ID called the Real Lady Gaga and stuff and say, hey, I'm going to hide something around the world. Just need to send you a parcel. You know, what's in it for you? Extra Farmville points, I think, was what he suggested. So, maybe it's a Facebook hunt or something. And then you could really launch something quite incredible just by getting other people who are quite innocent to do stuff for you. So, I was like, oh, that's really cool. That's a really good idea. I'll mention that. But don't do it because that would be illegal. So, anyway, Tony sent me this box undeterred by all of this. Is it the real Tony Hawk? I'm like, yeah, of course it is. It's got the blue tick. How could it not be? If you're not familiar with Twitter and, you know, if you're a celebrity or something, you get like a little blue tick. There's obviously a delay because I haven't got mine yet. So, I had to hide the... I had to hide the box and then come out with a clue. So, this was my clue guarded by a fearsome troll northwest from a house where you might have to pay money to pass and a skateboard. Well, I live sort of northwest of a toll house. That's the house where you might have to pay money to pass. Northwest of that is a skate park. And if you keep going northwest, you'll head to two bridges that look a little bit like this. So, I was... I hid the package under the bridge. And at this point, I was a little bit concerned. So was my wife. Because clearly, this bridge and the other bridge are two of the main arteries around our village. So, they're very sensitive. And I didn't want to get spotted. So, I figured I'd do this under the cover of broad daylight. And nobody challenged me at all. Which was pretty interesting. And I sent the clue out. Now, this guy here at Stephen Gill, who's now one of my heroes. He was so amped about this whole Tony Hawk thing that he drove up from a different city in the UK and camped out in Basingstoke. Which is the culture capital of Europe, by the way. If you've not been there, you should. So, he camped out there all day just waiting for Tony, who's based in San Diego, to send out a tweet. So, you can imagine that Tony's a skateboarder. And skateboarders probably don't get up that early. So, he sent the tweet out. You know, a little bit later. And he went on a mad hunt and kept tweeting, Has anybody found it yet? Has anybody found it? And I'm thinking, I don't know. I'm at work. Miles away. And then eventually I got this from him. Camo netting. You're a bad man. He'd been to a number of the bridges and hadn't spotted it because I'd camouflaged the box. But anyway, this is what he looked like. He was a happy camper. And this is what he won. The IHAC Charities badge. I put on there. And I thought it'd be a nice twist to add a Union Jack flag in there because most of these packages were being hid in the US. So, clearly I don't have a life because this is what I wanted to see. And I can't explain why I wanted to see this. But I wanted to see it. I wanted to see a Google map with where all of the things were hidden. Who hid them. And who found them. And what it was they found. So, I thought, well, that'll be easy enough. All of the people that hid stuff followed this dude on Twitter at hiding it. All of the people who found stuff tweeted at I found one. Or was supposed to tweet at I found one. And Tony was meant to send out a tweet saying found with the hashtag THTH with the location and who found it. So, I thought that'll be a piece of cake. I'll do that in the two hours that my, you know, my eight month pregnant wife at the time was going to be there. To get a, you know, a haircut. I thought, yes, I'll do that. So, I did what I do now. I don't use Google. I just go straight to Twitter. And I ask people on Twitter. I say, how do I do X, Y, and Z? Which is, you know, basically like read the manual. But some people do actually jump in and say, yeah, this is how you do it. So, this guy here, Lost Highway, who's really helped with a lot of this stuff. He may be here as well. He said, oh, you should play around with Maltigo. There you go. You can't read that, but it's not important. Go and play around with Maltigo. That'll do it. Or you can hack it to make it do what you want. So, I was like, okay, I'll try it. So, hider, finder, Google map, piece of cake, basically what I was thinking. So, let's see who's friends of the hiders. And this is where we do this in Maltigo. So, with Maltigo, I did it this sort of half-assed sort of way. Sorry, half-assed sort of way. What you do, you can't really see it here. But to get to, like, a Twitter entity or person, I had to go this sort of obscure route, which is where you put the phrase entity. This is all in the white paper, so I'll move quickly. You put the phrase entity on there. It was at hiding it. So, I wanted to see all the tweets that had at hiding it in it. Then I used this transform here to do that. So, search Twitter with all those tweets with the at hiding it in it. Get those tweets. There they all are, the purple sort of strictly virusy sort of things. And then convert one of those to an actual Twitter user. And voila, that's French for you get the at hiding it entity. So, I was like, yeah, okay, you can do that. There is a quick way to do that, but I explained earlier I'm not lead. So, I do things the long way. Actually, but not as long as Pat Udall's daughter, who was trying to get some images off a website and wasn't quite familiar with the sort of right-click download image. So, she really is lead because she fired up the fiddler, which is like a web proxy to download those images, which I thought was pretty neat. Sorry, that's a tangent, but not a dark tangent. Okay, friends of this person. So, here you can do this. This is built into Multigo. So, I can go around, select this thing. It's called a transform. Basically, what it does is transform an entity into a bunch of other stuff. So, you go ahead and click that, and then you get all of the people that are following at hiding it. So, I picked one. Here I am. You can apply this to all of the entities in the graph or just one or, you know, just a bunch that you select. And I wanted to see the tweets that this person had written or that I'd written. And that's where this kind of thing happened. Actually, that didn't happen. I did get some results. That's the fail whale on Twitter. It means bad things. It turns out there are a number of limitations with Twitter search. First of all, you're only going to get about two weeks' worth of data indexed. So, if you send tweets out before that time, you're not going to be able to look at it. It doesn't index everybody. So, you're limited. So, I knew that was a problem because I was expecting like 53 tweets. That was before I went on Twitter overdrive, and now I'm at like 4,500, mainly complete nonsense. And I only got 12 results. That's weird. So, I pinged the guys who wrote Maltego, Roloff, and Andy. I was like, I'm only getting these results. And they must have been thinking, oh, God, I wish he'd go away. And they tried it as well because I told them what I was trying to do with the Tony Hawk thing. And they were like, oh. That's weird. We're seeing the same thing. I wonder what's going on. So, I did some digging around, found about all these Twitter search limitations. And I thought, oh, bollocks. What am I going to do? And this is where Roloff said, well, you know, if you can write something and you can pass it an argument and you can return data in standard output, then you can write what's called a local transform. And Maltego have got these like forums where they've got all these examples on there. So, I'll talk a little bit more about that in a minute. But the concept here, if you want to analyze anything visually and you can call a script, and even I, an Excel jockey, can write a script and pass data back, then you're away. You could buy this book or you could just look on Twitter.com and search for the API stuff that's got a ton of great information there. What you'll find is that you've got three APIs with Twitter. You've got a search one, another one for picking up data. You've got the data from Twitter and the streaming API or the firehose. The rest API, one of them is search. The reason search is kind of screwed is because it was by another company which Twitter then bought. And this is kind of what the call would look like. So, you can't see it. You don't need to read it. It's not that important right now. It's in the white paper and on the slides. So, these are the gotchas that you get. You've got a 200-tweet limit. So, every time you call Twitter, that's one API. Every time you do an API call, you get 200 things back. You can't search by date. The max history is about 3,200 tweets. And you've got a limit of 158 API calls an hour. So, if you've got 100 people, three API calls each, say, because you want to get tweets, like 600 tweets for them, then that's 300 and that's going to blow your API calls for an hour. So, if you scale that to looking at 1,000 people, for example, you're clearly screwed. But this is where whitelisting comes in. So, if you're playing around with Twitter and data mining, trying to do anything interesting with it, I'd encourage you to explore the whitelisting. Just Google Twitter whitelisting. You have to apply for it based on, like, a static IP or a username. And then that bumps up your API calls from 150 an hour to 20,000, which enables you to do all sorts of weird and wonderful cool things. So, okay, back in business. Now I want to find where the winners of the packages were. So I'll pull out Tony Hawk here and then list all of the people that Tony Hawk had mentioned in his tweets over a period of time, which was roughly sort of 600 tweets, because I figured he'd say somebody, Dave, for example, found skateboard in San Francisco. And then I'd be able to look at all of the people who were following it, hiding it in the location of San Francisco. So I did that like that. There are all the people that Tony mentions, potential finders. And I repeated that for all of the people that Tony mentioned. And you do that a couple more times, and you start getting a graph that looks a little bit like this. So once you've completed that exercise and done the same thing for the people hiding packages, you end up with one of these, which is big. So I thought, at this point, I saved it. And I thought, well, that's good. But I wonder what happens if I now get all of the people they mentioned in all of their tweets, I know it's going to take a little bit of time, so I'll go for a run. And it was about halfway around a six-mile run, so it was about ten hours in. I thought, shit, all of this stuff's actually going on on some service in South Africa for some dude who'd given me a license key for 21 days to play around with a tool to write a blog post from a skateboarder that they don't even know about. They're fans of him now, by the way. Thanks, Tony. So I did that. And when I got back, I was greeted with this. So you've got to be a little bit sensible about what you do. They didn't come and get me or anything because, well, they haven't done yet. So what you do then, you want to sort of reduce your graph a little bit so you can select all of the people who haven't talked to anybody else or are irrelevant, and you get a much cleaner-looking graph. And then you can play with the views of the graph. So here you are. Here's what's called a centrality layout. So you can see all of the people that are following, hiding it, all of the people that are following or friends of Tony Hawk. You can see people Tony's mentioned there, and you can see people following and hiding it. And you can see the communication between the two of them. So you've already got a bit of a link. They've been talking about something probably. Hey, I hid that package in San Francisco. You found it. Cool job. You can also see that in an organic view where you get nice little pictures of the people that you're looking at like this. So here's me. Here's Steve and Gil, Tony, and hiding it. And you can see that we had some communication. Then you can explore that in an edge-weighted context as well so that you can actually pull out the major players or major conversationalists in an event. So I could look at this for DEF CON afterwards and see who had the most interesting talks and stuff like that. In this, then I found that you had some dude called Jerome Case. Now, I knew that name Jerome Case because he had sent me the skateboard, but I didn't know he was on Twitter, so that was quite an interesting find. And then looking at this, if you knew nothing about Tony Hawk's Twitter hunt, you'd see that I had something to do with it and you'd see that Steve and Gil had something to do with it. And the reason we were mentioned a lot of times in this is because we wrote two blog posts about my tales of sort of hiding the package and his tales of finding it. And Tony retweeted that a bunch of times to like a million plus people, at which point I was so excited I didn't sleep for three days. And neither did my wife because she was giving birth. Um... So, yeah, that was kind of unrelated. This is what Tony and Jerome Case looked like. Sweet Jerome and Tony Hawk. They've been pretty awesome with this whole DEF CON Twitter hunt thing as well. So lessons learned. Plan what you're going to do because if you don't plan, then you can spend a lot of time generating pretty graphs but not actually doing anything constructive. Take a look at this thing. It's the speed and accuracy bar. If you have it slid over to the left, then you get like a minimal number of results back. Like 12 or so. And if you have it slid over to the right, then you get a whole stack of results back. So test it with it slid over to the left. Make sure it works. When it works, slide it over to the right and let it rip. So lessons learned. Local transforms open up a world of opportunity. If you're in an enterprise and you're looking to do this sort of thing, consider the Perturba server platform. If you're really going to leverage the Twitter API heavily, then consider... making a whitelisting request. So I did end up with the Google map. We did that while my wife was in hospital and I was in hospital with her and we had a lot of time to kill. We actually got all of the results and we did it by hand on paper in the end. So I kind of failed. But what was interesting is that this guy did something similar but didn't fail or suck as badly as I did. So if you Google just landed and processing, processing was the tool that I mentioned with what this guy did. Jeff Thorpe, who I've been talking to a little bit, at least in email, he got all of the phrases on Twitter where somebody had said, I've just landed in so-and-so or wheels down in so-and-so. And then he'd got their location from their Twitter profiles and then he'd mapped the two and found where these people were flying from and to and so on and drew this really pretty map in processing, where the things actually sort of bounce around. There's like a nice video of it. So if you're trying to model sweet data, then that's it. And then I used the same stuff that I'd done with the Tony Hawk thing. I applied it to a UK charity. This isn't Digital Equipment Corporation, although they were a fine company. This is a disaster and emergency charity in the UK. And they wanted to do some social media analysis using what they're doing with Twitter. And the peak there is the number of tweets that were retweeted at the same time as the earthquake in Haiti. So if you really want to see how the pros do it, follow Dakort or Damon Cortese, who's responsible for tweet stats and roadfeeder.com. What he does is incredible. Okay, so I'll switch gear to a slightly different context. And you've got 419 crimes in Nigeria. Does anybody know who this dude is? There's a reason why I'm asking. It's because I can't remember his name. But he wrote a song called I Go Chop Your Dollar, which you can Google, go have a look at, which is basically a kind of anthem to a lot of people in Nigeria about 419 scams. So I think it's like the third biggest income generator for Nigeria and made like $9.3 billion last year. So let me just start with a quick disclaimer in case anybody here is from Nigeria and wants to knob on my knees in the car park. The only way you can tell the truth is through fiction, which I spotted on one of Richard Thiem's talks. And I'm a Richard Thiem fanboy. I make no excuse of that. So all of the events, names, images, and stuff like that that you're about to see have been kind of cobbled together in a fictitious way that's going to protect me from being bumped off by Nigerians who want to kill me. Or want to bump me off, basically. Or want to bump somebody else off and confuse me with somebody else. Okay, so meet Jess. Jess sold a laptop on a popular auction site. It got bought quickly at the buy now price. And probably a lot of you are thinking, well, if you buy anything at the buy now price, then it's obviously a scam. Well, you know, if you don't know that, you don't know that. So she exchanges email with the buyer. So far, so good. Except she's got a strange name, like Larry the Cable Guy or something like that. But in the UK, we've never heard of, like, Larry the Cable Guy. So how's she to know that there's anything phishing going on there? Then she gets this notification from PayPal saying, you know, your funds have been cleared. You now proceed to send the goods. So she sent her laptop to a valid address in the UK. Now, she was fairly smart, so she checked the address existed, right? And she did that. And then she got a notice from the auction site saying, terribly sorry about this, but the account of the person that you sold the stuff to appears to have been hacked. And it's probably a scam. And of course, at this point in time, her laptop was winging its way to another city in the UK. So there was little she could do apart from contact the police. So if this happens to you and you're in the UK, at least, I don't know how it is in the US, don't contact your local police force. Contact the police force of the place that the package is going to arrive in because they can get around to the house, knock on the door a lot quicker. She didn't do that. And I'll explain a little bit more about what happens there. So another hypothesis was that if I got the scammer and I got the address of the person that, you know, got the person who received the stolen goods, then we'd be able to retrieve the laptop and get them busted by 5-0. I believe that's what they're called here, right? We call them the police, but I'm... Yeah. Clearly I'm down, so... And gangster. So, okay, so where is our scammer? I thought, right, well, I need to get the email header, but he or she uses webmail and I haven't figured out a way to do that very easily. So I thought, well, we'd sign up for a blog site like this one, and there's a number of them out there that are free and don't require any identity or anything like that, where I could host, you know, an image and then send the spammer an email with that embedded image in it, which would, you know, have a random name but be something compelling. So I'd send him an email saying, hey, I've got this other laptop. I just sold you one, but I've got this other one. Would you be interested in buying this one too? And sure enough, after doing some of this, he responded, he responded and said, yeah, I might be interested. How much? So I went back to the visitor logs here and saw the IP address of where he came from, which was Lagos in Nigeria, or at least that's where he'd rooted his connection through. But I figured that he probably wasn't likely to be rocking Tor at the time. If you want to do a proper bang-up nice job of this, then I'd recommend seeing some of the stuff that Jeremiah Grossman's been talking about this week, which I haven't seen. So he might not have been talking about it, but he did some sort of browser vulnerability stuff where he was able to convince people to click on a link that'd give up all sorts of things that they'd put in the autocomplete form stuff. If anybody has seen it, you can probably set me straight, but it looked pretty cool from the description and a nice way of getting more data. So here's our scammer. So now, where did the package really go? So we've got the scammer, NS is the Nigerian scammer. Here's all his details. And Alice is in Newcastle in the UK, or at least that's where the package went. Now in the UK you've got a site like this called 192.com, which tells you who lives at what address, except it didn't work because she was probably renting or didn't live there anymore. So, okay, I don't know if anybody else is familiar with this song, but I heard it the other night, and if you haven't, you should Google Alice. Alice, who is Alice? And it's a pretty groovy song actually, especially if you've had a couple of beers at the Hofbrauhaus or any other drinking location. There are plenty. So information gathering, searched on Google, found a bunch of sort of social network sites where she was, including that one there. So I wanted to apply the same techniques I did with the Tony Hawk thing, but for this scammer. Now, because I'm not Leet, I looked around for ways of doing this, and I found that this guy here, Dominic White, who I was fortunate enough to meet at Black Hat, really is Leet, and he's really good. He's called at Singe on Twitter, and he wrote some really cool transforms for Facebook based on Python, recognize beautiful soup, which would do a whole bunch of things with Facebook. But if you see there at the end, they'd break the Facebook terms of service, so don't use them. It's only anecdotal evidence, but I've heard that they've got really big dogs, and they know where everybody lives. So if you do break the terms of service, then they'll come after you really hard and bust your nuts basically, unless you're a lady, in which case they'll probably let you off. Or bust... I don't know. Anyway, let's move on. So which Alice is there? Because there's a lot of Alice's on social networking sites. Here I've listed three, just so that we could simplify the diagram. So which one is it? We list all of the friends for Alice based on this conceptual Facebook to friends transform. We see where her friends live to give us a better idea for which one she's got any connections with, like Nigeria, for example. We do that and we see, okay, this Alice here out of all of them is one of the Alice's that's got connections in Nigeria and in this place in the UK called Newcastle. They pronounce it a little bit different, but I'm not Geordie. But a fine city anyway. So that helped me at least narrow down which Alice it was, so here's a video or talk that was done by a chap called Pete Warden called How to Get Sued by Facebook. This is really cool and makes me look kind of lame. Again, there's a theme here. He built his own sort of social network search engine, which was essentially a 100-machine Hadoop cluster for about $10 an hour, and he crawled Facebook. He retrieved 220 million profiles name, location, email in 10 hours, and as he puts it on his website, for $100, which was pretty awesome. But he ended up in a whole bunch of hot water with Facebook and it's really not the sort of hot water anyone wants to land in because they really are aggressively going after people who are scraping their sites. So don't do that, ask them nicely, even if you're law enforcement, because there's a whole bunch of laws that protect people there. But 220 million, I thought that was awesome. Check him out. He's done some really cool stuff. He was looking at where people were, who was talking to who in which states, which parts of the country, and who was moving around and stuff like that. It was very interesting stuff and it's all out there to read. So, okay, so what information is out there on Facebook? If their privacy is set to everyone, then you're in. That's what I mean, public profiles and what have you. If not, then you can only do so much without being a friend. So, okay, so how do you, you know, show me the good stuff, essentially. Well, you could create some bad applications, see the social zombies talk that was at DEFCON two years ago and then I think ShmooCon and whatnot last year, social zombies too. That's really some great ideas there. Then there's the whole, you could just be friends with them. Satan is on my friend list. Go and see that one. That's maybe DEFCON a couple of years ago. Or you could just be smart like the whole thing. There's the Harmony guy who's found various sort of books and things in Facebook and do it that way, but you'll get busted by Facebook. So, okay, making new friends. Possibly create a credible account. Build up your identity. Don't guide directly for your target. Join similar groups, universities and whatnot. Then friends of friends and stuff like that. If somebody's got a thousand friends, then they're going to be really easy to friend with, so you could do that. Take your time. I didn't do that because I couldn't be bothered waiting, so I did all that in about two hours, which isn't a good way because it really exposes you to just being random, but people obviously don't seem to care. Or you could automate it, which is pretty much what I did, and get all of the nasty business over with quickly. So, will you be my friend? That's kind of how my intros went, sort of thing. And it was like, hey, how do I know you? At which point I thought that. I've been busted. Clearly not assured enough. So I sent this back and said, I'm a friend of Alice's. I'm sorry, I'm just getting started with Facebook, clearly, and I really don't know him. I probably just went a little bit too far there. And she was like, oh, well, that's cool. Well, Alice is my best friend. So if you know Alice, then you've got to be cool. Sweet. So building a map of interesting people. So here's what I did really. Get the friend, get the location, get the location. If the location was Nigeria, they got the location. If it wasn't a bunch of other places in Nigeria, then I'd want to see more posts and photos. Download any interesting photos or just download all of them with a name. And if they were interesting, I wanted to pipe the results back to Maltego so I could get a map. So here's like a Facebook to friends transform, which generates a map like that. And you keep doing that and eventually you get a map like this or a graph like this, which shows you the bigger dots and the more interesting people. The red circle thing in the bottom left is the UK and the top one is Nigeria. So it's pretty interesting. And then you can see graphs like this, which you can't actually see the connections, but they're all joined in the bigger dots and more exciting places to have a look. Well, Nigerian criminals make a lot of money. 7K in five days was what I found. And if you look at the Facebook profiles and stuff like that, lots of money, flashy rides, expensive chicks. No, expensive clothes, hot chicks. Hot, expensive chicks. Hot, expensive, luxury chicks. And they're easy to spot because they're like Yemen. Really, they're not ballers on a budget, which was a phrase I heard this year. So then you saw like status updates like this. I get paid in pounds for collecting Nigeria. Lots of pictures of Western Union. They party hard like ninjas, but less leet. Or maybe not less leet, actually. Who cares? They do it. Western Union pictures. So, you know, what's the attraction? Well, base salary or average salary in Nigeria is like $200, 4,000 in the US. So obviously there's also a lot of history there. I'll ramble through this quickly because I've got like five minutes. But I saw some pictures like this, but not these ones. So if you Google duffel bag full of money, you'll find out where this picture came from. But there were other pictures out there. And you can Google them. Some of them looked a little bit more like that, but they weren't those ones because otherwise I'd get bummed off. And then there was stuff like this as well. That's actually my laptop this morning. No, it's not. Clearly I'm using a Mac, and I don't drink whatever that is. But then I saw lots of pictures of Nigerian dudes with these things, which is, I believe, the Americanism for gun, right? I may have got that wrong. I want to get through the rest. So links with terror. There's an organization called Ultrascan Advanced Global Investigations. They're based out of Amsterdam. And they're really the experts in this field. They've done a lot of research in there. And they got a 2009 paper which noted that 2008-2009 there was direct evidence linking advanced fee fraud networks to terrorist activity. So, okay, true identity of the scammer. Hey, this is Alice. I sent him an email from a different account. Will you be my friend? Sure. Post a note on Facebook because I'm having some problems. Sure. Thanks. Hot stuff. Say hi to X. That's the scammer saying that. And X was a friend of hers on Facebook. So now I had a little bit more of a link. This is the link that I saw on Facebook. Oh, we've got plenty of time. We've got five minutes. This was a link that we saw on Facebook. So the scammer's like, Hi, sort of thing. So I was like, Right, bingo. We've got the connection between Alice and the Nigerian scammer. And because he said, Say hi to XXX, which then found out that it was Alice's man or what have you. So we had this interesting connection now where you had Nigerian scammers all sort of hanging together. So scammer networks, how do they work? On record, at least, you've got 62 different scammers. You've got a lot of different Nigerian crime cells in the UK. Spain's the highest in the world with 72 organized crime cells. The USA is 53. But don't feel too bashful because you've got like 2,500 people in those 53 cells, twice the number of anybody else. And 916 around the world, lots of members raking in $9.3 billion a year. So how would you get paid? So you could compile all the information into a blog post or create a Facebook fan site saying, This person stole all my stuff. I'd kind of like it back. Then you can email the scammers and say, If we don't reach an amicable agreement, then Google's going to index this and it'll be there forever. Follow up with a call. See Jason Street's talk from yesterday. In fact, you could do that anonymously. Agree amicable terms. So then they're like, Okay, how do I send you the money? It's like, well, cash, bank, PayPal, Western Union are all going to get you whacked. The other one might be, You might not, but there's a limit on there. So okay, let me end with a health warning. Messing with criminals can reduce your life expectancy. So to do that, you're either limited to public information due to terms of service. If you friend up with people with your own profile, which is the only terms of service compliant way to do it, you'll need balls of steel. If you work with law enforcement, then you're okay. But you'd still have to break the terms of service and Facebook will come after you. Mining data is more accessible than ever before because there's so much of it out there and it's a lot of fun. Visualization can help you hone in on interesting relationships and NER and Named Entity Recognition can help you classify it. Combine all three of those and you're onto some interesting stuff. If you're on Twitter and you want to see who's tweeting about Maltigo, at Paterva, at Singe, Mubix and Colin Lownage, you're all far, far smarter than I am. Social network tweeters, Tom Aston, Robin Wood, Agent 0x0, DigiNinja have done the social zombies talk, Harmony Guy, follow him, he's awesome, and Social Media Security, and Dan. Data mining visualization, Damon Cortese, Neil Codner. If you tweet Full Metal Jacket, then you get the Sergeant Major dude from Full Metal Jacket giving you crap on Twitter. Try that, it's funny. That's Neil. Pete Warden's the dude who nearly got sued by Facebook, and Rafael Marti and Secviz are the same person, and awesome guy. So that's about all I've got to say about that. I'm in room, what is it, 111 or something? One question before we get around to class. Okay. And that's the website. It's got the white paper from the talk and stuff like that. So that's all, folks. Um...