1 00:00:00,440 --> 00:00:01,740 Signal is an amazing thing. 2 00:00:01,740 --> 00:00:03,040 Privacy is an amazing thing. 3 00:00:03,040 --> 00:00:04,800 It enables a lot of things. 4 00:00:04,880 --> 00:00:06,880 Signal is a very important tool. 5 00:00:07,500 --> 00:00:18,600 As long as we use signal and we just keep an eye out for all the different vulnerabilities and how you can fuck it up. 6 00:00:19,080 --> 00:00:23,220 So we are going to learn how many people , a number of different ways people have fucked it up. 7 00:00:24,020 --> 00:00:26,660 Micah has a tremendous background. 8 00:00:26,660 --> 00:00:34,440 If you are here, you most likely either know his background or he needs none based on the knowledge he's about to drop. 9 00:00:34,500 --> 00:00:37,440 Please give Micah a great round of applause. 10 00:00:37,440 --> 00:00:39,540 And thanks for all the work he's put in. 11 00:00:42,280 --> 00:00:47,060 Let's sit back and enjoy examples of how not to do it. 12 00:00:51,740 --> 00:00:54,120 Hello DEF CON. 13 00:00:54,340 --> 00:00:56,020 Having a good afternoon? 14 00:00:56,020 --> 00:00:57,180 A good day? 15 00:00:58,040 --> 00:00:58,960 Hell yeah. 16 00:00:58,960 --> 00:01:05,780 So today I'm going to tell you the epic story of the signal gate saga. 17 00:01:05,780 --> 00:01:12,820 This is a story about unbelievable incompetence from the highest levels of the Trump administration. 18 00:01:13,320 --> 00:01:17,940 It starts out bad, but then it gets worse. 19 00:01:18,500 --> 00:01:22,400 And then somehow it gets even worse. 20 00:01:23,020 --> 00:01:24,340 I'm Micah Lee. 21 00:01:24,340 --> 00:01:29,960 I'm an independent security researcher and a journalist and an open source developer. 22 00:01:30,540 --> 00:01:34,380 I closely followed the signal gate saga as it unfolded. 23 00:01:34,380 --> 00:01:38,320 I used OSINT to dig into telemessage and blogged about my findings. 24 00:01:38,320 --> 00:01:43,840 I published an analysis of the telemessage signal source code which was cited by congress. 25 00:01:44,500 --> 00:01:50,280 I published articles about the hacks, which I'll get to soon enough, in 404 Media and Wired. 26 00:01:50,980 --> 00:01:55,140 This talk includes a lot of Trump politics, especially at the beginning. 27 00:01:55,240 --> 00:02:01,460 But don't worry, before long we'll get to the mind bogglingly incompetent technical details. 28 00:02:01,780 --> 00:02:04,520 Without further ado, let's start at the beginning. 29 00:02:07,160 --> 00:02:18,960 On March 13th, Mike Waltz, who was Trump's national security advisor at the time, invited the Atlantic's editor in chief, Jeffrey Goldberg, to a signal group with 18 other people. 30 00:02:19,260 --> 00:02:41,860 The group included people like Pete Hegseth, the secretary of defense, John Radcliffe, the director of the CIA, Tulsi Gabbard, the director of national intelligence, Stephen Miller, the White House deputy chief of staff for policy, among other people. 31 00:02:42,200 --> 00:02:46,520 On March 15th, Pete Hegseth posted war plans to the group. 32 00:02:46,520 --> 00:02:51,280 He posted a schedule for a drone strike in Yemen, and then a few hours later, the U.S. 33 00:02:51,280 --> 00:02:54,200 actually dropped bombs on a building there. 34 00:02:54,600 --> 00:02:57,540 This is all according to Goldberg's March 24th article. 35 00:02:57,540 --> 00:03:06,960 And in case you're not aware, before being in charge of the biggest and best funded military on earth, Pete Hegseth was the weekend co-host of Fox and Friends. 36 00:03:07,640 --> 00:03:10,100 Here he is responding to this article. 37 00:03:12,900 --> 00:03:22,360 Can you share how your information about war plans against the Houthis in Yemen was shared with a journalist in the Atlantic? 38 00:03:22,360 --> 00:03:25,180 And were those details classified? 39 00:03:25,180 --> 00:03:47,260 So you're talking about a deceitful and highly discredited so-called journalist who's made a succession of peddling hoaxes time and time again to include the, I don't know, the hoaxes of Russia, Russia, Russia, or the fine people on both sides hoax, or suckers and losers hoax. 40 00:03:47,260 --> 00:03:50,280 So this is the guy that peddles in garbage. 41 00:03:53,400 --> 00:04:01,540 The signal group that Trump administration people used to coordinate the bombing in Yemen had disappearing messages in it. 42 00:04:01,540 --> 00:04:09,100 This means that they were likely violating laws like the federal records act which requires government officials to preserve communications like this. 43 00:04:09,100 --> 00:04:18,300 So immediately after the Atlantic article was published, the government watchdog group American Oversight sued the Trump administration for violating federal records laws. 44 00:04:18,860 --> 00:04:27,980 And at the same time, on March 25th and 26th, Tulsi Gabbard and John Radcliffe testified before the Senate and House Intelligence Committees. 45 00:04:28,000 --> 00:04:31,420 They both claimed that nothing classified was discussed in the signal group. 46 00:04:31,420 --> 00:04:38,540 And they definitely discussed classified information in the signal group, so basically they both lied while testifying under oath to Congress. 47 00:04:40,700 --> 00:04:47,160 Immediately after the senior Trump officials finished lying to Congress, the Atlantic published this follow up story. 48 00:04:47,160 --> 00:04:50,340 It included screenshots of everything posted in the signal group. 49 00:04:52,380 --> 00:04:56,720 In the group, they expressed contempt for European allies. 50 00:04:56,720 --> 00:04:58,360 Here is Vice President J.D. 51 00:04:58,360 --> 00:05:01,760 Vance saying, I just hate bailing Europe out again. 52 00:05:01,780 --> 00:05:05,980 And Pete Hegseth saying, I fully share your loathing of European freeloading. 53 00:05:05,980 --> 00:05:07,200 It's pathetic. 54 00:05:11,230 --> 00:05:15,270 And here is when Pete Hegseth posted the March 15th war plans. 55 00:05:15,630 --> 00:05:19,330 He posted a team update with the timeline for the attack. 56 00:05:19,330 --> 00:05:24,510 At 1215 Eastern, F-18 combat aircrafts launch with their first strike package. 57 00:05:24,530 --> 00:05:27,270 At 1345, the strike window starts. 58 00:05:27,270 --> 00:05:29,790 At 1410, more F-18's launch. 59 00:05:29,790 --> 00:05:33,790 And by 1415, the first bombs will definitely drop. 60 00:05:34,410 --> 00:05:40,330 This is also where he, for some reason, posted, we are currently clean on OPSEC. 61 00:05:43,010 --> 00:05:46,810 Why did Pete Hegseth say, we are currently clean on OPSEC? 62 00:05:46,810 --> 00:05:52,530 Like, did he review some sort of OPSEC checklist and confirm that everything was done correctly? 63 00:05:52,670 --> 00:05:54,270 No, of course he didn't. 64 00:05:54,490 --> 00:05:57,430 What would being clean on OPSEC even entail? 65 00:05:58,310 --> 00:06:06,750 Maybe it would include checking that everyone in their operational signal group was actually supposed to be there before posting the war plans. 66 00:06:07,390 --> 00:06:14,030 The only reason I can think of that Hegseth said, we are currently clean on OPSEC, is that he wanted to sound cool to his friends. 67 00:06:14,030 --> 00:06:16,070 There is really no other reason. 68 00:06:19,020 --> 00:06:22,260 Here's more of the signal messages from later in the day. 69 00:06:22,260 --> 00:06:24,880 This is when they bombed an apartment building. 70 00:06:25,460 --> 00:06:33,500 Mike Waltz posted, the first target, their top missile guy, we had a positive ID of him walking into his girlfriend's building and now it's collapsed. 71 00:06:33,700 --> 00:06:34,140 And J.D. 72 00:06:34,140 --> 00:06:35,640 Vance said, excellent. 73 00:06:36,040 --> 00:06:42,940 The Trump administration had just collapsed an entire residential building full of civilians to target one person. 74 00:06:43,260 --> 00:06:49,580 A lot of the media referred to these chat logs as war plans, but there's a strong argument that this strike was a war crime. 75 00:06:51,280 --> 00:06:58,400 According to Yemen's Ministry of Health, this attack killed 53 people including 5 children and it injured another 98 people. 76 00:06:58,600 --> 00:07:04,420 It's a war crime to intentionally kill civilians in a military operation and that's exactly what they did here. 77 00:07:04,420 --> 00:07:04,980 The U.S. 78 00:07:04,980 --> 00:07:06,820 isn't even at war with Yemen. 79 00:07:07,640 --> 00:07:14,140 Personally I think senior Trump officials talking about classified stuff on signal is irresponsible, sure. 80 00:07:14,140 --> 00:07:17,600 And the way they are going about doing it is incredibly incompetent. 81 00:07:17,600 --> 00:07:21,320 And lying to Congress about it is illegal and there should be repercussions. 82 00:07:21,520 --> 00:07:23,340 But it's not actually horrible. 83 00:07:23,420 --> 00:07:28,300 Collapsing an entire building full of innocent people to kill one person is horrible. 84 00:07:36,950 --> 00:07:40,310 He didn't just share the Yemen war plans with the journalist. 85 00:07:40,310 --> 00:07:49,630 According to reporting by NBC News, he also for some reason shared them in a separate signal group with his wife, his brother and his personal lawyer. 86 00:07:50,410 --> 00:07:53,190 Here is a video clip of NBC's reporting. 87 00:07:56,830 --> 00:07:59,410 Tonight NBC News has learned shortly before U.S. 88 00:07:59,410 --> 00:08:04,650 fighter jets took off to launch airstrikes against Iranian-backed Houthi rebels in Yemen last month. 89 00:08:04,650 --> 00:08:05,570 The head of U.S. 90 00:08:05,570 --> 00:08:17,370 Central Command, Army General Eric Carrillo, used a secure government system to send Defense Secretary Pete Hegseth, his superior, specific details about the imminent operation according to three U.S. 91 00:08:17,370 --> 00:08:20,230 officials with direct knowledge of the exchanges. 92 00:08:20,230 --> 00:08:32,930 Minutes later the sources say Hegseth used his personal phone to send some of that information to at least two group chats on the messaging app Signal, one with Hegseth's wife, his brother and his personal attorney. 93 00:08:32,930 --> 00:08:42,330 The material included when those fighter jets would take off and when they would hit their targets, details that in the wrong hands could put the American pilots in danger. 94 00:08:42,350 --> 00:08:46,590 Hegseth today denied sharing any classified information on Signal. 95 00:08:46,590 --> 00:08:49,050 I look at war plans every single day. 96 00:08:49,050 --> 00:08:59,030 What was shared over Signal then and now, however you characterize it, was informal, unclassified coordinations for media coordination and other things. 97 00:08:59,030 --> 00:09:00,770 That's what I've said from the beginning. 98 00:09:00,770 --> 00:09:04,650 When asked, President Trump again this week said he remains confident in Hegseth. 99 00:09:04,650 --> 00:09:05,350 Oh, Donald. 100 00:09:05,350 --> 00:09:08,970 President Trump, why do you even ask a question like that? 101 00:09:21,380 --> 00:09:23,840 So let's fast forward a few months to July. 102 00:09:24,440 --> 00:09:30,360 Tulsi Gabbard and John Ratcliffe lied to Congress when they said they didn't discuss classified information in the Signal group. 103 00:09:30,660 --> 00:09:34,240 Pete Hegseth has lied repeatedly about the same thing. 104 00:09:34,400 --> 00:09:38,000 This Washington Post article confirms that they were all lying. 105 00:09:38,040 --> 00:09:38,720 The head of U.S. 106 00:09:38,720 --> 00:09:47,600 Central Command, General Michael Eric Carrilla, sent an email over the military's classified network, SIPRNET, that was marked secret slash no foreign. 107 00:09:47,760 --> 00:09:53,440 And so then Hegseth copied war plans from this email to send to random people over Signal. 108 00:09:56,920 --> 00:10:04,060 According to the Guardian, an internal White House investigation figured out how Goldberg got added to the Signal group. 109 00:10:05,460 --> 00:10:15,220 In October, before Trump was elected, Goldberg had emailed the Trump campaign, quote, about a story that criticized Trump for his attitude towards wounded service members. 110 00:10:16,180 --> 00:10:21,080 Someone forwarded the email to Brian Hughes, Trump's campaign spokesperson. 111 00:10:23,220 --> 00:10:30,700 Brian Hughes then copied and pasted the contents of the email, including Goldberg's phone number and his email signature, to Mike Waltz. 112 00:10:30,700 --> 00:10:35,280 At the time, Waltz was the Trump campaign's national security surrogate. 113 00:10:36,060 --> 00:10:38,180 This is from the Guardian article. 114 00:10:38,280 --> 00:10:44,640 According to the White House, the number was erroneously saved during a contact suggestion update by Waltz's iPhone. 115 00:10:44,940 --> 00:10:48,620 So it seems like the real culprit here was Siri. 116 00:10:50,220 --> 00:10:51,520 So let's recap. 117 00:10:51,520 --> 00:10:56,940 Last October, before Trump was elected, Mike Waltz had a contact on his phone for Hughes. 118 00:10:56,940 --> 00:11:00,920 Then Siri updated the contact to include Goldberg's phone number. 119 00:11:02,280 --> 00:11:04,740 Fast forward several months, Trump is president. 120 00:11:04,740 --> 00:11:11,540 Brian Hughes, who used to be the Trump campaign spokesperson, is now the spokesperson for the National Security Council. 121 00:11:11,780 --> 00:11:17,700 Mike Waltz, who used to be the Trump campaign national security surrogate, is the national security advisor. 122 00:11:17,700 --> 00:11:20,540 But apparently, he's still using the same phone. 123 00:11:22,260 --> 00:11:26,780 And when Waltz created his little war crime signal group, he tried to add Hughes. 124 00:11:26,780 --> 00:11:33,520 But since Goldberg's phone number was listed under Hughes' contact card, he actually added Goldberg to the group. 125 00:11:33,820 --> 00:11:40,360 This would not have happened if they were using separate dedicated devices for classified information like they're supposed to. 126 00:11:40,420 --> 00:11:48,440 It also wouldn't have happened if they used whatever NSA recommends for this sort of communication instead of signal on their iPhones. 127 00:11:49,080 --> 00:11:58,140 And don't get me wrong, signal is a very secure messaging app and it's much better if they're using signal than if they use something like telegram. 128 00:11:58,880 --> 00:12:01,720 But they're just really, really bad at off sec. 129 00:12:10,590 --> 00:12:16,530 On May 1st, a Reuters photographer took this photograph of a Trump cabinet meeting in the White House. 130 00:12:16,770 --> 00:12:20,930 The person closest to the camera is the national security advisor, Mike Waltz. 131 00:12:22,030 --> 00:12:26,710 This was actually his last day as national security advisor because he had just gotten demoted. 132 00:12:26,710 --> 00:12:29,590 But even so, Mike Waltz was bored. 133 00:12:29,650 --> 00:12:39,070 Rather than paying attention to the meeting or to the photographer standing right behind him, he was clandestinely checking his messages on the phone under the table. 134 00:12:40,610 --> 00:12:45,270 People quickly zoomed into this photo and noticed that he seemed to be checking signal messages. 135 00:12:45,450 --> 00:12:48,530 And if you look closely, it looks like he has conversations up with J.D. 136 00:12:48,530 --> 00:12:52,270 Vance, Tulsi Gabbard, Marco Rubio and others. 137 00:12:52,410 --> 00:12:57,350 But also, notice that the box at the bottom doesn't say verify your signal pin. 138 00:12:57,350 --> 00:13:00,650 It says verify your TMSGNL pin. 139 00:13:02,370 --> 00:13:11,270 404 media was the first to report that Mike Waltz wasn't using signal, but rather an obscure fork of signal made by a company called TeleMessage. 140 00:13:13,290 --> 00:13:22,250 TeleMessage's marketing material says that the app keeps, quote, intact the signal security and end to end encryption when communicating with other signal users. 141 00:13:22,250 --> 00:13:29,370 And that quote, the only difference is the TeleMessage version captures all incoming and outgoing signal messages for archiving purposes. 142 00:13:29,610 --> 00:13:31,550 What could possibly go wrong? 143 00:13:35,110 --> 00:13:40,530 TeleMessage was founded by Guy Leavitt and Gil Shapira in Tel Aviv, Israel in 1999. 144 00:13:41,010 --> 00:13:44,590 Today it's based in Petah Tikva, which is just east of Tel Aviv. 145 00:13:44,750 --> 00:13:48,630 In February of last year, 2024, the U.S. 146 00:13:48,630 --> 00:13:53,770 based company Smarsh acquired TeleMessage, but it's still run by its Israeli team. 147 00:13:54,770 --> 00:13:58,470 One of the founders, Guy Leavitt, is currently the CEO. 148 00:13:58,550 --> 00:14:01,350 This is from his bio on the TeleMessage website. 149 00:14:01,470 --> 00:14:06,430 They took all of the contents from their website down in May, so this is from an archived version of it. 150 00:14:06,650 --> 00:14:16,610 From 1996 until 1999, he served as, quote, the head of planning and development of one of Israel defense forces intelligence elite technical units. 151 00:14:16,610 --> 00:14:20,490 Then he left Israeli intelligence in 1999 and founded TeleMessage. 152 00:14:21,190 --> 00:14:26,630 The other co-founder is Gil Shapira, and he's currently the vice president of business development. 153 00:14:26,630 --> 00:14:30,350 He was a software developer for the Israeli air force in the 90s. 154 00:14:32,860 --> 00:14:37,660 TeleMessage sells mobile archiver products to corporate and government customers. 155 00:14:37,860 --> 00:14:42,820 These include modified versions of WhatsApp, WeChat, Telegram and Signal. 156 00:14:43,000 --> 00:14:52,600 These apps work just like the normal messaging apps, except that they also make a copy of every message that the app sees and archives them to a server controlled by the customer. 157 00:14:55,410 --> 00:15:04,630 So, when Mike Waltz was bored and checking his TM SGNL messages, he was using TeleMessage's signal capture app. 158 00:15:04,630 --> 00:15:06,090 He wasn't using signal. 159 00:15:06,910 --> 00:15:14,430 Using TeleMessage might make what they're doing slightly less illegal, although there's still the classified information stuff. 160 00:15:14,430 --> 00:15:19,750 But as you'll see, it's much, much less secure than if they were using the real Signal app. 161 00:15:22,430 --> 00:15:26,890 On April 15th, TeleMessage published this blog post about Signalgate. 162 00:15:27,230 --> 00:15:34,930 It explains how using Signal's disappearing messages violates federal records laws and how TeleMessage would solve all of their problems. 163 00:15:37,430 --> 00:15:41,710 So, at what point in time did the Trump administration start using TeleMessage? 164 00:15:41,710 --> 00:15:44,690 Was it before or after they lied to Congress? 165 00:15:44,690 --> 00:15:46,110 I don't know for sure. 166 00:15:46,130 --> 00:15:50,510 But I think that most likely they switched to TeleMessage in response to Signalgate. 167 00:15:50,550 --> 00:15:53,290 After Signalgate, they got sued. 168 00:15:53,290 --> 00:15:55,230 They got grilled by Congress. 169 00:15:55,230 --> 00:15:57,230 They were very embarrassed in the media. 170 00:15:57,230 --> 00:15:58,870 They're still very embarrassed. 171 00:15:58,930 --> 00:16:06,130 Um, and a few weeks after that, TeleMessage itself blogged about how TM SGNL would solve all the Trump administration's problems. 172 00:16:06,130 --> 00:16:10,970 So, my guess is that they probably started using TeleMessage sometime in the second half of April. 173 00:16:15,000 --> 00:16:21,120 When I learned that Waltz was using TM SGNL, I immediately went looking for a copy of the app. 174 00:16:21,180 --> 00:16:26,900 Reading through their website, it became clear that they don't distribute these apps in the app store or in Google Play. 175 00:16:27,280 --> 00:16:30,500 I wanted a copy of the app so that I could request the source code. 176 00:16:30,660 --> 00:16:42,160 Since TM SGNL is clearly a fork of Signal and Signal is released under the AGPL open source license, they would be violating the license if I had a copy of the app and they didn't provide the source code. 177 00:16:42,480 --> 00:16:43,800 But it didn't come to that. 178 00:16:43,800 --> 00:16:50,700 Someone on Mastodon sent me this link to their page on their website that I hadn't found where they published the source code themselves. 179 00:16:52,920 --> 00:16:57,660 So to make it easier for researchers to look into, I pushed copies of the source code to GitHub. 180 00:16:58,060 --> 00:17:00,140 This is the Android version. 181 00:17:00,220 --> 00:17:06,680 And the zip file that I downloaded from their website contained a .git folder complete with a git history and multiple branches. 182 00:17:09,060 --> 00:17:14,760 I published the iPhone source code too , but this version didn't include a git folder, a .git folder. 183 00:17:14,880 --> 00:17:23,920 And in fact, on closer inspection, it looks like that they actually just published the code for Signal for IOS itself and not for TM SGNL. 184 00:17:23,920 --> 00:17:30,100 So I'm pretty sure that TeleMessage is currently violating Signal's AGPL license here for the IOS version. 185 00:17:32,640 --> 00:17:39,400 One of the first things I noticed when I went looking through the Android code was that it includes hard coded credentials. 186 00:17:40,140 --> 00:17:45,100 See the generate talk name and generate talk pass variables at the bottom here? 187 00:17:45,200 --> 00:17:54,940 If you grab the source code for these variables, you can see that they're used for authenticating to TeleMessage's WordPress API to submit debug logs from the app. 188 00:17:55,880 --> 00:18:04,020 So it's absurd that they're hard coding credentials in their app and that they're using a WordPress plug‑in as part of their app's infrastructure. 189 00:18:05,640 --> 00:18:07,880 I actually am very curious. 190 00:18:07,880 --> 00:18:16,000 I obviously didn't try to authenticate to this WordPress API with these credentials, but if somebody did, like what data could they have actually pulled from that WordPress server? 191 00:18:16,000 --> 00:18:16,900 I don't know. 192 00:18:17,400 --> 00:18:21,080 There's no way that this software was audited for security issues. 193 00:18:22,880 --> 00:18:32,280 So anyway, shortly after I published the TM SGNL source code to GitHub, an anonymous source contacted me and told me that they hacked TeleMessage. 194 00:18:35,440 --> 00:18:40,220 I brought the story to 404 Media and published it alongside Joseph Cox. 195 00:18:41,740 --> 00:18:54,920 The hacker had found a trivial vulnerability in TeleMessage's server that gave them access to Java heap dump files, which are basically snapshots of everything in memory in the server's memory at the time it was created. 196 00:18:55,260 --> 00:19:02,620 These files contain user names and password for TeleMessage and passwords for TeleMessage users and also plain text chat logs. 197 00:19:05,280 --> 00:19:09,800 The hacker said, I would say the whole process took about 15 to 20 minutes. 198 00:19:10,200 --> 00:19:12,000 It wasn't much effort at all. 199 00:19:15,610 --> 00:19:21,690 After downloading a heap dump, the hacker grepped it for the word password and found a user name and password. 200 00:19:21,950 --> 00:19:24,710 They tried logging in and this is what they saw. 201 00:19:25,090 --> 00:19:28,910 The hacker sent this screen shot of TeleMessage's admin panel logged in as a U.S. 202 00:19:28,930 --> 00:19:31,030 Customs and Border Protection user. 203 00:19:31,730 --> 00:19:38,870 I've redacted all the details here, but this lists the names, phone numbers and email addresses of 747 members of CVP. 204 00:19:42,830 --> 00:19:46,430 The hacker sent me the heap dump file and I found this in it. 205 00:19:46,430 --> 00:19:48,830 As you can see, this is a big JSON object. 206 00:19:49,750 --> 00:19:55,750 This message is sent to a group called GD Macro, which is from the cryptocurrency firm Galaxy Digital. 207 00:19:56,010 --> 00:19:59,630 It says, just spoke to a DEM staffer on the senate side . 208 00:19:59,630 --> 00:20:08,650 Two co-sponsors, also Brooks and Gillibrand, did not sign the opposition letter, so they think the bill still has a good chance of passage the senate with five more DEMs supporting it. 209 00:20:08,650 --> 00:20:16,330 So, they were trying to get the Genius Act passed, which is a Republican led crypto friendly law that lightly regulates stable coins. 210 00:20:16,330 --> 00:20:22,830 And they're referring to Democratic Senators Kristen Gillibrand and Angela, also Brooks, who stood with Republicans to get it passed. 211 00:20:22,830 --> 00:20:28,210 So this is an example of stuff that people are talking to within the TeleMessage app. 212 00:20:29,610 --> 00:20:36,270 A few weeks after the 404 media story, I wrote an article in Wired that explains the vulnerability itself. 213 00:20:37,890 --> 00:20:41,530 The hacker started by looking at the domain secure. 214 00:20:41,530 --> 00:20:44,650 TeleMessage.com, which is where users log in. 215 00:20:44,650 --> 00:20:50,450 The hacker, quote, noticed that they were hashing passwords to MD5 on the client side. 216 00:20:54,340 --> 00:20:54,940 Yeah. 217 00:20:56,760 --> 00:21:04,360 The hacker also noticed that the login page was programmed in ancient Java technology called JSP. 218 00:21:04,620 --> 00:21:10,980 And so they used a tool called Ferox Buster to see if they could find any JSP files that might be vulnerable that they didn't know about. 219 00:21:12,900 --> 00:21:17,700 And then they also ran Ferox Buster on archive.TeleMessage.com too. 220 00:21:17,700 --> 00:21:20,680 And that's when they found the heap dump end point. 221 00:21:23,060 --> 00:21:24,660 Here's the full URL. 222 00:21:25,960 --> 00:21:31,540 If you made a get request to this URL, the server responded with a Java heap dump. 223 00:21:31,540 --> 00:21:36,320 Which is basically a 150 megabyte file containing a snapshot of the server's memory. 224 00:21:36,500 --> 00:21:37,700 That's it. 225 00:21:46,770 --> 00:21:50,430 Who knows how many years people have been exploiting this? 226 00:21:50,490 --> 00:21:52,850 My source figured it out immediately. 227 00:21:52,850 --> 00:21:55,210 As soon as they started poking at it. 228 00:21:56,590 --> 00:22:03,130 So the archive server was built using Spring Boot, which is an open source framework for making Java applications. 229 00:22:03,590 --> 00:22:12,210 Spring Boot includes a set of features called actuator that are useful for developers for monitoring and debugging the application. 230 00:22:12,270 --> 00:22:14,590 And one of these features is the heap dump end point. 231 00:22:16,470 --> 00:22:24,710 Spring Boot's documentation says, since end points may contain sensitive information, careful consideration should be given about when to expose them. 232 00:22:24,970 --> 00:22:30,790 And as you can see at the bottom, in the latest version at least, the heap dump end point is not exposed by default. 233 00:22:30,790 --> 00:22:34,190 But it was exposed on TeleMessage's archive server. 234 00:22:36,450 --> 00:22:40,390 Here is a blog post from the cloud security company Wiz. 235 00:22:40,390 --> 00:22:46,430 It lists exposed heap dump file as the number one misconfiguration in Spring Boot actuator. 236 00:22:46,810 --> 00:22:53,330 This says that the heap dump end point has been disabled by default since version 1.5 which was released in 2017. 237 00:22:53,670 --> 00:22:58,430 So why was it exposed to the public on archive.TeleMessage.com? 238 00:22:58,430 --> 00:23:00,510 There are 2 possibilities. 239 00:23:00,510 --> 00:23:11,330 Either TeleMessage reconfigured their server to expose it to the public or they haven't updated their version of Spring Boot in 8 years and they're still using the old default. 240 00:23:14,860 --> 00:23:22,360 The day after my 404 media story about the hack, NBC News reported that TeleMessage took down its service. 241 00:23:22,360 --> 00:23:27,280 So if you were just scrambling to write down that URL a minute ago, sorry, it doesn't work anymore. 242 00:23:29,080 --> 00:23:35,020 I confirmed at the time that archive.TeleMessage.com was rejecting HTTP requests and it still is. 243 00:23:35,420 --> 00:23:39,380 This is also around the time that TeleMessage took everything down from their website. 244 00:23:39,380 --> 00:23:43,500 Which is why all of my screenshots of their website are from archived versions of it. 245 00:23:44,900 --> 00:23:49,940 The NBC News article also mentions that a second hacker hacked TeleMessage. 246 00:23:50,140 --> 00:23:55,200 The source who contacted me said that they just exploited TeleMessage enough to confirm that it was vulnerable. 247 00:23:55,240 --> 00:24:00,160 But NBC's source said that they, quote, downloaded a large cache of files. 248 00:24:00,360 --> 00:24:04,720 So that weekend, at least 2 separate hackers had hacked TeleMessage. 249 00:24:04,720 --> 00:24:09,880 And this is within days of the photograph of Mike Waltz using TMSGNL. 250 00:24:13,320 --> 00:24:22,960 After publishing my story in 404 media, I decided to analyze TMSGNL's Android app source code to figure out exactly how it works. 251 00:24:22,960 --> 00:24:26,220 And I published this detailed analysis which you can read on my website. 252 00:24:26,500 --> 00:24:35,860 I basically concluded that TeleMessage lied about supporting end to end encryption and that this Israeli company can access plain text messages going through its service. 253 00:24:38,360 --> 00:24:45,420 TeleMessage's modified signal app is almost identical to the real signal app except there's extra code that also archives messages. 254 00:24:47,180 --> 00:24:53,720 TMSGNL uses the official signal servers and TMSGNL users can have end to end encrypted chats with signal users. 255 00:24:53,720 --> 00:25:00,140 If you're a signal user, there is no way to tell whether or not the people you're talking to are using signal or TMSGNL. 256 00:25:00,940 --> 00:25:09,500 The difference is, the TeleMessage app monitors for all incoming and outgoing messages and then saves them into a local SQLite database. 257 00:25:11,280 --> 00:25:22,460 Then it uses a background syncing service to regularly query the database for messages that haven't been archived yet and then it sends those to the archived server over HTTPS in plain text. 258 00:25:22,460 --> 00:25:24,220 These are already plain text messages. 259 00:25:24,460 --> 00:25:29,820 The TeleMessage archive server box here is archive.TeleMessage.com. 260 00:25:29,940 --> 00:25:33,100 The server that handed out heap dumps to anyone who asked. 261 00:25:36,990 --> 00:25:44,310 Once the messages are on the archive server, TeleMessage then delivers them to their final destination which is controlled by the customer. 262 00:25:44,330 --> 00:25:49,830 This is either an SMTP email server, an SFTP file server or Microsoft 365. 263 00:25:49,870 --> 00:25:53,310 But in any case, they all go through the archive server first. 264 00:25:55,290 --> 00:25:59,530 This is from TeleMessage's marketing material for their modified signal app. 265 00:25:59,530 --> 00:26:05,310 It advertises end to end encryption from the mobile phone through to the corporate archive. 266 00:26:05,450 --> 00:26:07,190 This is a lie. 267 00:26:07,930 --> 00:26:13,730 I could tell it was a lie because the Android app source code seems to just send plain text messages to their archive server. 268 00:26:13,730 --> 00:26:21,910 But even without analyzing the source code, I could still tell that they lied because the Java heap dump files include plain text signal messages. 269 00:26:24,490 --> 00:26:30,870 Senator Ron Wyden published a letter demanding that the Justice Department investigate the quote, serious threat to U.S. 270 00:26:30,870 --> 00:26:38,890 national security posed by TeleMessage, a federal contractor that sold dangerously insecure communications software to the White House and other federal agencies. 271 00:26:38,910 --> 00:26:43,410 He cited my research that proves TeleMessage had lied about end to end encryption. 272 00:26:45,070 --> 00:26:50,110 And he also demanded an investigation into whether the company has shared U.S. 273 00:26:50,110 --> 00:26:57,350 government communications with the Israeli government and whether the Israeli government played any role in the product's dangerous design. 274 00:27:01,160 --> 00:27:09,440 So remember how NBC News reported there was a second hacker who hacked TeleMessage and they downloaded a large cache of files. 275 00:27:10,140 --> 00:27:18,420 On May 19th, distributed denial of secrets released hundreds of gigabytes of heap dumps hacked from TeleMessage's archive server. 276 00:27:18,680 --> 00:27:21,380 That's the large cache of files from the second hacker. 277 00:27:21,840 --> 00:27:31,320 If you're not familiar with them, DDoS secrets is a non -profit transparency collective that publishes hacked and leaked data sets for journalists and researchers and I'm a member of the collective. 278 00:27:31,640 --> 00:27:40,020 Because the data has so much personal identifiable information in it, they're only distributing this data set to journalists and researchers but not to the public. 279 00:27:40,020 --> 00:27:42,640 But they distribute lots of other data sets just to everyone. 280 00:27:44,660 --> 00:27:47,900 Reuters was the first news organization to report on this data set. 281 00:27:47,900 --> 00:27:56,340 They had found more than 60 government users of TeleMessage apps with material from disaster responders, customs officials, several U.S. 282 00:27:56,340 --> 00:28:01,040 diplomatic staffers, at least one White House staffer and members of the secret service. 283 00:28:05,420 --> 00:28:07,600 I dug into this data set. 284 00:28:08,600 --> 00:28:11,200 Heap dump data is not easy to work with. 285 00:28:11,200 --> 00:28:14,100 And this data is also extremely incomplete. 286 00:28:14,540 --> 00:28:24,980 It's common to find a piece of a JSON object that contained a plain text message but it's cut off early or to find a single message in a group chat without any other messages around it. 287 00:28:25,480 --> 00:28:29,640 Most of the chat logs are from May 4th which makes sense since that's the day it was hacked. 288 00:28:29,640 --> 00:28:35,020 But I also found older messages from as far back as late 2022 in the heap dumps. 289 00:28:35,780 --> 00:28:43,520 I would expect that the archive server would forward the messages to the corporate final destinations and then delete them. 290 00:28:43,520 --> 00:28:48,840 But if that were the case, why were there messages from 2022 in memory on May 4th? 291 00:28:49,000 --> 00:28:55,840 So who knows what their retention policy is but it's certainly possible that they retain all of the messages sent through their service. 292 00:28:59,310 --> 00:29:02,050 Java heap dump files are binary files. 293 00:29:02,070 --> 00:29:09,850 They're intended for debugging Java applications and they contain information about all the objects in memory at the time the heap dump was created. 294 00:29:09,970 --> 00:29:12,310 I don't really care about most of that stuff though. 295 00:29:12,310 --> 00:29:16,310 So the simplest way to find the juicy stuff is to run strings on the files. 296 00:29:17,110 --> 00:29:23,730 When you run strings on a file, it outputs all the printable strings which includes JSON objects and it ignores all the binary data. 297 00:29:23,730 --> 00:29:33,110 So I ran strings on each heap dump file and saved the output which turned 384 gigabytes of heap dumps into 83 gigabytes of text data. 298 00:29:34,810 --> 00:29:40,690 Here's an example of a plain text signal message in JSON format that I found in the heap dumps. 299 00:29:41,190 --> 00:29:44,930 It was sent to a group called Upstanding Citizens Brigade. 300 00:29:44,930 --> 00:29:48,490 It includes the phone numbers of the sender and all the recipients. 301 00:29:48,810 --> 00:29:52,930 I redacted the full phone numbers here but I left the area codes. 302 00:29:53,070 --> 00:30:00,030 And the message says, you can't just say a thing, not know anything about it and not expect to be challenged. 303 00:30:00,710 --> 00:30:03,330 So whatever they're talking about it sounds very contentious. 304 00:30:03,330 --> 00:30:11,590 But this is an example of proof that TMSGNL is not in fact end to end encrypted from the mobile phone through to the corporate archive. 305 00:30:15,200 --> 00:30:21,340 I knew what some chat messages looked like from my earlier journalism but I didn't know if they were all in the exact same format. 306 00:30:21,660 --> 00:30:26,440 And it was also possible that the heap dumps contained other useful information besides chat logs. 307 00:30:26,580 --> 00:30:34,140 So I decided to write code that would extract every single completely intact JSON object from all of the text data and save it into a database. 308 00:30:34,480 --> 00:30:36,760 This way I could easily ignore duplicates. 309 00:30:36,760 --> 00:30:43,120 There were millions of duplicates because it's just taking memory dump minute after minute after minute from the same server. 310 00:30:44,840 --> 00:30:48,160 And I can maybe discover other interesting types of JSON objects too. 311 00:30:48,280 --> 00:30:53,200 So the Python code here takes a string as input and outputs a list of JSON objects that it found in that string. 312 00:30:55,400 --> 00:31:00,660 My code found lots of chat messages but it also found a ton of useless JSON objects too. 313 00:31:01,020 --> 00:31:05,480 I manually looked through hundreds of objects to determine if they look useful or not. 314 00:31:05,480 --> 00:31:09,800 And if they didn't look interesting to me I wrote code to skip similar objects in the future. 315 00:31:10,520 --> 00:31:15,380 The JSON on the left has some examples of useless objects that I skipped. 316 00:31:15,420 --> 00:31:19,100 And the code on the right is how I determine which objects to skip. 317 00:31:19,100 --> 00:31:22,820 So for example I'm skipping a JSON object that just contains first name. 318 00:31:23,040 --> 00:31:24,740 And this is somewhat subjective. 319 00:31:24,980 --> 00:31:30,760 So it's always good if more than one person digs into data sets like this because different people will make different decisions. 320 00:31:30,920 --> 00:31:35,380 And it's entirely possible that I accidentally skipped some important stuff without realizing it. 321 00:31:35,380 --> 00:31:38,520 Which I actually learned just a few days ago that I did. 322 00:31:38,520 --> 00:31:40,740 I'll talk about that in a few minutes. 323 00:31:42,280 --> 00:31:45,980 Here's an example of one of the useful types of JSON objects. 324 00:31:45,980 --> 00:31:47,740 This is a validation object. 325 00:31:47,740 --> 00:31:53,480 And it appears to include the phone number and email address of each user who authenticated to the telemessage server. 326 00:31:53,700 --> 00:31:55,660 So in this case this person works for U.S. 327 00:31:55,660 --> 00:32:00,320 Customs and Border Protection because they have a CBP.DHS.gov email address. 328 00:32:00,400 --> 00:32:04,120 I found over a thousand distinct email addresses in the validation data. 329 00:32:06,970 --> 00:32:10,990 When the code found useful data it inserted it into a database. 330 00:32:11,310 --> 00:32:17,450 I ended up with a database like this with separate tables for groups, messages, users and other types of data. 331 00:32:18,010 --> 00:32:24,010 In this screen shot I'm running a SQL query to select all group chats ordered by the group with the most messages. 332 00:32:25,230 --> 00:32:28,770 If you can see one of the groups is a WhatsApp group. 333 00:32:28,770 --> 00:32:31,850 It's very small but it's called MPD command staff. 334 00:32:31,850 --> 00:32:36,350 I looked up the individual phone numbers for this group and discovered that it's for the Washington D.C. 335 00:32:36,350 --> 00:32:38,210 Metropolitan Police Department. 336 00:32:44,630 --> 00:32:50,370 A SQL database of chat logs is way more useful than hundreds of gigabytes of heap dumps. 337 00:32:50,370 --> 00:32:52,250 But it's still pretty annoying to use. 338 00:32:52,250 --> 00:32:56,350 So I made myself a user interface called telemessage explorer. 339 00:32:56,810 --> 00:32:59,010 And I published it as open source. 340 00:32:59,010 --> 00:33:01,330 So that other journalists and researchers can use it. 341 00:33:01,330 --> 00:33:09,470 So telemessage explorer is open source but you still need to request access from DDoS secrets to get the actual data set to use it. 342 00:33:09,770 --> 00:33:11,850 It runs locally in docker containers. 343 00:33:15,150 --> 00:33:23,670 Here's a screen shot of the web app, the telemessage explorer app which is just a much nicer way to browse the database than running manual SQL queries. 344 00:33:23,790 --> 00:33:26,470 So in this screen shot I searched for signal. 345 00:33:26,930 --> 00:33:31,230 And there's, this is showing signal groups and there's actually only 28 signal groups. 346 00:33:31,230 --> 00:33:34,210 So by far most of the chat logs are from whatsapp. 347 00:33:34,210 --> 00:33:36,290 By like a huge margin. 348 00:33:36,290 --> 00:33:39,050 And then after that most of them are from telegram. 349 00:33:39,050 --> 00:33:41,890 And only a small amount are from signal and WeChat. 350 00:33:41,890 --> 00:33:48,150 But also this is like most of the, the sample is from a single Sunday in May. 351 00:33:48,150 --> 00:33:52,350 So it, it's not very representative of everyone that uses this app. 352 00:33:52,570 --> 00:33:58,330 Um, but notice that one group at the bottom called POTUS, Rome Vatican Press GC. 353 00:34:00,530 --> 00:34:03,390 POTUS is short for President of the United States. 354 00:34:03,950 --> 00:34:06,630 Here's the detailed view of that signal group. 355 00:34:06,630 --> 00:34:09,810 This is a group that contains at least one White House staffer. 356 00:34:10,330 --> 00:34:16,270 Um, there aren't that many messages in this group but they seem to be discussing a Trump visit to the Vatican to meet with Pope Leo. 357 00:34:19,280 --> 00:34:21,500 And this is the detailed view of the message. 358 00:34:21,700 --> 00:34:28,820 It was sent on May 4th and one of the recipients is the White House staffer and it's the only White House staffer that I could find in the data set. 359 00:34:28,820 --> 00:34:30,940 It's also a deleted signal message. 360 00:34:30,960 --> 00:34:34,660 So TeleMessage must archive a copy of each message before it gets deleted. 361 00:34:35,280 --> 00:34:40,860 It says, do you think our official videographer can go to the official only section given that message above. 362 00:34:41,360 --> 00:34:47,820 But like this, uh, a lot of the data in this data set, I don't actually have the message above so I don't really know what they're talking about. 363 00:34:50,500 --> 00:34:54,540 TeleMessage Explorer also lets you browse the validation objects that I showed earlier. 364 00:34:54,600 --> 00:35:00,480 So in this screenshot I searched for email addresses that include .gov and I found 71 of them. 365 00:35:01,740 --> 00:35:09,000 And keep in mind that all of the people listed here, um, just happened to log into the TeleMessage service on Sunday, May 4th, 2025. 366 00:35:09,000 --> 00:35:11,540 So there's a lot more users. 367 00:35:14,560 --> 00:35:17,240 And here's a last minute update to the talk. 368 00:35:17,240 --> 00:35:30,340 Um, someone from Reporters United, which is an investigative journalism network in Greece, um, posted this issue to the TeleMessage Explorer repo like an hour or so before I was like leaving for the airport to come to DEF CON. 369 00:35:30,720 --> 00:35:35,640 Um, and it turns out that Strings wasn't doing as good a job as I was hoping. 370 00:35:35,640 --> 00:35:44,080 Strings was filtering out Unicode characters, which means that I was missing a whole lot of stuff in the data sets that, um, was not in using the line alphabet. 371 00:35:44,340 --> 00:35:50,580 Um, and so they actually wrote a custom JSON carver program in Rust that does a much better job of than Strings. 372 00:35:50,780 --> 00:36:01,620 I thought that there were only about 60,000 messages in the data set, but it turns out that there's actually about 100,000 messages in the data set that I just learned a few days ago. 373 00:36:01,840 --> 00:36:06,320 Um, and a lot of the new messages they didn't know about are in Chinese and in Hebrew. 374 00:36:07,040 --> 00:36:15,560 Um, and I don't think that any, any of the journalists looking through this data set have actually started looking through any of them except for maybe some of these people in Greece. 375 00:36:17,480 --> 00:36:21,220 So here's an example of one of the new messages that I just found yesterday. 376 00:36:21,900 --> 00:36:25,520 Um, this is a WhatsApp message from May 3rd and it's written in Hebrew. 377 00:36:26,180 --> 00:36:35,840 Uh, the Google translate translation says, uh, it translates it to protection and protection of all IDF soldiers and a speedy recovery for the few wounded. 378 00:36:35,840 --> 00:36:38,520 May God's presence be in the blink of an eye. 379 00:36:38,540 --> 00:36:45,140 So just for some context, the IDA, the IDF is committing a genocide against Palestinians in Gaza. 380 00:36:53,150 --> 00:36:56,930 Sam Altman, the CEO of OpenAI is in the data set. 381 00:36:57,050 --> 00:37:02,990 Um, here he is sending a message to the CEO of Altimeter Capital, a major investor in OpenAI. 382 00:37:02,990 --> 00:37:07,010 And unsurprisingly, they're talking about lobbying in Washington D .C. 383 00:37:10,400 --> 00:37:12,900 Jared Kushner's in the data set too. 384 00:37:13,200 --> 00:37:16,580 Kushner is the husband of Donald Trump's daughter Ivanka . 385 00:37:16,880 --> 00:37:25,280 Trump's senior White House policy advisor on artificial intelligence sent Kushner this sketchy ass message about the United Arab Emirates. 386 00:37:25,720 --> 00:37:31,920 Kushner isn't a member of the Trump administration, yet here he is exchanging WhatsApp messages with Trump's AI guy. 387 00:37:32,160 --> 00:37:41,300 Uh, I don't have any more details about this conversation other than this single text message, but I am entirely convinced that it's corruption, whatever it is. 388 00:37:44,990 --> 00:37:48,470 And here's the Kushner family WhatsApp group. 389 00:37:48,630 --> 00:37:57,090 So, an interesting thing about telemessage, um, the telemessage apps is that they don't just archive the messages of the people using the apps. 390 00:37:57,090 --> 00:38:00,150 They archive all messages that the apps have access to. 391 00:38:00,150 --> 00:38:12,810 So Jared Kushner is probably the only person in his family that, um, is using a telemessage app, yet, uh, this Israeli company has access to his private family group chat. 392 00:38:12,810 --> 00:38:15,190 What could possibly go wrong? 393 00:38:21,080 --> 00:38:28,120 This has been a story about unbelievable incompetence at the highest levels of the Trump administration. 394 00:38:28,440 --> 00:38:35,260 Mike Waltz added a journalist's phone number to his iPhone contact for the National Security Council spokesperson. 395 00:38:35,280 --> 00:38:40,380 He then invited the journalist to a signal group where they discussed war crimes. 396 00:38:41,420 --> 00:38:56,140 Pete Hagseth, who runs the largest military in the world, with an 850 billion dollar annual budget and over 5,000 nuclear warheads, told the signal group with the journalist, we are currently clean on OPSEC. 397 00:38:57,400 --> 00:39:01,380 Tulsi Gabbard and John Radcliffe lied to Congress about it. 398 00:39:01,620 --> 00:39:08,160 Then, instead of using signal, which is very secure if used properly, they switched to TMSGNL. 399 00:39:08,180 --> 00:39:16,260 They trusted telemessage, a utterly incompetent company founded by Israeli intelligence agents to archive their chat logs. 400 00:39:16,620 --> 00:39:22,540 And Mike Waltz checked his TMSGNL messages while a Reuters photographer was right behind him. 401 00:39:23,020 --> 00:39:33,360 Telemessage lied about end to end encryption in their product and they exposed an end point without any authentication that let anyone who wants download a heap dump from their archive server. 402 00:39:34,140 --> 00:39:36,760 This is really bad. 403 00:39:39,710 --> 00:39:43,930 The, the stupidest people in America are in charge. 404 00:39:43,930 --> 00:39:47,650 And they are not, in fact, clean on OPSEC. 405 00:39:57,870 --> 00:39:59,210 Thank you. 406 00:39:59,210 --> 00:40:09,850 Um, and if you're interested in learning more about this type of data analysis, I wrote a book called Hacks, Leaks and Revelations, The Art of Analyzing Hacked and Leaked Data. 407 00:40:10,070 --> 00:40:16,210 And I'm doing a book signing tomorrow with No Starch Press at 11 o'clock, um, in the vendor area. 408 00:40:16,470 --> 00:40:20,670 I'm not sure how much time we have, but maybe a few minutes for questions. 409 00:40:21,770 --> 00:40:22,870 I think. 410 00:40:44,350 --> 00:40:45,970 What, what about China? 411 00:40:54,830 --> 00:41:01,810 So the question is, are there any other indications of any other intelligence agencies targeting telemessage? 412 00:41:01,810 --> 00:41:11,630 Um, I mean, I haven't, I haven't actually seen indications of other intelligence agencies targeting telemessage by like looking at the source code. 413 00:41:11,630 --> 00:41:26,870 It's, other than the fact that it's so easy to hack, it would be ridiculous if, you know, Chinese intelligence and Russian intelligence and Israeli intelligence weren't, weren't already like gathering up lots of data for the last many, many years. 414 00:41:26,870 --> 00:41:34,110 I'm not sure how long CBP has been using telemessage, but I think at least since 2022, maybe before that. 415 00:41:34,270 --> 00:41:48,250 And, um, also the other customers, there's like lots of cryptocurrency firms and other finance companies and, um, and then a bunch of government contractors and, and also, I don't know, who knows how many like Israeli companies and Israeli contractors, 416 00:41:48,250 --> 00:41:51,250 like military contractors there are in this too. 417 00:41:51,250 --> 00:41:52,570 Um, yeah. 418 00:41:52,570 --> 00:41:53,430 Good question. 419 00:42:01,240 --> 00:42:02,840 Thank you.