[00:00.000 --> 00:03.500] Okay, everyone, let's get started on the next talk. This is a lightning talk, so I will get [00:03.500 --> 00:08.480] handed straight over. The next talk is finding the needle in the Twitter haystack, and I will [00:08.480 --> 00:12.400] hand over to the Wicked Clown. Thank you very much. Oh, he's taking a selfie. Okay, thanks [00:12.400 --> 00:15.380] very much, everyone. There you go. [00:15.960 --> 00:24.280] Hi. So, yeah, this is my talk, Finding the Needle in the Twitter Haystack. I talk quite [00:24.280 --> 00:27.660] fast, so if you're on YouTube, press shift and the arrow, and it'll slow down and actually [00:27.660 --> 00:33.480] turn into a proper talk. Who am I? Well, I'm not. I'm not an American. I'm Australian, [00:33.480 --> 00:38.480] Canadian, French, German. I'm not a pen tester. I'm definitely not a blue team. I'm not a [00:38.480 --> 00:44.260] coder. I do try. I'm very trying. I'm definitely not sober. I'm not a bad guy, so Mr. American [00:44.260 --> 00:48.520] FBI man, please don't arrest me on the way home. But who I am, I'm Wicked Clown. I am [00:48.520 --> 00:51.960] from the United Kingdom. If you don't know where that is, it's near France, where you [00:51.960 --> 00:57.140] guys won the World Cup, the Women's World Cup, go U.S. Yay! I am a biker. I am a hacker. [00:57.140 --> 01:02.240] Like I said, I'm not a pen tester or anything like that, so I view myself as a hacker. I'm a [01:02.240 --> 01:07.380] family man to a wonderful family, so I don't get a lot of spare time to do my security [01:07.380 --> 01:13.180] research. I am a co-founder of Defcon Gloucester in the UK. I'm also dyslexic. Why do I bring [01:13.180 --> 01:16.980] that up? It's the first time I brought it up in public. If you don't know what dyslexia is, it [01:16.980 --> 01:21.980] means I have a learning disability. I can't read or write very well. And when you look at [01:21.980 --> 01:25.860] other people's talks and presentations, they talk about how they read an RFC or they've [01:25.860 --> 01:30.420] wrote a book or they've done something similar to that. And when you look at some of the, [01:30.420 --> 01:34.560] when they do the call for papers, they do the presentation, it's like an essay. I can't read 100 [01:34.560 --> 01:38.740] words, let alone write 100 words, so I'd like to thank Recon Village for allowing me to speak [01:38.740 --> 01:42.580] here and if I can inspire anybody with similar disabilities to come up and talk. And that's an [01:42.580 --> 01:48.100] achievement unlocked for myself. So I'm going to talk about three tools that I've written to [01:48.100 --> 01:53.140] view people's tweets, search timeline, and show who they communicate most with. I know you [01:53.140 --> 01:57.280] can do that with Twitter, with the GUI, so I'm going to explain a bit more of it and what's [01:57.280 --> 02:01.740] the difference between my tools and doing it online. Before I go on that, I want to talk [02:01.740 --> 02:05.600] about the Lockheed Martin server kill chain. It'll all make sense in a minute. If you don't [02:05.600 --> 02:09.560] know what this is, it's what Lockheed Martin says that as a bad guy, we have to take each of [02:09.560 --> 02:14.100] those steps and get to be successful in each one. And a defender has to be right once. They [02:14.100 --> 02:18.800] just have to block us on either delivery, exploitation, they can block us there, then it's [02:18.800 --> 02:23.080] game over for us. Which is true, but in my head, I'd say it doesn't quite work very well. [02:23.080 --> 02:28.440] This is how I view it. If you're colorblind, the red are the up and down, blue left and [02:28.440 --> 02:32.700] right arrows. So the reason I'm bringing this up, because with recon, this is where we can [02:32.700 --> 02:37.000] spend most of our time and effort in. Blue team has zero availability of what we're doing, so [02:37.000 --> 02:40.600] we can actually hide there, do what they're... more information, more recon we get. I know [02:40.600 --> 02:45.220] I'm preaching to the choir here, but more recon we do makes our jobs more successful. So [02:45.220 --> 02:49.880] when it gets to weaponization, this is where the blue team starts to build up. If they're [02:49.880 --> 02:53.640] running Windows operating systems, they don't care about Linux exploits. So that means [02:53.640 --> 02:57.100] they're concentrating on that. So it means we've got to now focus, funnel our efforts into [02:57.100 --> 03:00.720] Windows exploits, because all the Linux ones no longer exist. When it moves down to [03:00.720 --> 03:05.720] delivery, it's 50-50. Blue team can't just shut off the internet, they can't just block all [03:05.720 --> 03:09.540] emails, so we now have to hide in that information. We need to hide, make sure the [03:09.540 --> 03:15.440] emails that's going through the system is... looks legitimate, and any packets we send are [03:15.440 --> 03:19.660] going through. When it gets down to exploitation, this is our hardest bit as the attacker. [03:19.880 --> 03:23.380] Reason is because we have to make sure that we break that system. It's the easiest job for the [03:23.380 --> 03:26.540] blue team, because all they have to do is make... if they've got good packet manager in [03:26.540 --> 03:30.800] place, good user training in place, good user awareness, it's going to be very hard for us to [03:30.800 --> 03:34.860] exploit it. So we have to make sure that the recon, everything we do in recon, funnels down [03:34.860 --> 03:39.520] to that point so we can be successful. But then once we get past exploitation, this is where we [03:39.520 --> 03:43.500] have blue team on the back foot. We can then use installation so we can actually then start [03:43.500 --> 03:47.420] pivots and go for the network and they're going to try to get rid of us. Once they get rid of... [03:47.420 --> 03:51.580] once we get command and control and other boxes, we can actually move and pivot so we can [03:51.580 --> 03:54.960] actually... so they take out one host, we still hopefully have persistence somewhere else to [03:54.960 --> 03:59.480] exploit. Then we get to actions and objections when we actually have full control of the [03:59.480 --> 04:03.160] network, blue team are struggling, they're in a massive firefight, and then we pretty much own [04:03.160 --> 04:06.940] the network. So the reason why I brought this up is because I said recon is the most [04:06.940 --> 04:11.280] important phase in my understanding of this. So this is the reason why I've written this [04:11.280 --> 04:16.300] tool, all my tools. So basically I'm going to look at my friend of mine, Christian Riley, I've [04:16.300 --> 04:22.460] asked his permission to do this so it's okay. The reason I picked on him is because he's a [04:22.460 --> 04:27.280] prolific tweeter, he's done loads of tweets, he's got loads of people following him, and it's [04:27.280 --> 04:34.480] going to be really hard to get some info and intel on him. So first we can view the tweets. [04:34.480 --> 04:40.360] What this tool does, it actually just shows the tweets and replies, it doesn't show the retweets. [04:40.360 --> 04:46.100] I don't really care about what other people are saying when Chris Riley tweets a retweet. I [04:46.100 --> 04:49.780] want to know what gets inside his head, which is a very scary place at the best of times, but I [04:49.780 --> 04:55.760] want to get inside, I need to understand him if I want to be exploiting. So if it's a retweet, I'm [04:55.760 --> 04:58.180] not interested, I want to know what he's tweeting, what he's talking about, what he's [04:58.180 --> 05:06.240] thinking, I need to understand his communication. I also want to search his timeline. The [05:06.240 --> 05:11.940] timeline, it puts it in just random order. Here it actually puts it in chronological order. So [05:11.940 --> 05:15.920] it makes it really easy to actually get the information out. So if I need to extract, so if I'm [05:15.920 --> 05:20.540] doing a search on a conference or something he's attending and he's hashtagging it, that means I'm [05:20.540 --> 05:23.560] going to get all that information there and then. So I'll be able to find his movements, [05:23.560 --> 05:27.200] understand how he's doing, what he's moving, what he's talking about, instead of going through [05:27.200 --> 05:33.500] all the search ones to try to find the information. This is the bit I find most useful. It [05:33.500 --> 05:36.500] actually does count how many mentions that they're using. I don't need to do this on the [05:36.500 --> 05:42.480] GUI front-end itself. So we see here that we've got SPL where the last one, 20, 21 tells, [05:42.480 --> 05:46.680] 5 down, 130, digit into 100 times. So these are the people he's actually talking to, [05:46.680 --> 05:50.280] communicating with. So these are now, we've got a circle of trust. This is where we [05:50.280 --> 05:54.560] actually believe he's actually communicating more with, he's actually talking to. So if we [05:54.560 --> 05:59.340] can exploit that trust, we can then hopefully exploit him. So it also gives us more [05:59.340 --> 06:03.180] information about his hobbies and interests and stuff like that. So let's put it [06:03.180 --> 06:09.740] together and see if we can actually make this work. Come on screen. Is it going to pop up? [06:09.900 --> 06:19.230] Yeah. Come on, there we go. Thank you. Okay. So, I'm in the wrong place to start off [06:19.230 --> 06:27.790] with. All right. So if we do search his tweets, let's hope he hasn't put anything dodgy up. [06:32.660 --> 06:38.880] So now we see all his tweets. But it also puts it in so it's a little easier to see. And if we [06:38.880 --> 06:44.180] actually look at his tweets here, it's pretty hard to actually view it, see what's actually [06:44.180 --> 06:49.240] going on. We see he's got a retweet there, he's got a few other tweets. But if we look here, we [06:49.240 --> 06:53.080] can actually see his tweets and it's easier for us to view and see, it makes it a bit more [06:53.080 --> 07:03.950] easier to consume the information. If you want to search, now do, um, search like his users. [07:11.860 --> 07:16.140] So it's now going to retrieve all his mentions that he talks about people. So it takes a few [07:16.140 --> 07:23.600] seconds for it to come back. And you see here we've got like SB220, Belgan143, D102. But we [07:23.600 --> 07:28.880] also now understand his interests. We've got DJ Jackalope there. We have, um, Duoco Music [07:28.880 --> 07:33.840] here. So we now understand his music taste as well. So by using this information, we hope to be [07:33.840 --> 07:38.300] able to get some sort of a more successful payload by doing the recon on. And when we, how [07:38.300 --> 07:42.220] many of us have actually, somebody sends you a link from a trusted source, you're more likely [07:42.220 --> 07:46.660] to click it, look at, click the link, open it, or do something else than somebody from somebody [07:46.660 --> 07:52.980] you don't know. So this is the reason why we do this. Um, we also look at his, so if we look at [07:52.980 --> 08:09.500] search, do searches, and we search for Chris John Reilly. And we search for DigiNinja, because [08:09.500 --> 08:17.480] he's been speaking lots to him. So we now can see that, we can see the conversation going here. [08:17.480 --> 08:25.900] But now if we actually, um, do the same thing again, but this time flip it around. So we go, [08:25.900 --> 08:32.910] um, and this time we do the search, but this time we do, um, DigiNinja. [08:35.410 --> 08:38.910] This is the first time I've done a demo live, normally I do a video because I talk too fast and [08:38.910 --> 09:00.710] it slows me down. Um, Chris. So now when it comes back, let's go up here, go up to the top. And [09:00.710 --> 09:13.530] go to the top here again. So now we can see the conversation that's happening between the two. So [09:13.530 --> 09:19.430] is there an equivalent RAM of a sushi boot? Um, a rampant boat with liquid inside, [09:19.430 --> 09:25.770] should be able to sink. Um, maybe float sushi boot on the RAM. So now we're seeing conversation [09:25.770 --> 09:30.210] between him and other people. So we can actually look at his, how he's talking to people and how [09:30.210 --> 09:34.570] people are interacting with him. This just gives us more, uh, doing a phishing attack, a lot more [09:35.830 --> 09:39.490] high chance of success to actually do that. So if we actually try to look at that now on Twitter, [09:46.220 --> 09:50.060] um, when we try to see the same conversations going and doing the search, we can see now it's [09:50.060 --> 09:54.940] all dotted all over the place. So we hear from this year, last year, this year, um, this year, [09:54.940 --> 09:58.580] last year, this year, last year. So when we do the search, it's not in a chronological order, [09:58.580 --> 10:01.780] so it's trying to actually find the information that we need to use to be able to exploit him. [10:04.660 --> 10:16.470] Oops, go away. So, but we're, we're seeing that how we're, we're, um, looking at person [10:16.470 --> 10:20.550] conversation, talking with each other, um, how we'd be able to give that information to be able [10:20.550 --> 10:23.670] to understand what's going on. But what about companies and organizations that are just [10:23.670 --> 10:27.750] broadcasting? Um, if you're like Donald Trump, you just broadcast information. It doesn't actually [10:27.750 --> 10:32.210] have conversation with people on Twitter. Companies just broadcast information on Twitter. [10:32.490 --> 10:36.410] So since we mentioned Lockheed Martin, we'll have Lockheed Martin's, uh, Twitter feed. [10:36.750 --> 10:42.270] So we see here, we do the same, do the search, um, and we see that round number of those space [10:42.270 --> 10:48.610] 156, F-35, F-33. So we also see in there that we have high confidence now that this is an [10:48.610 --> 10:53.570] official Lockheed Martin Twitter feed because we're actually seeing mentions that would actually [10:53.570 --> 10:59.990] expect Lockheed Martin to receive. We're not seeing, um, Bieber there or somebody else, um, [10:59.990 --> 11:04.470] Spice Girls or something like that. We can actually, we actually know that this is somebody's, [11:04.470 --> 11:08.350] it's not somebody spoofing Lockheed Martin. This is actually a Lockheed Martin's, um, [11:08.350 --> 11:12.970] website. So we look at Ram Ambrose. You see it says Rick Ambrose is the leader of space. [11:12.970 --> 11:16.750] So we can actually have a human to actually target. We can do like the supply chain targeting. [11:16.910 --> 11:19.950] We're not going to get into Lockheed Martin, but we might be able to export him to actually being [11:19.950 --> 11:25.430] pivot away into it. Remember we have the F-35 there. So we look at the F-35 Twitter feed again. [11:25.430 --> 11:30.690] We've seen, uh, Lockheed Martin, Luke Air Force Base, Royal Air Force. So we now know that this [11:30.690 --> 11:35.070] is again, an official, um, Twitter feed from Lockheed Martin. We have very high confidence [11:35.070 --> 11:39.190] of that. But you also see there called Billy Flynn. We look at Billy Flynn. This is the F-35 [11:39.190 --> 11:43.790] test pilot. So this is now giving us information insight on somebody else. I'm not going to attack [11:43.790 --> 11:48.410] the F-35. I can't stop the F-35 from flying. But if I can take down the F-35 pilot, the F-35 [11:48.410 --> 11:52.550] doesn't fly. It's a very clever plane, but I believe it still needs a pilot to actually take [11:52.550 --> 11:59.710] off. So yeah, so quickly that's the end of it. Um, so the, you do need to register with Twitter [11:59.710 --> 12:06.230] to get yourself, uh, uh, what's the word? Delivery license, uh, code to actually be able to [12:06.230 --> 12:11.630] communicate with it. Um, you're also limited to 3,000 tweets, uh, per search, which I don't [12:11.630 --> 12:15.010] think is a restriction. So someone like Christian Ryan, who's constantly tweeting all the [12:15.010 --> 12:18.830] time, I want to see the latest tweets, the latest information, latest people he's talking to. [12:18.830 --> 12:23.030] Because if I try and spoof somebody that's three, four years ago, I think that email has been [12:23.030 --> 12:28.590] compromised and they're not going to, uh, believe what, what they're talking to. So I need to [12:28.590 --> 12:34.910] have that up-to-date information for them to actually be able to believe it's working. So, um, [12:34.910 --> 12:38.990] yeah, that's it. Thank you very much. I thought I'd quick get us back in time. Um, so yeah, [12:38.990 --> 12:42.410] that's, if you want more information, um, yeah, there you go. Thank you much.