1 00:00:00,500 --> 00:00:03,120 So cool, let's start with the next talk. 2 00:00:03,120 --> 00:00:05,420 I'll be giving a quick introduction to our next speaker. 3 00:00:05,420 --> 00:00:07,860 Up next, we have Dr. 4 00:00:07,860 --> 00:00:15,680 Megan Squire, who is a Deputy Director of Data Analytics and OSINT at the Southern Poverty Law Center. 5 00:00:16,020 --> 00:00:31,780 Now, she has a background as a computer scientist, and she is using it to build SPLCs, a new data lab, which is used to track and expose networks of hate and extremism. 6 00:00:31,780 --> 00:00:34,220 We have a true superwoman over here. 7 00:00:35,540 --> 00:00:53,660 She is the author of two books on data cleaning and data mining, and has over 50 peer-reviewed articles and book chapters, including several Best Paper Awards for her work in tracing extremism, online fundraising, and cryptocurrency. 8 00:00:54,000 --> 00:01:00,380 The topic that she will be covering today is tapping the OSINT potential of Telegram. 9 00:01:00,380 --> 00:01:04,340 Now, we all know that... how many of us use Telegram over here? 10 00:01:05,080 --> 00:01:05,920 Wow. 11 00:01:05,920 --> 00:01:11,820 So we all know that whenever you go across a channel, there is another feature to see similar channels, right? 12 00:01:12,280 --> 00:01:33,200 So what Megan and her team did is that they're going to release a new tool over here at DEF CON, where they will analyze this similar channel feature, and in this process, she will then show how to use social network analysis and techniques to uncover previously hidden relationships between channels and the platform. 13 00:01:33,800 --> 00:01:36,660 Right, so here there's a lot of OSINT coming into picture. 14 00:01:36,660 --> 00:01:38,240 Please give it up for Megan. 15 00:01:38,740 --> 00:01:40,100 Talk to Megan. 16 00:01:42,980 --> 00:01:45,280 I'm short, so I'm going to move that down. 17 00:01:45,280 --> 00:01:50,160 Also, I have a quiet voice, so if you can't hear me, just go like this, and I'll start yelling. 18 00:01:50,500 --> 00:01:53,580 Yeah, so I'm Megan, and this is my talk about Telegram. 19 00:01:53,580 --> 00:02:00,720 So I work for the Southern Poverty Law Center, as mentioned, and I'm in the Intelligence Project. 20 00:02:00,840 --> 00:02:08,860 As an organization, we're like a civil rights org, we're a non-profit, and within the Intelligence Project, we have a unit called the Data Lab. 21 00:02:08,860 --> 00:02:17,060 And so that's... I'm in charge of that, and what we do is create data-driven intelligence about how hate and extremism works, mostly in the U.S., right? 22 00:02:17,060 --> 00:02:20,200 But sometimes we have an international context as well. 23 00:02:20,220 --> 00:02:27,280 And so we produce some of the products you see there, like our hate map and different network maps, to try to explain how this phenomenon works. 24 00:02:28,800 --> 00:02:37,400 Telegram's one of our most common data sources that we use, like, pretty much constantly, because it's so highly used by these groups and individuals that we're studying. 25 00:02:37,660 --> 00:02:41,700 And you probably know, a lot of hands went up when he asked how many people were using Telegram. 26 00:02:41,700 --> 00:02:44,440 So you probably know that it's a messaging app, right, primarily. 27 00:02:44,480 --> 00:02:48,140 It has chats, you can talk person-to-person on there. 28 00:02:48,140 --> 00:02:53,680 There's some level of encryption, although it's debated how strong or how good that is. 29 00:02:53,860 --> 00:02:56,440 There's also group chatting, things like that. 30 00:02:56,440 --> 00:03:09,480 Telegram also has broadcast-style channels, so you can see the screenshot there of InfoWars, it's like a disinformation network in the U.S., and that's an example of a group channel. 31 00:03:09,800 --> 00:03:15,780 You can see that there's, like, postings, and people can click like on them, or use different emojis. 32 00:03:16,240 --> 00:03:24,560 Also over on the right-hand side, you can see, like, there's different files, uploads, and voice messaging videos, and stuff like that. 33 00:03:24,560 --> 00:03:27,020 So it's a pretty full-featured application. 34 00:03:27,020 --> 00:03:37,180 It has a lot of things that make it appealing to anyone, right, but also those same features are very appealing to the groups and individuals, the adversaries that we study. 35 00:03:39,400 --> 00:03:45,520 Recently, Telegram also launched a mini-app store, so you can make apps now inside the product. 36 00:03:45,700 --> 00:03:48,820 In this way, it's kind of like a real platform, right? 37 00:03:48,820 --> 00:03:52,700 It's a platform upon which they want you to build your own software and stuff. 38 00:03:52,700 --> 00:03:54,840 So it's pretty full-featured. 39 00:03:55,000 --> 00:04:02,780 And one of my favorite things about Telegram is that it has a very robust API, so we can program to it, right, and pull data out. 40 00:04:03,060 --> 00:04:12,020 A lot of social media apps are like that, but Telegram has more than most of them, and it's a little bit more giving, right? 41 00:04:12,020 --> 00:04:14,840 It's a little bit friendlier to people like us that want to study it. 42 00:04:15,760 --> 00:04:22,160 So some of the OSINT opportunities you might have already heard about, or these are pretty well covered, so I'm not going to spend too much time here. 43 00:04:22,160 --> 00:04:25,240 I want to get to the new stuff that's a little more juicy, right? 44 00:04:25,300 --> 00:04:34,560 But some of the things that people use Telegram and OSINT for would be its API, as I mentioned, very robust, lots of features, you can get a lot out of there. 45 00:04:34,560 --> 00:04:36,420 Not everything, but a lot of things. 46 00:04:37,480 --> 00:04:42,660 It's got a lot of opportunity for searching for users and exposure that way. 47 00:04:42,660 --> 00:04:51,460 A lot of exposure opportunities in terms of like putting in a phone number, you can find the profile, maybe you're in the same group with the person, that sort of stuff. 48 00:04:52,420 --> 00:04:55,800 People have usernames on there, so that's an opportunity. 49 00:04:56,080 --> 00:04:57,620 Profile pictures, etc. 50 00:04:58,460 --> 00:05:01,320 There's also geolocation opportunities in Telegram. 51 00:05:01,320 --> 00:05:11,840 Now, this is configurable through security settings, but those are labyrinthine and very complicated, so there's a lot of opportunity for people to make mistakes, which can be good, right? 52 00:05:11,840 --> 00:05:15,980 If that's the approach that you're interested in them taking. 53 00:05:16,360 --> 00:05:24,520 Sometimes it's hard for us, though, to protect our own selves, but geolocation is one of the options that a lot of ink has been spilled about this one. 54 00:05:24,720 --> 00:05:30,220 You can actually search and find people nearby using geolocation inside Telegram. 55 00:05:31,760 --> 00:05:36,760 There's a new OSINT opportunity, though, in Telegram that came about last November. 56 00:05:36,760 --> 00:05:51,340 November 2023, they launched a feature called Similar Channels, which allows you to see for each channel on Telegram, they'll show up to 100 other quote-unquote similar channels, so channels that are similar to it. 57 00:05:51,640 --> 00:05:57,900 And the way that similarity is determined is whether the channels share a user base. 58 00:05:58,280 --> 00:06:02,240 So, channel A and channel B, do they have the same users in them? 59 00:06:02,440 --> 00:06:05,880 If so, they're considered a similar channel. 60 00:06:06,140 --> 00:06:14,300 And you can see a screenshot up here showing just a sample channel and where to find the Similar Channels button there, okay? 61 00:06:14,300 --> 00:06:23,200 And this is in both the online, I mean, the web version, the desktop version, and the mobile OS version, iOS version. 62 00:06:24,520 --> 00:06:29,720 So, as soon as I saw this feature come out, I got really excited, because I've been doing this for a long time. 63 00:06:29,800 --> 00:06:34,120 And this feature reminded me of one that used to be available in Facebook, but they took it away. 64 00:06:34,280 --> 00:06:37,600 Find me outside to find out why they took it away. 65 00:06:37,600 --> 00:06:50,620 But they took away this feature back in 2018, and I've missed it, because it was really, really, really handy for finding what groups were in common with each other, what groups were similar, and what groups shared a membership base. 66 00:06:51,300 --> 00:06:55,500 So, Facebook used to offer API access to their group membership roster. 67 00:06:55,500 --> 00:06:59,780 So, if you make a group in Facebook, it would allow you to download the entire roster. 68 00:06:59,780 --> 00:07:05,320 And from that, you could then figure out what groups shared the same membership. 69 00:07:06,020 --> 00:07:11,140 So, I used this way back when to create innumerable network graphs. 70 00:07:11,140 --> 00:07:13,080 I mean, just hundreds of them. 71 00:07:13,080 --> 00:07:21,600 But one of the most common, or the most famous, is this one, which showed the circles on the network diagram are each Facebook group, and then they're connected. 72 00:07:21,600 --> 00:07:26,120 The edge, the connection line, shows the ones that share membership. 73 00:07:26,300 --> 00:07:27,900 So, overlaps, right? 74 00:07:28,540 --> 00:07:32,600 Person in one circle is the same as the person in another circle. 75 00:07:32,740 --> 00:07:41,460 And what I used this for back in 2017, 18 timeframe, was to explain the Unite the Right event that was in Charlottesville, Virginia, in 2017. 76 00:07:41,460 --> 00:07:42,300 You might have heard about it. 77 00:07:42,300 --> 00:07:45,320 It was a big, like, neo-Nazi march, basically. 78 00:07:45,340 --> 00:07:53,520 So, what I did was use the information inside of Facebook to understand the groups that sent people to that rally. 79 00:07:54,700 --> 00:08:09,260 So, important caveat when we're comparing the way Telegram's new similar channels feature works with something that we might be familiar with, like, Facebook from the past, is that Telegram does not show you the similar channels that you've already joined. 80 00:08:09,260 --> 00:08:22,300 So, just know this going in, you're going to need a fresh... if you want to really see all the similar channels for two sets, you're going to need a fresh, clean Telegram that has no... hasn't joined anything, right? 81 00:08:22,300 --> 00:08:24,140 Either that, or you'll have to leave all the channels you've joined. 82 00:08:24,140 --> 00:08:26,300 And if you're like me, you've joined, like, a thousand channels. 83 00:08:26,300 --> 00:08:27,620 So, that's kind of awkward. 84 00:08:27,620 --> 00:08:30,440 So, create a fresh Telegram, a nice, clean one, right? 85 00:08:30,780 --> 00:08:36,560 In this way, the Telegram similar channels are really more like suggested channels, right? 86 00:08:36,560 --> 00:08:41,820 Because if you're already in it, it's not going to show it to you, even if that channel might be similar to the one that you're looking at. 87 00:08:42,240 --> 00:08:46,860 So, they've actually created... I think it's more like a recommendation algorithm, really. 88 00:08:46,860 --> 00:08:50,580 It's a little bit different than just similarity. 89 00:08:51,220 --> 00:08:55,060 And that... in that way, it's also different than the old Facebook method, too. 90 00:08:55,560 --> 00:09:00,960 So, on the left-hand side here, you can see a screenshot of a clean Telegram. 91 00:09:01,100 --> 00:09:04,100 I look at a channel , it shows me four similar, right? 92 00:09:04,300 --> 00:09:06,680 On the right-hand side, you can see one I've already joined . 93 00:09:06,680 --> 00:09:11,720 I've already joined a bunch of channels in that account, so it's not showing me the ones that I'm in. 94 00:09:11,920 --> 00:09:14,140 The list is smaller, right? 95 00:09:14,140 --> 00:09:19,260 So, if you try to do what I'm going to show you with the Telegram, that you've already joined a bunch of things, you're not going to get full results. 96 00:09:19,260 --> 00:09:21,860 I made this mistake early on, because I didn't know how this worked. 97 00:09:22,540 --> 00:09:23,180 All right. 98 00:09:24,000 --> 00:09:24,520 All right. 99 00:09:24,520 --> 00:09:27,900 So, the code for what I'm going to show you today is out on GitHub. 100 00:09:27,900 --> 00:09:32,140 I know you probably don't want to scan a QR code, which just goes to GitHub, the link that's shown there. 101 00:09:32,940 --> 00:09:35,920 It's just on my public GitHub account. 102 00:09:36,300 --> 00:09:41,600 And this code base includes the SQL creates, assuming you have a MySQL database. 103 00:09:41,900 --> 00:09:43,600 It's about five tables. 104 00:09:43,600 --> 00:09:44,900 One of them's a jobs table. 105 00:09:44,900 --> 00:09:49,020 There's a couple tables for tracking the channels themselves. 106 00:09:49,020 --> 00:09:56,040 And then there's the sort of the big table, which is the one that maps which channel is the other channel similarity partner. 107 00:09:56,040 --> 00:09:57,320 So, the pairs. 108 00:09:57,840 --> 00:10:06,180 I also give some sample SQL queries, and those are labeled out, so you can, you know, run some samples and kind of get used to the data, so you're not just jumping in there blind. 109 00:10:06,460 --> 00:10:11,180 And then the code, of course, that's just one Python script. 110 00:10:11,520 --> 00:10:15,660 You know, not the end of the world, but it's got about, I don't know, five or six functions in there. 111 00:10:16,040 --> 00:10:26,820 And what you're going to do is provide a seed list of channels, and then it will go out, and I'll explain the methodology where it goes and grabs the similar channels and then pops them in the database, and then we can query them. 112 00:10:28,560 --> 00:10:29,160 All right. 113 00:10:29,160 --> 00:10:36,080 So, my experiment that we'll talk about today was with U.S.-based extremist groups on Telegram. 114 00:10:36,160 --> 00:10:38,340 We use a snowball collection method. 115 00:10:38,340 --> 00:10:45,540 So, this means I give a channel, it goes out and finds the similar channels, and then each of those, it finds the similar channels, and each of them, so on. 116 00:10:45,540 --> 00:10:45,720 Right? 117 00:10:45,720 --> 00:10:49,480 So, you can get really big, really quick doing this kind of method. 118 00:10:49,840 --> 00:10:53,620 Each of those rounds is called a generation. 119 00:10:53,640 --> 00:10:59,120 So, we start with the first generation, and then their children, the second generation, and then third, and so on. 120 00:10:59,480 --> 00:11:01,580 I only keep the ones that are new. 121 00:11:01,620 --> 00:11:06,040 So, if I've already seen a channel, I don't need to write it to the database, but I do write the pair. 122 00:11:06,040 --> 00:11:09,100 I do write the fact that it's somebody's similar channel. 123 00:11:10,220 --> 00:11:18,480 I started with a seed list of 335 channels from a variety of different extremist and hate ideologies, you know, the ones that we study. 124 00:11:18,480 --> 00:11:20,160 But you could start with whatever. 125 00:11:20,160 --> 00:11:21,720 You can even start with one channel. 126 00:11:21,720 --> 00:11:30,740 You could even start with your own channels that you subscribe to, but keep in mind that you'll only receive similar channels that you're not already in. 127 00:11:30,780 --> 00:11:32,460 So, be aware. 128 00:11:33,780 --> 00:11:34,420 All right. 129 00:11:34,420 --> 00:11:38,600 So, with my experiment, I did three rounds of the snowball to start. 130 00:11:39,380 --> 00:11:42,520 I mentioned generation one was the list of 335, right? 131 00:11:42,520 --> 00:11:43,840 So, that's my seed list. 132 00:11:44,120 --> 00:11:50,440 And then generation two, I ended up with 2652 new channels that it discovered. 133 00:11:50,440 --> 00:11:58,580 So, those 335, I discovered 2600 new ones, basically, that they were connected to, that I didn't know about. 134 00:11:58,580 --> 00:12:02,700 And then from there, another generation took all those middle ones, right? 135 00:12:02,700 --> 00:12:04,180 And then all their children. 136 00:12:04,180 --> 00:12:13,780 So, I'm up to 28,000 nodes, real quick, and over 220,000 relationships between those. 137 00:12:13,860 --> 00:12:14,480 Okay. 138 00:12:14,480 --> 00:12:15,260 I know. 139 00:12:15,260 --> 00:12:17,120 And I could have gone on, right? 140 00:12:17,120 --> 00:12:21,000 Somebody asked me yesterday when I was talking about this in like, I don't know, coffee line or something. 141 00:12:21,000 --> 00:12:23,140 They said, did you... does Telegram have rate limiting? 142 00:12:23,140 --> 00:12:24,680 Oh, yes, they absolutely do. 143 00:12:24,960 --> 00:12:26,580 So, you will be rate limited. 144 00:12:26,600 --> 00:12:28,680 I wrote my code very poorly too. 145 00:12:28,680 --> 00:12:32,720 So, I rate limited myself by not parallelizing it and doing it properly. 146 00:12:32,720 --> 00:12:34,700 But yeah, you will get rate limited. 147 00:12:34,700 --> 00:12:41,080 So, it took me about a month, actually, to run this through the experimentation, rewriting my code, screwing it up, trying it. 148 00:12:41,080 --> 00:12:44,820 So, you'll benefit from... my code's already been kind of fixed. 149 00:12:44,820 --> 00:12:46,140 Hopefully, it still works. 150 00:12:47,180 --> 00:12:47,620 But yeah. 151 00:12:47,620 --> 00:12:50,500 So, be patient and you probably will get rate limited. 152 00:12:52,160 --> 00:13:02,980 And then once I've got those nodes, my groups, my similar channels, and my edges, so the relationship between them, I'm gonna mock those up in a social network diagram using Gephi. 153 00:13:02,980 --> 00:13:04,540 So, I'm gonna show you how that works too. 154 00:13:04,540 --> 00:13:04,940 Okay. 155 00:13:04,940 --> 00:13:06,000 I don't have code for that. 156 00:13:06,000 --> 00:13:08,600 It's mostly just a software package, but it is free. 157 00:13:08,700 --> 00:13:11,560 And I'll show you how I modeled it in there. 158 00:13:11,560 --> 00:13:14,180 And then it's pretty straightforward to use. 159 00:13:15,240 --> 00:13:15,620 All right. 160 00:13:15,620 --> 00:13:18,100 So, version zero of my network. 161 00:13:18,460 --> 00:13:21,780 I've got the data all loaded into Gephi. 162 00:13:21,780 --> 00:13:24,280 You can see the ugly network there down at the bottom. 163 00:13:24,360 --> 00:13:26,660 I used Forest Atlas 2 layout. 164 00:13:26,660 --> 00:13:40,240 If you've ever done social network mapping, that just means that it throws all the circles, all the channels down on the graph, and then starts to rearrange them to put the similar ones together on the map, right? 165 00:13:40,300 --> 00:13:44,020 So, you can kind of start to see some clusters here, but it's pretty messy. 166 00:13:44,020 --> 00:13:45,360 We call this a hairball . 167 00:13:45,500 --> 00:13:48,100 It's like, nobody would want to read this. 168 00:13:48,100 --> 00:13:49,440 I don't really learn much from it. 169 00:13:49,440 --> 00:13:50,500 It's not very good. 170 00:13:50,500 --> 00:13:54,040 So, we're gonna need to keep going. 171 00:13:54,040 --> 00:13:55,920 We're gonna need to do a little more work here. 172 00:13:56,280 --> 00:13:59,100 So, I'm gonna start with some pruning strategies. 173 00:13:59,100 --> 00:14:02,980 This just means removing nodes so that I can make more sense of what I have. 174 00:14:03,020 --> 00:14:09,400 So, here's some techniques that I tried, and I'll tell you the ones that worked and the ones that didn't and why they worked or didn't. 175 00:14:09,480 --> 00:14:12,260 So, the first thing I tried was language detection. 176 00:14:12,300 --> 00:14:14,380 I'm interested in U.S.-based groups. 177 00:14:14,380 --> 00:14:16,340 They primarily speak English. 178 00:14:16,500 --> 00:14:20,720 So, I thought, well, why don't I just... I bet I've got a lot of junk in here that's not English. 179 00:14:20,720 --> 00:14:22,140 And I'm not interested in those groups. 180 00:14:22,140 --> 00:14:23,580 Why don't I just take them out? 181 00:14:23,840 --> 00:14:29,660 And if later I want to do an international-based project, I'll rerun it again with those and figure it out later. 182 00:14:30,260 --> 00:14:34,020 So, I wrote some Python code to detect the languages. 183 00:14:34,020 --> 00:14:38,560 I used the lang detect, unit decode, and lang codes for this. 184 00:14:38,560 --> 00:14:48,880 And so, basically, what I did was just take the title of the Telegram channel and then the description of the channel, and I just detected what language it was and threw out the ones that weren't English. 185 00:14:48,880 --> 00:14:51,780 Unfortunately, I had a couple problems. 186 00:14:52,040 --> 00:14:55,960 One was most of the titles and descriptions were in English. 187 00:14:55,960 --> 00:14:59,900 And then the other problem was a lot of them weren't detected properly. 188 00:14:59,900 --> 00:15:03,020 So, it was in English, but it called it Turkish or something. 189 00:15:04,480 --> 00:15:04,980 Yeah. 190 00:15:04,980 --> 00:15:06,700 So, it just wasn't very effective. 191 00:15:06,960 --> 00:15:13,140 I also thought for a while about taking a sample of the postings on the channels to, like, see if those were English. 192 00:15:13,140 --> 00:15:15,080 And I thought, I think I can do better. 193 00:15:15,080 --> 00:15:16,780 So, I just tried some other techniques. 194 00:15:16,780 --> 00:15:18,080 I was being a little lazy. 195 00:15:18,840 --> 00:15:21,260 The next thing I tried was unpopular channels. 196 00:15:21,260 --> 00:15:26,180 So, I thought, well, why don't I just prune what we call chandeliers or pendants? 197 00:15:26,180 --> 00:15:30,740 These are channels that don't have enough people pointing to them. 198 00:15:30,820 --> 00:15:33,900 So, they only got suggested by one or two other channels. 199 00:15:33,900 --> 00:15:35,140 They're not very popular. 200 00:15:35,220 --> 00:15:37,940 So, I thought about throwing those out and that worked a little bit better. 201 00:15:37,940 --> 00:15:40,000 I'm going to show you the results of that in a minute. 202 00:15:41,000 --> 00:15:47,940 The other thing I did was to use network metrics to actually... that's my hacker tracker telling me I'm supposed to be somewhere else. 203 00:15:47,940 --> 00:15:49,140 Don't worry, I'm not leaving. 204 00:15:49,840 --> 00:15:56,100 So, the next thing I thought was using network metrics to prune out the channels that have what we call, like, poor scores. 205 00:15:56,200 --> 00:15:57,340 They're not influential. 206 00:15:57,340 --> 00:15:58,720 They have low betweenness. 207 00:15:58,720 --> 00:15:59,800 They look like an island. 208 00:15:59,800 --> 00:16:00,840 They're, like, being weird. 209 00:16:00,840 --> 00:16:03,860 They just don't, like, work very well with the network. 210 00:16:04,200 --> 00:16:06,920 And so, I'm going to show you some examples of that, too. 211 00:16:07,020 --> 00:16:11,520 The two sets of those that I pruned out right away from that prior diagram that you saw. 212 00:16:11,760 --> 00:16:14,160 And, in fact, I'll go back real quick to that. 213 00:16:14,160 --> 00:16:18,700 See, up at the top there, there's, like, an island there that's kind of off to itself. 214 00:16:18,700 --> 00:16:21,340 And then there's one on the far right-hand side. 215 00:16:21,520 --> 00:16:24,880 So, those two I pruned out right away. 216 00:16:25,400 --> 00:16:27,420 And here's the version 2 of the network. 217 00:16:27,420 --> 00:16:28,480 It's still kind of gross. 218 00:16:28,480 --> 00:16:29,980 Don't worry, we're going to make it better. 219 00:16:29,980 --> 00:16:34,520 But at least now I've got, like, a cohesive... I've got a cohesive blob, right? 220 00:16:34,520 --> 00:16:36,040 I don't have things, like, way out. 221 00:16:36,080 --> 00:16:41,280 And I'll just go ahead and tell you the two that I pruned out were the Telegram-branded channels themselves. 222 00:16:41,280 --> 00:16:43,320 The one was, like, Telegram Tips or something. 223 00:16:43,440 --> 00:16:44,760 Also, that's a huge channel. 224 00:16:44,760 --> 00:16:46,520 It had several million members in it. 225 00:16:46,520 --> 00:16:51,440 So, it was messing up my sizing, too, because it was the largest ball and it made all the other balls look small. 226 00:16:52,020 --> 00:17:02,220 Then the other one that I pruned out was, like, a very interesting but irrelevant to me collection of Ethiopian religious channels, which was the one that was up on the far right. 227 00:17:02,220 --> 00:17:03,500 So, I got rid of those. 228 00:17:03,540 --> 00:17:08,460 And now we have a cohesive blob that I can do a little bit more with. 229 00:17:08,460 --> 00:17:10,640 So, some structure, but I'd like more. 230 00:17:11,440 --> 00:17:16,900 The first thing I did here to try to produce more structure in the diagram was to colorize the network. 231 00:17:16,900 --> 00:17:23,480 So, here you can see the black circles are my first generation. 232 00:17:23,480 --> 00:17:25,440 So, this is the seed list that I started with. 233 00:17:25,440 --> 00:17:28,980 This is the 335 nodes that I began with. 234 00:17:28,980 --> 00:17:32,940 And then everything else, all the pink dots are the second generation. 235 00:17:33,100 --> 00:17:37,620 So, what I'm looking for here is to make sure that my seed list is pretty well spread out. 236 00:17:37,620 --> 00:17:40,640 I don't want, like, all my seeds in one section. 237 00:17:40,640 --> 00:17:50,960 I want them spread out and, like, distributed, dispersed, because what I'm going to do next is start to look at what I think is going to be the underlying structure, which is ideology. 238 00:17:50,960 --> 00:17:54,800 And so, I want to make sure that I have a good sample. 239 00:17:56,480 --> 00:18:00,700 When I colorize the network for ideology, it looks like this. 240 00:18:00,700 --> 00:18:05,560 So, what I've done here is use a Louvain neighborhood finding algorithm. 241 00:18:05,560 --> 00:18:06,860 This is inside Gephi. 242 00:18:06,860 --> 00:18:08,100 You don't have to write it. 243 00:18:08,260 --> 00:18:09,460 I didn't write it. 244 00:18:09,680 --> 00:18:10,820 But it's just inside there. 245 00:18:10,820 --> 00:18:16,240 And it will help you find the natural clusters of channels that go together. 246 00:18:16,560 --> 00:18:20,120 So, you can tweak this to have more or less neighborhoods. 247 00:18:20,120 --> 00:18:21,960 Here I used about seven. 248 00:18:22,060 --> 00:18:23,960 And each neighborhood is a color. 249 00:18:24,240 --> 00:18:31,200 So, what this is doing, what the algorithm is doing is it's going, okay, I'm going to physically put the dots that go together together. 250 00:18:31,260 --> 00:18:40,740 And then I'm going to colorize them and I'm going to look at separating the colors based on what's dissimilar from each other. 251 00:18:40,740 --> 00:18:45,180 So, it's both doing similarity to cluster and then dissimilarity to separate the colors. 252 00:18:45,860 --> 00:18:51,780 And so, this is useful because it's going to show me the kinds of channels that seem to go together. 253 00:18:52,000 --> 00:18:56,140 And then what I can do is actually investigate by putting the labels on. 254 00:18:56,140 --> 00:19:02,240 So, you know, this circle is Proud Boys and this circle is some other way power group or something. 255 00:19:02,240 --> 00:19:06,740 I can put the labels on and then determine what those clusters mean. 256 00:19:06,840 --> 00:19:08,740 Like, what do they represent? 257 00:19:08,740 --> 00:19:09,840 So, what is orange? 258 00:19:09,840 --> 00:19:10,780 Who are those groups? 259 00:19:10,780 --> 00:19:12,020 What are they about? 260 00:19:12,480 --> 00:19:25,180 When I do that, and this took a long time because I had to investigate the actual labels for the dots in every single one of those neighborhoods, I see that, yes, the neighborhoods actually are pretty accurate. 261 00:19:25,520 --> 00:19:28,780 I've got a cluster of QAnon groups over there on the far right. 262 00:19:28,780 --> 00:19:34,520 I've got a cluster of MAGA, like, sort of Trump-y style groups right next to QAnon. 263 00:19:34,520 --> 00:19:35,520 Go figure. 264 00:19:35,520 --> 00:19:36,840 Not an accident. 265 00:19:37,020 --> 00:19:42,060 Then I've got a bunch of Proud Boys groups that I've colorized gray. 266 00:19:42,400 --> 00:19:47,180 Groups that are into sharing, like, sort of extremist memes and stuff. 267 00:19:47,240 --> 00:19:49,240 I've got some white power groups. 268 00:19:49,620 --> 00:19:54,140 Graypers, which is a US-based sort of anti-Semitic group. 269 00:19:54,140 --> 00:19:57,340 Some traditional Christian groups. 270 00:19:57,960 --> 00:19:59,500 Other white power groups. 271 00:19:59,500 --> 00:20:01,260 And those actually were interesting. 272 00:20:01,320 --> 00:20:07,920 I had three white power clusters, but they were separated out by the tactics that the groups take part in. 273 00:20:08,460 --> 00:20:11,020 Now, this required some domain knowledge to understand, right? 274 00:20:11,020 --> 00:20:13,580 I had to know what these groups were about and what they're into. 275 00:20:13,900 --> 00:20:20,460 But the social network process told me that there's three different things going on. 276 00:20:20,460 --> 00:20:22,180 You figure out what they are. 277 00:20:22,320 --> 00:20:26,820 So then I can go in and be like, okay, it looks like this group is different than this. 278 00:20:26,820 --> 00:20:28,620 What's different about these two clusters? 279 00:20:28,620 --> 00:20:34,400 Oh, one of them's really into media and the other one's into showing up on the ground and beating up people or whatever. 280 00:20:38,000 --> 00:20:40,280 There was an interesting cluster down at the bottom. 281 00:20:40,620 --> 00:20:42,660 The one there labeled geopolitics. 282 00:20:42,720 --> 00:20:44,740 This one was pretty surprising. 283 00:20:44,740 --> 00:20:49,580 It's also got the, I don't know if you can see this, but it's got the largest node on the diagram. 284 00:20:49,580 --> 00:20:50,440 It's got the largest. 285 00:20:50,440 --> 00:20:53,680 So the nodes are sized here by how many people are in the channel. 286 00:20:54,260 --> 00:21:00,660 So that big green pea down at the bottom looks like a vegetable or something. 287 00:21:00,700 --> 00:21:05,440 That's actually a channel called... I forget what it's called. 288 00:21:05,440 --> 00:21:07,160 It's a Russian channel. 289 00:21:07,300 --> 00:21:10,500 And it's a media channel. 290 00:21:10,560 --> 00:21:19,380 The other green circle nodes in that green area are channels devoted to geopolitical intelligence. 291 00:21:19,960 --> 00:21:26,140 And they're mostly connected into the MAGA wing and the memes and the white power wing. 292 00:21:26,160 --> 00:21:27,500 So it's kind of an interesting finding. 293 00:21:27,500 --> 00:21:29,140 I was not expecting that at all. 294 00:21:30,060 --> 00:21:33,040 In my seed list, I only had one of those channels. 295 00:21:33,440 --> 00:21:41,780 But by just including the one, all the other ones, you find out who they all pointed to and who was members of all these other things that I didn't even know existed. 296 00:21:43,320 --> 00:21:51,360 All right, the next thing we're going to do to try to make sure that we've got a good understanding of what's happening in this map is we're going to calculate what's called network metrics. 297 00:21:51,360 --> 00:21:53,540 Now I could do a whole talk just on this. 298 00:21:53,540 --> 00:21:57,420 This is like the math stuff that's underneath that drawing that you saw. 299 00:21:57,420 --> 00:22:02,040 So underneath the actual network, why are those two dots next to each other? 300 00:22:02,040 --> 00:22:04,380 So this is the math that's going into that. 301 00:22:05,200 --> 00:22:14,220 I found through a lot of painful trial and error that some of the simplest and easiest to understand network metrics were the most effective here. 302 00:22:14,300 --> 00:22:19,120 So I didn't actually have to do a lot of fancy social network science. 303 00:22:20,380 --> 00:22:24,700 Probably the most useful metric was what we call the n-degree. 304 00:22:24,700 --> 00:22:27,660 So this is how many other channels are pointing to you. 305 00:22:28,180 --> 00:22:29,900 How popular are you? 306 00:22:29,900 --> 00:22:33,320 How many other channels name you as their similar channel? 307 00:22:33,640 --> 00:22:35,280 That's called the n-degree. 308 00:22:35,280 --> 00:22:52,400 And just by taking my list of channels and sorting it, highest n-degree at the top to least popular, lowest degree at the bottom, I could immediately see that, for example, this thing called Zoomer Waffen had 564 other channels pointing to it and sharing members, 309 00:22:52,400 --> 00:22:55,500 but it only pointed to 60 others. 310 00:22:55,500 --> 00:23:00,400 So it was very popular despite not particularly pointing to a lot of other channels. 311 00:23:00,400 --> 00:23:03,560 It could have pointed to up to 100, remember, but it only pointed to 60. 312 00:23:03,560 --> 00:23:05,600 But 560 people pointed to it. 313 00:23:05,600 --> 00:23:06,820 So that's kind of interesting. 314 00:23:08,340 --> 00:23:14,460 So another metric that we can use, this one's a slightly more of a mouthful, but it's called the eigenvector centrality. 315 00:23:14,460 --> 00:23:16,880 And this one you can think of like the way Google works. 316 00:23:16,880 --> 00:23:32,260 I don't know if you know how PageRank works or used to work or at its simplest how PageRank works, but essentially the Google search relevance algorithm says I'm going to rank you higher the more important pages you point to and that point to you, right? 317 00:23:32,260 --> 00:23:34,920 So we have a similar thing going on here. 318 00:23:35,100 --> 00:23:37,340 The channel gets a higher score. 319 00:23:37,400 --> 00:23:39,820 It's normalized between 0 and 1. 320 00:23:39,820 --> 00:23:42,800 So 1 is the highest you can get right there. 321 00:23:42,840 --> 00:23:46,880 I'm going to give you a higher score the more important channels point to you. 322 00:23:48,400 --> 00:23:57,140 So we see whatever that top zoomer waffin or whatever, that one still got a pretty high score there, but we also see that this Midnight Rider channel actually got a perfect score there. 323 00:23:57,200 --> 00:24:02,040 If you look at that channel's placement on the graph, it's right in the middle of Mago World. 324 00:24:02,060 --> 00:24:03,760 It's got a lot of channels pointing in. 325 00:24:03,760 --> 00:24:05,360 It's doing a lot of heavy lifting. 326 00:24:05,500 --> 00:24:12,500 That was another channel that I did not have in my mental model, but this social network analysis told me that I was wrong. 327 00:24:12,500 --> 00:24:15,080 It told me I was missing something and I had to go check this out. 328 00:24:15,100 --> 00:24:18,540 Once I went there, I realized, oh yeah, that's a really important channel. 329 00:24:18,540 --> 00:24:22,600 I did not even know this person, but they have a ton of followers and a lot of influence. 330 00:24:22,760 --> 00:24:27,880 So I was able to correct my own mental model just by looking at the numbers. 331 00:24:29,420 --> 00:24:36,600 All right, the next thing we're going to do, and this is probably the last thing we're going to do, we're going to look for suspicious things going on. 332 00:24:36,640 --> 00:24:39,380 So I'm always wondering how people are gaming Telegram, right? 333 00:24:39,380 --> 00:24:41,820 It's full of scams and all this nutty stuff. 334 00:24:41,900 --> 00:24:45,000 So I started seeing this in my graph too. 335 00:24:45,000 --> 00:24:48,440 I saw weird stuff, like weird shapes that shouldn't be there. 336 00:24:48,700 --> 00:24:50,080 Suspicious things. 337 00:24:50,080 --> 00:24:59,880 For example, on the screen you can see, if you zoom way in and add labels, you can see a cluster of channels that's only connected to the Columbus Proud Boys. 338 00:25:00,460 --> 00:25:01,940 Who are the Columbus Proud Boys? 339 00:25:01,940 --> 00:25:02,840 Well, Columbus, Ohio. 340 00:25:02,840 --> 00:25:04,460 They have a Proud Boys chapter, apparently. 341 00:25:04,460 --> 00:25:05,120 I don't know. 342 00:25:05,280 --> 00:25:09,960 And here's, I don't know, a handful of other channels that have nothing to do with anything. 343 00:25:09,960 --> 00:25:11,540 There's really random names. 344 00:25:11,740 --> 00:25:14,840 All they do is connect to each other and then to the Columbus Proud Boys. 345 00:25:14,840 --> 00:25:16,520 Like, that's clearly suspicious. 346 00:25:16,520 --> 00:25:17,760 What's going on there? 347 00:25:18,620 --> 00:25:23,620 Sure enough, some of those channels have now had their similar channels featured disabled. 348 00:25:23,620 --> 00:25:26,860 They were basically inauthentic channels. 349 00:25:26,860 --> 00:25:27,500 They were fake. 350 00:25:27,500 --> 00:25:33,580 And they were just going and joining random stuff and trying to create, if it's a chat, they were trying to create conversation. 351 00:25:33,580 --> 00:25:38,580 Or they were trying to appear on someone's similar channel so that you would click in and join them. 352 00:25:38,580 --> 00:25:41,120 Like, they were just not authentic at all. 353 00:25:42,480 --> 00:25:46,500 Here's another one that I found that was in the blue, the sort of white power area. 354 00:25:46,920 --> 00:25:53,020 There was a channel for a white nationalist podcaster. 355 00:25:53,100 --> 00:25:59,760 And when you hover over, you see that there's this cluster of oddly named channels that pointed to it. 356 00:25:59,840 --> 00:26:03,740 They have seemed to have nothing to do with that mentality or mindset. 357 00:26:03,740 --> 00:26:08,760 And when you go to the channels, it's all just like women sort of trying to flirt with you type stuff. 358 00:26:08,760 --> 00:26:09,340 Yeah. 359 00:26:10,680 --> 00:26:24,820 Here's another case where there was very clearly in the network diagram and a sort of archipelago, I called it, like a little island chain of channels that sort of did nothing but point to each other and to one controlled channel. 360 00:26:26,140 --> 00:26:28,660 All of those channels had names of U.S. 361 00:26:28,660 --> 00:26:32,620 political figures, but they were spelled weird or in the reverse order. 362 00:26:32,620 --> 00:26:38,080 So instead of being like real Donald Trump, it was Donald real Trump, that kind of stuff. 363 00:26:38,080 --> 00:26:55,360 So when you click in, I discovered that every single one of the channels in that list was purchased, the username was purchased using the Telegram's username purchasing feature, where you can just basically buy money to have that name. 364 00:26:55,840 --> 00:27:09,120 So they were all created, usernames paid for, and then joined each other, had a control channel that was managing them, and then that channel joined legitimate channels. 365 00:27:09,120 --> 00:27:18,980 And this whole scam was essentially designed to funnel people into grifts and holocaust denial and other things like that. 366 00:27:18,980 --> 00:27:31,180 So as soon as you get, as soon as you click to follow that quote-unquote similar channel, you're presented with, you know, the opportunity to buy Jesus coins and, you know, whatever all else. 367 00:27:31,320 --> 00:27:34,700 Yeah, Trump stickers or something, I don't know. 368 00:27:34,700 --> 00:27:39,860 So it's just people trying to use the structure of Telegram to make a buck, right? 369 00:27:39,860 --> 00:27:47,900 But again, I wouldn't have discovered that if I hadn't modeled it with the social network and then looked at the pattern. 370 00:27:48,620 --> 00:27:52,600 All right, so the OSINT wrap-up, and we'll probably have time for a couple questions if y'all have any. 371 00:27:52,980 --> 00:28:10,460 The similar channels feature in Telegram can expose which channels have similar users, which channels are the most popular for a given user base, which channels are being used for inauthentic behavior within a group of channels, which ones are the fake ones, 372 00:28:10,460 --> 00:28:24,320 which channels are conducting inauthentic behavior, so running scams and trying to glom on to other more popular user bases, and then which channels are being targeted for others to conduct that inauthentic behavior. 373 00:28:24,320 --> 00:28:25,780 So you can see the marks, right? 374 00:28:25,780 --> 00:28:27,600 You can see the ones that they're targeting. 375 00:28:28,560 --> 00:28:29,960 All right, that is my talk. 376 00:28:29,960 --> 00:28:32,580 Thanks for coming, and if you have questions, I'd love to hear them.