Code Story · Transcripts

S13 Bonus: The AI SAST Shift: Eliminating Vulnerability Backlogs with Santiago Castiñeira, Co-Founder & CTO of Maze

September 30, 2026 · 22:09
Listen to the episode Download .txtDownload .vtt
Santiago Castiñeira

I work very closely with a very big public tech company from the US and I was working very closely with their security team and we were building this data lake of cybersecurity data mainly, vulnerability data and asset inventory. And what this team was doing was using that data in order to inform and to drive basically all the internal vulnerability remediation processes. And a few things from my perspective were odd. So these teams were generally heavy with security engineers, but they had a fundamentally data problem, a very big data problem. That was basically what are the vulnerabilities that we should be fixing today and which are the ones that can wait or which are the ones that don't apply to us. My name is Santiago Castiñeira. I'm the co-founder and CTO at Maze.

Sound bite

This is Code Story.

Noah Labhart

A podcast bringing you interviews with tech visionaries. Who share what it takes to change an industry.

Sound bite

Who built

Noah Labhart

the teams that have their back. Keeping scalability top of mind.

Sound bite

All that infrastructure was a pain. Yes, we've been fighting it as we've grown. Total waste of time.

Noah Labhart

The stories you don't read in the headlines.

Sound bite

It's not an easy thing to achieve, my dear. Took it off the shelf and dusted it off and tried it again.

Noah Labhart

To ride the ups and downs of the startup life.

Sound bite

You need to really want it. It's not just about technology.

Noah Labhart

All this and more on Code Story. I'm your host, Noah Labhart. And today, how Santiago Castiñeira has built AI agents for your code and cloud that investigates every vulnerability and helps you get them fixed. Santiago Castiñeira has quite the background in international living. He was born in Argentina but grew up in Spain, then moved to Sweden, San Francisco, and now lives in Germany. He did his grade school and university in Spain but has a master's program across Sweden, San Francisco, and Germany. He's worked in startups, bigger companies, and eventually founded and is leading his own. But outside of tech, he's a dad of three kids, so he stays quite busy when he isn't working. He loves endurance sports, running half marathons and long distance biking. Santiago and his team were well aware of the fact that tens of thousands of new vulnerabilities are published every year. While security teams are drowning, the rise of automated coding agents are starting to ship code faster and faster. He and his team realized that there needed to be an agent-driven platform designed to evaluate and secure your system like a senior security engineer. This is the creation story of Maze.

Santiago Castiñeira

We at Maze basically triage and remediate cloud and code vulnerabilities for companies of very different sizes. The story comes basically from my last job before Maze. So in that company, what I saw, I worked very closely with a very big public tech company from the US and I was working very closely with their security team and we were building of cybersecurity data mainly, vulnerability data and asset inventory. And what this team was doing was using that data in order to inform and to drive basically all the internal vulnerability remediation processes. When working with this team, I got to understand really the problem and how they are solving it internally. And a few things from my perspective were odd. So these teams were generally heavy with security engineers, but they had a fundamentally data problem, very big data problem, that was basically, what are the vulnerabilities that we should be fixing today and which are the ones that can wait or which are the ones that don't apply to us? So this company was highly regulated, had a lot of compliance requirements. So there was a very strict process, very strict timelines, right? So they were really, really doing their best. But I found that there was a lot of context missing for all the decisions. There was skills missing that I think that basically stuff in these teams are helping them with other skills, engineering or machine learning could really get them to a much better place. So that was basically that experience. And eventually that startup pivoted away into a different direction. And then at that point, I decided to go explore this idea. So I went out with cybersecurity professionals to see if what I was seeing was a reality or was something that just happened in that one company. I had some experience with other customers or other prospects from that from my last job. So I was fairly certain, but I just wanted to double check that externally these other companies would have the same. And then I went basically talking with investors and seeing, hey, there's a million companies doing this one thing, but I still see that this is broken. And investors were very happy to hear new takes on these ideas, and especially from outside of cybersecurity. So yeah, eventually went looking for co-founders, and that's how I met Harry Nedrian. We worked for a few weeks together where we were basically trying to validate the problem, trying to talk with companies and understand how big of a pain point it was and so on. And then eventually, yeah, it all makes sense together. So I invited two of my engineers for my last job. There were some of my, the direct reports basically within my engineering team and they joined us. So we were five people and that's how it got to, let's do this. We're a team of five. We understand the problem well, let's go from here. So at that point we had, I think salary, like funding for two months or something like that. So we couldn't pay salaries for a long time, but it was just like, let's give it a shot. That's how we all really started.

Noah Labhart

Okay, let's dive into what you would consider the MVP for Maze, the first version of the product you built. How long did it take to build and what sort of tools were you using to bring it to life?

Santiago Castiñeira

Given our background for the three engineers that we were, we had a few things that we wanted to have in place that was basically bringing a lot more contextual data. So in our minds, the MVP was like, can we bring a lot more data and connect it to the vulnerabilities and then do a better informed decision on which ones should be handled first? And that was basically our initial very, very raw idea of the MVP. And then we're very open-minded around technology. So we didn't have anything set in our minds. We just had the idea that we wanted to get. And basically, this was mid-2024. And the first version of LangGraph were coming out. They were very buggy. Every week, they were broken for something different. But what we managed to prove with LangGraph is that basically LLMs could understand configuration metadata from places like AWS, all your code repositories, and from there basically produce, how can I say, like a judgment or an assessment on aspects of the vulnerability. That's really what accelerated this. So when we got that technology, we realized that this is transformational. This is going to bring a lot of new benefits to the solution. So we went forward with it, trying many different frameworks and different types of LLMs. And it took us from around mid-June or early July to November of that year to basically get the first actual MVP. But this was really an MVP of the engine itself. So basically the decision making, the algorithm that will actually rank, let's say, your vulnerabilities. And once we got that piece, for us, it always felt like the hardest. We validated it with the security engineers that we hired, a few consultants, and with our design partners. And then from there, it took us another, yeah, I would say another six, seven, eight months while growing the team at the same time until we got to an MVP version that we could actually put in front of a customer and they could use it 100%.

Noah Labhart

Let's stay on that engine for a minute. In building that engine and approaching the problem, you got to make certain trade-offs, right? Make certain tough decisions and maybe how you're going to limit functionality or how you're going to approach the problem or all the sorts of things. maybe one of those core decisions you had to make and how you coped with it?

Santiago Castiñeira

I think one of the biggest decisions we had to make that early on was deciding basically what data sources do we want to use. Because when you're thinking about basically contextualizing the problem, as we were in that place basically, this is a vulnerability, is it relevant or not? You can bring easily like 20 different basically data sources into the picture, but that will make, it's It's hard to know which are the minimum set, right? One of the early decisions that we did was that we were going to go purely with the cloud context. So metadata about the environments we're running, some runtime configuration, but that was about it. So we will not be looking into the code base. So we will not be looking into the GitHub of our customers initially. So that's how we started at the beginning. And that helped us simplify the problem a lot. Because still, don't get me wrong, within AWS, there's so many data sets that you but just not thinking about, for example, endpoint detection and response or any other cybersecurity tool dataset. That already simplified it a lot.

Noah Labhart

Let's move forward then. So you've got the MVP, you've got the engine working, right? The rules engine, the core of what you're building. How did you progress it and mature it from that point? And I think inside that question or within that question is how do you build your roadmap? How do you decide that, okay, this is the next most important thing to build with Maze.

Santiago Castiñeira

A lot of talking with our design partners. So we spend a lot of time getting their feedback, understanding how our solution would fit within the landscape of solutions or cybersecurity products. We're talking with them about how they would use the outcome of our tool or would they use it directly in our tool or process it further somewhere else. Basically through those decisions, through those conversations, we managed to drive the roadmap a little bit. We had some ideas already about how we thought cybersecurity or vulnerability management should be done. So we drove a lot of, let's say, first principles that we had. But it was in combination with a lot of feedback from our customers and basically what would give them the most value for our product.

Noah Labhart

I'm curious about team, Santiago. So to build something like Maze, you've got to have the right team. And I know how your founding team sort of came together. You could tell me about that as well. but I'm curious about what you look for in the people that you hire to tell you that they are the winning horses to join you.

Santiago Castiñeira

I read this somewhere, this doesn't come from me, but I read a very good phrase regarding things that you look in people and I've been practicing this for quite a few years so until now and this is basically high energy, high intelligence and high integrity. So if you look for candidates that have high energy they generally will not sit still, still, they will always want to do something and say we get bored and they will just find something to do. If they are highly intelligent they actually will find really smart things to do that actually move the needle and if they have high integrity you know they are going to have very good judgment and they are going to make sure that if something is not according to how we want to build the company they are going to raise it. This together with a very strong vision of where we want to go and basically people that buy into that vision, I think builds a very strong team. So some of the early signals that we saw in the team was that we had built a team with a lot of autonomy. So generally a lot of the engineers in the team find their own problems to solve. They come up with the next projects to do. They come and suggest either things that they've seen working better somewhere else. And then in one of our systems they say, hey, I've seen a much better version of this, can I build it? and if we hire well, their suggestions are going to just be very good. So I would say those are some of the things that we look very early on and that to this day we keep driving towards.

Noah Labhart

Let's talk about scale. And scale is obviously baked into the bread and butter of how you build this product and given what you're solving. But I'm curious about how you approached it in the beginning. where you've had to fight scale as you've grown.

Santiago Castiñeira

So very early on, one of the key decisions that we did was thinking about the scale we were building this product. So we wanted to serve customers that would have basically infrastructures that will have vulnerabilities in the tens of millions of open vulnerabilities at the time. That was our goal from the very beginning. So we knew that if we build it for that scale, pretty much everyone would fall into that, category. So that's the scale that we've been building and what this has meant on our side is that there's a lot of data that we ingest so we need to have a very scalable and horizontally scalable data pipeline transformation engine and basically all of the data the agents are going to be looking at. Since we're going to be running a certain scale we cannot just be collecting the data as the agents are running because it's just going to be too much too many API calls that we're going to be doing externally. So we're going to be throttled very quickly. So from our side was always very big scale, like enterprise customers. Because of that, we need to load the data upfront so we can read it as many times as we want and we don't have to be doing API calls and then on the agent side, that meant we need to be able to run thousands and thousands of concurrent agents for each one of our customers. So those are some of the key metrics on our scale journey. The way that we have basically driven this was across the architecture design. We always thought about how we're going to scale, how we're going to span the architecture. And at some key decision points where we saw that we might be hitting the limits in some area, then we tried to be ahead of the curve and then build sort of the next generation of that part of the architecture that will allow us to handle more and more.

Noah Labhart

Okay, Santiago, as you step out on the balcony and you look across all that you've built thus far, with Maze in particular, what are you most proud of?

Santiago Castiñeira

That's a very good question. So from the very beginning, we wanted to, aside of solving this vulnerability management problem, we wanted to build like an underlying platform that we can reuse for many different use cases. And I think that's one of the things that we got fairly right. ability to ingest data is very generic so we can ingest almost any type of data and it's very scalable so that those architectural decisions around ingestion of data and how we want to ingest it and where even though they cost us quite a bit of effort at the beginning i think they have paid very well and this same principle of adapting to different use case we just build it across the board in terms of how do we build our agents how do we orchestrate our agents how do we evaluate So these are generic ways of doing it for any type of agent. So then standing up a new agent that does a new completely different function, looking at completely new data sets is fairly straightforward. And just being very opinionated on that and having a really high bar into how do we want that to be working from the very beginning, looking back has paid very good dividends for our company.

Noah Labhart

Let's flip the script a little bit. a mistake you made and how you and your team responded to it.

Santiago Castiñeira

One of the early mistakes that we did was, so one of the early prototypes that we had, we made the, let's say the agentic decision engine. We made it a multi-agent system. So we basically had multiple agents discussing with each other and then reasoning through the output. It was very good in some ways. So it basically helped us see the depth of reasoning that they can achieve, basically different type of LLMs. But one of the things that we didn't realize early on was the cost that incurs. And then later on, it was proven, and by now I think for a lot of applications, it's proven that a single agent can achieve the same reasoning levels. Later down the line, what we ended up doing was moving towards a single agent, or basically agents that have expertise in different areas. by a single agent but consulting other experts in the ways necessary so that was the next iteration now we have many iterations down the line but i think the lesson there we learned it pretty quickly and then we went back and started iterating into how can we simplify it how can we move it into a single agent it was a challenging solution because we also had to do a migration of basically the framework that we were using for building the agents so we're using AutoGen back back then from, I was an open source for Microsoft. And then later on, we ended up moving to LangGraph. So it was like two migrations in one in a way. But yeah, the team was very up for the task. They understood the importance of cost in the whole solution. So once we migrated to the new architecture, it was very clear how the new version was much better and actually could get us much further ahead.

Noah Labhart

Let's move into the future. This will be exciting. The industry is changing rapidly every day. What is the future for Maze, for the product, for the company, for your team, all the things?

Santiago Castiñeira

Yeah, so we are growing. We have right now three products out. So one is focused on cloud and one is focused on SCA and one on SAST vulnerabilities. So the future from our perspective is basically continue to grow these products to more use cases, to more diverse environments, to bigger and bigger customers. To customers having different technology combinations in terms of the programming languages they use, the clouds they use, how do they deploy, how do they orchestrate, or how do they run containers and so on. So there's many different technology flavors out there that we want to make sure that we cover all of them. I think it's, in terms of the industry, I find it actually quite interesting how cybersecurity is changing. So if I look back two years, cybersecurity has fundamentally changed thanks to LLM. And I feel we're not there at the end of the transformations. I think we're still going to go through more and more transformations in the next two years. So I'm quite excited about the future. The cyber capabilities of the frontier model are proving extremely capable, which is very dangerous on the one side, but if used for defending enterprises or companies in general, could be actually transformational to how cybersecurity is done going forward. So I'm talking about self-healing systems, auto-remediation, agents that are just monitoring and just acting on behalf of humans. So I think we still have quite a few years of transformation based on the rapid development and improvement of LLMs. And I'm very excited about it and looking after all of these trends integrating into our products.

Noah Labhart

Let's switch to you, Santiago. Who influences the way that you work? Name a person or many persons or something you look up to and why.

Santiago Castiñeira

I follow quite a lot of people, but I think one of the things that drives or has gotten a lot of influence on how I work is basically using a first principles approach to a lot of the problems. So just getting to the root of the problem. And I see this from many different people. So the pragmatic engineer is one of the newsletters that I read very often. And I think this approach, not just for engineering, but also for business and for product is interesting. Just getting to the absolute essence of the problems. I like to follow Naval Ravikant. He's an investor and VC. But also, he has a lot of this philosophy around simplicity and just getting to the truth or to the true cause of problems. Yeah, those are some of the people that I follow.

Noah Labhart

Okay, last question. So you're getting on a plane and you're sitting next to a young entrepreneur who's built the next big thing. about it. They can't wait to show it off to the world and can't wait to show it off to you right there on the plane. What advice do you give that person having gone down this road a bit?

Santiago Castiñeira

The piece of advice that I would give is that do not listen to the common knowledge that is out there about how creating a company or running a business or getting investment works. There's a lot of discussion online about how a founder should do things. And I think in general, what I've found is that if you fundamentally have a good way of doing something that is very different to how everyone does it, but is well-founded, well thought through, and you have good reasons for it, like good novel reasons, meaning for the best of the business, for the best of the company, for the best of the product that you're developing. What I found is that there's a lot of flexibility out there into how you run your business. You just need to ask for it and actually have good reasons for doing so. I'll give you just a very simple example. As I mentioned, I have three kids. So how basically you run a company for someone with three kids is unthinkable. It's impossible. You need to work 100 hours a week. You will need to live on a $50,000 yearly salary. But actually, this is kind of going to be further from the truth. If you have reasons for how you want to run the business and how you want it to work, you just need to bring them up. And there's a lot of understanding out there for you to run the business in the way that is right for you.

Noah Labhart

That's fantastic advice. Santiago, thank you for being on the show today, and thank you for telling the creation story of Maze.

Santiago Castiñeira

Thank you very much for having me.

Noah Labhart

And this concludes another chapter of Code Story. Code Story is hosted and produced by Noah Labhart. Be sure to subscribe on Apple Podcasts, Spotify, or the podcasting app of your choice. and when you get a chance leave us a review both things help us out tremendously and thanks again for listening

Transcribed with Whisper and reviewed for names and terms; speaker labels are automatic and may contain small errors. Timestamps link to that moment of the transcript.