start	end	text
0	1500	Let's start.
3460	4840	Happy to be here.
4840	8960	This is my second time in DEF CON and second time talking on the creator stage.
10420	18780	I'll be talking about a mix of my favorite topics, which is network fingerprinting, honeypots, and AI agents.
18940	24380	So I kind of mixed them all together and created an open source tool just a few weeks ago.
24380	26300	I released it last week.
26300	35420	And yeah, I'm gonna go through why it can be useful and how you can probably use it for different use cases.
35420	43160	Because usually I start with a fun, crazy idea which doesn't have any production use case.
43160	47440	And then it turns out that, okay, this is useful.
47440	49500	Maybe I should release it to the rest of the world.
50120	52140	It was the case with this one as well.
52460	55220	So before we get to the slides, just a quick intro.
55220	63840	I'm Adil, working on security detection and response for over 10 years now.
64580	70020	Part of it in Google and now at an AI startup, AI chatbot startup.
70740	80500	And yeah, outside work, I just work on random honeypot projects and things that I can easily release without getting approval from the company.
80500	88020	So yeah, I don't want to be known just by honeypots and network finger-painting, but that's the easiest thing to publish.
90540	92500	I have a bunch of open source projects.
92500	98180	You can take a look at my GitHub repo, 0x4d31.
99720	102700	That's my Twitter handle and also GitHub.
104180	107460	I have a QR code and all at the end of the slides.
107460	113780	So if it didn't work, I can just show you on my MacBook.
119190	123570	Okay, so the initial motivation and why I created this thing.
123570	126670	So what is even this thing we're going to talk about?
126670	131610	So it's basically a fingerprint-based or fingerprint-aware reverse proxy.
132330	135250	This is just a term I made up.
135250	137110	It's not a known term.
137110	139810	So if you don't know what it is, that's fine.
140230	151570	So the idea was to see if I can mess with the attackers based on their client fingerprints rather than just IP or user agent and things like that, which can easily be faked.
153710	161670	So I have a quick primer on the fingerprints and how they work, so don't worry if you don't know anything about the fingerprints.
162490	172770	But yeah, that was the idea, like just to have a more intelligent way to waste attackers' time or dynamically route them to different systems or different honeypots and things like that.
174490	177990	But why at the reverse proxy level?
177990	185970	Why not just a passive system like Suricata or Zeek to just capture all these network fingerprints?
186250	188050	Basically, I started from there.
188050	201110	Like a few years ago, I had a talk about HoneyTLS, which was just a very janky Nginx SSL reverse proxy, which I kind of used as a honeypot.
201110	207070	And I collected these TLS fingerprints and other network metadata using Zeek.
207070	208670	It was broad at the time.
209270	224730	And yeah, just my goal was to see if we can find more interesting patterns looking at these fingerprints and extra metadata rather than just looking at the source IP, user agent, and the request.
224730	236590	Because if you attended some honeypot talks before, you see that all you get is just like, I set up this honeypot, and I got these 100,000 requests in a day.
237130	241850	The top request was from this country, these ports, and these requests, and that's it.
242730	246950	So seven years ago or eight years ago, I was working on this HoneyTLS thing.
247050	252270	I captured logs for about maybe three months.
252730	256730	And then I had this talk at the HoneyNet conference.
256970	262010	As always, I was creating the slides and looking at the new data just a night before.
262110	274030	And then I found a really, really interesting pattern in the logs, which I will hopefully show you later in the slides, which kind of proved that how useful these extra metadata is.
274310	288150	So even if you don't want to use this as a kind of signal or as a mechanism to route the traffic to other systems, you can just have this as an extra metadata or signal for your analysis.
288150	290410	It would be very useful for the Threat Intel stuff.
291850	305850	And another reason that we do this at the reverse proxy level is, so with my previous setup, I was capturing these connections with Zeek, as I said, and you get just the TLS handshake at that level.
305850	308150	You don't get the HTTP logs.
308150	322770	So I had to collect the HTTP logs from the Honeypot, which was the NGINX I mentioned, and I had to join it with the TLS logs to get something useful, to have both HTTP and the TLS stuff there.
322950	326730	But if you do this at the reverse proxy level, you just get that automatically.
326730	332130	So you just have both TLS stuff, the HTTP stuff, it would be way more useful.
332250	337330	You can also have the HTTP fingerprints in addition to TLS fingerprints as well.
340630	355910	Okay, so another reason I was thinking of using fingerprints, and maybe it's useful for you as well, is relying on IP addresses and user agents or things that can easily be changed or faked is...
357690	363330	Just a second, maybe my slides are recorded, so I can move on the slides as well.
364950	370290	Yeah, so the reason is IPs and user agents can easily be faked.
370490	375690	And so they just rotate IP addresses like 100 times per minute.
375690	388270	And if you set up like honeypots before, you see that you get a lot of requests from different IPs, different ranges, but they all seem to be from one actor.
388330	394090	You can't really prove it unless you have these additional data, which is like the fingerprints and a few other things.
396110	412090	So instead of relying on user agents for blocking bots or crawlers or things that you don't like, or just going after this whack-a-mole of blocking IP addresses, you can just rely on extra things deeper into the packets.
412090	415860	So for TLS, it's TLS handshakes, client hellos.
416350	428650	And for HTTP2, there are these extra frames like settings and update window and priority that you can use, which is very unique for different clients.
429150	433590	And even for HTTP itself, just like the order of headers are really cool.
433590	446730	Like it can easily be faked again, maybe a bit harder than user agents, because like, for example, if someone uses like Python request, it always comes with these three headers in the same order.
446770	451690	So they can change it, but it takes a bit more effort compared to user agents.
453510	459870	But yeah, once you have these metadata or fingerprints, you can block easier and smarter.
459870	463530	You can deceive better if you're into Honeypot.
463730	468590	And you can find patterns that otherwise would be impossible to find.
468590	473310	I will show you some very interesting patterns, which I found using these fingerprints.
474910	500670	So just a question before we go further, can your WAF currently, like whatever application firewalls you're using or like AWS, whatever edge service that you're using in front of your production services, allow you right now to block things like Zap or Burp Suite or like other tools like that?
501410	502730	No.
502890	519330	I know like a few providers, like probably AWS and Cloudflare provide something like that, but it doesn't let you customize things and say like, for example, I don't want to see traffic from this specific TLS fingerprint.
519330	525950	They just apparently have this checkbox that you can say, OK, protect me from known bad bots or things like that, maybe.
527730	535850	But yeah, so because of that, I thought, OK, it might be interesting to just set up, like create a new reverse proxy.
535850	546570	My intention was not to build something like huge from scratch, like Nginx or Caddy or things like that, because those are way more complex, harder to customize and things like that.
546570	549990	But I wanted something very simple for my use case.
549990	555930	And so, yeah, that's why I started building this tool.
555930	574090	You can even do very fun things that I'm sure none of other application firewalls and those cloud-based services can provide, such as redirecting the request based on their fingerprints to honeypots or deceiving them by some other methods or targeting them,
574090	575810	like slowing them down.
577370	581390	OK, so at this point, we know most WAFs don't do that.
581390	583490	So that was basically the reason.
584190	604670	So Finch, this tool I released last week, is a fingerprintable TLS reverse proxy that lets you deny routes, tarp it, and deceive based on those client's fingerprints, and also other basic metadata like the request and the user agents and the other HTTP methods.
604670	610210	Even something I added, I just remembered, was Suricata alerts.
610310	618630	So without relying on the Suricata service itself, I added this parser for Suricata HTTP rules.
618630	624450	It doesn't support all the keyboards and all the complex things, but it works for my use case.
624450	636410	So you can just download the Suricata rules, put it there, enable the Suricata module, and then all the requests coming will be matched against those Suricata HTTP rules as well.
636490	640570	And then it will be exposed into the tool configuration as well.
640570	646610	So you can decide to redirect traffic or block based on the Suricata message as well.
646610	653150	So you can say like, okay, if it matches with exploit message in the Suricata, just block it or redirect it to Honeypot.
654610	668410	Okay, so in the slides, I had this example for ZAP web application scanner that I will show that you can customize the user agents from the tool setting, but that's it.
668410	673510	Like you can't change anything about the order of HTTP headers or TLS or things like that.
673510	686330	So you could just use these fingerprints in this easy to use HCL configuration, which I have in my tool and block these.
686430	693790	So for the configuration, you can't see it, similar to platform configs.
693790	695150	So very simple.
695150	703830	It's not that messy compared to the other reverse proxies, which like it's always like when you change something, it breaks everything.
703910	711110	And it's either like these complex JSON or like YAML or things like that.
711110	719050	But yeah, I decided to go with, I did like a few iteration and at the end, I came up with the custom HCL one.
721330	730290	Okay, so at this point in the slides, I will show an example for the zap scanner, which can slow down the attacker.
730290	731750	It does the targeting.
732230	739010	So whenever someone uses zap to scan your application, it slows down.
739010	745350	And for example, NS scan, which normally takes like 20 seconds, like I tried it with Nmap as well.
745350	747630	It takes more than 10 minutes to finish.
747630	752510	So you can just waste attackers time or resources that way.
752510	758830	I mean, it kind of wastes your resources as well, but I put some guardrails and protections and limits.
758830	765430	So there can't be, for example, more than 16 simultaneously open connections to your proxy.
765430	766990	You can customize that.
769650	779710	Okay, so before the fun part starts, we need some basics about the fingerprints and how it works for the people who don't know what it is and what we're actually talking about.
781630	791250	So where these signals, like you can find, like where are these signals on entropy we're talking about?
791250	796870	So as I mentioned before, briefly in TLS, you can look at the TLS handshakes.
796870	805090	And although like TLS is encrypted, but like that initial handshake, especially client hello and server hello are clear text.
805090	808490	So you can just look at that, extract those parameters.
808490	812390	And those are very unique for different libraries and clients.
812410	813630	It's not a silver bullet.
813630	817970	Like some people I've seen that use it as a signature for writing detections.
817970	821470	It doesn't work well in that use case.
821470	834230	I mean, there are a lot of command and control, like C2 agents and implants that use very specific TLS configurations, which is very unique to them.
834230	837430	So in those cases, you can use it for like detecting those.
837430	841530	Any network monitoring tools like Zeek in your network.
841530	850490	But in other cases, I don't suggest to use it as like the only detection method because it would be very noisy, false positive, false negative and things like that.
850490	854250	So I suggest using it just as another data point.
854250	862910	So just something besides user agent and other metadata you have from the networks, just add these as well, which help you find very interesting stuff.
864070	870450	For HTTP, as I said, the headers and the order that those headers appear is where you should look for.
870650	877730	And HTTP2, same, like there are some frames, like settings, updates and priorities, which you can use for these fingerprints.
879190	882850	So in TLS case, we'll start with TLS.
884050	886510	In the client flow, we have multiple parameters.
886510	891050	One is version, the other one is cipher suites and then extensions.
891550	897370	These extensions and cipher suites usually come in a very specific order.
898270	904470	Again, these are things which depend on the underlying library that the client uses.
904470	915230	So for example, if Google Chrome uses BoringSSL and another tool uses the same version of BoringSSL on the same OS, you probably get the same fingerprints for both two.
916330	918370	But it's nice.
918470	926530	In some cases, you see some very unique things, especially if you combine that with other things, like for example, in HTTP, as I mentioned.
926530	930250	That's why I really like to do this at the reverse proxy level.
930250	937450	Because you can then cross-check like the HTTP fingerprints and info that you have with the TLS ones.
937450	943890	So maybe the attacker tries to fake the TLS and forget about the HTTP and vice versa.
943890	952850	So then by checking these two, you can say like, oh, this pretends to be Google Chrome by looking at the user agents and fingerprints.
952850	959410	But then you look at the TLS stuff, it's like a CAV, for example, or some other random tools.
960650	980570	OK, so I just skipped these slides because you can see that it's just a bunch of screenshots for TLS packets and handshakes, which shows where these versions and crypto algorithm exist.
980570	986250	I will just share after the talk my slides in my GitHub repo, you can just download and go through them.
987530	991630	So one of the most common fingerprint techniques is Jottery.
991630	993670	You may have heard about Jottery.
994890	1001470	There's been a lot of TLS fingerprint and similar work like in the past, like 10 or 20 years.
1001470	1015270	So this is not just a very new concept or thing, but it was very hard to use those previous fingerprinting techniques because it was not easy to share them or use them in the different tools.
1015270	1019470	There was no support in different, for example, security products.
1019930	1026450	But Jottery, created by one of my former colleagues back in Salesforce, is a very easy one.
1026450	1038810	It's just a hash that combines versions, ciphers, extensions, curves, and elliptic curve format in a specific format, combine them together and create an MD5 hash on it.
1038910	1058910	There's been also some issues with it because, for example, some legitimate tools like Google Chrome browser, they have this extension called Grease, which just randomizes these extensions, which kind of mess with these like Jottery fingerprints because if you capture traffic from Google Chrome,
1058910	1064370	you see that, oh, it generated 20 different Jottery and that's why.
1065910	1073730	But generally, it works pretty well, especially if you also log the raw strings before applying the hash to.
1073790	1083310	Because the raw string, when you just put all these parameters together, it kind of shows you some interesting patterns, which the MD5 one doesn't.
1083310	1089950	Because looking at an MD5, you just see a random packet, random string, which doesn't mean anything.
1090050	1100630	But looking at those raw strings before applying the hash, you can actually see like, oh, this was like TLS 1.2 or this was like a list of cryptos and stuff.
1101270	1106610	And that's why he created the next version, which is Jot4.
1106710	1111850	So in Jot4, it's more readable, rule-friendly.
1111850	1118270	You can just, for example, write a rule to look for the first few characters and then asterisks, the rest.
1118530	1122370	Because the format is defined in a way that's easy to do that.
1122370	1128430	And just by looking at this string, you can say that, oh, this was like a quick traffic or was it like TLS 1.3.
1128550	1131190	And then you can see the rest of things as well like that.
1131190	1151230	So it's way more readable and it's resilient to that Google Chrome randomization thing, as I mentioned, because it doesn't store the ciphers and algorithms in the order that they appear, but they actually sort it and then generate the hash.
1151230	1153670	So it solves that problem.
1155950	1163510	One quick other thing about TLS and then we move on to HTTP and other fun stuff.
1163850	1169850	So QUIC is this protocol, which is like TLS 1.3 over UDP.
1171650	1195710	So just like searching about it, because majority of web traffic right now is on QUIC and it's not like the normal TLS over TCP traffic anymore, especially if you use Google or Cloudflare or websites like behind Cloudflare, you have this QUIC thing, which there's been a lot of different versions.
1195710	1205330	Google started that and then IETF standards did some standardization to make it available like to other people and folks.
1205390	1211650	So the thing is, most of network monitoring tools are currently blind to this traffic.
1211650	1214050	Like there are no parsers for QUIC.
1214050	1219530	Wireshark has some modules by default, you don't need to install anything.
1219610	1227990	So just spin up like Wireshark, search for QUIC and you will see the traffic.
1227990	1237230	So the interesting thing about QUIC is it's not like the normal TLS traffic, which you can just look at the traffic and extract the TLS handshake, like the client hello.
1237230	1247190	The problem with QUIC is that TLS client hello is protected by some encryptions which can be recovered and decoded.
1247190	1248470	So it's not created.
1248470	1250110	So no one can look at that.
1250110	1258250	It's a specific standard that if you know it, you can decrypt and extract that TLS client hello inside it.
1258650	1265470	So the thing I did, I add some experimental supports of QUIC to my tool.
1265810	1269000	So I tested with Carol, it worked.
1269000	1272980	With Google Chrome, it didn't work for some reason.
1272980	1274440	So I need to fix the problem.
1274900	1278540	But anyway, this is just like an experimental thing which I added support for and it's cool.
1278540	1288620	So even if you have like HTTP3 QUIC traffic, you can do the fingerprinting, applying the same JAW3 and JAW4 fingerprinting to those as well.
1288620	1294620	So I also included a client tool which you can use.
1294620	1302080	It's in the repo that it monitors the QUIC traffic or the PCAP and it extracts these fingerprints from the QUIC traffic.
1305620	1314520	Okay, so for HTTP, as I said, I really like HTTP1 because it's very simple and it's very effective.
1315060	1319100	It's a very hard, strong signal for a lot of clients.
1319280	1323440	Just looking at the headers and the order of them, that's it.
1323440	1330980	I was using this for many years in my other open source tool called FAT which is like fingerprint all the things.
1331080	1339580	It just collects metadata and I had this very simple HTTP fingerprinting based on just the headers and the orders.
1340000	1351140	But if you want to have something like more standard, JAW4 also have a HTTP version called JAW4-H and I added support to my tool as well.
1351140	1356940	So just out of the box, you see JAW4 beside the JAW3 stuff as well.
1357100	1359940	It's a bit more than just headers and the orders.
1359940	1372820	It also captures some cookies and referrers and things like that which you can specifically identify one specific clients or application versus like just in general, Google Chrome version X.
1375060	1381500	And the last one in the list of fingerprinting 101 is HTTP2, as I mentioned.
1381500	1383260	I don't want to repeat it again.
1383260	1405940	But there's this method which someone from Akamai worked on which combines settings, window update and priority and creates these fingerprints which I also really like because combination of these HTTP2, HTTP and TLS gives you a very strong signal about the clients.
1405960	1409860	Like you can do way more reliable fingerprinting based on those.
1411900	1416540	And before we end this section, there is this part about evasion techniques.
1416540	1422040	So as I mentioned, of course, these fingerprinting techniques are not like bulletproof.
1422040	1434300	There are many ways attackers can like fake these or mimic, for example, in a specific known client application by just changing the way they create these clients.
1434300	1436420	Hello, for example, for TLS.
1436500	1443060	It's interesting, like a similar talk I had like five years ago, no known tools.
1443720	1446120	Yeah, there was just one called UTLS.
1446120	1452280	There's this library that you can use to fake HTTP TLS fingerprints.
1452380	1464280	But now like just before the talk, I was searching to see if there are any new tools and there are like tens of other new tools because a lot more people started adopting Jottery.
1464280	1470660	Like now Jottery and Jot4 is supported in like AWS, Cloudflare, many tools like Suricata.
1471360	1474460	Zeek and other open source and commercial tools.
1474460	1481180	And because of that, now they know the value of these fingerprints for defenders to detect bots or specific tools.
1481180	1485400	So now they started using this mechanism to fake them.
1485400	1494140	But even that, as I said, one thing you can do is to just have multiple layers of fingerprints, HTTP, TLS and a few other things.
1494140	1497360	And it would be way harder to fake those for the attackers.
1497360	1504640	They would probably miss to do like all of those because they already know that a lot of companies don't even collect like Jot3s.
1504720	1506740	So yeah, they don't care.
1506740	1517960	Like they just like maybe just maybe less than, I don't know, like I don't have a number, but less than 10% even know about these Jot3s like on the offender sites.
1517960	1519220	And yeah.
1520360	1529220	There was even one I found which was very interesting because one of the demos I had was I was fingerprinting Berp suite repeater module.
1529220	1537420	If anyone wants to use like Berp suite to scan your website, do some bug bounty hunting and finding bugs, you can just block them.
1537420	1546100	I mean, don't do that unless you're a very broke startup or you don't have like resource to fix your security.
1546100	1549940	Like I mean, blocking security scanners is not the solution.
1550020	1560560	But there is this module in Berp suite called Berp Awesome TLS, which you can install and fake the TLS fingerprint of the Berp suite as well.
1560560	1561160	It's nice.
1562780	1566980	Okay, at this point, I definitely need to have some slides.
1567440	1570560	Otherwise, I can just show you the slides like this.
1572500	1578160	Or something I could do was just to share these so you could all just look it in your phone.
1578160	1582420	But I guess I will do it after the talk.
1582500	1584820	So I have this graph, which is really nice.
1584820	1598220	It shows how by just adding these fingerprints to the mix, you can uncover some very interesting patterns which otherwise would be impossible to find.
1598240	1606020	So what I did was when I set up my high TLS project, I collected TLS fingerprints, as I mentioned.
1606280	1612160	So I started visualizing these, creating some directed graphs with D3.
1612160	1623960	And the pattern was very interesting because I was expecting to see like the source nodes are source IPs and the destination nodes are these TLS fingerprints.
1623960	1633500	So what you expect to see is usually seeing one Jot3 fingerprint with a lot of source IPs around it, right?
1633500	1642140	Which means someone used Nmap and a lot of other people use the same tool as well because it's a known tool.
1642140	1645780	The fingerprint is the same and a lot of IPs used it.
1646060	1652100	But what I saw instead, I mean, 80, 90% of the traffic I saw was following this pattern.
1652100	1663560	But there was this very interesting pattern from three or four actors, which was like one IP address generating hundreds of Jot3.
1663860	1669460	And it was interesting that this pattern was even unique to those actors.
1669460	1680440	So when you were looking at this, like actor X, for example, you were looking at the raw Jot3 fingerprints like before adding the hash, you were scrolling.
1680440	1681920	I mean, that's how I found it.
1681920	1684100	It was very accidental before I talk.
1684180	1689720	I was scrolling through this sheet which contained the raw Jot3 strings.
1689760	1691580	And I found something very interesting.
1691580	1694320	My eyes was like, oh, there's a very interesting pattern here.
1694320	1701040	When we were scrolling, there was like this line, which was like, I had sorted it based on time.
1701040	1716880	You could see that one IP address changing, like for example, removing one algorithm from the mix, the next one remove another one, in the next request, it removes another one.
1716880	1727900	So it was doing obviously some sort of randomization or like rotation to avoid TLS fingerprint based detections.
1727900	1731820	And it was interesting that this actually made them more obvious.
1731820	1737440	Because after I visualized this and looked at the pattern, I was like, oh, these four things stand out.
1737560	1744060	But probably a lot of other people didn't notice because they were not collecting these fingerprints.
1744580	1752300	And yeah, so another interesting thing was a lot of these IP addresses was completely in different ASNs.
1752300	1754980	They had completely different identities and everything.
1754980	1760980	And without these TLS, there was almost impossible to create some connections between these.
1760980	1770320	But what I saw was like, especially for one of them, there was this cluster with IP address and 100 completely unique Jotteries.
1770320	1773500	And the same for four other source IPs.
1773500	1785100	And the only way I could connect these four clusters together was that they apparently by mistake or something, they all four used two or three common fingerprints.
1785100	1790920	So that common fingerprint was in the middle and it was connecting these four clusters together.
1790920	1797480	So it was a very interesting observation, which you could only do having these fingerprints.
1797480	1804520	So let's just move on to the actual, like talk about the tool.
1804520	1809140	So as I mentioned, I released this tool last week.
1809140	1816000	You can just go through my GitHub 0x4031 slash Finch.
1816000	1819200	And just start using it.
1819200	1820420	It's based on Go.
1820420	1826780	It collects these fingerprints and other things and expose them into the rules.
1826780	1831140	So you can decide what to do with those traffics based on those things that you collected.
1831140	1833580	So basically collect, decide, and act.
1833580	1836160	You can just block, do whatever you want with it.
1841420	1843260	So demo time.
1849650	1853870	I will upload the videos as well, because there are like really interesting ones.
1855290	1860610	But yeah, so one of them which is more interesting, which is the deceive action.
1860610	1863370	So I have these five different actions in the tool.
1863610	1869170	Allow, deny, route, tar pit, and deceive.
1869210	1876230	So the deceive action actually just made up HTTP response on the fly using LLMs.
1876310	1877630	Because like, why not?
1878130	1887210	Let's say you have a request receiving in your reverse proxy to a path that you don't know what it is.
1887210	1893470	Like you don't have any production servers behind it or it maybe matched some Suricata alerts or something.
1893530	1896470	And then you want to just redirect these to...
1897290	1899930	Like you just want to respond to that, but you don't know how.
1899930	1903010	Because maybe it's just even like a zero-day exploit or something.
1903010	1908030	So you don't know how to respond to backslash underscore shutdown, for example.
1908310	1912190	So what I do is I use this tool which I released last year.
1912190	1917410	Like the talk I had last year here was about that, which is a LLM-based web honeypot.
1917410	1927450	So instead of having the honeypots generate like with static responses, I asked LLM to generate the HTTP response.
1927450	1928850	And it works pretty well, actually.
1928850	1929830	I didn't expect that.
1929830	1936530	It works pretty well, even if you don't use smart models and it just generates the response in less than a second.
1936530	1943550	So what I do is I expose this project called Glow as a service.
1943550	1946510	So now I use this service in Finch.
1946530	1960490	So whenever you use this deceive action in your rules, it just calls Glow, it passes the HTTP request, and it waits for the LLM to generate the HTTP response and then give it back to the attacker.
1963670	1970210	And I mean, you may say like, okay, why do I need to spend money on responding to attackers?
1970310	1973470	I mean, you can just use a very cheap LLM model.
1973470	1983450	And another thing you can do is to enable caching because I added this caching thing, which like when you first generate a response to a specific path, you don't need to do it again using the LLM the next time.
1983450	1984950	You just use the cache one.
1984950	1989490	But I even did something else just like a couple of days ago.
1989490	2004830	So I leaked this fake LLM API key in a fake code snippet with fake custom OpenAI endpoint in Pastebin.
2004830	2013790	And just a few minutes later, a bot took that, reached out to my Finch proxy with that fake API key.
2013790	2020790	And what I did was to respond to that using a Markov chain-based junk response generator.
2020830	2022650	So I didn't pay anything for that.
2022650	2027210	This is like the simplest way if you don't want to use LLM.
2030000	2034900	Again, more demos, more examples.
2034900	2053380	I have these example, like I just pushed these example fingerprints to the tool repo containing real Jot3, Jot4, Jot4H fingerprints for some known tools like Zap, Nmap and Burp Suite.
2053380	2056620	So you can just try that on your own.
2058400	2062160	The tool also comes with admin API.
2062240	2067560	So that's actually where makes this reverse proxy smart.
2067560	2073400	And like you may ask yourself like, where was the thinking part in this reverse proxy?
2073400	2075300	That was like the title of the talk.
2075460	2078580	That actually starts from here.
2078580	2083180	So I exposed this admin API to the reverse proxy.
2083180	2087800	So you can just programmatically update these rules you have in your reverse proxy.
2087800	2096860	So I added an AI agent on top, which constantly monitoring the logs that you generate, like the reverse proxy generates.
2096860	2102600	If it finds something interesting, like a pattern or something, it automatically updates the rules.
2104420	2106820	So yeah, that was one thing I added.
2106820	2111200	And there's also this SSE endpoint, which streams all these events.
2111200	2121360	So if you don't want to use the JSON log that the tool generates, you can just use this SSE endpoint, which generates these logs like real time.
2121660	2125340	And I have an example client for that in the repo as well, which is very nice.
2125340	2130280	You can just look at that and search and filter the logs.
2131240	2132840	There's an echo mode.
2132840	2142200	So if you want to generate a data set of fingerprints, you can run the tool in echo mode, like finch, space, echo, that's it.
2142200	2151460	And then if you hit the root, you will see a nice UI showing you all those fingerprints for your client.
2151460	2157620	If you hit like a slash FP, you get the raw fingerprints in the JSON format.
2157620	2166380	So where this would be interesting is if you, for example, want to automatically generate this database of fingerprints.
2166380	2171920	So you just create a tool which runs some Docker containers.
2171920	2179860	It installs like different versions of TLS libraries and tools and hit this endpoint to generate those fingerprints.
2179860	2181820	So it does this automatically.
2181940	2186240	And like in a few minutes, you can generate a huge data set.
2189460	2191060	So what's the use cases?
2191060	2195860	Like if at this point, you're still not sure what is the real use case of this.
2195860	2198100	As I said, it was just a fun for me.
2198100	2206520	I didn't want to implement the Jottery fingerprinting and other fingerprintings into all the honeypots that I'm using upstream.
2206940	2215700	I was like, okay, what if I just create this reverse proxy and log all those at that point instead of implementing that different honeypots that I'm using?
2215860	2217460	So that was the main use case for me.
2217460	2227980	And then I wanted to just dynamically mute or silence the annoying bots because like last year, I set up this API LLM usage, like 20 bucks per month.
2227980	2232720	And I use my like, obviously, LLM-based honeypot.
2232720	2245340	So although I had this usage limit, but someone hit my honeypot with a hundred thousand times in like five minutes, which used all my budget for the month.
2245660	2256680	And it actually proves that that honeypot was actually useful because the reason they hit my honeypot that hard was they thought it's an open proxy.
2259120	2263080	They wanted to use it as some sort of like ad fraud.
2263080	2270700	So they just generated traffic that way because the way my honeypot responded to their request made it look like it's an open proxy.
2270700	2274860	With static honeypot, you couldn't do that unless you knew about like these patterns before.
2276140	2280600	But yeah, for other use cases, you can just deny unwanted traffics.
2280600	2295220	Like you don't like wasting your resources on random sketchy bots, which just crawls through your website or server, things like that.
2295960	2303100	which matched with Suricata to honeypots to learn more about them instead of letting them hit your application.
2304060	2308060	And yeah, just targeting scanners is another good one.
2308060	2310220	So just slow them down.
2313400	2319340	Okay, so one last bit before we finish the talk is about the agents.
2319340	2329380	So I had this section about the agents, which I first say like, okay, agents are basically just LLM plus tools, plus instructions, that's it.
2329380	2331460	And they run just in a loop.
2331660	2339380	They just observe, act, do it again and again until they're satisfied with the result.
2339500	2345300	So I created this experimental agent you can see in the repo later today.
2345300	2353220	Right now, I just included the report it generated last night with the new OpenAI model like GPT-5, which is amazing.
2353220	2356340	Like it just went through 10 megabytes of logs.
2356340	2366500	I provided like the exact same log I analyzed like seven years ago, like the same patterns I was just talking about, about the jaw trees, like rotating jaw trees.
2366740	2369820	As I said, I accidentally found that.
2369940	2375660	So I just wanted to experiment to see if they can find it, like the agent can find it.
2375660	2384120	And it actually found it like in one minute in like 10 or 20 megabytes of the logs without providing any additional context.
2384120	2390040	So the only thing I provided as instruction was analyze the attached JSON log.
2390040	2390940	And that's it.
2392500	2397360	So yeah, it was exactly the first thing it found about that jaw tree rotation.
2397820	2404080	One thing I wanted to share was don't just throw data to LLM and expect it to analyze.
2404080	2405180	It just lies to you.
2405180	2408340	Like even if it says like, yeah, I did it, it didn't do anything.
2408600	2412220	That's exactly the point of like how to use LLMs.
2412380	2423160	I wanted to just use this as an example to show you if you want to use LLMs on agents in general for log analysis, for investigation or things like that.
2423160	2424240	This is like a hot topic.
2424240	2431160	I guess probably we have like hundreds of talks right now and startups and products out there doing this.
2431240	2437920	But how do you know that when the LLM tells you that it did something, it actually did that?
2437940	2440780	I'm sure in a lot of cases it didn't do.
2440860	2450080	So the key is to use Python tool use or let the tool, let the LLM use the interpreter.
2450080	2455140	So it can actually just like a human, which like, how do you analyze a 10 megabyte log?
2455140	2456620	Do you just scroll through it?
2456620	2465140	No, you just like probably use Python or bash scripts or something to just analyze, find patterns, aggregate, do all things.
2465140	2470380	So without providing that to the LLM, how you expect it to do all these things?
2470400	2479720	So in my experimentation, the AI agent I created, the only tool I gave the LLM to use was just the interpreter.
2479720	2485500	Like it's called interpreter in OpenAI API, but it's basically just the Python tool use.
2485500	2497600	It just spins off like a container in the clouds and uploads the data and let the tool just do whatever it wants for analyzing it.
2497600	2501460	I uploaded the full investigation into the repo.
2501460	2508600	So you can see the summary of the investigation and also the entire chain of thought, which is very interesting.
2508740	2510160	I was looking at that.
2510160	2517340	I was like, if I want to do this, it takes me hours and I still don't do all these queries.
2517380	2530600	So it's probably done like 40 or 50 different queries and aggregations with, I guess, pandas or something like that and data frames and analyze the logs and generated the result.
2530600	2542020	And then the rest of demo, I was showing that based on this analysis, it automatically uses another sub-agent to create these block rules for Finch.
2542020	2549100	And it just applies the block rule based on the like foundings and using the admin API.
2549100	2556500	So the case happened to me last year on like the attacker used all my 20 bucks usage.
2556540	2562820	Can't happen with this agent thing because like it just like subscribe to that stream.
2562900	2568440	If it finds this stream, it just like this pattern, it just applies a block rule.
2569220	2577040	So I guess I had a few other demos, so it's useless talking through it.
2577040	2581160	So I would instead like open the stage to you if you have any questions.
2581160	2592100	Otherwise, I'm here after the talk and we can like talk about all these things like AI agents, fingerprints, and reverse proxies.
2592100	2593020	Thank you.
