Welcome. So it's a pleasure to be back at DEF CON. It's been a few years. Today we're going to talk about encrypted ads from the 19th century. And my name is Ilan Kadunin. Hello. And my name is Klaus Schmee. I'm a German computer scientist. I work for a company named Eviden, a European IT security company. I'm also a crypto and crypto history expert. And we have written a couple of books together. Most recently, this one came out in September 2023 from No Starch Press. And if you go down to the east vendor hall, number 29, they may have one copy left. At least that's what we saw when we checked earlier. So, encrypted newspaper ads. Just kind of giving you a general idea. This is something that was very popular in the 19th century. Usually they were sent back and forth between lovers. Sometimes they were used for business reasons. And there were a couple of books that were written. This is one from 2006 by Gene Palmer. It was the pseudonym for Tony Gaffney. And he lists about 1,000 of these ads. Many of them have been solved. Not all of them. He doesn't provide solutions for all of them. And here's a couple more you can see. And the one on the right we thought was interesting because it had an encrypted section at the top and then at the bottom it said, this will be intelligible if read in connection with iCommunication published in this column on the 8th instrument this month. So, we went back and we checked. And it gave us no clues. It does look like it's a transposition cipher, but this one remains unsolved. Here are a couple other interesting ones. This one sort of looks like a Bible code. Also unsolved. And these two clearly related between Tissy and Jabber. Also unsolved. And here's a colleague of ours, Didier Mueller. He decided to look in the French newspaper, Le Figaro, and he found thousands of encrypted ads in the French language, at least of the ones he could solve. We actually met him a few weeks ago in Switzerland. And he has this lovely database. He has found so far, looking at the years from 1875 to 1896, 3700 cipher messages. Only 62% have been broken so far. Here are a couple. And this one is interesting because you can tell if you dig into it, it's a combination of what we call clear text. And then if you look at the numbers in between, it's all five digit numbers. And someone into codes will go, aha, well that looks like a codebook code. But we haven't found which codebook. We've looked at the codebooks from that time period. There are some in French and some in English. But haven't found anything that works. It's possible that we haven't found the right codebook. It's possible that there's some sort of super encryption going on. So, you know, take a five digit code and you add one to it or divide it by two or something like that. But for whatever reason, we haven't found it. Now this one is a musical mystery. Which in English means that which cannot be said nor written can be sung. And then we put what we think are the notes there. And have you understood? So then we also mapped it to a musical staff here. We didn't have any indication of what the signature was or the duration of the notes. So we just kind of picked something that seemed to fit. And if sound works, we'll play it for you. Makes it much more clear. I'm going to play it once more so you can kind of map it to the do, mi, do, mi, do, re. So there's a couple of things that could be going on here. One is that it could be related to a language called sol-re-sol, which had been invented in France a little earlier by a Frenchman. It was an artificial language that was based on notes. So I went and I looked for anyone today that might know sol-re-sol. I went on Discord. You can find everything on Discord. So I found a sol-re-sol community and I asked them if they could read it, if they could understand it. And they said no. And I said, well, if it means anything, it's probably like, I love you, I miss you, why haven't you written to me? And they said, no, they still couldn't understand it. So it's also possible. I have some fans that are into classical music and they said, you know, this sounds like a practice at the beginning of choir, what the choir, the singers will use to kind of get in shape for the choir. So maybe all this means is see you soon at choir practice. We don't know. There's just a lot of theories on it. So this one still remains officially unsolved. There are many more encrypted ads. Again, most of them are from the late 19th century. Most are broken. Some are not. And there's still a lot of research being done on it. Okay. Let's now look at a series of encrypted newspaper ads from the 19th century. All of these were published in the Times. There were over 50 of these newspaper ads. Here you see one. It was published in 1853. If we have a closer look, this one is the same. We clearly see that it is encrypted and there's no obvious way to decipher this message. So it's certainly not clear what it means. Let's now go ahead for 130 years to the year 1980. In 1980, the Times, so the same newspaper, published one of these messages again. Apparently they didn't realise that there was a whole series of these messages so they only found one and they wondered what it meant and so they published it and they challenged their readers to solve it. But there was no success. So apparently none of the Times readers in 1980 was able to break this encryption. The only thing that was found out is that these numbers and letters that are marked here probably referred to latitude and longitude and it leads to a place in northern Canada. Well, this is certainly unusual because in the 1850s not very many people travelled to northern Canada. So this is certainly unusual and one reader of the Times in 1980 suspected, well, this might have got to do with the Franklin edition. I don't know if you're familiar with the Franklin edition sorry, with the Franklin expedition, but if you're not, Ilanka is going to tell you what it was. So, the Franklin expedition this was one of the great mysteries of the late 1800s. So there was Lord John Franklin and he started an expedition in 1845 it was a British naval expedition. He had two ships they were called the Terror and the Erebus. The reason they had these names is because originally they had been warships and the theory was that because they were warships and they were built very strongly that they would be able to be good icebreakers going into the ice packs above north of Canada. The goal was to find this northwest passage. So instead of going south around South America, was it possible to go north, northwest, and get to Asia that way. So this particular expedition, they set off from England from great fanfare. They stopped off in Greenland to get some supplies and to offload a couple of sailors who had fallen ill and then they headed west across the Baffin Bay and vanished. Nothing was heard from them. No one else saw them. Now it was a five year mission, so it wasn't entirely surprising. But a couple of years went by and then Lady Franklin started beating the drum and, hey, where's my husband? And so she was going to the Admiralty and demanding that they set off some search expeditions, find out what had happened to these two ships. So nothing was found from them and it was actually 150 years later that the ships were finally found. Right? 150? So in 2014 and 2016 the ships were located off of King William Island. The Terror was found in the coincidentally named Terror Bay and then south of it was the Erebus. Now many books have been written about the Franklin expedition because it was this great mystery of why did they disappear? Had aliens come down and got them? Or had some sort of sea monster had sunk their ships? So basically anyone who wanted could come up with any theory that they wanted. And as I said, there were many different rescue expeditions that were sent. There was this great reward that was offered. This is just a few of the expeditions. There were many more. And now let's come back to that classified ad. Did it have anything to do with the Franklin expedition? Was there some relationship between the ad and the Franklin expedition or the ad and one of the rescue expeditions? Yes, so let's now come back to this article in the Times in 1980 when the readers were challenged to break this encrypted advertisement from the 1850s. Well, as I said, in 1980 nobody was able to solve this mystery. But 12 years later, this article was published by a British encryption expert named John Rapson. He published this article in Cryptoloja, which is a scientific journal dedicated to crypto history mainly. And in this article, he introduced the solution of this mystery. So this is the advertisement he looked at. And when he analyzed this advertisement, well, he saw it mainly consists of four letter groups and of some three letter groups. And the letters used here are the lowercase letters all run from G to Q, excluding the J, which means that there are 10 different lowercase letters used here. There are also a couple of capital letters running from B to F, and in addition, the S was used. And there was also some clear text in this message. For example, the signature at the end. J-E-D-W is clearly not an encryption, it's an abbreviation. Well, if one is familiar with the encryption systems used in the 19th century, it's quite obvious that a code book was used here, or it's at least very likely. Ilonka has introduced at least one advertisement that was apparently encrypted with a code book. And this is not a new situation for code breakers, because many code book encrypted messages were created over the centuries. And the best way to break a code book encrypted message is usually find the code book that was used. Not very surprising, but this method usually very often works quite well, because there were not too many code books in use, at least if you know when a message was created and who created it. And you usually can tell, well, if it was in the military, maybe it was a military code book of the time, or if it was some business related, maybe it was a business code book. A code book can be imagined like a dictionary, so for every word of a language, there's a number or maybe a sequence of letters, and many ciphertexts have been solved by finding the code book that was used. So the question John Rapson asked himself was, well, is there a code book or was there a code book at the time in question that used four letter groups based on the letters from G to Q? And the answer was no. At least we and John Rapson didn't know of a code book that matched this requirement. But, well, the letters from G to Q, excluding the J, make exactly ten letters, so maybe the letters were used instead of digits, so maybe the G stands for zero and the H for one and so on. And, in fact, John Rapson found a code book that was a very good match. It was the so-called Marriott Signal Code. It was introduced in 1817. There were several editions and it was quite popular in the 1850s in England, so this looked like a good guess. If you look into this code book, you see that it was created for sending flag signal messages. This is not relevant here. We are not dealing with flags, but it could also be used for any other kind of messages, as long as such a message could be noted in digits from zero to nine. Here on the right, you see an excerpt from this code book. So, as I said, it's like a dictionary and this one replaces every word of the English language with a number between 0-0-0-0 and 9-9-9-9. Okay, so what did Rapson do? Well, he took one of the advertisements and replaced every letter in a four-digit word with the numbers from zero to nine, with the table you can see here, the substitution table you can see here. And then he applied the code book, the Marriott code book, and what did he get? Nothing. Or at least nothing that really looked like meaningful text. So, maybe the mistake was that the replacement table running from zero to nine was wrong. It was certainly a difficult question what else or which other table could have been used. So, John Rapson looked for crypts, for words he could guess in the ciphertext. So, here he found one. Here you can see the word I-Q-H-L and followed by the word born. So, what is born? Of course, a child is born, a son is born, a daughter is born. This required some guessing, but one of the hypotheses he tested was, well, let's assume that this stands for son and if this is the case, I-Q-H-L would be replaced by 8196 and maybe this is the correct replacement. And if it was the correct replacement, this would be how a part of the substitution table looked like. Here's another crypt he found. Here we have the number three, followed by the word M-I-O-Q. So, what could stand after three? Well, just about anything. Three days, three weeks, three months, three years. Again, he guessed and tested several hypotheses and one of these was, well, maybe month was the correct word used here. And again, he created a part of a substitution table based on this assumption and, well, the two guesses he had made matched. So, this looked quite good. In addition, the replacement table you see here looks quite plausible. It starts with a 0, then 9, 8, 7, 6, 5, 4, 3, 2, 1. This looks like a good guess. So, again, he tried to decrypt a message. He took this message, he replaced the letters in every four-letter word with the digit according to this table. Then he applied the code from the code book and he got meaningful text. So, apparently, this was the correct way to decrypt. Yes. So, let's give John Rapson an applause because this was a really great piece of cryptanalysis back in 1992. And here we see an example. As mentioned, there were not only these four-letter groups but also a couple of uppercase letters and it now became clear what these uppercase letters mean because the code book consists of five parts and one of the parts is divided into subdivisions and, apparently, each capital letter in the message stands for one of the altogether six parts. And this is exactly how the encryption and the decryption worked. So, here we have the E standing for part four and this would be part four in the code book. Let's now look at the decryption of one of the messages. All are well at Bowdoin and so on. And as it seems, as we see now, this latitude and longitude appears to make sense. We are still not really sure what exactly this means being accurately seen drifts and so on, but at least it's plausible. Here's another plain text. You see the original in the upper left corner and this translates to, or this decrypts to, all are well at home and elsewhere. Margaret had another boy in the evening on Christmas Day and so on. Well, this is family gossip. It's a little disappointing because, of course, other encrypted messages contain the location of a hidden treasure or world politics or important businesses. In this case it's about family news, but that's also very interesting because family news from the 19th century, that's not something you encounter every day. So we tried to decrypt this message. It wasn't, or it was difficult because some of the words are not, are ambiguous. For example, popularity could also mean population. That's not, or both words are possible in the code book. P and M, that might stand for Papa and Mama, but that's, of course, also a guess. And this is also a guess because the words used here are coal and rich, so maybe this refers to a person named Coleridge. We don't know, but it makes sense in our view. So decryption is difficult, many ambiguities. Here's another plain text. This is especially interesting because it mentions two names that can be identified, Captain Penny and Captain Austin. And as it turned out, both captains were shipmasters who engaged in Franklin rescue expeditions. So we are now back at Franklin and his rescue expeditions. There appears to be a connection. Here's a list of some of the most important Franklin rescue expeditions, which mainly took place, or which took place after 1850 when Franklin's wife was calling for help. And if we look at the ads, all of them were published between 1850 and 1855. And this matches exactly with the rescue expedition of Richard Collinson. So was it really Richard Collinson who wrote or received all these encrypted messages? Well, we'll see. Richard Collinson, here you see a picture of him. And let's now look at the rescue expedition of Richard Collinson. So Richard Collinson set out on a rescue expedition with two ships, one of them being the Enterprise, on a five-year mission to go and try to find Franklin's expedition. They did not have any success. What they were trying to do is to come around from England, go around and come in from the western side to see if they could find him from that direction. No luck. There's many books written about his expedition, in part because his brother went through his logbooks and wrote another book about Collinson's expedition. And this is one page from that where they talk about cipher notices in the Times that used the signal book of the Royal Navy. And that this advertisement was regularly published. So now we know the mystery or the purpose of the messages was solved. So we call this the first known secure global communication system. His family published encrypted ads in the Times, the Times was available in every major port in the world, and he could receive messages from his family during his journey. So did the system work? Well, to our knowledge, only in 1855, on his way home, Collinson got access to the Times in this port in Indonesia called Banguwangi or Banyuwangi. And one thing I've learned from my research is there are many ways to spell Banyuwangi. I've found probably 10 different ways. And in that page from Collinson's journal, there was a mention of Banyuwangi. And I was just at the Royal Museum at Greenwich a couple weeks ago, going through the logbooks of Collinson and found this entry from December 12th, 1854, saying that at 2pm, he anchored four miles off of Banjuwangi at the time. So again, we had that link. Here's the only really good picture we've been able to find of Banyuwangi. This is when there was an undersea cable that was being built. And this is from 1871. So when he was in Banyuwangi, Collinson was able to get four copies of the Times and was able to get some news from home that way. Okay, let's now look at the situation half a year ago at the beginning of 2024. As I mentioned, the encryption system that was used for these advertisements was broken. But while breaking a system and decrypting all the messages is, of course, two different things. In this case, there were 55 messages and not very many of them had been really decrypted. And up to that point, no scholar or no expert of the Franklin Expedition had read the messages. So what we did, Ilonka and I, we started a decryption project. We introduced our concept at the American Cryptogram Association, ACA. And we were joined by Taylor Leach, who is a member of this organization and who took part or who is now taking part in the project. And there were other members from the ACA supporting us. We had a virtual meeting at an ACA convention in 2023 and a couple of Zoom calls. And our goal was to decrypt all the Collinson advertisements. And this project is still ongoing. Here's a list of all the messages. There are over 50. There was one published every month. And as you see here, there are gaps. So there were months where no message was published. And we don't know why. Maybe there were messages, but we haven't found them. Maybe they were published on the wrong day. Or maybe the newspaper didn't publish them for some reason. Or there was nothing placed in the newspaper. We simply don't know. Taylor, he wrote a decryption tool based on JavaScript. And this decryption tool is available online. So if you want to try your luck yourself, here's the URL. So, Taylor's decryption tool. It contains a code table taken from the code book. And it includes a section to ignore clear text. Which appears in messages or in many messages such as in or at. So frequent words. And we found out, as already mentioned, this decryption work isn't trivial. Because there are ambiguities. So it's not possible to do everything with a tool. It always requires some manual cleanup afterwards. Here we have a list of all the ciphertexts on the left side. All the decryptions of the decryption tool on the right side. And in the middle, the cleaned up versions. So, it's of course a lot of work to do all this description work. But it's very fascinating. Because, as I said, this is all about family activities in the 1850s. It's first-hand information from what happened in a certain family. And, well, it's a fascinating look into history. One important question is, well, who actually published the ads? Or who wrote these messages? It obviously was somebody from the family. Or maybe a close friend. Some of the ads are signed J.D.W. This is clearly Julia de Winton. The sister of Collinson. And some of the messages are signed A.C. We are not sure what this means. Which person signed A.C. It might be another sister of Collinson. But we are not sure. Well, Julia de Winton, who created many of these messages, was also a novelist in the Victorian era. So, very interesting. Well, honestly, I haven't ever read any of these books. But it's, of course, interesting to see that a novelist also wrote encrypted messages to her brother being on an expedition in Northern Canada or wherever in the world. So, while we were doing research at the Maritime Library, we did find several letters. It's a little difficult because they are not entirely in context. So, there will be a folder that says Collinson letters. And just a big stack of letters. So, we were kind of going through them and we found that some of these were letters from Collinson's other relatives, like Sophia and Amelia. The addresses were often very creative. For example, so we have somewhere near the North Pole. And here was another one that said Hong Kong or Arctic Expedition Pacific. And so, they would kind of send it out and hope that it would be passed from ship to ship and hopefully end up with their brother's ship. So, we know now that there were at least two ways of communication. We had the newspaper advertisements from Julia and AC and letters from Amelia and Sophia. And now let's look at the content or at the plain text of the ads. Many of the ads mention places, mainly in Great Britain, which is not very surprising. Apparently, Collinson's family or many of the family members lived in the Newcastle area. So, Newcastle and the surrounding are mentioned many times in the messages. But there were also relatives apparently in London and Portsmouth, Southampton and elsewhere. And no surprise is that places in Northern Canada were mentioned a couple of times because this was actually the destination of Franklin's expedition and of course also of Collinson's expedition. And it's also interesting to look at a few events that are mentioned in these ads. Here we have an ad from 1850. It mentions windows, a window is in church. We found out that the family of Collinson or of his sister donated a couple of windows in churches in Wales. Here you can see pictures of these. And this is a drawing we found in the archives. So apparently here on the left side we see the small gentle window as it was and on the right side as it is now. So after the renovation. And here we have another mentioning of windows. Three new windows. Well, we found a drawing of these three new windows in the archive. In this case the old version is on the right and the new version of the windows is on the left. So this is clearly what this message refers to. Here we read Queen opening Newcastle station late in August. Well, in fact on August 29th 1850 Queen Victoria opened the train station of Newcastle. And here we read Bernard has been made engineer of the Great Exhibition. This refers to the Great Exhibition at Crystal Palace which is also known as the World's Fair in 1851. Okay, so this is what we found in the messages and well, let's now draw a conclusion. So we know that Collinson's family sent messages during his journey and it was via encrypted ads, one per month. They also sent letters. We have a project where we are trying to decipher all 50 of these ads and put them in the right context. Hopefully we'll be done by the end of the year and then we'll be publishing a paper in Cryptologia. If anyone wants to help, we're always up for more help. And other than that, thank you. We have about seven minutes for questions. Yes, the question was why were these messages encrypted? Well, probably to keep these family stories private. That's probably the main reason. So I think these messages contain nothing absolutely secret but apparently the family members didn't want to read their family gossip in the times where everybody could see it. Another reason is that when you're encrypting something, you can often put more information into it than when it's clear text. For example, with telegrams where people would have to pay by the word and so there were rapidly code books coming up where you could put a small amount of text to mean a much larger phrase. How hard is it to source the code books? How hard is it to... Source the code books. I imagine they don't pop up on eBay very often. As a matter of fact, if you look in a hacker tracker, we have some links to the code books. Oh, nice. But I mean like with different code books that you may not have. Oh, to find other code books? It is a constant quest. And any time someone finds a new code book, then there's a race to see does this code book help us crack any of the unsolved messages from any sources. Or sometimes we'll try to derive a code book from what we can read. Like if you heard about the Mary Queen of Scots story, they derived things from that. I love it. So was the use of this type of system, I mean outside of military people, maybe ship captain or military folks, like lovers, was this really... Did you come across information about people talking about this socially? That's essentially my question. Well, most of the ads were clearly published by lovers. There might be more business related messages, but probably these are the ones that are not broken yet because they use the stronger encryption. So apart from this, well, this story is something special because it's not about lovers communicating with each other. Did you find anything else that's not really... We know of at least one private detective who would send messages to his clients by putting encrypted ads in the newspaper in London. And he may have actually been the origin of the Sherlock Holmes story. Was there a discussion of this socially in the media contemporaneously in this 1850s to 1890s? Was there any kind of mention of... Yes, yes. And especially this was a very high status family. And we have found many mentions that it was the buzz when people would get together and like, oh, there's these classified ads in the Times. And who's making them and why are they making them? And I think it did come out that J.W. was Julia DeWinton because that was published somewhere. But the actual system was never published. And there's a short story from about that time period where someone is writing about these ads and they made up their own system. Because they knew no one else could solve it. So why don't they just make up their own system? And then they wrote a story about it. I'm a longtime fan from the AP days. Thank you. Do you know how often the Times was published? Was it published daily or was it published monthly in the 1850s? It was published daily. I don't know if there was an edition on Sunday. There might have been a Saturday edition that also covered the Sunday. But apart from that, it was published every day. Do you have an idea of how expensive it would have been to publish an advertisement? I'm sorry, I couldn't hear the question. The question was how expensive it was. I think we have no information how much it costs in England. But in France, we have this information. Of course, it's always difficult to say how much 10 francs were in 1850. But I think compared to the gold price, the price for an encrypted advertisement was roughly 20 dollars or so in today's world. It wasn't cheap. Thank you. Hello. How much has LLMs and OpenAI affected your work in the past three years? You just dump them in there and see what comes out. Sorry? A little closer. How has LLMs and OpenAI technology affected your work? You mean artificial... Yes. Artificial intelligence... LGBT, yeah. In general, so far, artificial intelligence hasn't been used very much in breaking old ciphers. But it's changing. I can imagine that it's very helpful, especially if you have an encrypted text and you don't know what it is about. So there are certain algorithms where you can tell, well, this might be an encryption of this kind or that kind. And it requires some experience. And I'm pretty sure that artificial intelligence can help a lot doing this. And I know of research projects that examine this kind of analysis. But so far, it hasn't been applied very often. Do you know anything else? I've done quite a bit with LLMs involving another code, cryptos. No. They can translate from one language to another, but they can't count. Like if you ask for a sentence that's 97 letters long, total fail. Total fail. Did Collinson survive? Yes. Well, we know of four he really received. First of all, Collinson survived. But I think it was his last expedition. So as far as I know, the government was not very content with the way he led this expedition. So it was his last one. And I think he retired afterwards. And as far as we know, four of the messages, or he received four of the messages in Banyuwangi. That was probably all. So apparently the system worked, but not very well. I'm sure he saw the other messages once he got home. Yeah, that his sister had them. But as Klaus said, there was a lot of unrest on the ship. And Collinson was very much blamed for that. And it has nothing to do with codes, but yeah. You mentioned a couple of the other family member names. Do you have a reason to believe, or do you have a reason why you think Amelia is not AC? And given the fact that you have other letters and other documents from the family, do you think you're going to be able to look it? Yes, Amelia Collinson, or AC might be Amelia Collinson. That's correct. Would be a good hypothesis. They tended to use their married name at that point. It could well be, but we've just never found any confirmation that it was Amelia. With Julia, we have written confirmation that, yes, it was Julia. But it might be. Okay. All right. Thank you. Thank you.