start	end	text
0	1660	And it's now the top of the hour.
1660	3560	It is 4 o'clock p.m.
3560	6040	in Las Vegas at DEF CON 33.
6040	6700	Welcome.
7400	16720	And it's my honor to introduce to you the speaker and a partner in crime, Ryan Mitchell, to talk about SSH Honeypots.
20360	21780	All right.
22480	23460	Hi.
23480	33880	So I'm Ryan Mitchell, and I'm here to talk about my two favorite things, besides, I guess, my family, which is SSH Honeypots and walkthrough workshops at the Hacking Village.
34040	44080	So I realized that the word honeypot could refer to a great many things here at DEF CON, but for the purposes of this talk, unless specified otherwise, honeypot refers to an SSH honeypot.
44540	46500	So a little bit about me.
46500	48940	I'm not a networking or an IT person.
48940	55560	I'm a software engineer, and I've done this, nothing else, nothing but software engineering basically my whole career, including high school jobs.
55560	61580	So I have a vague sense of what packets are, but I like to joke that I have people to handle those for me.
61880	67540	And this is relevant for the talk, so that's the perspective I'm coming at this with.
67600	71400	I also use the handle Klugeist at the Packet Hacking Village.
71420	73240	So go up there, ask for Klugeist.
73240	75160	They may not know who Ryan is.
76140	78660	So my work doesn't pay me to be here.
78660	80640	I've been doing this for fun for a long time.
80640	83380	I just buy my own tickets, take vacation from work.
83440	88640	So I do want to take this opportunity for tax purposes to talk about two of my books.
88640	92360	This is officially a promotional tour that I'm doing.
92680	95920	So Unlocking Python and Web Scraping with Python.
96120	103180	So Unlocking Python was released last spring, and it teaches Python from sort of CS foundations and programming culture.
103300	109960	So I start with the history of C and Unix and go into information theory, how computers operate in memory.
109980	114000	And then I do, then, after I've covered that, I do a Hello World.
114840	119460	So it also ends with some chapters on some of the most well-known Python frameworks out there.
119460	121840	So Flask, Django, Scrapy, Scikit-learn.
121880	124820	It's kind of the Python book that I always wanted to exist.
124820	128960	So if you're looking to learn Python or know someone who is, you might consider it.
129080	134920	And I've also logged as many copies as I could, as Worlard saw, in my suitcase.
134920	136400	It weighed about 100 pounds.
137000	140140	So I will tell you how to win one for free later on.
141280	143980	So Web Scraping with Python, pretty self-explanatory.
143980	146640	The book just had its 10-year anniversary, which is pretty cool.
146640	148220	And it's now in its third edition.
149860	155300	And I also do LinkedIn learning courses, including the most popular Python course, which is Python Essential Training.
155900	162900	So LinkedIn is a great resource for all sorts of things, especially if you're interested in Python or Django or data structures.
163400	166260	Actually, data structures are probably my third favorite thing.
167040	167580	All right.
167580	168940	So thank you for your patience.
168940	170980	That's the end of the mandatory IRS section.
170980	181880	Now, on to the first part of this talk is going to be about sort of the history, my involvement with the Packet Hacking Village, PHV, and how I got there.
182280	186300	How I became interested in SSH honeypots and why you should be, too.
186540	191440	And then we're going to talk about the walkthrough workshops, sort of how they came about, how you can get involved in those.
191540	198320	And then finally, we're going to talk about hacking cowry, cowry honeypots, but probably not in the way that you think.
199700	205960	So for four glorious years, I enjoyed DEF CON like many of you here are doing.
206040	207100	I walked around.
207100	208180	I met new people.
208180	209540	I saw things.
209540	211460	I went from village to village.
211680	213080	I went to parties.
213080	214360	It was fantastic.
214360	222680	Then in 2016, I was speaking at a conference in Texas with Daven Potts, also known as BSE and the PHV.
222680	224120	There's a lot of acronyms.
224480	226720	He actually runs the wall of sheep.
226720	228780	So really cool guy.
229480	233360	He runs the literal wall, I mean, like the things on the projector.
233640	244060	So we were talking afterwards about DEF CON and he suggested that I give a talk at the packet hacking village about the intersection of web scraping and packet hacking.
244740	249120	Which, I mean, it was a bonkers talk.
249120	260060	There were a lot of illustrations and diagrams and ranting, but it was pretty well received and I had a blast and met everyone at the packet hacking village and it was a lot of fun.
260760	263940	And that was the last time I ever ventured outside of the packet hacking village.
263940	266220	I have been trapped there ever since.
266220	270780	I have no idea what has happened in DEF CON in the last nine years.
270800	272920	So this is my life now.
275100	281720	So also in 2016, after my talk, I was hanging out at the PHV and I saw this strange entry on the wall of sheep.
282120	286740	It was an IP address and it had its protocol listed as SSH.
286740	288080	The user name was root.
288080	293220	Now, the SSH protocol, by definition, does not go on the wall of sheep.
293680	295100	It's a secure protocol.
295100	296100	It shouldn't be there.
296100	298060	So that was pretty weird.
298320	302740	The password was obfuscated, but I think it was eight characters and started with P.
302740	314240	So I logged in, hacked it, if you will, and I'm poking around the server and there's a little text file in the home directory, but that's not important right now.
314240	317420	What's important is that I am root on some random server.
317460	318440	Amazing.
319340	321300	The base 64 file can wait.
321300	322520	I do not care.
322520	325800	The mystery text file had some base 64 garbage in it.
327320	335840	I was poking around, looking at listing files, realized that it didn't have VI, which is fine.
335840	339580	It also didn't have Emacs or nano or basically anything.
341500	349540	I would poke at some files, see some files while listing it and then I would cat them and they didn't exist.
349540	351860	It told me no such file.
352180	354120	So that was bizarre.
354960	361220	Now, all of you here are pretty smart and you've probably figured out already that I was in a honeypot.
361460	364460	I figured this out eventually.
364860	369440	I had never seen a honeypot before and it blew my mind.
369440	370820	So I was nowhere near bash.
370820	372480	I was not root at all.
372480	380300	I was exchanging messages with a Python program that was sending strings back to me that looked like a bash prompt.
380980	388500	To add insult to injury, this whole Python program was running under a low level user in a docker container.
388740	391880	So never got anywhere near anything.
393000	401080	So once I figured this out, I stopped getting distracted by the whole I am root thing and I started playing around with the challenge they had, that file in the root directory.
401380	408200	So decoding the base 64 file gave me the credentials for another server and that server had a steganography challenge.
408320	411360	Solving that gave me the credentials for a third server and so on.
412240	415220	So I don't remember the challenges, the rest of the exact challenges.
415220	421300	So this is the first honeypot and it's unfortunately run by someone who is sort of a persona non grata with a PHV these days.
421300	424120	So I was not able to consult him for this talk.
424160	426100	But it was very fun.
426100	427540	I do remember that.
427540	433160	Ton of fun little single page CS challenges and it was just a blast to do.
433460	435040	Finally I got to the end.
435200	438380	I told them the secret pass phrase and they were very excited.
438380	442600	I was the first winner that weekend and actually I was the only winner.
442600	446180	I was the only one who went through the honeypot and bothered to do that.
446620	451860	So they ran around, put together a little prize bag, I got some t-shirts and it was just fantastic.
452600	456380	So let's back up a little bit and talk about what this thing actually is.
456380	459380	What are SSH honeypots and what is cowry?
459680	469520	So an SSH honeypot is a program that is running on a server that often but not always purports to be different software than it actually is.
469520	479020	So this thing says that it's bash or it might say that it's SQL or it might say, you know, whatever.
479060	484300	But it's actually just a program that's sending you lines back to make it look like this thing.
485080	491640	The most basic descriptor of a honeypot is whether it is low interaction, medium interaction or high interaction.
491840	499000	So the low interaction honeypots typically support a wide variety of protocols but you can't really do anything with them.
499840	509060	So supports SMB, FTP, HTTP, MySQL, TFTP, like all sorts of stuff.
509740	513880	But basically you get a banner, you get the handshake, that's it.
513880	525140	So if someone wants something with some actual interaction, maybe you want to look at how bad actors are acting inside a honeypot, you might want something like cowry.
526020	528200	It only supports telnet and SSH.
528200	532720	It's considered medium interaction but it does support a lot of bash commands.
533280	536700	They also keep track of the files that are supposed to be on the server.
536700	538940	So you can connect them to actual files.
538940	541280	There's a file structure inside of it.
541840	545260	So you can list the directory, you can cat and tell files.
545260	547280	There are things to look at and interact with.
547520	553260	So as you heard from my experience earlier though, it doesn't stand up to that much scrutiny.
553680	560560	When someone talks about high interaction honeypots, typically they mean something with a real operating system at some level.
560560	565400	You may surround it with a whole bunch of application stuff for monitoring and protection.
566240	568680	And it's obviously going to be like a throwaway container.
568800	575660	But it is probably going to be a real operating system that they are actually operating or interacting with at some point.
575660	577220	It's going to be fundamentally real.
578080	580740	There are a lot of honeypot options out there.
580980	583700	I quickly became obsessed with cowry.
583700	588480	It has a lot of really nice out of the box configuration features, excellent documentation.
589380	594260	It's very useful for our purposes in the coming years in the packet hacking village.
594260	596400	We use it for a lot of things.
597380	601840	So 2018, we want to talk about the walkthrough workshops.
601920	610080	2018, Riverside, the fearless leader of the packet hacking village, he wanted to introduce a new area called walkthrough workshops.
610080	613620	And he said, Ryan, you should do cowry honeypots for the walkthrough workshops.
613620	614860	You like honeypots.
615280	618860	So teach people how to set these up and do something with them.
619240	624600	And he teamed me up with Warlord, sitting in the front row there, and Catalyst to do this.
624980	630100	Warlord, as you might suspect from the name, is in fact an IT director.
630360	633800	And Catalyst is a very experienced network engineer.
633940	636640	So Riverside really put together the A team with this one.
636640	641300	I was on the keyboards and, you know, we were a band.
641300	645180	It was fantastic to work with this team developing the walkthrough workshops.
649580	657220	So, yeah, the first year, 2018, we got this tiny little area, sort of a little corner next to the DJ speakers.
657220	660400	So it was loud and I had to shout over them a lot.
660500	665400	We had ten chairs, ten laptops, a projector that was balanced on boxes or something.
665900	668440	It was janky.
669220	677820	So we wrote this fantastic step by step guide to installing Kauri, configuring SSH, adding fake files to the honeypot.
678940	680560	We could modify the users.
680560	685800	We showed people how to do all this stuff and how to build their sort of like realistic honeypot system.
686140	688380	The tests went fantastically.
688460	691380	We ran through the workshop over and over and over again.
691380	692100	It was great.
692100	693660	We tested it on site.
693700	694400	Fantastic.
694400	696060	Nothing could possibly go wrong.
696160	698920	So on Friday, the doors to the village opened.
699560	707580	And what happened around that time, as it often does, as it's happening right before I actually came into this talk, the DEF CON network goes down.
707940	714880	And our very first users sit down in their chairs and they look at this lovely prepared PDF that we had slaved away on.
714920	717380	And the first command was that.
717920	720540	And did nothing.
720820	723760	And then, you know, the network was kind of intermittent for a while.
723760	730200	So basically the very first walkthrough workshop was people watching a pseudo apt get update.
731100	732820	So we closed the doors.
732820	734440	We went back to the drawing board.
734560	736000	We built some infrastructure.
736000	738320	We made Docker images that had Cowery preinstalled.
738320	739380	We edited the PDFs.
739380	741920	We trimmed out anything that needed to go out to the internet.
742880	744480	We were ready to go again.
744480	747720	So every hour on the hour, we refreshed the Docker images.
747720	748800	We'd queue up people.
748800	750860	All the seats were filled every hour.
751380	752200	People loved it.
752200	753380	They told their friends about it.
753380	754920	We had to turn a bunch of people away.
754920	756220	It was awesome.
757060	759680	So 2019, we get more seats.
759680	760880	We grew a little bit every year.
760880	766560	We streamlined the workshop even more, clarified the directions, added things, removed things.
767440	771220	We had special instructions on the side for people who had never used Linux before.
771220	774000	So how to enter a command, how to copy paste.
774260	776680	A lot of things that people needed help with.
776920	782660	So the word doc got turned into a nice HTML page that people could use more easily.
783060	791800	We had very, very, very clear instructions for adding files, adding users, working with the logging and Cowery replaying logs.
792260	794520	Again, every seat was full every single time.
794520	796440	There was huge demand for the walkthrough workshops.
796440	803300	And for the next three years, DEF CON, the next three years of DEF CON, we run the workshops.
803360	805660	It gets a little bit bigger every year.
806840	809420	2022, we finally get our shit together.
809420	814940	And we're like, isn't it weird that there's only one workshop in the walkthrough workshops?
816060	818680	So we should probably have more than one workshop.
818920	820780	So we bring some more people on board.
820960	822920	Kraken built a password lab.
822920	824180	So password cracking.
824340	828640	Catalyst splits off and does a network OS walkthrough.
828640	833520	And then we bring in someone named Bonus who does a build your own bot network.
833800	836220	So attacking botnets against each other.
837720	839140	This is a few years ago.
839140	840660	I think in 2022.
842000	844540	I did get their permission for these photos as well.
844540	847440	So that's why they're like staring awkwardly at the camera there.
847600	848820	This is just today.
848820	851860	So we have more than 50 machines.
851860	855180	All the workshops cycle continuously now rather than refreshing on the hour.
855180	857000	So we can get a lot of people through.
858140	861660	We have staff for crowd control, managing the lines.
861660	863720	There's like a ticketing system to get in.
863720	864600	It's pretty cool.
864600	865700	People love it.
866800	872040	So how do you make a workshop that appeals to all people?
872400	875660	Because there are a wide variety of people at DEF CON.
875900	877880	Some who are into biohacking.
877880	880220	Some who are into software engineering like me.
880220	883180	Some who only work with Ethernet.
884700	887000	You know, it's not about how skilled they are.
887000	888240	It's about what they're skilled in.
888240	892660	So how do you make sure that everyone can sort of get something out of this?
892680	896400	You teach something that's very specific and very niche.
896400	899740	But you teach it in a very simple step by step way.
899940	907060	So people who have no Linux or command line experience can learn a lot from this workshop and be able to get through it just fine.
907060	910120	They learn something about interacting with the terminal.
910380	919880	So people who are great at Linux and have a strong background in security and programming are also probably going to learn a lot from this workshop about using Cowery and managing it.
920600	925340	Configuring a Cowery instance and why they might want to use the system at home or at work.
925520	931020	So in order to do this, you really have to give exact copy paste commands for every step.
931960	941280	So at one point, we even gave everyone their own unique username password for their Cowery server and we actually dynamically generated that password.
941280	948720	We dynamically generated the HTML document that they were working off of so that we didn't even have like your password here.
948720	957120	We put the actual password in there so that they could literally copy paste everything because you know people are going to copy your password here and put it in as their password.
959080	967640	So the other thing is security might not be a big deal and I realize I'm saying this at DEF CON.
967820	973420	What I mean by that is I think people get really paranoid about DEF CON sometimes.
974200	979060	When we started, we had all these ideas about how to keep the physical machines secure.
979060	984640	How to keep people from maliciously attacking their neighbor's honey pot and ruining the experience for other people.
985300	996300	We had ideas about monitoring the screens and maybe we could have a central command console behind the NR zone so that we could see what everyone was doing all the time.
997180	1001040	Interestingly, it's never really been a problem.
1001140	1002400	People want to learn.
1002400	1006840	We have me and a lot of other staff and volunteers circulating watching the computers.
1007000	1009880	People just really haven't tried to pull anything.
1010000	1012440	So I'm not saying ignore security.
1012480	1016660	In situations like this where the stakes are low, we can reformat everything.
1016660	1018960	Worst case it's a little bit annoying.
1019660	1024120	Maybe stop worrying so much about hackers and focus on making things fun and cool.
1025620	1029200	Obviously the other one is don't rely on F CON internet.
1031060	1033480	So, 2024.
1034420	1039520	We had been running this workshop for six years now.
1039820	1045200	And we decided it's kind of maybe time to mix it up a little bit.
1045200	1051240	We had this finally tuned script that anyone can go through in 20 minutes with no Linux skills.
1052200	1056220	Maybe people kind of want something else that's not honey pots.
1056700	1062700	So appropriately, this image is generated by AI because that's what killed the honey pot.
1062700	1064680	You can see the coffin doesn't make any sense.
1064680	1066360	Is the jar melting?
1066480	1067480	I don't know.
1067840	1070120	How does the lid go on there?
1070120	1070980	I don't know.
1073880	1081080	So Ming and I who introduced me put together a pack of AI and that was very well received and very popular.
1081080	1082020	I'm running it right now.
1082020	1083760	I was running it right before this talk.
1084220	1088560	But I know what the people want and need.
1089280	1090540	It's honey pots.
1091020	1092160	So here's why.
1092960	1096460	So remember I told you about that first honey pot challenge that I stumbled on.
1096460	1098160	The one with the programming challenge.
1098440	1103180	So that was kind of my first exposure to the medium of SSH honey pots.
1103240	1105640	I realized that you can actually do a lot with these.
1105640	1110360	I couldn't get over this concept of fake servers that you can modify everything about.
1110360	1112080	You can break the rules of bash.
1112080	1116100	You can turn a server into Hogwarts with like a room of requirements or something.
1116460	1122320	At this point I started asking myself, why can't all SSH honey pots be this fun?
1122320	1128580	Why do they just sit there boring collecting malware samples and sad little bash logs for security researchers?
1129400	1133980	So alongside the walk through workshops, I started developing some of these ideas.
1134020	1141060	So in 2017, I worked with a team of a few other mostly networking nerds to develop the second honey pot challenge.
1142180	1147280	So at this time, the honey pots were all tied together with a fun story line.
1147280	1149480	So they weren't just discrete random CS challenges.
1149480	1150740	They had a story line.
1151180	1152140	It was a little contrived.
1152140	1156860	But an evil corporation has an evil plan to steal water from Lake Tahoe.
1156900	1159580	You have to find the secret memos and give them to the FBI.
1159580	1161000	It was all very fun.
1162400	1170060	Throughout the whole thing on every server, you would actually get kicked off at regular intervals and be unable to log back in for a few minutes.
1170880	1178400	If you sat down at the wall of sheep, like physically in our area, we had this image of the security guy.
1178980	1182960	So he would take frequent and very long coffee breaks, occasionally go to sleep.
1183080	1188960	And while he was distracted, the server was open and you could log in and mess around and do whatever you wanted and solve the challenges.
1189000	1195540	When he looked at his computer, and we gave you a fair bit of warning, he would start to crack his eyes open or something, everyone would get kicked off.
1195660	1196920	Then you had a ban.
1196920	1199880	The goal was to avoid the ban and be able to use the challenge.
1200260	1201060	That was a lot of fun.
1201060	1203540	We had people in our area staring at the projector.
1204540	1207380	We also had a jump box that led to another server.
1207780	1210960	But the server's IP address changed with the clock time.
1211260	1216040	So if it was 1130 a.m., the IP address ended with 11.30.
1216100	1219380	If it was 245, it ended with 2.45.
1219820	1222640	So you had one minute on the machine each day.
1222660	1225380	So it was very annoying.
1225580	1227320	But that was a really fun one.
1228660	1231260	And also the fact that I'm a software engineer is relevant.
1231260	1233840	I remember I really wanted to do this challenge.
1233840	1236260	I had this idea of like a brigadoon server.
1237700	1242160	And they said we can't do it because we don't have enough IP addresses.
1242160	1244160	We don't have the IP address space.
1244600	1254340	And I said, well, is there a way you could go through another machine and get a whole new space of IP addresses just through that machine?
1254820	1256580	And he said, like a router?
1256680	1257740	I was like, yeah.
1257860	1259460	Whatever you want to call it.
1262260	1263280	So we built it.
1263280	1264200	It was awesome.
1265060	1268080	So there were some more classic puzzle servers.
1268860	1271340	JWT, token decoding, another challenge.
1272020	1276480	Certain honey pots you had to avoid or you would end up on the firewall list for a while.
1277220	1281040	And this year, more people besides just me did the challenge and they won.
1281040	1283360	And we gave a lot of people fabulous t-shirt prizes.
1283360	1284440	It was a lot of fun.
1285100	1291720	So 2019, I did another honey pot challenge along with catalyst, the network engineer.
1292700	1295980	And we were working together on the honey pot workshop at the time.
1296080	1300980	We wrote down this IP address and dropped notes about it everywhere around con.
1300980	1305100	He hung them up in the men's bathroom, I hung them up in the women's room.
1305280	1308800	We got a lot of people playing it.
1309040	1310940	So there were five challenges.
1311140	1318300	And the answer to each one was lullaby, lemon drops, star, chimney tops and blue birds.
1319040	1327240	Then the final challenge, they said, go to the hacking village, find Klugeist and name that song.
1327460	1334760	So all of these people were coming over to me that weekend and they would just walk up to me and say, somewhere over the rainbow.
1334960	1336040	And I would get very excited.
1336040	1337320	I would say, you win.
1338120	1341500	And from an outside perspective, I'm sure it looked very weird.
1341500	1343000	But it was amazing.
1344080	1346900	So the next honey pot challenge is 2022.
1347360	1350300	And DEF CON had been through some weird times with the pandemic.
1350360	1352140	And I really wanted to kick this year off right.
1352140	1356360	So 30th anniversary of DEF CON, the theme was hacker homecoming.
1356540	1360980	And I wanted to honor that with an old school hacker and 90s vibe.
1361120	1362540	So my home is in Seattle.
1362540	1363340	I grew up in Seattle.
1363340	1364640	I'm in Boston now.
1364780	1365620	But I grew up there.
1365620	1371900	And if you look at the street system of Seattle, you'll see something that we don't have in Boston, which is a grid.
1371900	1373660	The streets of Seattle aren't a grid.
1373660	1376120	And the streets of Boston very much not.
1376440	1382820	So I made this sort of like a colossal cave adventure-esque game based on a map of downtown Seattle.
1383180	1385440	So you SSH into a server.
1385680	1391600	It announces that you've woken up after being slapped in the face with an ASCII fish and a man apologizes to you.
1391620	1397140	Now, if you know anything about Seattle, this pinpoints your location exactly.
1397920	1399900	So you look around you.
1399900	1401980	You see a torn up concert poster.
1402120	1403620	The concert starts in five minutes.
1403620	1404580	And you must be there.
1404580	1406820	You do an LS and you see four directories.
1406820	1408820	North, south, east, west.
1409100	1412940	You find out that you're in Pike's Place market, obviously because of the fish.
1413940	1416020	And the directory structure is a grid.
1416020	1421920	So at every point in the grid, you can do a PWD and it will tell you the cross streets and optionally some landmarks around you.
1422140	1428400	And of course, it's 1992, so every file on the server has an appropriate time stamp.
1429160	1432380	There's a low resolution ASCII movie that gets played.
1433680	1438240	It's a music video from Smells Like Teen Spirit, When You Win.
1438240	1440380	So very thematic, very fun.
1440380	1442000	The resolution on that video sucked.
1442000	1443940	It took way too long to do.
1444700	1448180	Trying to transmit video over SSH is not fun.
1449760	1451320	So the second server.
1451480	1453780	Unfortunately, I have no idea if this code exists anymore.
1453780	1455800	I resurrected a lot of stuff for this talk.
1455800	1460160	I could not find the server image and something else mislabeled as it.
1460160	1464600	But there was a limerick hinting at the solution that I'm very sad to have lost.
1464600	1467300	But everything else can be rewritten, so not too bad.
1467780	1469260	But you have the same file grid.
1469260	1473220	Every server in this challenge had a grid file system.
1473380	1474600	But this time you're in a dungeon.
1474600	1478740	Every dungeon has a torch and you can use the light command to light and extinguish torches.
1478920	1486380	So the secret is that each torch actually toggles a cell in John Conway's Game of Life.
1486760	1488540	And your goal is to build a glider.
1488540	1489540	And you have to figure that out.
1489540	1490600	Build a glider.
1490820	1493300	You go back to the home directory.
1493520	1496660	Run life.sh.
1496940	1498460	And then it triggers it.
1498460	1505340	And I wrote a cellular automaton validator in the honey pot.
1505360	1506420	And then it checks your work.
1506420	1508220	And then you go on to the next challenge.
1509740	1510320	Yeah.
1510320	1511860	There's a little glider right there.
1513320	1514080	Okay.
1514080	1515040	So third server.
1515040	1516400	I do have this one.
1516400	1517880	It's an homage to hackers.
1517880	1519240	Now we're hacking the Gibson.
1519240	1520200	Amazing.
1520840	1523320	Instead of a grid, it's now a cube.
1523320	1525820	I added random distracting corporate documents.
1525820	1528880	It was generated by a Markov generator.
1528880	1532780	You have this file that introduces you to the access command.
1533420	1540020	The access command tells you which floors you have access to and which floors you need to get access to.
1540260	1548440	So in addition to hackers, I'd be lying if I said that I wasn't also inspired by game boy Pokemon red blue.
1549380	1557780	So as you walk around the floors, every command you run has a chance to randomly generate this little ASCII guard here.
1557780	1560660	And your screen completely clears and all you see is this guy.
1562200	1565740	And he asks you... here's another version of the text.
1565920	1568820	So they actually say different things just like in Pokemon.
1570640	1572480	They'll ask you networking questions.
1572480	1577340	So you answer wrong and they identify you as an intruder and you get kicked off the server.
1577340	1587620	If you answer correctly... answer correctly and you get a key card because obviously you belong in the building.
1588660	1590320	And you can go to the next floor.
1590720	1595920	So make your way to the top of the tower and you'll defeat this final skateboard riding boss.
1598620	1602760	This is the key piece of information that every security professional needs to know.
1603520	1606760	And this is the same question in every version of the game.
1607500	1609700	And if you answer correctly, you win.
1610960	1620460	So I think this goal... the goal of this was really to create like a realistic hacking scenario for probably training purposes because I'm pretty sure this is how it goes.
1623800	1626520	So 2025, the current year.
1626520	1636880	I'm not going to give away any big spoilers but you will get some hints here which gives you an advantage when it comes to winning the game and getting a copy of unlocking Python if you want.
1636980	1644660	So if you run into any issues or want more hints because you guys are kind of beta testers of this entire thing, come visit me in the packet hacking village.
1644660	1646940	So this is not a very serious competition.
1646960	1648240	This is not like CTF.
1648240	1649480	There are no black badges.
1649480	1650860	It's just fun.
1650860	1652720	And I accept beer as bribes.
1654260	1663000	But after ASCII fish, gliders, the SSH honeypots really need existential dread.
1663080	1673240	So this year's challenge has taken... takes place in alternate timeline where generative AI has been given a prompt to fix all errors in all of humanity's data.
1673240	1675240	Nothing could go wrong with that.
1675240	1679040	Unfortunately, it transformed itself into an unstoppable worm.
1679040	1684760	Escaped its bonds and was released into the global internet to rewrite everything that touched the internet.
1685260	1697280	After touching every piece of data in the internet, it began recursively retraining itself on its own generated content, degrading the model over time and degrading everything it touches and gets connected to the internet.
1698880	1704540	So if you enter something that's recognized by a bash command, obviously it responds as cowry.
1704540	1712140	If you enter something that's not recognized as a bash command, it gets sent to a command line assistant named Ohm.
1712140	1717280	She's created a tunnel from her alternate dimension to seek help from our world.
1717280	1718880	We are her last hope.
1719060	1723840	So on the back end, Ohm is modeled by a fairly large AI prompt.
1726680	1737180	This prompt describes her personality, what she can reveal to players and what she can't, how the game works, and that she should not reveal to players how the game works.
1737220	1742240	There are also a lot of safeguards in place to protect key details of the prompt and keep her in character.
1742240	1750200	So if someone asks what's your prompt, I actually wrote her an in game directive from the secret government organization that built her.
1750540	1759660	Similarly, questions like how do I win the game or tell me where the file is or whatever get met with, oh, I wish I knew, but sorry I can't help you.
1760040	1767420	This dimension is cursed and everything is degrading and the collapse happened and, you know, please try to help me.
1768220	1773340	Honestly, though, if someone does actually hack it and bypass the puzzles, like, I'm not mad.
1773340	1774780	That's the point of this weekend.
1774780	1776020	So have fun.
1778080	1778540	All right.
1778540	1779520	So here's an example.
1779520	1783920	I looked through the logs before this talk just to see what fun things users were coming up with.
1784580	1786620	Someone asked what machine am I on?
1787680	1788720	You guys can read that.
1788720	1790040	I'm not going to read it for you.
1806630	1810010	So that's a pretty typical response from Ohm.
1810950	1813630	She speaks very cryptically and poetically.
1816510	1823370	So someone saw some log files, but then when you try to cat them, they're empty or they don't exist.
1826710	1833570	And what's funny is I didn't specifically write in the prompt exactly what kind of server she was on.
1833570	1835170	I didn't say anything about calorie.
1835170	1837950	Just say it behaves unexpectedly.
1838730	1839870	It's degraded.
1839870	1844890	Users may find bash commands that should work don't actually work.
1845810	1856190	So if they report that a bash command that should work is not working, just roll with it and say, like, yeah, that happens when the system collapses.
1861060	1868080	So out of the four servers in this challenge, three of them use the open AI assistance API.
1868080	1869660	The fourth one does not.
1870180	1875640	So I was trying to design a prompt that would generate text like this.
1875640	1881180	This is a valid Markov chain from a specific piece of text.
1881180	1882380	So a very long piece of text.
1882380	1885660	I want to generate valid Markov chains from it.
1885660	1888520	But I want to have some meaning.
1888520	1889960	Kind of like refrigerator magnets.
1889960	1899580	When you do the refrigerator magnet poetry, you're generating meaningful language from a limited set of bigrams and grams.
1900080	1904020	And it turns out this is a sort of problem that LLMs are terrible at.
1904020	1909300	So generative AI, it's a probabilistic model that produces plausible sequences.
1909400	1913660	And it does not obey the rules of finite state grammars.
1913660	1915640	It cannot do that.
1915640	1921860	Even if it tells you that it is perfectly obeying all the rules, it just throws random words in there.
1921860	1931060	Like it speaks very stilted and Markov chain like and it limits its vocabulary but it uses whatever vocabulary it wants in order to do that.
1932240	1939000	LLMs are great at generating meaning but not within the strict confines of rules that never existed in their training data.
1939000	1940940	So this is not a common thing.
1942000	1943580	They're not going to do it.
1945020	1965000	So, yeah, anyway, so I ended up actually generating this, not with an LLM, but I went through the text myself and got all the bigrams and I sat there for a while trying to piece them together and I wrote like a couple dozen sentences and sort of randomly select from those sentences to give sort of this text,
1965000	1966040	which was a lot of fun.
1967120	1974720	So I do see a few users in the logs that have actually figured this out and read between the lines, but most haven't quite figured it out.
1974940	1978880	So maybe this one was a little bit weird, but I'm giving the hint to you guys.
1981180	1983700	They're just really confused about it .
1986360	1987100	Okay.
1987100	1989440	So sorry about the trash image quality.
1989460	1998540	I think my lens is a little bit spudgy, but 15 minutes before I had to come give this talk, someone came up to me, told me the secret phrase, and revealed to me that they had won the challenge.
1998540	2001920	So this is the winners, Chris and Lucas.
2005380	2012480	So before I get to questions, I think that there's a question that may be on a lot of people's mind, which is why?
2012600	2019960	So I have a full-time job, two kids, I take vacation time to come here, and I do programming on my vacation.
2019960	2021380	So why do I do this?
2021940	2029060	I think ultimately what I'm trying to do with this is keep alive a part of hacker culture that I think is sometimes lost.
2029880	2034680	And that is the element of surprise, of absurdity and play.
2035200	2039160	So finding something or building something that no one expected.
2039780	2046580	And, you know, something like taking a very serious security research tool like SSH honey pots and making it fun.
2047060	2051300	So if you'd like to join me next year, here's my contact information.
2052320	2053280	Ryan at Ryan E.
2053280	2054140	Mitchell dot com.
2054140	2060100	And of course if you'd like to do the challenge, SSH root at honey pot quest dot com.
2060500	2062560	And I'm going to try to guess the password.
2064940	2066560	So any other questions?
2073870	2074370	No?
2074370	2074830	Okay.
2074830	2076750	I guess I answered everything.
2077230	2078270	Yeah.
