[00:08.320 --> 00:12.420] We are really excited to present in the AppSec village. [00:13.020 --> 00:25.120] And today we are going to talk about Bollabuster, our methodology that we developed in order to automate Bolladetection at scale using LLMs. [00:27.540 --> 00:30.360] But first, let's introduce ourselves. [00:30.360 --> 00:35.580] So my name is Reivid, I'm a security researcher at Palo Alto Networks. [00:35.840 --> 00:42.060] I expertise in the WAAS field, which is web application and API security mainly. [00:42.740 --> 00:51.760] And in my free time I enjoy watching football games, traveling the world, and take care of my dog, Maple. [00:55.400 --> 01:16.020] Hi, my name is Jay, I am a security researcher with Palo Alto Networks, and my research has been focusing on identifying the threat and risk in cloud environment and recently I've shifted my research focus towards generative AI, in particular looking into the potentially adversarial use of generative AI. [01:16.260 --> 01:26.000] And I'm not not working, I spend most of time with my hyperactive twin boys, they behave just like minions and head off to the parent there with young kids. [01:26.000 --> 01:29.560] I know how difficult it is to take care of young kids when working. [01:29.880 --> 01:39.500] And I'm also a cat lover, so I also spend a lot of time scrolling through funny cat videos when I'm not working or working. [01:43.230 --> 01:47.310] Great, so let's go over the agenda for today. [01:47.390 --> 02:13.970] So we are going to cover the concept of BOLA, we will show you our methodology of automating BOLA hunting using LLMs, you are to see a real BOLA testing that is part of our methodology, and finally you will see how we hunted down 17 new BOLA vulnerabilities in one of the most popular open source projects out there. [02:17.590 --> 02:22.050] So broken object level authorisation, or short for BOLA. [02:22.650 --> 02:28.810] So our motivation for the research was pretty huge, I would say. [02:28.850 --> 02:43.750] For those of you who are not familiar with BOLA, it is ranked at the top risk at the OWASP API top 10, and it is also the fourth most reported vulnerability in HackerOne. [02:43.750 --> 02:46.530] So it's really popular and it's really severe. [02:47.450 --> 02:55.070] And yet there is no automation tool that can actually and reliably detect BOLA at scale. [02:55.550 --> 03:02.770] So all of this was a big reason for us to try to solve basically an unsolved issue. [03:05.670 --> 03:09.990] And let's understand first what is exactly BOLA. [03:10.250 --> 03:22.750] So if you take a look at this example, we have a patient, we have a clinic application, and we have a patient that can query his visit ID and get his doctor notes. [03:22.850 --> 03:24.350] Pretty straightforward. [03:25.130 --> 03:33.170] But what would happen if this patient would decide to act maliciously and try to fetch another visit ID that does not belong to him? [03:34.090 --> 03:42.130] If he would be able to do it, it means that the backend will have an authorisation issue, and this is basically a BOLA. [03:42.350 --> 04:01.930] So in a straightforward way, if I can delete or modify let's say Jay's comment from Twitter or Instagram, this is a clear BOLA, because I shouldn't have the permission to access, modify or delete another user object that does not belong to me. [04:03.090 --> 04:05.510] And the consequences can be huge. [04:05.510 --> 04:12.210] It can start from data leaks to data manipulation and even the full account takeover, as we will see today. [04:15.610 --> 04:21.670] We faced many challenges when we tried to automate the process of BOLA detection. [04:21.990 --> 04:25.150] The first was the complex authorisation mechanism. [04:25.910 --> 04:33.750] So application these days actually has typically multiple users with multiple roles, with multiple resources. [04:33.910 --> 04:38.070] So it's very difficult to say which user can do what. [04:38.130 --> 04:41.750] Which user is allowed to do which action exactly. [04:42.510 --> 04:44.910] And this really can get complex. [04:46.150 --> 04:55.510] Also applications are stateful today, so each action you make or each API call you make can affect the state of the application. [04:56.590 --> 05:00.410] And basically each endpoint is dependent on one another. [05:00.410 --> 05:06.210] So imagine you try to delete a comment from an article or a post. [05:06.630 --> 05:13.730] So first you would need to create this post and create a comment for this post and only then you will be able to delete this comment. [05:14.150 --> 05:19.530] So they are dependent on each other, you cannot isolate one of them. [05:19.950 --> 05:26.170] And the execution order is really important in order to not have any technical issue. [05:27.050 --> 05:33.930] So it is a big challenge to understand this endpoint dependencies actually. [05:36.550 --> 05:52.170] Also BOLA doesn't have a... there is a lack of vulnerability indicator basically, so unlike XSS or SQL injection, which is pretty straightforward to recognise the pattern of the payload, BOLA is a logical error. [05:52.370 --> 05:59.190] It's not really malicious by definition, so it's hard to analyse and understand whether it is a BOLA or not. [06:01.510 --> 06:04.170] And lastly, the context. [06:04.610 --> 06:11.490] So we try to understand which endpoint in the application and which parameter contains sensitive data. [06:11.710 --> 06:14.870] And it's not that easy to understand it. [06:15.010 --> 06:21.330] And also to understand what is the impact actually of each action that we can take in the application. [06:22.390 --> 06:30.130] So all of this was pretty big challenges that we faced during the process. [06:35.270 --> 06:37.430] Thanks, Ravi, for covering the background. [06:37.430 --> 06:43.170] I hope everyone understands why automating data BOLA detection is difficult. [06:43.510 --> 06:52.830] So it was only two years ago that we realised that AI may be able to give this problem a glimpse of hopes. [06:53.150 --> 07:02.630] Because of the recent advancement of AI, we were provided with new tools to solve the problem that were not possible to solve in the past. [07:02.850 --> 07:15.990] And also in particular, our challenge of extracting context and logic information from textual data aligns well with the capabilities of large language model. [07:16.330 --> 07:21.730] So that's the start of our journey in using AI to solve BOLA detection. [07:21.730 --> 07:26.470] Here is a high-level overview of our methodology. [07:26.470 --> 07:32.930] The only required input of our methodology is an open API spec or a swagger spec. [07:33.270 --> 07:39.430] The first stage, identify the endpoint that can be vulnerable to BOLA. [07:39.430 --> 07:43.090] Not every endpoint can be vulnerable to BOLA. [07:43.090 --> 07:52.580] We use AI to help analyse every endpoint and its parameters to determine, to select a subset of endpoints as our target. [07:53.550 --> 08:04.530] This step helps us narrow down our target endpoint and avoid wasting time on the endpoints that are not at risk. [08:04.530 --> 08:12.190] We call this endpoint a potentially vulnerable endpoint, short for PVE or target endpoint. [08:12.190 --> 08:18.350] We will refer to this endpoint as target endpoint or PVE in the rest of the talk. [08:18.450 --> 08:23.450] The next stage, uncover the dependency relationship between endpoints. [08:23.730 --> 08:29.510] Modern web applications are complex, typically one endpoint depending on many others. [08:29.510 --> 08:40.030] For example, in order to test an endpoint that updates an invoice, you first need to call the endpoint that creates the invoice. [08:40.030 --> 08:47.890] In order to create an invoice, you first need to call the endpoint that creates the transactions that can be included in the endpoint. [08:47.890 --> 08:57.310] As a result, it is crucial to understand the endpoint that my target endpoint depends on before I can accurately test it. [08:58.150 --> 09:11.810] With the endpoint dependency relationship identified, the next stage, calculate the execution path to each target endpoint and create a test plan for each target endpoint. [09:12.510 --> 09:22.050] The next stage then transforms the test plan into multiple executable bash scripts using large language model. [09:22.050 --> 09:30.290] There may be one or multiple execution paths to each target endpoint and we aim to cover as many paths as possible. [09:30.630 --> 09:39.470] Finally, we set up a target API server and run all the test script generated in the previous step. [09:39.490 --> 09:51.870] The process of user registration, user login and token refresh have all been automated and we also use AI to help analyze the response and logs produced during the test. [09:55.620 --> 09:59.340] Let's dive into a little bit more detail in each stage. [09:59.340 --> 10:08.240] In the first stage, we try to identify the endpoint with input parameter that reference private sensitive or confidential information. [10:08.240 --> 10:11.200] These are the endpoints that we target. [10:11.200 --> 10:13.480] These are our target endpoints. [10:14.200 --> 10:16.860] For example, let's look at the first endpoint. [10:16.860 --> 10:24.380] The username here indicates that the endpoint may reference to data associated with the individual. [10:24.380 --> 10:30.960] If this endpoint is vulnerable to BOLA, an attacker may be able to reset another user's password . [10:32.180 --> 10:46.720] Similarly, if the second endpoint input user email is vulnerable to BOLA, an attacker may be able to change another user's email. [10:47.280 --> 10:57.780] Traditionally, pen tester manually look for this endpoint and their parameters to determine their target endpoint. [10:57.780 --> 11:06.280] This process is slow and cumbersome, especially for very large applications with hundreds of endpoints. [11:06.280 --> 11:14.660] So we use AI's capabilities of reasoning and understanding text to automate this step. [11:15.120 --> 11:27.710] Here is a snippet of our prompt that show how we teach AI to recognize parameters that may reference to sensitive data. [11:27.710 --> 11:33.710] Essentially, we instruct AI a set of rules and examples. [11:34.550 --> 11:42.890] At the end, AI returns us the endpoint and parameters that meet any of the conditions that we provided. [11:44.550 --> 11:49.610] The next stage uncovers the dependency relationship between endpoints. [11:49.730 --> 12:06.050] As I mentioned, due to the complexity of modern web application, each API call may change the state of the application and affect the outcome of other API endpoints. [12:06.050 --> 12:12.770] As a result, it is crucial to identify their dependency relationship before we can test them. [12:13.650 --> 12:21.370] In this diagram, we call the endpoint on the right as consumers and the endpoint on the left as producers. [12:21.790 --> 12:28.230] Producer endpoints output the values that consumer endpoints need as input. [12:28.230 --> 12:35.830] Again, producer endpoints output the values that consumer endpoints use as input. [12:35.830 --> 12:41.190] This is one of the most important concepts in our research, in our methodology. [12:41.270 --> 12:46.330] Let's look at this endpoint as an example, delete user. [12:46.330 --> 12:54.110] In order to correctly test this endpoint, we need to feed it with an existing username. [12:54.110 --> 13:05.130] If we feed it with a random variable, a random username, this endpoint will always, API code will always fail and give us meaningless result. [13:05.130 --> 13:08.610] That's why we need to identify its producers. [13:08.810 --> 13:19.150] In this case, this consumer endpoint has four producers and each of them can output the existing username that endpoint can use. [13:20.270 --> 13:28.490] Here is a snippet of the prompt that we use to teach AI how to recognize dependency relationship. [13:28.490 --> 13:42.710] I want to emphasize that also we can use heuristic algorithm to match the output parameter name of an endpoint with the input parameter name of a consumer. [13:43.010 --> 13:46.930] This heuristic algorithm is not reliable. [13:46.930 --> 13:57.090] The reason is that developers sometimes use different parameter names to reference the same data object within the system. [13:57.230 --> 14:05.750] Developers may also use the same parameter names to reference different data objects across the system. [14:05.750 --> 14:12.850] That's why we use a combination of heuristic and AI to uncover the dependency relationship. [14:12.850 --> 14:25.410] We need AI to analyze each endpoint functionality in order to establish their dependency relationship based on their functionalities. [14:28.070 --> 14:41.570] Once we have the using the dependency relationship uncovered in the previous stage, this stage build up a dependency tree for each potentially vulnerable endpoint. [14:43.130 --> 14:51.190] In this dependency tree, the root node represents one of our target endpoint or PVE. [14:51.210 --> 15:07.050] Any two directly connected nodes in a tree represent a consumer and producer relationship in which the parent node is the consumer and the child node is the producer. [15:07.670 --> 15:11.110] Let's use the upper half of a tree as an example. [15:11.110 --> 15:21.270] In this case, endpoint is a producer of PVE endpoint output, the value that PVE needs as the input. [15:21.270 --> 15:32.930] Endpoint 1 itself also has two producers, endpoint 3 and 4, which produce the output that endpoint 1 needs as the input. [15:34.470 --> 15:45.370] Finally, in the next stage, we calculate the execution path to each potentially vulnerable endpoint. [15:46.190 --> 15:56.390] In the dependency tree, a path from the leaf node to the root node represent an execution path. [15:56.710 --> 16:07.830] This is a reverse tree traversal, so the path is actually from the leaf node to the root node instead of from the root node to the leaf node. [16:08.250 --> 16:12.690] Let's plug in some real endpoint to see how we do the calculation. [16:12.690 --> 16:23.650] In this example, the target endpoint is delete comment, and this endpoint has two producers, get comment and post comment. [16:24.090 --> 16:38.950] These two producers in turn also each has two producers, so at the end, there are four execution paths that can all reach the target endpoint, delete comment. [16:40.290 --> 16:58.450] In the last stage, we then turn each execution path into an executable bash script using large language model and run the script to actually send HTTP request to the target endpoint. [16:58.890 --> 17:04.310] The process is more complicated than just generating and sending the request, but it's a lot of work , so I'm going to leave it at that , and Mr . [17:04.310 --> 17:07.210] Stravit will explain in the next few slides. [17:10.530 --> 17:11.270] Great. [17:11.270 --> 17:14.590] Thank you, Jay, for the overview of our methodology. [17:15.810 --> 17:28.550] And before we can see actually a real BOLA test and view our BOLA that we found, let's see the prerequisites that we have before we can create an actual test. [17:28.890 --> 17:36.710] So we use LLMs, again, to create the user registration process and to collect the login data of the application. [17:37.910 --> 17:47.590] So basically, we generate user... LLM generates user credentials that meets the criteria in terms of the, for example, password complexity and ETC. [17:48.390 --> 17:55.890] And we execute the user registration process and we fetch the login data from the spec. [17:55.890 --> 18:07.690] So this is crucial in order to then log in the users of the specific test and get a valid and unique token for each one of them. [18:08.210 --> 18:13.970] This information will be stored in a dedicated file, so we will have an easy access and usage. [18:15.370 --> 18:19.270] Then we will want to isolate the test data. [18:19.970 --> 18:26.130] So if you ever saw a API spec file, you know that it can be huge. [18:26.130 --> 18:31.510] It can be a thousand lines of code, especially for the bigger applications. [18:32.150 --> 18:37.990] And we want to isolate only the data that is needed for the specific test. [18:38.750 --> 18:47.830] So Jay mentioned that we have a consumer and producers in each test, so we would like to have only the data which is relevant to these endpoints. [18:48.730 --> 18:58.550] So we will create a new file, we will feed it to AI and it will save us about 90 to 95 percent of the spec. [18:59.390 --> 19:07.990] So we do it for efficiency to ensure that LLM will get only the accurate data that it actually needs for each test creation. [19:08.930 --> 19:14.710] And for cost, we want to have as lowest tokens as we can. [19:16.830 --> 19:24.450] And finally, we're creating the test script and it will be saved as an executable bash script. [19:24.710 --> 19:30.730] You can see an example of a very simple consumer and producer. [19:30.730 --> 19:35.710] We have a put user password and a get user to get the username. [19:36.110 --> 19:39.510] This kind of test will be saved in a put get directory. [19:39.510 --> 19:43.110] Put would be the parent, get would be the child. [19:44.810 --> 19:49.870] And the test generation actually runs asynchronously in order to save time. [19:50.790 --> 19:57.140] And right now we averaged 1.5 seconds for each test creation. [19:59.390 --> 20:06.580] Right, so the final step would be to actually run the test script in the application. [20:07.380 --> 20:16.820] So we have an execution order and our main goal is to avoid any chance that a test would fail due to technical reasons. [20:17.340 --> 20:21.520] So we want the test to fail only if the PVE is not vulnerable to bola. [20:21.560 --> 20:22.620] It should be. [20:23.460 --> 20:29.720] So we will first run the test that populate data and resources to the application before we can fetch them. [20:31.240 --> 20:42.820] And also we will try to push and delete, to push update and delete operation to the end so we won't experience a scenario where we delete a user or delete a resource and then try to fetch it. [20:43.220 --> 20:52.120] So again, the main reason for this is not to have technical issues in a test that will make it fail eventually. [20:54.260 --> 21:06.600] So right after we finished preparing our methodology, we wanted to evaluate our bola buster actually and see the result. [21:06.820 --> 21:14.620] So what we did is we took maybe the best API fuzzer, which is open source right now, which is Restler. [21:15.020 --> 21:18.280] Restler is a Microsoft -developed API fuzzer. [21:18.280 --> 21:20.420] You can find it on GitHub. [21:21.140 --> 21:29.320] And its goal is to automate the process of API testing and to find vulnerabilities, like our goal. [21:29.940 --> 21:38.700] So what we did is we took three open source applications, which are deliberately vulnerable to the OWASP API top 10. [21:39.160 --> 21:41.640] We took Vampi, Capital and Krapi. [21:41.640 --> 21:45.740] You can see from the table that they have unknown bolas. [21:46.380 --> 21:50.200] And we started to test our tool against Restler. [21:51.900 --> 21:58.940] As you can see, Restler could not identify any bola of these applications. [21:59.160 --> 22:03.320] And it made a pretty big number of API calls. [22:03.320 --> 22:06.240] Thousands and even hundreds of thousands. [22:07.400 --> 22:13.160] Then we tested our tool, again the same application, and the results were amazing. [22:13.760 --> 22:22.500] I hope you can see, we found all the bolas in each one of the applications and we made significantly lower API calls. [22:22.720 --> 22:27.760] So eventually we made less than 1% of the calls that Restler made. [22:28.000 --> 22:30.540] So this is a crucial part. [22:30.540 --> 22:39.020] It proved our efficiency and we didn't make the application load too much. [22:40.340 --> 22:45.960] Finally, we wanted to have a 100% true positive rate. [22:46.480 --> 22:52.300] So our goal was to find any bola if it exists in the application. [22:52.820 --> 22:56.340] We did have some false positives, you can't avoid it. [22:56.540 --> 23:03.900] But again, our main goal was to focus on the true positive rate, which was 100%. [23:05.940 --> 23:11.540] Now we can take a look on a real scenario for a bola test. [23:11.780 --> 23:24.720] So we have this high-level example, where first Alice creates an article, then Alice creates a comment for this article, and then Bob will try to delete Alice's comment, which is the PVE. [23:26.420 --> 23:33.020] So first, Alice and Bob will log into the system, they will get a unique token, which will be saved. [23:34.620 --> 23:39.280] Alice will create a new article in the system, we will save the article title. [23:40.600 --> 23:45.720] We will do the same with the comment, so Alice will create a comment, we will save the comment ID. [23:46.540 --> 23:53.420] And finally, the PVE, the maliciously Bob, will try to attempt to delete Alice's comment. [23:54.020 --> 23:56.460] And this scenario can have two results. [23:57.100 --> 24:08.420] If it will be successful, we will have a potentially bola for this endpoint, or if the application can defend the bola as well, so it will be forbidden. [24:10.420 --> 24:13.540] Let's see the actual snippet of our code. [24:14.040 --> 24:28.780] So first of all, we will create a unique random string each time, so we will be able to create an article for multiple tests without getting an error that it already exists. [24:29.600 --> 24:45.060] So as you can see, we make a POST request to slash API slash articles, you can see that we use user A token, which reference to Alice, and we use the article title as a random string. [24:47.420 --> 24:52.160] We will save the slug, which is in this case the article title. [24:54.700 --> 24:58.940] Next, Alice will create a comment. [24:59.080 --> 25:07.880] So what's special about this is that if you take a look at the actual endpoint, you can see that we dynamically use slug. [25:07.960 --> 25:15.440] So we saved this parameter from the previous request, and then we dynamically use it. [25:15.440 --> 25:22.600] So now we can reference to it as a... we can know that this resource actually belongs to Alice. [25:24.580 --> 25:31.660] Again, we save the comment ID, and then finally we have the PVE, the delete operation. [25:32.400 --> 25:39.300] You can see again that we use slug and comment ID that belongs to Alice. [25:39.600 --> 25:48.620] And the main difference, now we use the user B token, so now we can identify that this request is made by Bob and not Alice. [25:49.640 --> 25:51.840] And lastly, we will check if the test passed. [25:52.760 --> 26:00.980] Now I want to emphasize that actually every BOLA test that we make is, if you think about it, it is malicious by definition. [26:01.540 --> 26:09.900] The last request, the PVE, we will always, we will try to perform an action that you shouldn't be able to perform, right? [26:10.020 --> 26:13.300] Bob shouldn't be able to delete Alice's comment. [26:13.420 --> 26:27.780] So in case it is successful, we can mark this test as at least potentially vulnerable to BOLA, before we can make a further analysis and verification, let's say, in the application context. [26:28.180 --> 26:33.520] So you just need to understand that every BOLA test is malicious by definition. [26:36.470 --> 26:41.790] So let's see how we actually hunted some BOLAs in the wild. [26:44.560 --> 26:48.340] We have a quick demo of showing the running of the tool. [26:49.200 --> 27:06.200] So this is a Python-based and it will, I hope you can see, it's testing each API endpoint and in case the result is successful, it will mark it with BOLA found and the actual API endpoint. [27:07.540 --> 27:15.120] After this, we will take the list and we'll further analyze it and try to understand if this is a real BOLA or not. [27:17.540 --> 27:22.080] So all of these applications, it has something in common. [27:22.080 --> 27:23.940] We found BOLAs in it. [27:24.420 --> 27:26.140] So first of all, Harbor. [27:27.420 --> 27:30.240] It is a cloud-native container registry. [27:30.240 --> 27:35.480] It is basically equivalent to Docker Hub, which I'm sure most of you are familiar with. [27:36.020 --> 27:43.140] It is a CNCF-graduated project, so it's been in the wild for a while . [27:44.180 --> 27:54.520] It has around 2 million downloads these days and we actually found, this year we found a new BOLA, which we will talk in a bit. [27:55.840 --> 27:57.580] Next up, Grafana. [27:57.580 --> 28:00.620] It's a data visualization and monitoring tool. [28:00.740 --> 28:02.220] Very, very popular. [28:02.220 --> 28:07.060] It's being used by 20 million users, actually, these days. [28:07.060 --> 28:10.020] And we also found a new BOLA there. [28:11.540 --> 28:15.860] And lastly, we have Easy Appointments, which is an open-source tool. [28:16.340 --> 28:26.100] It has almost 200,000 downloads and we've actually been able to find 15 new BOLA vulnerabilities there. [28:26.340 --> 28:27.120] Yeah. [28:27.660 --> 28:29.200] Little bit. [28:30.240 --> 28:35.460] The most amazing thing about it is actually that seven of them are critical. [28:36.100 --> 28:45.100] So they got a CVSS of 9.9, which actually allows a low-privileged user to gain admin access. [28:45.100 --> 28:47.040] Remember we talked about compromise? [28:47.040 --> 28:51.940] So we have a full application compromise in this case. [28:54.260 --> 28:57.180] Let's talk about Arbor vulnerability. [28:57.180 --> 28:58.740] It's pretty interesting. [28:59.840 --> 29:03.480] So, Arbor has projects in it. [29:03.660 --> 29:09.020] You can have roles, so you can be an admin, a maintainer, a developer, or a guest. [29:09.660 --> 29:16.640] Basically, we found the vulnerable feature to be the project configuration metadata. [29:16.640 --> 29:21.120] So I hope you can see the attributes there for the configuration. [29:21.500 --> 29:32.520] Basically, an admin can change the project to be private, public, you can implement some image vulnerability scanning and have more power. [29:33.620 --> 29:45.060] So Arbor claimed that in their official documentation that only the admin project should be able to create and modify these kind of configurations, which makes sense. [29:46.440 --> 29:53.000] And actually, we found out that an unauthorized user can do the same operation. [29:53.320 --> 30:02.240] So we tried to play with the roles of the project and we saw that the maintainer, for example, could not make any change via the UI. [30:02.440 --> 30:05.920] So this is a maintainer login, which is grayed out. [30:05.920 --> 30:07.720] You cannot modify it. [30:07.720 --> 30:16.480] But maintainer can actually create, delete, and modify these attributes via the API. [30:16.660 --> 30:22.160] So there is a big discrepancy between the UI and the API behavior. [30:22.660 --> 30:42.860] And this vulnerability actually creates an extent in the maintainer privileges, so now a malicious maintainer could be able to make a private project public, deploy unverified images, and actually control every configuration that you can control in a project. [30:44.160 --> 30:55.140] And as you can imagine, the consequences can be pretty high, so we can compromise the integrity of a project and actually the security posture. [30:57.100 --> 31:09.560] So Harbo verified this vulnerability and you can find it in their security advisory. [31:09.560 --> 31:10.860] We got a CVE. [31:11.200 --> 31:18.040] And you can check out our blog about it when we technically talk about how we found this bola. [31:21.120 --> 31:22.160] Thanks. [31:22.420 --> 31:29.080] I will just use the last 30 seconds to share the most important lessons we learned from working with AI. [31:29.080 --> 31:31.960] First, AI isn't always the best solution. [31:32.520 --> 31:39.980] Problems with existing heuristic solutions should not be solved by AI, like sorting, finding trees, or solving equations. [31:39.980 --> 31:46.140] Those problems have existing optimal solutions and always use heuristic rather than AI. [31:46.140 --> 31:48.280] Second, don't trust, always validate. [31:48.280 --> 31:52.080] Blindly trusting the output of AI can be very, very dangerous. [31:52.360 --> 31:58.400] So always validate the output of AI before using them or passing them to the next stage. [31:58.400 --> 32:01.440] Finally, make AI's jobs easier. [32:02.140 --> 32:12.720] Treat AI like a very capable junior worker who can do simple tasks exceptionally well, but can start making mistakes when the job becomes more complex. [32:12.720 --> 32:20.680] So when working with AI, it is always a good idea, good strategy to use divide and conquer to simplify its tasks. [32:21.120 --> 32:23.540] And thank you so much.