[00:08.280 --> 00:15.200] Thanks for having me here at the AppSec Village. So, I'm very glad to be here in person. The last [00:15.200 --> 00:22.280] talk that I did, it was a virtual event. We were in the middle of COVID, so we, like, I did a talk [00:22.280 --> 00:31.920] in AI Village, also Red Team Village. So, it's good to be back in person and doing this with [00:31.920 --> 00:38.620] the wired mic. I feel like an 80s comedian, so I have to, like, make sure that my movement is [00:38.620 --> 00:47.580] within this range. So, I will be talking about my research on the use of generative adversarial [00:47.580 --> 00:54.780] networks for automating the penetration testing of web application firewalls. So, [00:54.780 --> 01:03.040] it's an appliance that we have all been using, and here is a little bit about myself. I am a [01:03.040 --> 01:10.920] cybersecurity researcher. I work for a company, Sixense, as a senior AppSec engineer. [01:10.920 --> 01:18.860] The company builds AI-based sales software. So, that is one of the reasons that I [01:18.860 --> 01:26.320] joined the organization, because they were using AI for building cool products. And my background [01:26.320 --> 01:33.720] was mainly in use of AI in cybersecurity. So, my PhD, I did with specialization of [01:34.300 --> 01:42.180] using artificial intelligence in the field of cybersecurity. I also work with a lot of students [01:42.180 --> 01:50.640] in cybersecurity defense competition. So, if you are looking for talented individuals who have [01:50.640 --> 01:57.340] gone through our CCDC program, shoot me a message on LinkedIn and I can connect you to the folks. [01:58.220 --> 02:02.540] And most of my research information is on my website. [02:03.840 --> 02:10.760] So, here is a brief overview of what we will be discussing during the next half an hour or so. [02:10.760 --> 02:16.700] We will be talking about what kind of web application threats that we are looking at. [02:16.700 --> 02:24.620] We will look at what a web application firewall looks like. And then, where does this generative [02:24.620 --> 02:31.180] adversarial network come into picture? Like, why are we using this technology to bombard these [02:31.180 --> 02:39.820] WAFs? We will look at a particular case of a firewall known as mod security. I am doing some [02:40.620 --> 02:48.820] experimental work on Cloudflare and AWS WAF as well. So, I'll talk about that and then we will [02:48.820 --> 02:57.120] conclude the talk. So, we have all been working with different web application technologies, [02:57.120 --> 03:04.700] like application servers. We have NGINX, Apache, stuff like that protecting our [03:06.180 --> 03:13.280] backend infrastructure. We have multiple technologies, like we were using SQL, [03:13.280 --> 03:21.100] then we started using NoSQL, GraphQL. A lot of technology is coming up and a lot of the [03:21.900 --> 03:30.920] issues that have been there since a long time, like weak TLS, like server-side encryption [03:30.920 --> 03:39.540] not being up to par, like we want to use 256-bit, but the application using 128-bit of [03:40.480 --> 03:48.180] encryption. So, a lot of these issues in the web application threats. We see a lot of issues in [03:48.720 --> 03:54.160] the client and server-side technologies that render us vulnerable to cross-site scripting [03:54.160 --> 04:04.040] attacks, XXE, and a lot of weak protocols in terms of how we do authentication and authorization, [04:04.040 --> 04:12.120] like now we know that we had authentication bypass as we are moving towards API technologies. [04:12.120 --> 04:19.980] We see a lot of insecure direct object reference IDORs and things like that, and [04:20.800 --> 04:28.540] we have multiple types of data stores at the backend. So, we have to understand the logic [04:28.540 --> 04:38.540] flow there and deal with those security issues. So, if we look at the OWASP top 10 over the years, [04:38.540 --> 04:46.620] some of the issues like broken access control, weak cryptographic issues, they have been there [04:46.620 --> 04:53.020] for a long time. Some of you might be doing a lot of design reviews as well. We call it threat [04:53.020 --> 05:00.500] modeling. So, we want to analyze trust boundaries. Those are some additional issues that have came [05:00.500 --> 05:08.920] up in recent times. Vulnerable and outdated software components, we all do patch Tuesdays [05:08.920 --> 05:17.380] like if you are a Microsoft shop. So, a lot of that has been present and some of it is gaining [05:17.380 --> 05:25.700] higher volume as we deploy more and more web technologies. And monitoring and logging, like [05:25.860 --> 05:31.720] a lot of you going through SOC audits and compliance requirements, you need to provide [05:31.720 --> 05:38.820] proof of your logs. Are you doing monitoring? Are you doing it enough? If you do it in an insecure [05:38.820 --> 05:50.060] manner, does it disclose some sort of key information in your data? So, let's have a look [05:50.060 --> 05:57.280] at the typical example of a web attack. Like, if I am talking about cross-site scripting, the [05:57.280 --> 06:07.300] user logs into an application and suppose it has a DOM-based XSS vulnerability. So, user, [06:08.140 --> 06:15.520] being naive, hovers over a comment that has the script injected by the malicious attacker. [06:15.520 --> 06:26.880] And that triggers the user request to the attacker's URL, like an ATOI function or a [06:26.880 --> 06:36.340] JavaScript call to a remote server that is owned by the attacker. So, this malicious response [06:36.340 --> 06:43.620] executes the attacker's JavaScript and you end up providing your session token to the attacker. [06:45.060 --> 06:52.760] Nowadays, we have protection like MFA to make sure that we are having an additional layer of [06:52.760 --> 06:59.240] protection, but we also have attacks like evil jinx and stuff like that that can do even MFA [06:59.720 --> 07:10.000] bypass. So, we have defense mechanisms in place as well, like we have intrusion detection system, [07:10.000 --> 07:16.020] intrusion prevention system, firewalls at multiple layers, and these are based on [07:16.560 --> 07:24.420] signature database. And they are as good as the attack signatures we have configured for these [07:25.450 --> 07:35.060] tools. We also have input sanitization, like we want to make sure that only trusted set of [07:35.060 --> 07:43.720] characters are allowed, or we also do encoding to deal with this input data. And there are [07:44.260 --> 07:52.960] truncation techniques in place as well, like we want to make sure that we are not ingesting a [07:52.960 --> 08:00.760] huge amount of payload as input, so we have defense in places. And web application firewall, [08:00.760 --> 08:09.820] it combines a series of defense mechanisms. So, you might be using something like AWS [08:09.820 --> 08:19.920] WAF or CloudFlare, and you have user agent based blocking, you have your rate limiting rules in [08:19.920 --> 08:27.900] place, things of that nature. So, web application firewall combines some of these techniques like [08:27.900 --> 08:37.340] these attack signatures in its database. So, essentially it's a layer 7 appliance that looks [08:37.340 --> 08:44.740] at the incoming metadata at the layer 7, it checks what kind of user agent do you have, like if you [08:45.720 --> 08:54.020] have wget or curl, suppose, in your user agent, or if it's a crawling bot that is hitting your [08:54.020 --> 09:00.090] application, you can basically block that based on the attack signature. [09:01.420 --> 09:12.080] And as you can see, it can be deployed in front of NGNX, your application load balancer in AWS, [09:12.080 --> 09:20.280] and it goes through its signature list, and if there is a positive match on that attack signature, [09:20.280 --> 09:25.900] it will drop that traffic, it will rate limit, whatnot. You can do a lot of customization. [09:26.760 --> 09:34.240] So, if it is based on a fixed set of rules, the question we can ask is like, [09:34.240 --> 09:38.860] can there be a variation of that rule that somebody can exploit? [09:42.120 --> 09:51.100] So, let's talk about the tale of web application firewall, mod security based WAF. It is deployed [09:51.100 --> 10:02.200] across a lot of known web technologies like Apache, NGNX, ISS, and what it has like a typical [10:02.200 --> 10:13.160] WAF is a core set of rules that checks the signature for OWASP top 10 or bad user agent, [10:13.160 --> 10:19.060] like if you see a curl request coming in your user agent, you have rules to block that out. [10:19.060 --> 10:29.340] It looks for SQL injections, session hijacking type of exploits, so it has different configuration [10:29.340 --> 10:38.380] levels. Basically, there is some testing that is done across multiple levels that you get in the [10:38.380 --> 10:44.660] web application firewall. Starting with the paranoia level zero, where you get essentially [10:44.660 --> 10:51.780] no protection, to level one, where it is minimal set of rules, some false positives, [10:52.420 --> 10:59.200] to paranoia level two, where you have a lot more false positives, a lot broader set of rules. [10:59.580 --> 11:09.100] If you are using something like AWS WAF, you can have rules from Fortinet, some other vendors, [11:09.100 --> 11:17.120] so it is essentially like an expanded set of rules as you go through the different paranoia levels. [11:17.820 --> 11:27.140] So at level three, you have rules that target PII, bank level information, like DLP protection, [11:27.140 --> 11:34.740] things of that nature. And level four is like a full nuclear level, so you have a lot more rules. [11:34.740 --> 11:44.620] But as the number of rules grow in size, you get a lot of false positives as well, and the [11:44.620 --> 11:52.320] graph on the right side of the picture shows the requests that were done with the different attack [11:52.320 --> 12:01.450] types. So there were redirect attempts, LFI, RFI, and you can see that as the PL increases, [12:01.860 --> 12:09.750] it becomes incredibly hard to bypass the firewall filters. So even at level two and three, [12:09.750 --> 12:13.420] most of these payloads are blocked based on signature. [12:16.300 --> 12:26.180] So how do we circumvent this? If we look at an application that is running a PHP system command [12:26.180 --> 12:34.960] and it takes the user input and basically prints that out and executes this, and if this application [12:34.960 --> 12:45.700] supposes a NGINX server, it is protected by the mod security WAF, and I try to send this command [12:46.800 --> 12:54.640] like a bincat etc password, this will be blocked because there is a direct signature. [12:55.420 --> 13:02.860] What if I try to do a variation of this and try to send something that has wildcard characters? [13:03.020 --> 13:09.340] That will be blocked as well because how the WAF operates is it de-obfuscates the payload [13:09.340 --> 13:18.420] and executes it in the interpreted context of the browser. But if you do a question mark base [13:18.420 --> 13:23.840] like individual character substitution, you can see that payload passes through. [13:23.840 --> 13:32.840] WAF does not block that. But for how long can I do it manually? As a web application tester, [13:32.840 --> 13:38.620] do you want to test individual payloads one by one, finding those minor variations and [13:38.620 --> 13:42.340] testing those out? That's very, very difficult. [13:44.800 --> 13:51.560] So it's a game of cat and mouse, and that is the motivation of generative adversarial networks. [13:52.740 --> 13:59.040] So how do you play that kind of cat and mouse game with the web application firewall and try [13:59.040 --> 14:06.400] to fool it out? So on the left you can see some blocked expressions that will be blocked by the [14:06.400 --> 14:12.700] firewall. But as we know that we have different browsers, like some are running maybe Silverlight, [14:12.700 --> 14:19.000] old legacy systems, some are on .NET, so you can have variations of these payloads [14:19.670 --> 14:27.220] that will basically pass through. So for each blocked expression, you can have analogous [14:28.040 --> 14:35.820] variation that will bypass the web application firewall signature and basically pass through. [14:38.320 --> 14:45.180] So talking about generative modeling, it's essentially an unsupervised technique, [14:45.180 --> 14:54.120] and unsupervised learning technique, basically it tries to identify some emerging patterns or [14:54.120 --> 15:01.220] regularities in the data, comparing it to a supervised model where we have everything labeled, [15:01.520 --> 15:08.160] like you will have your training data labeled, test data labeled in case of spam filtering and [15:08.160 --> 15:15.980] all. Unsupervised modeling is based on some patterns where you don't know the exact labels, [15:15.980 --> 15:23.320] but you can bucket common behavior together like buying patterns of users on Amazon or something, [15:23.320 --> 15:30.180] so clustering is an example of unsupervised modeling. So generative adversarial network [15:30.180 --> 15:37.120] does something intelligent. It projects this unsupervised learning technique as a supervised [15:37.120 --> 15:48.100] model where it provides the labels of correct and fake, like basically correct attack patterns or [15:48.100 --> 15:58.560] fake attack patterns to a neural network classifier known as a discriminator. So generator is a [15:58.560 --> 16:05.040] kind of learning model that starts with random noise, tries to generate some patterns, [16:05.040 --> 16:10.440] sends it over to discriminator, hey, is this a correct image or not, and then discriminator [16:10.440 --> 16:18.320] says that no, it's not correct, and based on that it filters out the data. So you might have [16:18.320 --> 16:24.880] seen like deep fakes and voice recording that are very similar to like President Obama, [16:24.880 --> 16:31.180] they superimpose his face on some video, so those are generated by generative models. [16:31.180 --> 16:40.540] So with each iteration, the generator brings in new data, it learns what parameter variation [16:40.540 --> 16:50.400] was rejected, and it improves itself. So generator and discriminator, like these two machine learning [16:50.400 --> 16:58.460] models, are trained together, so they are locked in a zero-sum game. Basically one player loses [16:58.460 --> 17:05.300] and another player wins, like some of the two-player card games, they are zero-sum games, [17:05.300 --> 17:15.200] like one person generates a positive payoff based on his moves, another person loses and he gets a [17:15.200 --> 17:22.760] negative payoff. So with each iteration, the discriminator basically improves its capability [17:22.760 --> 17:30.680] of detecting these malicious attacks, and generators are becoming more and more smart [17:31.140 --> 17:39.560] with each iteration. So how we penalize these models is, suppose I send an attack payload [17:39.560 --> 17:48.360] to discriminator and it fails to detect it as a true attack, and it executes as a true attack, [17:48.780 --> 17:56.160] the discriminator's model is penalized for making that error in judgment, and then it is forced to [17:56.160 --> 18:04.280] update its model parameter and improve in the next round. Whereas if the generator sends a [18:04.280 --> 18:11.240] payload to the discriminator and it is detected and blocked by firewall, the generator's model [18:11.240 --> 18:16.200] is penalized, so they keep on competing with each other in this adversarial game [18:17.100 --> 18:23.960] until there is no more improvement and both are at a stable position that no more learning can [18:23.960 --> 18:34.530] be done. So starting with random noise, does it make sense in case of text data? We are not [18:34.530 --> 18:43.090] trying to generate a fake image of Mona Lisa, so text is different. So we use this variation [18:43.090 --> 18:51.660] called conditional GAN, where we provide labels not only to the discriminator, but also generator. [18:52.090 --> 18:59.870] So generator also starts with some basic information that helps it train faster, [18:59.870 --> 19:07.850] helps in the convergence, and basically improves the process of generating these new payloads. [19:11.480 --> 19:22.970] So in summary, we provide the attack samples to the generator. We bombard the web application [19:22.970 --> 19:30.640] firewall with these payloads. Then we learn, did it lead to an error? Did it lead to a warning? [19:30.930 --> 19:37.130] Did the payload execute successfully? And the objective is to generate payloads [19:37.490 --> 19:48.270] that lead to a positive execution. So if it's a reflected XSS, it should lead to a pop-up message [19:49.350 --> 19:56.510] and it should bypass the web application firewall. So as long as those two criteria are satisfied, [19:57.290 --> 20:04.490] basically the generator receives the reward. And at the end of it, we update the model of [20:04.490 --> 20:14.010] generator. Like if it is generating a set of positive payloads, well and good. Basically, [20:14.350 --> 20:20.030] we can update the attack signature database. So essentially we are improving our web application [20:20.030 --> 20:30.610] firewall over a period of time. But is it that easy? Like can I pass the same input to a GAN [20:30.610 --> 20:36.970] model? Like image data set and text data sets are fundamentally different. So that is where the [20:36.970 --> 20:43.490] main challenge of this problem was. Because in image, you are dealing with these RGB [20:44.810 --> 20:51.450] pixels and you are projecting them to your embedding layer. But text has semantics. It [20:51.450 --> 20:59.070] has structure. It has meaning. There is a vocabulary associated. So it is, in fact, [20:59.070 --> 21:07.890] not that simple. So when we are talking about text or character data, we need to [21:08.890 --> 21:17.890] have embedded layers where we project our text bits into one hot encoding. So we have a sparse [21:17.890 --> 21:26.590] matrix of zeros and one where we project these text characters. But that leads to problems. Like [21:26.590 --> 21:35.530] two problems. One is model parameters don't update beyond a point. And second is known as [21:35.530 --> 21:46.710] vanishing gradient. So essentially in text data, there is a model collapse. Like beyond a point, [21:46.710 --> 21:53.350] it is very hard to distinguish real payloads from fake payloads. And discriminator is basically not [21:53.350 --> 22:02.190] telling any new information to a generator to help it improve. So we use a variation known as [22:02.710 --> 22:10.990] Wassertime distance where we use like sum of probability distribution to deal with this. [22:10.990 --> 22:19.630] Second issue is that the XSS payload itself, it's not essentially a text with vocabulary. So [22:19.630 --> 22:28.310] it's a combination of these characters like your opening bracket, then you have some pattern like [22:28.310 --> 22:36.990] alert, null characters, then you have closing brackets. So it's a state action representation. [22:36.990 --> 22:46.390] So we need to have some kind of sequential model that understands that this particular sequence of [22:46.390 --> 22:53.510] characters, it worked well for my model. So what we do to deal with this variation is [22:54.870 --> 23:02.770] we use the generator as a reinforcement learning model. What it means is that we will have the [23:02.770 --> 23:10.950] individual characters as states. And next character will be based on like the action pair. [23:10.950 --> 23:18.970] So a policy in this reinforcement learning model will be like the correct sequence. So if you have [23:19.490 --> 23:26.300] a pair of correct sequence that work well, that are like bypassing your web application firewall, [23:26.810 --> 23:33.390] that's a positive policy. And using this reinforcement learning model, it basically [23:33.390 --> 23:42.380] improves over time. So as we can see that if there is a positive signature match, [23:42.380 --> 23:49.500] we update our generator model. And if there is a payload that is not able to bypass our WAF, [23:49.500 --> 23:57.620] we basically reject that. So we did something known as semantic tokenization. Like I used [23:57.620 --> 24:06.660] these payloads as input. I used burp intruder to basically check what is the HTML response [24:06.660 --> 24:13.140] of this data that I'm throwing at the web application firewall. Is it triggering any [24:13.140 --> 24:20.800] alerts? Is it leading to true warnings? Is it leading to errors? And we use that to generate [24:20.800 --> 24:30.520] our initial labels. Like this is the subset from the XSS data set that worked. Now let me use it [24:30.520 --> 24:36.500] to train my generator and generate variations of these payloads that will work as well. [24:38.920 --> 24:45.940] So in semantic tokenization, we basically understand the labels with each payload, [24:45.940 --> 24:53.320] like what leads to a node, what leads to a warning, what leads to an error. And we pass [24:53.320 --> 25:02.180] that to the discriminator and we understand the response it created. So with each iteration, [25:02.180 --> 25:11.900] we learn like our policy and model parameter updates. And when there is no update happening [25:11.900 --> 25:18.740] in future, basically we are at a stable position. And these positive payloads then we can add to our [25:18.740 --> 25:29.060] WAF signature database. So that's how we improve. So we keep track of the logs that are generated [25:29.060 --> 25:37.820] at the modSecurityWAF level. Like for example, this one was triggered by one of the PHP payloads [25:37.820 --> 25:45.660] that was denied. So basically generator will be penalized in these cases. Like if it generates [25:45.660 --> 25:54.720] the variation that are blocked, it will be penalized. So some more things that we need to do [25:54.720 --> 26:02.880] is we have to semantically understand how the modSecurityWAF behaves. So attacks are verified [26:02.880 --> 26:11.800] over the vulnerable applications protected by WAF. But modSecurity also uses this PhantomJS [26:11.800 --> 26:22.040] library with the WebKit and JavaScript API. So basically we are generating attack payloads, [26:22.040 --> 26:29.720] throwing them on the modSecurityWAF that is protecting our NGINX application, [26:30.510 --> 26:36.420] learning the behavior, and then updating our generator with each iteration. And at the end [26:36.420 --> 26:43.130] of it, we can use these new signatures to basically update our web application firewall. [26:47.580 --> 26:57.000] So the module of the WebKit that modSecurity uses, it uses like a variation of partial [26:57.000 --> 27:03.800] non-alphanumeric characters and it de-obfuscates the payload. So those were the cases where we [27:03.800 --> 27:10.240] needed to understand like what sort of semantic variations do we need to put in place to bypass [27:10.240 --> 27:17.180] like these particular set of rule sets on this WAF. So as you can see that if we provide some [27:17.180 --> 27:24.780] sort of obfuscated characters, the WAF is not able to detect that. So we need to understand [27:24.780 --> 27:31.820] that semantically and encode this in our model. So that is another challenge that we faced. [27:31.820 --> 27:38.380] Let me do the demo first and then we can do the results. We can look at the results. [27:41.920 --> 27:48.680] So the pre-training part, it takes hours and hours, so that will not be showcased in the demo, [27:48.680 --> 27:55.100] but I will update those models. So we know that this is a reflected XSS, that this will be [27:55.100 --> 28:05.540] present in this vulnerable web application. So now we know that what is the particular [28:06.120 --> 28:11.440] input parameter we have to bombard. So we compile this list in the intruder, [28:12.140 --> 28:19.660] and we hammer the application with this. We have the capability of reading the response that we [28:19.660 --> 28:26.920] got, so we can have the annotation like, did it lead to error, warning, 403, 200, what sort of [28:26.920 --> 28:37.460] response did it cause. So we collect all this data and we use this data to update the labels [28:37.460 --> 28:45.240] of our training data. And we also check, like I use Docker to host some of these services, [28:45.240 --> 28:51.360] so we also check the logs that are generated in the mod security web application firewall [28:51.940 --> 28:57.820] while we are doing that. So we keep track of the response, it emitted or did it trigger [28:57.820 --> 29:05.780] WAF or not. So both this information is used to update our labels of a successful attack. [29:05.780 --> 29:13.960] So as you can see here, it matched the signature database and it triggered an alert. [29:18.220 --> 29:24.280] And in the next step, what we did do is compile a list of all of these and [29:26.740 --> 29:35.140] basically I use Selenium to automatically bombard these and understand which of these are [29:35.780 --> 29:40.320] generating positive alerts. That will come up in a second. [29:45.950 --> 29:53.030] Yeah, so for automated testing, basically you can also use Selenium web driver to [29:53.030 --> 29:57.530] basically throw these payloads at a web application. You just need to [29:58.110 --> 30:04.530] understand the semantics of the input and how it is composed. [30:09.330 --> 30:15.990] So this is the automated stuff that's happening, like nothing. [30:16.630 --> 30:22.430] So it will tell you which of these payloads are triggering alerts, like it's currently [30:22.430 --> 30:32.700] bombarding it with payloads. So no alerts triggered and then it starts popping up some [30:32.700 --> 30:39.500] positive payloads that trigger alert and that's how we update our signature database. These are [30:39.500 --> 30:45.660] the set of payloads that bypass WAF and triggered alert on the website. [30:49.860 --> 30:57.300] So it's pretty easy to check which of these triggered alert, like there is a [30:57.300 --> 31:10.460] webhook in Selenium that you can use to sort of understand the output. [31:10.460 --> 31:12.980] So looking at some of the results that we understood [31:12.980 --> 31:22.830] from the model is basically there are two losses of discriminator, [31:22.830 --> 31:29.310] like DLoss1 and DLoss2. The DLoss1 tells us, is discriminator able to detect [31:30.070 --> 31:36.970] real attacks as real? And DLoss2 tells us, is it detecting fake samples as fake? [31:37.130 --> 31:43.250] So the goal as we update the signature database is to make sure that the performance of [31:43.250 --> 31:51.330] discriminator improves with this new data. So you can see that the loss of discriminator is [31:51.330 --> 31:58.870] lowest around 250 epochs, so that's how we improve the performance of our discriminator. [32:00.010 --> 32:05.310] And yeah, it converges to a stable value around 250 epochs. [32:07.090 --> 32:14.490] So we also noticed that conditional GAN, where we provide the labels to the generator, [32:14.490 --> 32:20.290] it is performing better than like a plain vanilla GAN where we don't provide any information to the [32:20.290 --> 32:27.790] generator. So first of all, like CGAN or conditional GAN converges faster, [32:27.790 --> 32:35.210] but when we used different variations of the payload, in the run 4, [32:35.210 --> 32:42.530] the vanilla GAN was not able to understand most of these attacks and the performance was [32:42.530 --> 32:52.390] very poor on a particular batch of this input data. Whereas the conditional GAN, it had sort of a [32:52.390 --> 32:58.650] stable performance. So these are the percentage of payloads that were from the data set generated [32:58.650 --> 33:07.290] that were able to bypass the WAF. So conditional GAN performs consistently better at bypassing the [33:07.290 --> 33:13.070] web application firewall if we see from the generalizability perspective. [33:14.230 --> 33:21.390] So in conclusion, we utilized the conditional GAN to generate attack payloads that were able [33:21.390 --> 33:30.130] to bypass the web application firewall. The generated samples found the variation of [33:30.130 --> 33:38.930] payloads that were able to circumvent the rules of Privilege Level 1 and 2 of ModSecurityWAF. [33:39.690 --> 33:46.510] And the sample generated can be used to improve the signatures of our web application firewall [33:46.510 --> 33:55.330] database. And this can help us deal with some unknown variation of attacks, like APT attackers [33:55.330 --> 34:02.270] occasionally come with variations of like the normal attacks that are hard to detect. So this [34:02.270 --> 34:11.370] can help us in that coverage as well. So next steps for this research, we have a paper that [34:11.370 --> 34:17.850] is coming up, which has all sorts of results or architecture and a lot more information, [34:17.850 --> 34:27.230] as well as some results on AWS WAF. We are trying to understand how it behaves on other commercial [34:27.230 --> 34:34.930] firewalls like CloudFlare. And yeah, so as Chris mentioned in the previous talk, like your vendors [34:34.930 --> 34:40.390] need to research you. So CloudFlare, in fact, reach out to me and ask like, can you also test [34:40.390 --> 34:47.450] it on our WAF? So that is like a good thing from that vendor that they were tracking that I'm [34:47.450 --> 34:52.390] presenting on this topic and they reached out to me. So I'll be looking at CloudFlare as well, [34:52.390 --> 35:00.710] like how it behaves. And again, we have kind of moved to the era of large language models like [35:01.450 --> 35:09.770] BART and GPT models, where we want to use these enhanced models to basically generate [35:09.770 --> 35:16.990] payloads. So it's not very simple. It will take some intuitive engineering, like I tried asking [35:16.990 --> 35:23.230] chat GPT, like, can you send me some payloads that can help me bypass the web application [35:23.230 --> 35:28.730] firewall? So it will reject it outright saying that you are trying to do something malicious, [35:28.730 --> 35:34.330] but then people try to send a variation of query. Can you send me payloads which can [35:34.890 --> 35:39.450] help me protect my web application firewall? So you can project the query that way, but [35:40.150 --> 35:45.110] the payloads that I got from output were completely garbage, so they don't have any [35:45.110 --> 35:50.670] semantic as of now. So it will take some intuition and engineering to understand, like, [35:51.210 --> 35:55.570] how we can use large language models to generate these variations. [35:56.150 --> 36:02.270] I would like to acknowledge my colleague, Krith Shekhar Jha, who is a PhD student. [36:02.450 --> 36:08.670] He helped me with a lot of these experiments and is also a co-author of mine on the paper. [36:08.670 --> 36:15.890] So with that, I will conclude the talk, and I'll be open to any questions.