1 00:00:00,000 --> 00:00:02,080 Okay, everyone, let's get started on the next talk. 2 00:00:02,080 --> 00:00:05,000 This is a lightning talk, so I will get handed straight over. 3 00:00:05,460 --> 00:00:10,180 The next talk is finding the needle in the Twitter haystack, and I will hand over to the Wicked Clown. 4 00:00:10,180 --> 00:00:10,840 Thank you very much. 5 00:00:10,840 --> 00:00:11,900 Oh, he's taking a selfie. 6 00:00:11,900 --> 00:00:13,520 Okay, thanks very much, everyone. 7 00:00:14,380 --> 00:00:15,380 There you go. 8 00:00:15,960 --> 00:00:16,680 Hi. 9 00:00:17,300 --> 00:00:21,540 So, yeah, this is my talk, Finding the Needle in the Twitter Haystack. 10 00:00:23,600 --> 00:00:28,920 I talk quite fast, so if you're on YouTube, press shift and the arrow, and it'll slow down and actually turn into a proper talk. 11 00:00:29,640 --> 00:00:30,300 Who am I? 12 00:00:30,300 --> 00:00:30,880 Well, I'm not. 13 00:00:30,880 --> 00:00:31,980 I'm not an American. 14 00:00:32,640 --> 00:00:34,560 I'm Australian, Canadian, French, German. 15 00:00:34,560 --> 00:00:35,820 I'm not a pen tester. 16 00:00:36,560 --> 00:00:37,860 I'm definitely not a blue team. 17 00:00:37,860 --> 00:00:38,580 I'm not a coder . 18 00:00:38,580 --> 00:00:39,380 I do try. 19 00:00:39,940 --> 00:00:40,800 I'm very trying. 20 00:00:40,800 --> 00:00:42,020 I'm definitely not sober. 21 00:00:42,120 --> 00:00:43,360 I'm not a bad guy, so Mr. 22 00:00:43,360 --> 00:00:46,220 American FBI man , please don't arrest me on the way home. 23 00:00:46,680 --> 00:00:48,080 But who I am, I'm Wicked Clown. 24 00:00:48,080 --> 00:00:49,340 I am from the United Kingdom. 25 00:00:50,060 --> 00:00:54,220 If you don't know where that is, it's near France, where you guys won the World Cup, the Women's World Cup, go U.S. 26 00:00:54,220 --> 00:00:54,720 Yay! 27 00:00:55,020 --> 00:00:56,120 I am a biker. 28 00:00:56,280 --> 00:00:57,140 I am a hacker. 29 00:00:57,140 --> 00:01:01,320 Like I said, I'm not a pen tester or anything like that, so I view myself as a hacker. 30 00:01:01,680 --> 00:01:07,700 I'm a family man to a wonderful family, so I don't get a lot of spare time to do my security research . 31 00:01:07,860 --> 00:01:11,020 I am a co-founder of Defcon Gloucester in the UK. 32 00:01:11,020 --> 00:01:12,340 I'm also dyslexic. 33 00:01:12,500 --> 00:01:13,380 Why do I bring that up? 34 00:01:13,380 --> 00:01:15,260 It's the first time I brought it up in public. 35 00:01:15,900 --> 00:01:18,100 If you don't know what dyslexia is, it means I have a learning disability. 36 00:01:18,100 --> 00:01:19,580 I can't read or write very well. 37 00:01:20,720 --> 00:01:28,220 And when you look at other people's talks and presentations, they talk about how they read an RFC or they've wrote a book or they've done something similar to that. 38 00:01:28,980 --> 00:01:33,900 And when you look at some of the, when they do the call for papers, they do the presentation, it's like an essay. 39 00:01:33,900 --> 00:01:41,860 I can't read 100 words, let alone write 100 words, so I'd like to thank Recon Village for allowing me to speak here and if I can inspire anybody with similar disabilities to come up and talk. 40 00:01:42,100 --> 00:01:44,000 And that's an achievement unlocked for myself. 41 00:01:45,180 --> 00:01:52,760 So I'm going to talk about three tools that I've written to view people's tweets, search timeline, and show who they communicate most with. 42 00:01:52,760 --> 00:01:59,880 I know you can do that with Twitter, with the GUI, so I'm going to explain a bit more of it and what's the difference between my tools and doing it online. 43 00:02:00,480 --> 00:02:03,260 Before I go on that, I want to talk about the Lockheed Martin server kill chain. 44 00:02:03,260 --> 00:02:04,400 It'll all make sense in a minute. 45 00:02:05,060 --> 00:02:12,260 If you don't know what this is, it's what Lockheed Martin says that as a bad guy, we have to take each of those steps and get to be successful in each one. 46 00:02:12,460 --> 00:02:14,020 And a defender has to be right once. 47 00:02:14,020 --> 00:02:19,900 They just have to block us on either delivery, exploitation, they can block us there, then it's game over for us. 48 00:02:20,060 --> 00:02:23,080 Which is true, but in my head, I'd say it doesn't quite work very well. 49 00:02:23,080 --> 00:02:24,300 This is how I view it. 50 00:02:24,960 --> 00:02:29,660 If you're colorblind, the red are the up and down, blue left and right arrows. 51 00:02:29,660 --> 00:02:34,280 So the reason I'm bringing this up, because with recon, this is where we can spend most of our time and effort in. 52 00:02:34,520 --> 00:02:40,480 Blue team has zero availability of what we're doing, so we can actually hide there, do what they're... more information, more recon we get. 53 00:02:40,480 --> 00:02:44,980 I know I'm preaching to the choir here, but more recon we do makes our jobs more successful. 54 00:02:45,140 --> 00:02:48,720 So when it gets to weaponization, this is where the blue team starts to build up. 55 00:02:48,980 --> 00:02:53,120 If they're running Windows operating systems, they don't care about Linux exploits. 56 00:02:53,120 --> 00:02:54,740 So that means they're concentrating on that. 57 00:02:54,740 --> 00:02:59,740 So it means we've got to now focus, funnel our efforts into Windows exploits, because all the Linux ones no longer exist. 58 00:03:00,000 --> 00:03:02,180 When it moves down to delivery, it's 50-50. 59 00:03:02,280 --> 00:03:08,480 Blue team can't just shut off the internet, they can't just block all emails, so we now have to hide in that information. 60 00:03:08,480 --> 00:03:16,200 We need to hide, make sure the emails that's going through the system is... looks legitimate, and any packets we send are going through. 61 00:03:16,420 --> 00:03:19,660 When it gets down to exploitation, this is our hardest bit as the attacker. 62 00:03:19,880 --> 00:03:22,460 Reason is because we have to make sure that we break that system. 63 00:03:22,460 --> 00:03:31,680 It's the easiest job for the blue team, because all they have to do is make... if they've got good packet manager in place, good user training in place, good user awareness, it's going to be very hard for us to exploit it. 64 00:03:31,740 --> 00:03:36,720 So we have to make sure that the recon, everything we do in recon, funnels down to that point so we can be successful. 65 00:03:36,960 --> 00:03:41,040 But then once we get past exploitation, this is where we have blue team on the back foot. 66 00:03:41,280 --> 00:03:46,280 We can then use installation so we can actually then start pivots and go for the network and they're going to try to get rid of us. 67 00:03:46,360 --> 00:03:47,420 Once they get rid of... 68 00:03:47,420 --> 00:03:55,700 once we get command and control and other boxes, we can actually move and pivot so we can actually... so they take out one host, we still hopefully have persistence somewhere else to exploit. 69 00:03:55,880 --> 00:04:03,900 Then we get to actions and objections when we actually have full control of the network, blue team are struggling, they're in a massive firefight, and then we pretty much own the network. 70 00:04:04,280 --> 00:04:09,240 So the reason why I brought this up is because I said recon is the most important phase in my understanding of this. 71 00:04:09,600 --> 00:04:13,640 So this is the reason why I've written this tool, all my tools. 72 00:04:13,680 --> 00:04:19,740 So basically I'm going to look at my friend of mine, Christian Riley, I've asked his permission to do this so it's okay. 73 00:04:20,640 --> 00:04:29,560 The reason I picked on him is because he's a prolific tweeter, he's done loads of tweets, he's got loads of people following him, and it's going to be really hard to get some info and intel on him. 74 00:04:30,240 --> 00:04:33,000 So first we can view the tweets. 75 00:04:33,900 --> 00:04:40,360 What this tool does, it actually just shows the tweets and replies, it doesn't show the retweets. 76 00:04:40,360 --> 00:04:45,940 I don't really care about what other people are saying when Chris Riley tweets a retweet. 77 00:04:45,940 --> 00:04:52,820 I want to know what gets inside his head, which is a very scary place at the best of times, but I want to get inside, I need to understand him if I want to be exploiting. 78 00:04:53,900 --> 00:05:00,300 So if it's a retweet, I'm not interested, I want to know what he's tweeting, what he's talking about, what he's thinking, I need to understand his communication. 79 00:05:01,680 --> 00:05:03,160 I also want to search his timeline. 80 00:05:05,920 --> 00:05:08,700 The timeline , it puts it in just random order. 81 00:05:09,580 --> 00:05:11,780 Here it actually puts it in chronological order. 82 00:05:11,860 --> 00:05:14,360 So it makes it really easy to actually get the information out. 83 00:05:14,440 --> 00:05:22,000 So if I need to extract, so if I'm doing a search on a conference or something he's attending and he's hashtagging it, that means I'm going to get all that information there and then. 84 00:05:22,000 --> 00:05:29,240 So I'll be able to find his movements, understand how he's doing, what he's moving, what he's talking about, instead of going through all the search ones to try to find the information. 85 00:05:30,220 --> 00:05:32,140 This is the bit I find most useful. 86 00:05:33,140 --> 00:05:35,420 It actually does count how many mentions that they're using. 87 00:05:35,420 --> 00:05:37,780 I don't need to do this on the GUI front-end itself. 88 00:05:38,220 --> 00:05:44,840 So we see here that we've got SPL where the last one, 20, 21 tells, 5 down, 130, digit into 100 times. 89 00:05:45,040 --> 00:05:47,480 So these are the people he's actually talking to, communicating with. 90 00:05:47,480 --> 00:05:49,580 So these are now, we've got a circle of trust. 91 00:05:49,660 --> 00:05:53,740 This is where we actually believe he's actually communicating more with, he's actually talking to. 92 00:05:53,740 --> 00:05:57,860 So if we can exploit that trust, we can then hopefully exploit him. 93 00:05:58,180 --> 00:06:01,780 So it also gives us more information about his hobbies and interests and stuff like that. 94 00:06:02,300 --> 00:06:05,160 So let's put it together and see if we can actually make this work. 95 00:06:06,620 --> 00:06:07,520 Come on screen. 96 00:06:08,600 --> 00:06:09,740 Is it going to pop up? 97 00:06:09,900 --> 00:06:12,310 Yeah. 98 00:06:12,830 --> 00:06:13,650 Come on, there we go. 99 00:06:13,650 --> 00:06:14,290 Thank you. 100 00:06:14,370 --> 00:06:15,090 Okay. 101 00:06:15,370 --> 00:06:19,790 So, I'm in the wrong place to start off with. 102 00:06:21,730 --> 00:06:22,370 All right. 103 00:06:22,370 --> 00:06:27,790 So if we do search his tweets, let's hope he hasn't put anything dodgy up. 104 00:06:32,660 --> 00:06:35,260 So now we see all his tweets. 105 00:06:35,840 --> 00:06:38,660 But it also puts it in so it's a little easier to see. 106 00:06:38,660 --> 00:06:45,060 And if we actually look at his tweets here, it's pretty hard to actually view it, see what's actually going on. 107 00:06:45,320 --> 00:06:48,360 We see he's got a retweet there, he's got a few other tweets. 108 00:06:48,360 --> 00:06:54,880 But if we look here, we can actually see his tweets and it's easier for us to view and see, it makes it a bit more easier to consume the information. 109 00:06:56,220 --> 00:07:03,950 If you want to search, now do, um, search like his users. 110 00:07:11,860 --> 00:07:15,220 So it's now going to retrieve all his mentions that he talks about people. 111 00:07:15,340 --> 00:07:17,340 So it takes a few seconds for it to come back. 112 00:07:18,620 --> 00:07:23,280 And you see here we've got like SB220, Belgan143, D102. 113 00:07:23,280 --> 00:07:25,440 But we also now understand his interests. 114 00:07:25,440 --> 00:07:27,180 We've got DJ Jackalope there. 115 00:07:27,180 --> 00:07:29,500 We have, um, Duoco Music here. 116 00:07:29,620 --> 00:07:31,540 So we now understand his music taste as well. 117 00:07:31,740 --> 00:07:37,440 So by using this information, we hope to be able to get some sort of a more successful payload by doing the recon on. 118 00:07:37,480 --> 00:07:47,820 And when we, how many of us have actually, somebody sends you a link from a trusted source, you're more likely to click it, look at, click the link, open it, or do something else than somebody from somebody you don't know. 119 00:07:47,900 --> 00:07:49,840 So this is the reason why we do this. 120 00:07:50,400 --> 00:07:54,240 Um, we also look at his, so if we look at search, 121 00:08:00,500 --> 00:08:05,080 do searches, and we search for Chris John Reilly. 122 00:08:07,320 --> 00:08:11,060 And we search for DigiNinja, because he's been speaking lots to him. 123 00:08:14,860 --> 00:08:17,480 So we now can see that, we can see the conversation going here. 124 00:08:17,480 --> 00:08:24,420 But now if we actually, um, do the same thing again, but this time flip it around. 125 00:08:24,900 --> 00:08:32,910 So we go, um , and this time we do the search, but this time we do, um, DigiNinja. 126 00:08:35,410 --> 00:08:39,810 This is the first time I've done a demo live, normally I do a video because I talk too fast and it slows me down. 127 00:08:40,870 --> 00:08:43,570 Um, Chris. 128 00:08:50,410 --> 00:08:53,690 So now when it comes back, let's go up here, go up to the top. 129 00:09:00,430 --> 00:09:01,790 And go to the top here again. 130 00:09:02,050 --> 00:09:04,470 So now we can see the conversation that's happening between the two. 131 00:09:13,250 --> 00:09:17,410 So is there an equivalent RAM of a sushi boot? 132 00:09:17,570 --> 00:09:20,430 Um, a rampant boat with liquid inside, should be able to sink. 133 00:09:21,030 --> 00:09:23,610 Um, maybe float sushi boot on the RAM. 134 00:09:23,850 --> 00:09:27,530 So now we're seeing conversation between him and other people. 135 00:09:27,530 --> 00:09:31,550 So we can actually look at his, how he's talking to people and how people are interacting with him. 136 00:09:31,550 --> 00:09:37,790 This just gives us more, uh, doing a phishing attack, a lot more high chance of success to actually do that. 137 00:09:37,790 --> 00:09:39,490 So if we actually try to look at that now on Twitter, 138 00:09:46,220 --> 00:09:51,100 um, when we try to see the same conversations going and doing the search, we can see now it's all dotted all over the place. 139 00:09:51,100 --> 00:09:56,420 So we hear from this year, last year, this year, um, this year, last year, this year, last year. 140 00:09:56,420 --> 00:10:01,780 So when we do the search, it's not in a chronological order, so it's trying to actually find the information that we need to use to be able to exploit him. 141 00:10:04,660 --> 00:10:05,840 Oops, go away. 142 00:10:12,430 --> 00:10:22,070 So, but we're, we're seeing that how we're, we're, um, looking at person conversation, talking with each other, um, how we'd be able to give that information to be able to understand what's going on. 143 00:10:22,070 --> 00:10:24,590 But what about companies and organizations that are just broadcasting? 144 00:10:24,830 --> 00:10:27,190 Um, if you're like Donald Trump, you just broadcast information. 145 00:10:27,190 --> 00:10:29,890 It doesn't actually have conversation with people on Twitter. 146 00:10:29,890 --> 00:10:32,210 Companies just broadcast information on Twitter. 147 00:10:32,490 --> 00:10:36,410 So since we mentioned Lockheed Martin, we'll have Lockheed Martin's, uh, Twitter feed. 148 00:10:36,750 --> 00:10:44,650 So we see here, we do the same, do the search, um, and we see that round number of those space 156, F-35, F-33. 149 00:10:45,050 --> 00:10:54,890 So we also see in there that we have high confidence now that this is an official Lockheed Martin Twitter feed because we're actually seeing mentions that would actually expect Lockheed Martin to receive. 150 00:10:54,890 --> 00:11:01,490 We're not seeing, um, Bieber there or somebody else, um, Spice Girls or something like that. 151 00:11:01,490 --> 00:11:05,830 We can actually, we actually know that this is somebody's, it's not somebody spoofing Lockheed Martin. 152 00:11:05,830 --> 00:11:09,070 This is actually a Lockheed Martin's, um, website. 153 00:11:09,310 --> 00:11:11,070 So we look at Ram Ambrose. 154 00:11:11,170 --> 00:11:12,970 You see it says Rick Ambrose is the leader of space. 155 00:11:12,970 --> 00:11:14,930 So we can actually have a human to actually target. 156 00:11:14,930 --> 00:11:16,750 We can do like the supply chain targeting. 157 00:11:16,910 --> 00:11:21,390 We're not going to get into Lockheed Martin, but we might be able to export him to actually being pivot away into it. 158 00:11:21,610 --> 00:11:23,190 Remember we have the F-35 there. 159 00:11:23,190 --> 00:11:25,430 So we look at the F-35 Twitter feed again. 160 00:11:25,430 --> 00:11:29,690 We've seen, uh, Lockheed Martin, Luke Air Force Base, Royal Air Force. 161 00:11:29,790 --> 00:11:34,090 So we now know that this is again, an official, um, Twitter feed from Lockheed Martin. 162 00:11:34,090 --> 00:11:35,790 We have very high confidence of that. 163 00:11:35,970 --> 00:11:37,790 But you also see there called Billy Flynn. 164 00:11:37,810 --> 00:11:38,630 We look at Billy Flynn. 165 00:11:38,630 --> 00:11:40,210 This is the F-35 test pilot. 166 00:11:40,350 --> 00:11:43,230 So this is now giving us information insight on somebody else. 167 00:11:43,230 --> 00:11:44,430 I'm not going to attack the F-35. 168 00:11:44,430 --> 00:11:46,050 I can't stop the F-35 from flying. 169 00:11:46,090 --> 00:11:49,170 But if I can take down the F-35 pilot, the F-35 doesn't fly. 170 00:11:49,170 --> 00:11:53,190 It's a very clever plane, but I believe it still needs a pilot to actually take off. 171 00:11:54,370 --> 00:11:56,530 So yeah, so quickly that's the end of it. 172 00:11:56,570 --> 00:12:03,170 Um, so the, you do need to register with Twitter to get yourself, uh, uh, what's the word? 173 00:12:03,230 --> 00:12:07,610 Delivery license, uh, code to actually be able to communicate with it. 174 00:12:07,610 --> 00:12:12,790 Um, you're also limited to 3,000 tweets, uh, per search, which I don't think is a restriction. 175 00:12:12,910 --> 00:12:18,830 So someone like Christian Ryan, who's constantly tweeting all the time, I want to see the latest tweets, the latest information, latest people he's talking to. 176 00:12:18,830 --> 00:12:27,990 Because if I try and spoof somebody that's three, four years ago, I think that email has been compromised and they're not going to, uh, believe what, what they're talking to. 177 00:12:27,990 --> 00:12:33,250 So I need to have that up-to-date information for them to actually be able to believe it's working. 178 00:12:33,490 --> 00:12:35,930 So, um, yeah, that's it. 179 00:12:35,930 --> 00:12:36,470 Thank you very much. 180 00:12:36,470 --> 00:12:38,210 I thought I'd quick get us back in time. 181 00:12:38,330 --> 00:12:41,690 Um, so yeah, that's, if you want more information, um, yeah, there you go. 182 00:12:41,690 --> 00:12:42,410 Thank you much.