Alright, so the next speaker that we have is Gunner Andrews. And Gunner is working in the application security space for almost five years now. He is a hacker who is passionate about software and sharing knowledge. And is currently working as a senior application and a cloud security engineer at Interwell Health. And also, he's also a SynecRed team member. So please welcome Gunner Andrews. Alright, hello? Thanks for coming, first of all. So this is my talk, called How I Built Recon to Scale with Serverless Architecture. So we're going to go over a couple different kinds of serverless, some logistics, and then there's a bunch of screenshots, workflows, code, all that kind of stuff. The slides get shared and everything else, so if I'm going too fast, it's all available after. I just wanted to leave it at that, just so people are interested. Okay, so again, this is kind of what we're going to go over in order. So obviously I have to start with the Who Am I slide, kind of like what you just heard. I do AppSec and CloudSec full-time. In my off-time, I like to develop stuff, I like to build stuff, like to play video games, like to bug bounty hunt, and I'm into fitness as well. So we're going to talk about two different kinds of serverless. So there's a lot of the word serverless flying around. One is kind of an idea, one is a framework. So the first one we're going to talk about is the idea of serverless. So there's a couple quotes up here from both Red Hat and CloudFlare, a little bit about what serverless actually is. So basically, if you read a little bit of those snippets, I'm sorry about the small text, it basically allows you to build applications, manage applications, deploy, etc., without actually having to manage the infrastructure under it. There are tools, especially in the bug bounty space, that are developed to help with this. One is called Axiom, that allows you to basically take a workload and spread it over a bunch of servers, and then it will basically ingest the data, bring it back, and give it all to you as one thing. There's also a tool called ShadowClone that actually does get into the serverless space, that basically allows you to do the same thing, but break up a workload over a bunch of Lambda functions. Or, I think it uses Azure and GCP, too. But basically, what serverless computing is, is if you take the... there's a line that what you're responsible for, and then what, let's say, a cloud provider is responsible for. If you spin up an EC2 instance in AWS, you are responsible for updating that server, you're responsible for managing what ports are open on that server, and there's a whole laundry list of things that you're responsible for. AWS is responsible for the data center. If someone breaks into the data center, you are not responsible. If someone breaks into the server, you are very responsible. Serverless takes that line and moves it basically one more step up. You are now only responsible for what you are deploying on the servers. That's actually the code you're writing, the software you may be deploying, whatever it may be, that's now the only thing you are responsible for. AWS is actually managing the runtime environments for you, the servers in the backend for you, scaling, everything. Caveat that we'll talk about later, obviously you have to pay for that, but we will talk about that a little bit more in a bit. So there is a lot of these out there, there's a lot of different flavors, and they do a lot of different functions. A lot of what we're going to be seeing today is AWS, and that's some of the stuff you see there on the top. So we're going to talk about AWS Lambda, AWS DynamoDB, Step Functions, but GCP has this kind of thing too. One example is Cloud Run, and Azure also has Azure functions, I'm pretty sure DigitalOcean also has DigitalOcean functions. There's a lot of it out there, serverless is kind of spreading to everybody, but the ones that we're going to focus on today in some of the demos and the screenshots is all AWS, but it is not cloud agnostic. But this basically allows a user to either package up code in a zip file, or use Docker files and Docker containers, and basically take it to your image, or your zip file of code, and just deploy it. You're basically telling the cloud this is Python, Go, whatever it may be, and it handles the rest. All you're worried about is updating and managing the actual code base, or the software you're deploying, and nothing else. So this is the other serverless. This is the serverless framework. This is basically a CLI tool. If anyone here has heard of Terraform, it's pretty much a spinoff of Terraform for only serverless products. It works with all the different clouds, all the main cloud providers, and it works with their serverless offerings. It comes with a whole bunch of plugins to do a whole bunch of things. One of the plugins we'll see is it allows you to deploy a Python Lambda function with a requirements.txt file, which has been annoying in the past, if anyone has done Lambda development. And it handles these laundry lists of languages that I have up there, plus a lot more. And the reason why we're going to talk about it is because there's a lot of different ways to remotely deploy serverless. AWS has something called SAM that you can use to deploy serverless. It's not user-friendly 100% of the time. This, in my argument, is. And we're going to show a little video walkthrough of it, but basically it breaks down to these four things. It's an npm package that you install. When you type just serverless, it pulls up a whole list of templates that you can choose, and it will basically do what a lot of other tools do, and it will make you a new directory and populate that directory with what you need. For example, with Lambda, a Lambda handler, the YAML file, you'll need to deploy it and configure it and everything else. Whenever you're ready to deploy, you just type serverless deploy, and obviously there's a bunch of flags if you want to configure it, but serverless deploy will deploy it. And then you can invoke it right from the command line, and we'll show that. There's also ways that I'll show you when you invoke the function. If you want to test your Lambda locally, you do not have to pay for AWS Cloud9. You do not have to mess around with SAM. All you do is, instead of serverless invoke, and you're calling your function, you just add in local, and we'll show that. But then you're testing your Lambda function locally, and you're not actually paying to run a bunch of tests. And you can hand it data, fake data, dummy data, and everything else, and you can test all your serverless stuff locally before you actually deploy it. And if you turn out you want to remove something, serverless remove removes all the backend, as well as the actual Lambda. So this runs on the CloudFormation stack, and then uses, obviously, S3 as a backend for CloudFormation. And that's actually how it will be deployed. Very similar to SAM, but it puts it all in a nice little YAML format for you that we're going to go over, and basically puts a CLI wrapper on it. So I have a video here, and I'm going to probably speed it up, and skip through some stuff. But basically, like I said, when you type serverless in the beginning, it will let you pick from a bunch of templates. And there's a whole bunch there if you click Other. But all I did here was pick an Amazon starter one, which is obviously, of course, your cliche Hello World. You're naming it, and it will then build you that new directory, and deploy it out there, right? You can use the dashboard. The dashboard is a paid thing. You definitely don't have to use, right? And we don't want to deploy it. After we CD into the directory, I'll show you when you LS in here. This right here is in your directory. There's two things in the beginning one. The handler is the basic handler that you would use, whether using SAM or something else, to deploy something. And then the serverless.yaml is the actual YAML file you're using to configure the Lambda function. So this is how much memory you want to have, the timeout you want to have, and stuff like that. But as you'll see here in a second... Oh, geez. I even tried to avoid live demos, too. So let's go. Okay, so back where we were. The handler looks a little bit like this. This is like a super basic handler, right? You're defining a function called Hello, since the Hello World. You'll see that show up in the YAML file. That function is how you'll tell the YAML file, like, this function is my handler function. So it's in a file called handler.py, and the function's called Hello. So that's key here, because the next thing that's going to come up is the YAML file. The YAML file is very small, because it's just the basic version. And I'll show you some of mine later, as we go into the thing. There we go. So this is the YAML file. So you see in the bottom, you're calling functions, you're naming a function. The name is called Hello. And then you're pointing it to the handler. So you're pointing it to the file that it should go to, and then dot whatever function. You can have a bunch of functions in one directory. You can make one directory per. All that kind of stuff. You don't have to put any secrets in here. This makes it so you can actually package up Lambda functions in directories, and use Git or any other type of version control to actually co-develop serverless architecture. Right? So... In the hallway, and they stopped everybody. Oh. Don't fight. So, this is the part I'm probably going to skip through, because this is basically just like, it runs for about 75 seconds. But when you type serverless deploy, like I said, it's using CloudFormation and S3, just like SAM does, in the back. And that will basically, this is now just deploying it to my AWS account. So the only requirement to get this to work is you download the npm package, and you have your AWS credentials configured. Just like, you know, if you're using the AWS CLI. It's the same thing. So really, at the end of the day, what it is, is it's a CLI wrapper and YAML wrapper around the AWS CLI, and basically doing what SAM does. It just makes it a lot easier to locally develop, deploy, and update what you're doing. So, once it finishes here, right here, we're going to invoke it. You invoke it by the function, which we called hello. And when you invoke it, this is actually running on my AWS account. After it was deployed. Like I said before, though, you can do the same exact thing, and just tell it to invoke locally. And this is now using whatever I have on my machine. Right? So if you want to test before you deploy, you can invoke locally, and then whenever you're ready to remove it, the last step, since I don't necessarily need to keep a hello thing on my account, you serverless remove, and it removes everything. It's very simple, it's very easy to use, especially compared to some of the other stuff, like SAM, or just using the AWS console. So now, of course, we have to talk logistics. What I mean by that is we're going to talk about cost and scalability. So, I'm going to pre-wreck this by saying if you want to use serverless to build your own automation framework for either red teaming, bug bounty hunting, or blue teaming, or whatever it may be, and you want to scan 100 million domains every five minutes, forever, it's going to cost you money. There's no way around it not costing you money. There is a free tier for a lot of this stuff, and I will talk about some of the ways to save money if you want to maybe make it a little bit less user-friendly, but a little more cost-saving. We're going to go over that during the example, but a little caveat is it does save you money. But, a decent example, and I'm sorry, again, I'm sorry for the small text. I tried to make it as big as I could. At the top is doing 10 million DNS resolutions in Lambda, in estimate. So if you Google it, or chat GPT, the average DNS resolution is about 33 milliseconds. So if you run a little Lambda function that resolves one domain, which will happen in hopefully 33 milliseconds, and you run it 10 million times, you pay $1.80. So if you resolve 10 million domains per month, you paid $1, almost $2. Right? If you buy the smallest EC2 box you can buy, at least on my account, you pay $3.65 a month. So, if you're resolving 10 million domains, you're still cheaper doing it with Lambda than doing it in EC2. Now, as data storage comes into play, or continuous scanning, right? If you're going to try and resolve domains every minute of every month, that gets a little bit different. So some of the advantages of serverless are as follows. I tried to fit it all in. The one thing to look at is whatever you're trying to build will have a traffic pattern. If you're doing continuous scanning and it's always running and it's always on all the time, don't use serverless. This is probably not for you. Because you will spend more money using serverless than you would using server-based. The only advantage is you would be paying more money to not have to worry about your infrastructure. That may be worth it to you, it may not, but this won't save you money. If you have spiky workloads, let's say you want to resolve 10 million domains once a month, serverless is for you. Because you don't have to worry about spinning up and spinning down servers and forgetting it's there and then paying for the whole month. You don't have to worry about where your servers are and how big or how small they are and if they can handle the load or if you're going to overload the server. All of serverless has scalability basically to unlimited. Obviously there's benchmarks, but just quote-unquote unlimited for whatever workload you want to give it. It will scale for you and you only pay for what you use in serverless. So Lambda for instance, you pay for the computing resources times the amount of time you're using them. That's it. It doesn't matter if you do it one Lambda at a time, it doesn't matter if you do it 100,000 Lambdas at a time, you're using the same amount of computing resources, the math works out the same whether you run it one at a time or 100,000 at once. So for very spiky workloads, serverless normally will perform better than servers and it's way easier to manage and it's way easier to scale. The other thing like I talked about is the development maintenance. I do this for fun and I'm one person. I do not have a dev team, I do not have an infrastructure team, I don't have anybody. This makes it very easy because all I do is write code and do what you just saw, I just deploy it. And then I don't worry about it. And we're going to talk about how to schedule it and it'll even run on its own and all that kind of stuff. You basically code, it's basically like you're pushing to get you code, push and you forget. Unless it breaks. But we'll talk about that too. So now... okay good, I'm doing good on time. So I'm going to go through my stuff. A little birdie told me opening AWS console, a hacker conference, was probably not a good idea. So it's all screenshots. I am not hiding anything. If you have a question about something or you want to see something, get in touch with me. Ask me. I am more than willing to share it with you. These slides will be available. All the code is in the slides. It's just kind of the best way of both worlds where I'm not showing my AWS console at a hacker conference and I can show you guys how I do things. So this is one of the workflows. This is the one we're going to focus on. This is a passive enumeration that I use for bug bounty. There's passive and active enumeration. This is the passive side of things. So any bug bounty people in here, any all the recon folks in here have heard of subfinder and amass. This is basically bundling those tools up and running them for me against whatever I want it to run on. This is called step functions. In AWS, this basically allows you to orchestrate both serverless and non-serverless. And this basically is a workflow. So it comes in on the top to a lambda function that's called passive enumeration. And then in parallel it will both delete what I just processed from the queue, assuming it's successful, and it will loop through all my results. And if the domain is a new domain, it stores it in my database. Which is going to be DynamoDB, which we'll show in a second. After that, there's temporary recon data, because step functions can only handle so much data being passed from step to step. And you use S3 just like basically every other AWS tool to handle the large temporary data you're handling in between. And then it all just gets deleted at the end. Because it ends up in the database. So this is just a really quick... Again, this is my configuration I use, but this is just the configuration for a very basic SQS queue. This is basically how everything talks. So I use a PubSub type model for my stuff. And I use SQS queue as that basically broker in the middle. So anything that either will go from workflow to workflow, or that goes from a workflow getting kicked off into a workflow, all happens through SQS queues. SQS queues have a massive free tier. I have never paid for it yet. This is not one of the services where you will pay. If you break the free tier, congratulations. I think it's like 50 million messages or something. So this is how everything starts. Again, I use this for bug bounties, mostly. As well as a little bit of work. So PlayStation is pretty cool. They're giving one away, I think, in the CTF. But PlayStation has a bug bounty program. So I have a separate table in DynamoDB, which is a NoSQL serverless database that scales with you, just like everything else in serverless, on AWS. And this is what every target I have looks like. So I put in the URL of where I would turn in bugs, hopefully, the name of the program, and then a list of domains, whatever their root domains may be. I put any wildcard domains in here that I'm going to do wide scope recon on, and these will automatically get ingested, as we'll see in a moment. Then this program, and this kind of thing, will be cross-searchable across the other tables, which I'll show in a second. This is an example of what it would look like after. So, again, there are other steps to this that I only have 45 minutes to go over. Again, if you're interested, we can chat. But it starts out as it finds domains, it'll put them in there with the subdomain, the program, and then an empty list for CNAMEs and IPs that it finds, and then there's more, obviously. This is kind of truncated, but then whether or not it resolves, there's timestamps, everything else. You can add whatever you want here. And this can be updated, and this is one of the tables as a source of truth for results. Now, with this, you can do something in DynamoDB called scanning. It's sort of an intensive process, but it works very well cross-table, and you can do a lot of very cool queries with it. So, in my opinion, I think it's worth it to look into. So, for example, here, if I wanted to go into my domains table of all my recon of any amount of domains, and I just want to find the PlayStation one, it's very easy to just scan my table called domains, and the attribute name is program, and I want it to be equal to PlayStation. And I'll get every domain from all three of those seed domains that PlayStation is a part of. If I just wanted one of those domains, I can set the attribute name to seed name equal to whatever the one domain that I wanted to find was. And you can scan... those filters are, like I said, very intense. You can basically filter against anything you want. So, this is the other thing. So, a lot of bug bounty hunters, especially when you're running automated recon, you want to know when new stuff shows up, right? You want to be the first one to it, all that kind of stuff. DynamoDB makes that very easy, because there's something called a DynamoDB stream that streams... it's basically an event, API, of everything that's happening to your DynamoDB. It's very easy to make a trigger and hook on, just like you see in the thing, to hook on a Lambda function to that trigger. So, anytime a new thing happens to your DynamoDB, there's a Lambda function to ingest it, and you can tell it, only ingest inserts, only ingest updates, whatever it is. So, obviously, for a new domain, it's pretty straightforward. Anytime a new insert goes into my domains table, that means there's a new domain. There's a Lambda function called NewDomainNotification that we're going to show on the screen that will basically ingest that stream's API, grab the new domain that just got added to the database, and shoot it to Slack. So, I don't use... there's not necessarily a tool for that. It's just a POST request to a Slack webhook that we're going to go over. So, this is actually some of the code. Again, I tried to make it as big as I possibly could, so it's split up into chunks. So, this is a Lambda function that actually kicks off running my recon against every domain I have in that domains table I showed you. So, all it is, is I go through the table name that I call targets. I just have one item in the database. It's just one big item. And for that item, there's a bunch of programs. So, I loop through the programs, and for every program, as we saw, we'll have that list of domains. And all I'm doing is queuing those domains up in my SQS queue to the beginning of the workflow. We'll look at this later. This one gets scheduled. So, I don't kick it off. I have it scheduled for, I think, every 10 days, I think, in the picture. So, every 10 days, this gets kicked off. It takes everything out of the programs that I'm hacking on, takes those domains, puts them into the SQS queue, and there's another event that we're going to go over that whenever something gets added to the SQS queue, it automatically kicks off workflow. So, I'm not touching it. I'm not starting and stopping it. You can if you want. But it is... it can go, basically, fully automated. This is the big lambda function that sat at the top of the workflow. This is the passive enumeration runner. So, as you can see, there's a little bit more than when we did the serverless demo. There's the handler. It's the same thing. And there's the serverless YAML. Requirements.txt. Any Python people in here? That's your requirements, right? Now, subfinder and amass are actually just binaries. Those still get packaged up in the zip file and go with it. So, all this is, it's nothing special, as much as I'd like to pretend it is, is it's just Python wrapping around tools that I want to use. That I don't want to run myself over and over. And this is the passive part. The active part looks very similar to this. Again, I don't have enough slides and enough time to go over everything, but the active part would be very similar to this. And you can break up the workload however you want. So this, again, I split it up into chunks. So this is all, this is the whole YAML file to deploy the passive enumeration runner. It's only this long. It's not, if you do this in Terraform, anybody who's done Terraform, it's a lot of lines. It's a lot of lines. And it's very readable in my opinion. So we're telling how much memory size we want, what we want the timeout to be for the lambda function, and then the same thing as before. I'm declaring a function, it's called passive enum runner, I'm pointing it to the handler, and then I guess in this one I add a name and a description. When you want to use a plugin, it's right there at the bottom. So serverless Python requirements. That's the plugin to bring Python requirements with me into the lambda. So this code is broken into chunks. So this is basically my function. From the serverless YAML that we just saw, this is the handler that it's calling. The data that it's going to ingest is from event. That stuff you see at the top is configuring the lambda. I'm adding some config, as people know who run the tools, there's some config files, API keys, you know all the secrets off. And basically I'm using Python threading to run both SubFinder and Amass at the same time. Because being that they're passive, they're pretty low memory, pretty easy to use. So it's just running Amass and SubFinder against whatever domain I give it. It's pulling the results together, and it's saving them to S3. Again, it's saving them to S3 because if I run it on Yahoo, and I pull tens of thousands or hundreds of thousands or whatever of domains, that step function that's orchestrating my workflow, as data passes in between it, you can't pass over I think it's like 5 megabytes worth of data in between steps. S3 is what you use because all of the steps will ingest directly from S3. So you can output directly to S3 and at the next step just say, yeah, grab this S3 file from the step before. And that's how you handle... and again, that definitely won't put you over the free tier. I mean, unless you are doing something very crazy, in which case, talk to me. This is... I put this on here just in case anyone's curious how I actually wrap up SubFinder in a mass in Python. It just looks like that. This is the new version of a mass too, so it changed a little bit. But it's basically like that. I'm using my config files. I'm putting in the domains. It's all very simple. It's just a wrapper. Again, there's more than this. I just don't have time. If this interests you, we can talk. So this is the notification lambda. This is the handler for the notification... sorry, the serverless.yaml for the notification lambda. Notice how it looks very similar. Once you do this like twice, it gets pretty quick. And this is the code, right? So all it is, down at the bottom is my handler function. I'm starting a message with new domains found from my records in the event. The event is basically the API data that came from the API. I'm grabbing... it's called keys. And basically all that long string there is doing that appends to the message is just appending all the new domains that were inserted. Once those are done, as long as it counts greater than zero, which means assuming there was an insert, I'm sending a message to Slack. It's a POST request. It's just a POST request to a webhook. So this is what it looks like when it works. The reason why I use step functions is because as you build it, and as you use it, it will track every run for you and it will tell you what worked, what didn't work, the input, the output, how long things ran, all that kind of stuff. So this is an example of one that worked. This was ran against Costco. So you can see the body there was the program, and then I do like three lines just to separate and then the domain that I was trying to call. As you can see, everything is green. That means it works. That's great. It doesn't always work. Right? This is what it looks like. So this was from a while ago when I was first making it. As you saw, my serverless.yaml set the timeout to 900 seconds. That's because I had it at 600 and it wasn't enough, if you can read. Right at the bottom there, it says the task timed out after 600 seconds. It tells me the error. Sometimes the error that it gives you right there isn't the best. That's okay because right under the passive enumeration title, that little text that I apologize for again, says log. That link takes you directly to the CloudWatch logs, directly for that invocation of the Lambda. Tells you exactly what happened, exactly each step. If that error doesn't give you exactly what you're looking for, there's a link directly to the CloudWatch log of directly that invocation. Which is why step functions really come in handy as you grow. Again, before I move on, this is where you will spend the money. Probably even more than Lambda. Step functions are either standard or express. Standard, you are charged by state transition. So when you saw that flow chart, every time you go to a new square, you're charged. There is a free tier, it's kind of small, and then it's like .000025 cents per state transition. But, if let's say you have a state to store a domain, for instance, and you're storing 100,000 domains, that could be 100,000 states. But, the other form of a state function is called express. That, you are not charged by state transition. You're charged similar to Lambda based on how much compute resources you use and for how long. You're not charged by state transition. The kicker to that is express will only run up to five minutes for the whole, whatever you have in an express state function. Standard will run for a year. So, if you have a very large workflow, you kind of have to go standard if it's long running. But, if I'm using a workflow to store domains 100,000 times, it should be express. I haven't broken the express free tier yet, I have broken the standard one. Right? The good thing about that is, is when you looked at my workflow, you can take the map element, which is a loop element, and inside of a looping element, people assume you're going to loop a lot. So, you're allowed to take a map element in a standard step function and make just that map element express. So, you're charged by an express state function for that loop. So, when I loop through all those domains, even though the whole workflow is a standard state function, that loop where I'm storing all my domains is charged as express. And that saves a lot of money. You can plug and play state functions into each other. One state function can call another state function, so you can embed them, and you can basically plug and play with that as you will. I like using it for this reason, but if you're trying to save money, you can ditch the state function and just have one lambda trigger another lambda, trigger another, and do its own thing. You don't have to use state functions. You just get much less visibility as you scale. But, you don't have to use it. This is now getting into how I trigger it. All of this happens in event bridge. There's an event bridge pipe that I use in this demo, and there's an event bridge schedule. Schedule is cron, pipe is basically event happens, what you see at the bottom. There's a source and a target. The source in this pipe is my SQS queue. Anytime a message gets added to the SQS queue, it triggers the pipe and the target is the step function. It's very easy. Anytime a message gets sent to the SQS queue, it will either sit in the queue if I have the max amount of concurrent step functions I have set running, and then it will trigger it when it's ready. Or, if there's none running, it will automatically kick off a step function, which will ingest the message from the SQS queue and kick off. The other one that I have in event bridge, again, is called a schedule, which is basically cron in AWS. So, I have a schedule at a rate of 10 days, and you target it at a lambda function. Like I said, that target one right next to the schedule is where you'll pick your lambda. And I pick... so every 10 days, I have a target of that full run lambda that we talked about that just goes through my targets table and posts them all to the queue, which will then trigger the pipe on the last slide and ingest it all into step functions. And that happens every 10 days automatically without touching it. You can change that, you can delete it, you can do whatever you want. You can obviously manually kick off and invoke lambdas if you want to and you don't feel comfortable doing it automatic. That is basically what it is. I will say since I'm pretty sure... So I will say before the thank you and the questions, I will say I have personally monitored a couple hundred thousand domains, because I don't do mass recon. I like to do recon on the targets that I'm hacking on at that time. I have monitored fairly continuously a couple hundred thousand domains and kept my price pretty firmly under $50 a month. So it's not crazy expensive, it does cost money, and again, it's not... if you scale it, it will scale with you and it will work very good, but you still pay for it. So yeah, that's all I have. It looks like I do have 10 or 15 minutes here for questions, because I do have to jet after, but if there's any questions, I would love to answer them. Yeah. Thank you. Yes and no. No, because the Lambda has ephemeral memory that will grow with you. Yes, because there is a limit to that, and you pay for that also, and there is a limit. It's rather large, but there is a limit. Yeah. Sure. Yes, so serverless will set up the IAM roles that go with the Lambdas automatically, and you can configure those either in the YAML or in AWS, but they do get spun up automatically. So if your handler imports the Bottles3 library and uses DynamoDB, it will spin up an IAM role for you that gives you access to DynamoDB to that Lambda. Yes. Yep. Yeah. So when I... And again, the reason why I didn't touch the active one is because it gets a little more interesting. But the active stuff, the way I approach it, is I split it into super teeny chunks that run lightning fast. So that's why I talked about domain resolution because I resolve domains one at a time and they resolve in, like, milliseconds. Because at the end of the day, it doesn't matter. It's all runtime versus memory. So it doesn't matter if I resolve a chunk of 10,000 domains at the same time or one at a time. It's all the same runtime. So the only thing that would really matter, that really matters, is hitting your database a bunch. So you can resolve a bunch and have them all catch at a step in the step function, and then as batches happen, then you can batch update databases. But for the active stuff, I break it into super teeny chunks, so I never really have to worry about a time limit. Yeah. You can do either one. Yep. Yep. You can configure it to do either one. Yeah. ... ... ... ... ... Absolutely. So serverless, the framework, supports Azure as well. And I think it's called Azure Functions. Again, I'm kind of hiding AWS. But Azure has Azure Functions, and it is, I'm sure it is very similar. It will handle it all for you and deploy it. ... Mm-hmm. So I personally talked to AWS before I gave the talk. They said as long as I'm not doing anything naughty, it's allowed. Right? Because it's just public domain. But I did have someone else from AWS tell me to watch out. So it is. And I have heard of people getting banned off the platform. So I've got I was going to say, I've gotten pretty mixed reviews from it. I haven't gotten personally in trouble yet. As well as when Lambda spin up, they run on different IPs. So I guess there's that benefit. I don't really use it for that benefit. And again, I don't use this type of recon to continually berate sites. Right? I do pretty relaxed scanning, if at all. And I don't try and update data every minute on the minute. That kind of stuff. So I feel pretty safe about that. But I mean, if you were using it like that... Yeah. You might get in trouble. Yeah. Yeah. Absolutely. Yeah. Yep. You can. It's all the same thing. I use Lambda because again, when I do active scanning, I just break it up into super tiny chunks. Fargate, literally, you can use the same thing. You would just do the same thing with step functions, but for the longer... If you want longer running jobs, you'd have to use a standard step function, so it can run for up to a year. And then you would just plug Fargate in, and it would be the same thing. Personal preference. If you want to do the exact same thing, but with Fargate, it will work almost identically. Yeah. Good question. There you go. Yeah. Yes and no. I am, like I said, I'm willing to share, and I may, if there's a lot of ask for it, I may just make it easier to put some stuff in a GitHub repo and share it. I'm not against that. Part of it, I won't, just because it's a lot. But again, if you have a question, get in touch with me over Twitter or something like that, and I can. And if there's a lot of interest, I probably will. I guess I didn't have plans for it, but it's not necessarily because I'm secretive or anything. I guess if there was interest, I wouldn't be against it, but I didn't originally have plans to, yeah. Cool. Thanks, guys.