WEBVTT

00:00.440 --> 00:01.740
Signal is an amazing thing.

00:01.740 --> 00:03.040
Privacy is an amazing thing.

00:03.040 --> 00:04.800
It enables a lot of things.

00:04.880 --> 00:06.880
Signal is a very important tool.

00:07.500 --> 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.

00:19.080 --> 00:23.220
So we are going to learn how many people , a number of different ways people have fucked it up.

00:24.020 --> 00:26.660
Micah has a tremendous background.

00:26.660 --> 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.

00:34.500 --> 00:37.440
Please give Micah a great round of applause.

00:37.440 --> 00:39.540
And thanks for all the work he's put in.

00:42.280 --> 00:47.060
Let's sit back and enjoy examples of how not to do it.

00:51.740 --> 00:54.120
Hello DEF CON.

00:54.340 --> 00:56.020
Having a good afternoon?

00:56.020 --> 00:57.180
A good day?

00:58.040 --> 00:58.960
Hell yeah.

00:58.960 --> 01:05.780
So today I'm going to tell you the epic story of the signal gate saga.

01:05.780 --> 01:12.820
This is a story about unbelievable incompetence from the highest levels of the Trump administration.

01:13.320 --> 01:17.940
It starts out bad, but then it gets worse.

01:18.500 --> 01:22.400
And then somehow it gets even worse.

01:23.020 --> 01:24.340
I'm Micah Lee.

01:24.340 --> 01:29.960
I'm an independent security researcher and a journalist and an open source developer.

01:30.540 --> 01:34.380
I closely followed the signal gate saga as it unfolded.

01:34.380 --> 01:38.320
I used OSINT to dig into telemessage and blogged about my findings.

01:38.320 --> 01:43.840
I published an analysis of the telemessage signal source code which was cited by congress.

01:44.500 --> 01:50.280
I published articles about the hacks, which I'll get to soon enough, in 404 Media and Wired.

01:50.980 --> 01:55.140
This talk includes a lot of Trump politics, especially at the beginning.

01:55.240 --> 02:01.460
But don't worry, before long we'll get to the mind bogglingly incompetent technical details.

02:01.780 --> 02:04.520
Without further ado, let's start at the beginning.

02:07.160 --> 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.

02:19.260 --> 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.

02:42.200 --> 02:46.520
On March 15th, Pete Hegseth posted war plans to the group.

02:46.520 --> 02:51.280
He posted a schedule for a drone strike in Yemen, and then a few hours later, the U.S.

02:51.280 --> 02:54.200
actually dropped bombs on a building there.

02:54.600 --> 02:57.540
This is all according to Goldberg's March 24th article.

02:57.540 --> 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.

03:07.640 --> 03:10.100
Here he is responding to this article.

03:12.900 --> 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?

03:22.360 --> 03:25.180
And were those details classified?

03:25.180 --> 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.

03:47.260 --> 03:50.280
So this is the guy that peddles in garbage.

03:53.400 --> 04:01.540
The signal group that Trump administration people used to coordinate the bombing in Yemen had disappearing messages in it.

04:01.540 --> 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.

04:09.100 --> 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.

04:18.860 --> 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.

04:28.000 --> 04:31.420
They both claimed that nothing classified was discussed in the signal group.

04:31.420 --> 04:38.540
And they definitely discussed classified information in the signal group, so basically they both lied while testifying under oath to Congress.

04:40.700 --> 04:47.160
Immediately after the senior Trump officials finished lying to Congress, the Atlantic published this follow up story.

04:47.160 --> 04:50.340
It included screenshots of everything posted in the signal group.

04:52.380 --> 04:56.720
In the group, they expressed contempt for European allies.

04:56.720 --> 04:58.360
Here is Vice President J.D.

04:58.360 --> 05:01.760
Vance saying, I just hate bailing Europe out again.

05:01.780 --> 05:05.980
And Pete Hegseth saying, I fully share your loathing of European freeloading.

05:05.980 --> 05:07.200
It's pathetic.

05:11.230 --> 05:15.270
And here is when Pete Hegseth posted the March 15th war plans.

05:15.630 --> 05:19.330
He posted a team update with the timeline for the attack.

05:19.330 --> 05:24.510
At 1215 Eastern, F-18 combat aircrafts launch with their first strike package.

05:24.530 --> 05:27.270
At 1345, the strike window starts.

05:27.270 --> 05:29.790
At 1410, more F-18's launch.

05:29.790 --> 05:33.790
And by 1415, the first bombs will definitely drop.

05:34.410 --> 05:40.330
This is also where he, for some reason, posted, we are currently clean on OPSEC.

05:43.010 --> 05:46.810
Why did Pete Hegseth say, we are currently clean on OPSEC?

05:46.810 --> 05:52.530
Like, did he review some sort of OPSEC checklist and confirm that everything was done correctly?

05:52.670 --> 05:54.270
No, of course he didn't.

05:54.490 --> 05:57.430
What would being clean on OPSEC even entail?

05:58.310 --> 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.

06:07.390 --> 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.

06:14.030 --> 06:16.070
There is really no other reason.

06:19.020 --> 06:22.260
Here's more of the signal messages from later in the day.

06:22.260 --> 06:24.880
This is when they bombed an apartment building.

06:25.460 --> 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.

06:33.700 --> 06:34.140
And J.D.

06:34.140 --> 06:35.640
Vance said, excellent.

06:36.040 --> 06:42.940
The Trump administration had just collapsed an entire residential building full of civilians to target one person.

06:43.260 --> 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.

06:51.280 --> 06:58.400
According to Yemen's Ministry of Health, this attack killed 53 people including 5 children and it injured another 98 people.

06:58.600 --> 07:04.420
It's a war crime to intentionally kill civilians in a military operation and that's exactly what they did here.

07:04.420 --> 07:04.980
The U.S.

07:04.980 --> 07:06.820
isn't even at war with Yemen.

07:07.640 --> 07:14.140
Personally I think senior Trump officials talking about classified stuff on signal is irresponsible, sure.

07:14.140 --> 07:17.600
And the way they are going about doing it is incredibly incompetent.

07:17.600 --> 07:21.320
And lying to Congress about it is illegal and there should be repercussions.

07:21.520 --> 07:23.340
But it's not actually horrible.

07:23.420 --> 07:28.300
Collapsing an entire building full of innocent people to kill one person is horrible.

07:36.950 --> 07:40.310
He didn't just share the Yemen war plans with the journalist.

07:40.310 --> 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.

07:50.410 --> 07:53.190
Here is a video clip of NBC's reporting.

07:56.830 --> 07:59.410
Tonight NBC News has learned shortly before U.S.

07:59.410 --> 08:04.650
fighter jets took off to launch airstrikes against Iranian-backed Houthi rebels in Yemen last month.

08:04.650 --> 08:05.570
The head of U.S.

08:05.570 --> 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.

08:17.370 --> 08:20.230
officials with direct knowledge of the exchanges.

08:20.230 --> 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.

08:32.930 --> 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.

08:42.350 --> 08:46.590
Hegseth today denied sharing any classified information on Signal.

08:46.590 --> 08:49.050
I look at war plans every single day.

08:49.050 --> 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.

08:59.030 --> 09:00.770
That's what I've said from the beginning.

09:00.770 --> 09:04.650
When asked, President Trump again this week said he remains confident in Hegseth.

09:04.650 --> 09:05.350
Oh, Donald.

09:05.350 --> 09:08.970
President Trump, why do you even ask a question like that?

09:21.380 --> 09:23.840
So let's fast forward a few months to July.

09:24.440 --> 09:30.360
Tulsi Gabbard and John Ratcliffe lied to Congress when they said they didn't discuss classified information in the Signal group.

09:30.660 --> 09:34.240
Pete Hegseth has lied repeatedly about the same thing.

09:34.400 --> 09:38.000
This Washington Post article confirms that they were all lying.

09:38.040 --> 09:38.720
The head of U.S.

09:38.720 --> 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.

09:47.760 --> 09:53.440
And so then Hegseth copied war plans from this email to send to random people over Signal.

09:56.920 --> 10:04.060
According to the Guardian, an internal White House investigation figured out how Goldberg got added to the Signal group.

10:05.460 --> 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.

10:16.180 --> 10:21.080
Someone forwarded the email to Brian Hughes, Trump's campaign spokesperson.

10:23.220 --> 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.

10:30.700 --> 10:35.280
At the time, Waltz was the Trump campaign's national security surrogate.

10:36.060 --> 10:38.180
This is from the Guardian article.

10:38.280 --> 10:44.640
According to the White House, the number was erroneously saved during a contact suggestion update by Waltz's iPhone.

10:44.940 --> 10:48.620
So it seems like the real culprit here was Siri.

10:50.220 --> 10:51.520
So let's recap.

10:51.520 --> 10:56.940
Last October, before Trump was elected, Mike Waltz had a contact on his phone for Hughes.

10:56.940 --> 11:00.920
Then Siri updated the contact to include Goldberg's phone number.

11:02.280 --> 11:04.740
Fast forward several months, Trump is president.

11:04.740 --> 11:11.540
Brian Hughes, who used to be the Trump campaign spokesperson, is now the spokesperson for the National Security Council.

11:11.780 --> 11:17.700
Mike Waltz, who used to be the Trump campaign national security surrogate, is the national security advisor.

11:17.700 --> 11:20.540
But apparently, he's still using the same phone.

11:22.260 --> 11:26.780
And when Waltz created his little war crime signal group, he tried to add Hughes.

11:26.780 --> 11:33.520
But since Goldberg's phone number was listed under Hughes' contact card, he actually added Goldberg to the group.

11:33.820 --> 11:40.360
This would not have happened if they were using separate dedicated devices for classified information like they're supposed to.

11:40.420 --> 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.

11:49.080 --> 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.

11:58.880 --> 12:01.720
But they're just really, really bad at off sec.

12:10.590 --> 12:16.530
On May 1st, a Reuters photographer took this photograph of a Trump cabinet meeting in the White House.

12:16.770 --> 12:20.930
The person closest to the camera is the national security advisor, Mike Waltz.

12:22.030 --> 12:26.710
This was actually his last day as national security advisor because he had just gotten demoted.

12:26.710 --> 12:29.590
But even so, Mike Waltz was bored.

12:29.650 --> 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.

12:40.610 --> 12:45.270
People quickly zoomed into this photo and noticed that he seemed to be checking signal messages.

12:45.450 --> 12:48.530
And if you look closely, it looks like he has conversations up with J.D.

12:48.530 --> 12:52.270
Vance, Tulsi Gabbard, Marco Rubio and others.

12:52.410 --> 12:57.350
But also, notice that the box at the bottom doesn't say verify your signal pin.

12:57.350 --> 13:00.650
It says verify your TMSGNL pin.

13:02.370 --> 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.

13:13.290 --> 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.

13:22.250 --> 13:29.370
And that quote, the only difference is the TeleMessage version captures all incoming and outgoing signal messages for archiving purposes.

13:29.610 --> 13:31.550
What could possibly go wrong?

13:35.110 --> 13:40.530
TeleMessage was founded by Guy Leavitt and Gil Shapira in Tel Aviv, Israel in 1999.

13:41.010 --> 13:44.590
Today it's based in Petah Tikva, which is just east of Tel Aviv.

13:44.750 --> 13:48.630
In February of last year, 2024, the U.S.

13:48.630 --> 13:53.770
based company Smarsh acquired TeleMessage, but it's still run by its Israeli team.

13:54.770 --> 13:58.470
One of the founders, Guy Leavitt, is currently the CEO.

13:58.550 --> 14:01.350
This is from his bio on the TeleMessage website.

14:01.470 --> 14:06.430
They took all of the contents from their website down in May, so this is from an archived version of it.

14:06.650 --> 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.

14:16.610 --> 14:20.490
Then he left Israeli intelligence in 1999 and founded TeleMessage.

14:21.190 --> 14:26.630
The other co-founder is Gil Shapira, and he's currently the vice president of business development.

14:26.630 --> 14:30.350
He was a software developer for the Israeli air force in the 90s.

14:32.860 --> 14:37.660
TeleMessage sells mobile archiver products to corporate and government customers.

14:37.860 --> 14:42.820
These include modified versions of WhatsApp, WeChat, Telegram and Signal.

14:43.000 --> 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.

14:55.410 --> 15:04.630
So, when Mike Waltz was bored and checking his TM SGNL messages, he was using TeleMessage's signal capture app.

15:04.630 --> 15:06.090
He wasn't using signal.

15:06.910 --> 15:14.430
Using TeleMessage might make what they're doing slightly less illegal, although there's still the classified information stuff.

15:14.430 --> 15:19.750
But as you'll see, it's much, much less secure than if they were using the real Signal app.

15:22.430 --> 15:26.890
On April 15th, TeleMessage published this blog post about Signalgate.

15:27.230 --> 15:34.930
It explains how using Signal's disappearing messages violates federal records laws and how TeleMessage would solve all of their problems.

15:37.430 --> 15:41.710
So, at what point in time did the Trump administration start using TeleMessage?

15:41.710 --> 15:44.690
Was it before or after they lied to Congress?

15:44.690 --> 15:46.110
I don't know for sure.

15:46.130 --> 15:50.510
But I think that most likely they switched to TeleMessage in response to Signalgate.

15:50.550 --> 15:53.290
After Signalgate, they got sued.

15:53.290 --> 15:55.230
They got grilled by Congress.

15:55.230 --> 15:57.230
They were very embarrassed in the media.

15:57.230 --> 15:58.870
They're still very embarrassed.

15:58.930 --> 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.

16:06.130 --> 16:10.970
So, my guess is that they probably started using TeleMessage sometime in the second half of April.

16:15.000 --> 16:21.120
When I learned that Waltz was using TM SGNL, I immediately went looking for a copy of the app.

16:21.180 --> 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.

16:27.280 --> 16:30.500
I wanted a copy of the app so that I could request the source code.

16:30.660 --> 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.

16:42.480 --> 16:43.800
But it didn't come to that.

16:43.800 --> 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.

16:52.920 --> 16:57.660
So to make it easier for researchers to look into, I pushed copies of the source code to GitHub.

16:58.060 --> 17:00.140
This is the Android version.

17:00.220 --> 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.

17:09.060 --> 17:14.760
I published the iPhone source code too , but this version didn't include a git folder, a .git folder.

17:14.880 --> 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.

17:23.920 --> 17:30.100
So I'm pretty sure that TeleMessage is currently violating Signal's AGPL license here for the IOS version.

17:32.640 --> 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.

17:40.140 --> 17:45.100
See the generate talk name and generate talk pass variables at the bottom here?

17:45.200 --> 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.

17:55.880 --> 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.

18:05.640 --> 18:07.880
I actually am very curious.

18:07.880 --> 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?

18:16.000 --> 18:16.900
I don't know.

18:17.400 --> 18:21.080
There's no way that this software was audited for security issues.

18:22.880 --> 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.

18:35.440 --> 18:40.220
I brought the story to 404 Media and published it alongside Joseph Cox.

18:41.740 --> 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.

18:55.260 --> 19:02.620
These files contain user names and password for TeleMessage and passwords for TeleMessage users and also plain text chat logs.

19:05.280 --> 19:09.800
The hacker said, I would say the whole process took about 15 to 20 minutes.

19:10.200 --> 19:12.000
It wasn't much effort at all.

19:15.610 --> 19:21.690
After downloading a heap dump, the hacker grepped it for the word password and found a user name and password.

19:21.950 --> 19:24.710
They tried logging in and this is what they saw.

19:25.090 --> 19:28.910
The hacker sent this screen shot of TeleMessage's admin panel logged in as a U.S.

19:28.930 --> 19:31.030
Customs and Border Protection user.

19:31.730 --> 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.

19:42.830 --> 19:46.430
The hacker sent me the heap dump file and I found this in it.

19:46.430 --> 19:48.830
As you can see, this is a big JSON object.

19:49.750 --> 19:55.750
This message is sent to a group called GD Macro, which is from the cryptocurrency firm Galaxy Digital.

19:56.010 --> 19:59.630
It says, just spoke to a DEM staffer on the senate side .

19:59.630 --> 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.

20:08.650 --> 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.

20:16.330 --> 20:22.830
And they're referring to Democratic Senators Kristen Gillibrand and Angela, also Brooks, who stood with Republicans to get it passed.

20:22.830 --> 20:28.210
So this is an example of stuff that people are talking to within the TeleMessage app.

20:29.610 --> 20:36.270
A few weeks after the 404 media story, I wrote an article in Wired that explains the vulnerability itself.

20:37.890 --> 20:41.530
The hacker started by looking at the domain secure.

20:41.530 --> 20:44.650
TeleMessage.com, which is where users log in.

20:44.650 --> 20:50.450
The hacker, quote, noticed that they were hashing passwords to MD5 on the client side.

20:54.340 --> 20:54.940
Yeah.

20:56.760 --> 21:04.360
The hacker also noticed that the login page was programmed in ancient Java technology called JSP.

21:04.620 --> 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.

21:12.900 --> 21:17.700
And then they also ran Ferox Buster on archive.TeleMessage.com too.

21:17.700 --> 21:20.680
And that's when they found the heap dump end point.

21:23.060 --> 21:24.660
Here's the full URL.

21:25.960 --> 21:31.540
If you made a get request to this URL, the server responded with a Java heap dump.

21:31.540 --> 21:36.320
Which is basically a 150 megabyte file containing a snapshot of the server's memory.

21:36.500 --> 21:37.700
That's it.

21:46.770 --> 21:50.430
Who knows how many years people have been exploiting this?

21:50.490 --> 21:52.850
My source figured it out immediately.

21:52.850 --> 21:55.210
As soon as they started poking at it.

21:56.590 --> 22:03.130
So the archive server was built using Spring Boot, which is an open source framework for making Java applications.

22:03.590 --> 22:12.210
Spring Boot includes a set of features called actuator that are useful for developers for monitoring and debugging the application.

22:12.270 --> 22:14.590
And one of these features is the heap dump end point.

22:16.470 --> 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.

22:24.970 --> 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.

22:30.790 --> 22:34.190
But it was exposed on TeleMessage's archive server.

22:36.450 --> 22:40.390
Here is a blog post from the cloud security company Wiz.

22:40.390 --> 22:46.430
It lists exposed heap dump file as the number one misconfiguration in Spring Boot actuator.

22:46.810 --> 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.

22:53.670 --> 22:58.430
So why was it exposed to the public on archive.TeleMessage.com?

22:58.430 --> 23:00.510
There are 2 possibilities.

23:00.510 --> 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.

23:14.860 --> 23:22.360
The day after my 404 media story about the hack, NBC News reported that TeleMessage took down its service.

23:22.360 --> 23:27.280
So if you were just scrambling to write down that URL a minute ago, sorry, it doesn't work anymore.

23:29.080 --> 23:35.020
I confirmed at the time that archive.TeleMessage.com was rejecting HTTP requests and it still is.

23:35.420 --> 23:39.380
This is also around the time that TeleMessage took everything down from their website.

23:39.380 --> 23:43.500
Which is why all of my screenshots of their website are from archived versions of it.

23:44.900 --> 23:49.940
The NBC News article also mentions that a second hacker hacked TeleMessage.

23:50.140 --> 23:55.200
The source who contacted me said that they just exploited TeleMessage enough to confirm that it was vulnerable.

23:55.240 --> 24:00.160
But NBC's source said that they, quote, downloaded a large cache of files.

24:00.360 --> 24:04.720
So that weekend, at least 2 separate hackers had hacked TeleMessage.

24:04.720 --> 24:09.880
And this is within days of the photograph of Mike Waltz using TMSGNL.

24:13.320 --> 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.

24:22.960 --> 24:26.220
And I published this detailed analysis which you can read on my website.

24:26.500 --> 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.

24:38.360 --> 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.

24:47.180 --> 24:53.720
TMSGNL uses the official signal servers and TMSGNL users can have end to end encrypted chats with signal users.

24:53.720 --> 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.

25:00.940 --> 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.

25:11.280 --> 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.

25:22.460 --> 25:24.220
These are already plain text messages.

25:24.460 --> 25:29.820
The TeleMessage archive server box here is archive.TeleMessage.com.

25:29.940 --> 25:33.100
The server that handed out heap dumps to anyone who asked.

25:36.990 --> 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.

25:44.330 --> 25:49.830
This is either an SMTP email server, an SFTP file server or Microsoft 365.

25:49.870 --> 25:53.310
But in any case, they all go through the archive server first.

25:55.290 --> 25:59.530
This is from TeleMessage's marketing material for their modified signal app.

25:59.530 --> 26:05.310
It advertises end to end encryption from the mobile phone through to the corporate archive.

26:05.450 --> 26:07.190
This is a lie.

26:07.930 --> 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.

26:13.730 --> 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.

26:24.490 --> 26:30.870
Senator Ron Wyden published a letter demanding that the Justice Department investigate the quote, serious threat to U.S.

26:30.870 --> 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.

26:38.910 --> 26:43.410
He cited my research that proves TeleMessage had lied about end to end encryption.

26:45.070 --> 26:50.110
And he also demanded an investigation into whether the company has shared U.S.

26:50.110 --> 26:57.350
government communications with the Israeli government and whether the Israeli government played any role in the product's dangerous design.

27:01.160 --> 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.

27:10.140 --> 27:18.420
On May 19th, distributed denial of secrets released hundreds of gigabytes of heap dumps hacked from TeleMessage's archive server.

27:18.680 --> 27:21.380
That's the large cache of files from the second hacker.

27:21.840 --> 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.

27:31.640 --> 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.

27:40.020 --> 27:42.640
But they distribute lots of other data sets just to everyone.

27:44.660 --> 27:47.900
Reuters was the first news organization to report on this data set.

27:47.900 --> 27:56.340
They had found more than 60 government users of TeleMessage apps with material from disaster responders, customs officials, several U.S.

27:56.340 --> 28:01.040
diplomatic staffers, at least one White House staffer and members of the secret service.

28:05.420 --> 28:07.600
I dug into this data set.

28:08.600 --> 28:11.200
Heap dump data is not easy to work with.

28:11.200 --> 28:14.100
And this data is also extremely incomplete.

28:14.540 --> 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.

28:25.480 --> 28:29.640
Most of the chat logs are from May 4th which makes sense since that's the day it was hacked.

28:29.640 --> 28:35.020
But I also found older messages from as far back as late 2022 in the heap dumps.

28:35.780 --> 28:43.520
I would expect that the archive server would forward the messages to the corporate final destinations and then delete them.

28:43.520 --> 28:48.840
But if that were the case, why were there messages from 2022 in memory on May 4th?

28:49.000 --> 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.

28:59.310 --> 29:02.050
Java heap dump files are binary files.

29:02.070 --> 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.

29:09.970 --> 29:12.310
I don't really care about most of that stuff though.

29:12.310 --> 29:16.310
So the simplest way to find the juicy stuff is to run strings on the files.

29:17.110 --> 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.

29:23.730 --> 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.

29:34.810 --> 29:40.690
Here's an example of a plain text signal message in JSON format that I found in the heap dumps.

29:41.190 --> 29:44.930
It was sent to a group called Upstanding Citizens Brigade.

29:44.930 --> 29:48.490
It includes the phone numbers of the sender and all the recipients.

29:48.810 --> 29:52.930
I redacted the full phone numbers here but I left the area codes.

29:53.070 --> 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.

30:00.710 --> 30:03.330
So whatever they're talking about it sounds very contentious.

30:03.330 --> 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.

30:15.200 --> 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.

30:21.660 --> 30:26.440
And it was also possible that the heap dumps contained other useful information besides chat logs.

30:26.580 --> 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.

30:34.480 --> 30:36.760
This way I could easily ignore duplicates.

30:36.760 --> 30:43.120
There were millions of duplicates because it's just taking memory dump minute after minute after minute from the same server.

30:44.840 --> 30:48.160
And I can maybe discover other interesting types of JSON objects too.

30:48.280 --> 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.

30:55.400 --> 31:00.660
My code found lots of chat messages but it also found a ton of useless JSON objects too.

31:01.020 --> 31:05.480
I manually looked through hundreds of objects to determine if they look useful or not.

31:05.480 --> 31:09.800
And if they didn't look interesting to me I wrote code to skip similar objects in the future.

31:10.520 --> 31:15.380
The JSON on the left has some examples of useless objects that I skipped.

31:15.420 --> 31:19.100
And the code on the right is how I determine which objects to skip.

31:19.100 --> 31:22.820
So for example I'm skipping a JSON object that just contains first name.

31:23.040 --> 31:24.740
And this is somewhat subjective.

31:24.980 --> 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.

31:30.920 --> 31:35.380
And it's entirely possible that I accidentally skipped some important stuff without realizing it.

31:35.380 --> 31:38.520
Which I actually learned just a few days ago that I did.

31:38.520 --> 31:40.740
I'll talk about that in a few minutes.

31:42.280 --> 31:45.980
Here's an example of one of the useful types of JSON objects.

31:45.980 --> 31:47.740
This is a validation object.

31:47.740 --> 31:53.480
And it appears to include the phone number and email address of each user who authenticated to the telemessage server.

31:53.700 --> 31:55.660
So in this case this person works for U.S.

31:55.660 --> 32:00.320
Customs and Border Protection because they have a CBP.DHS.gov email address.

32:00.400 --> 32:04.120
I found over a thousand distinct email addresses in the validation data.

32:06.970 --> 32:10.990
When the code found useful data it inserted it into a database.

32:11.310 --> 32:17.450
I ended up with a database like this with separate tables for groups, messages, users and other types of data.

32:18.010 --> 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.

32:25.230 --> 32:28.770
If you can see one of the groups is a WhatsApp group.

32:28.770 --> 32:31.850
It's very small but it's called MPD command staff.

32:31.850 --> 32:36.350
I looked up the individual phone numbers for this group and discovered that it's for the Washington D.C.

32:36.350 --> 32:38.210
Metropolitan Police Department.

32:44.630 --> 32:50.370
A SQL database of chat logs is way more useful than hundreds of gigabytes of heap dumps.

32:50.370 --> 32:52.250
But it's still pretty annoying to use.

32:52.250 --> 32:56.350
So I made myself a user interface called telemessage explorer.

32:56.810 --> 32:59.010
And I published it as open source.

32:59.010 --> 33:01.330
So that other journalists and researchers can use it.

33:01.330 --> 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.

33:09.770 --> 33:11.850
It runs locally in docker containers.

33:15.150 --> 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.

33:23.790 --> 33:26.470
So in this screen shot I searched for signal.

33:26.930 --> 33:31.230
And there's, this is showing signal groups and there's actually only 28 signal groups.

33:31.230 --> 33:34.210
So by far most of the chat logs are from whatsapp.

33:34.210 --> 33:36.290
By like a huge margin.

33:36.290 --> 33:39.050
And then after that most of them are from telegram.

33:39.050 --> 33:41.890
And only a small amount are from signal and WeChat.

33:41.890 --> 33:48.150
But also this is like most of the, the sample is from a single Sunday in May.

33:48.150 --> 33:52.350
So it, it's not very representative of everyone that uses this app.

33:52.570 --> 33:58.330
Um, but notice that one group at the bottom called POTUS, Rome Vatican Press GC.

34:00.530 --> 34:03.390
POTUS is short for President of the United States.

34:03.950 --> 34:06.630
Here's the detailed view of that signal group.

34:06.630 --> 34:09.810
This is a group that contains at least one White House staffer.

34:10.330 --> 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.

34:19.280 --> 34:21.500
And this is the detailed view of the message.

34:21.700 --> 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.

34:28.820 --> 34:30.940
It's also a deleted signal message.

34:30.960 --> 34:34.660
So TeleMessage must archive a copy of each message before it gets deleted.

34:35.280 --> 34:40.860
It says, do you think our official videographer can go to the official only section given that message above.

34:41.360 --> 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.

34:50.500 --> 34:54.540
TeleMessage Explorer also lets you browse the validation objects that I showed earlier.

34:54.600 --> 35:00.480
So in this screenshot I searched for email addresses that include .gov and I found 71 of them.

35:01.740 --> 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.

35:09.000 --> 35:11.540
So there's a lot more users.

35:14.560 --> 35:17.240
And here's a last minute update to the talk.

35:17.240 --> 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.

35:30.720 --> 35:35.640
Um, and it turns out that Strings wasn't doing as good a job as I was hoping.

35:35.640 --> 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.

35:44.340 --> 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.

35:50.780 --> 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.

36:01.840 --> 36:06.320
Um, and a lot of the new messages they didn't know about are in Chinese and in Hebrew.

36:07.040 --> 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.

36:17.480 --> 36:21.220
So here's an example of one of the new messages that I just found yesterday.

36:21.900 --> 36:25.520
Um, this is a WhatsApp message from May 3rd and it's written in Hebrew.

36:26.180 --> 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.

36:35.840 --> 36:38.520
May God's presence be in the blink of an eye.

36:38.540 --> 36:45.140
So just for some context, the IDA, the IDF is committing a genocide against Palestinians in Gaza.

36:53.150 --> 36:56.930
Sam Altman, the CEO of OpenAI is in the data set.

36:57.050 --> 37:02.990
Um, here he is sending a message to the CEO of Altimeter Capital, a major investor in OpenAI.

37:02.990 --> 37:07.010
And unsurprisingly, they're talking about lobbying in Washington D .C.

37:10.400 --> 37:12.900
Jared Kushner's in the data set too.

37:13.200 --> 37:16.580
Kushner is the husband of Donald Trump's daughter Ivanka .

37:16.880 --> 37:25.280
Trump's senior White House policy advisor on artificial intelligence sent Kushner this sketchy ass message about the United Arab Emirates.

37:25.720 --> 37:31.920
Kushner isn't a member of the Trump administration, yet here he is exchanging WhatsApp messages with Trump's AI guy.

37:32.160 --> 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.

37:44.990 --> 37:48.470
And here's the Kushner family WhatsApp group.

37:48.630 --> 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.

37:57.090 --> 38:00.150
They archive all messages that the apps have access to.

38:00.150 --> 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.

38:12.810 --> 38:15.190
What could possibly go wrong?

38:21.080 --> 38:28.120
This has been a story about unbelievable incompetence at the highest levels of the Trump administration.

38:28.440 --> 38:35.260
Mike Waltz added a journalist's phone number to his iPhone contact for the National Security Council spokesperson.

38:35.280 --> 38:40.380
He then invited the journalist to a signal group where they discussed war crimes.

38:41.420 --> 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.

38:57.400 --> 39:01.380
Tulsi Gabbard and John Radcliffe lied to Congress about it.

39:01.620 --> 39:08.160
Then, instead of using signal, which is very secure if used properly, they switched to TMSGNL.

39:08.180 --> 39:16.260
They trusted telemessage, a utterly incompetent company founded by Israeli intelligence agents to archive their chat logs.

39:16.620 --> 39:22.540
And Mike Waltz checked his TMSGNL messages while a Reuters photographer was right behind him.

39:23.020 --> 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.

39:34.140 --> 39:36.760
This is really bad.

39:39.710 --> 39:43.930
The, the stupidest people in America are in charge.

39:43.930 --> 39:47.650
And they are not, in fact, clean on OPSEC.

39:57.870 --> 39:59.210
Thank you.

39:59.210 --> 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.

40:10.070 --> 40:16.210
And I'm doing a book signing tomorrow with No Starch Press at 11 o'clock, um, in the vendor area.

40:16.470 --> 40:20.670
I'm not sure how much time we have, but maybe a few minutes for questions.

40:21.770 --> 40:22.870
I think.

40:44.350 --> 40:45.970
What, what about China?

40:54.830 --> 41:01.810
So the question is, are there any other indications of any other intelligence agencies targeting telemessage?

41:01.810 --> 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.

41:11.630 --> 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.

41:26.870 --> 41:34.110
I'm not sure how long CBP has been using telemessage, but I think at least since 2022, maybe before that.

41:34.270 --> 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,

41:48.250 --> 41:51.250
like military contractors there are in this too.

41:51.250 --> 41:52.570
Um, yeah.

41:52.570 --> 41:53.430
Good question.

42:01.240 --> 42:02.840
Thank you.

