# Ali sees legacy code as a finite cyber-risk backlog

Markdown copy of https://realalpha.app/s/ali-sees-legacy-code-as-a-finite-cyber-risk-backlog/ on Real Alpha, the best minutes from long interviews with the people building AI. Cite and link the page, not this copy.

- Speaker: [Ali Ghodsi](https://realalpha.app/builders/ali-ghodsi/) · Ali Ghodsi is CEO of Databricks. · Co-founded Databricks, which he has led as CEO since 2016, and helped create Apache Spark.
- Host: [Chamath Palihapitiya](https://realalpha.app/people/chamath-palihapitiya/) · Founder & CEO, Social Capital · Led Facebook's growth team; his firm backed Slack and AI chipmaker Groq.
- Host: [Jason Calacanis](https://realalpha.app/people/jason-calacanis/) · Founder & CEO, LAUNCH · Early Uber angel; sold Weblogs Inc. to AOL; hosts This Week in Startups.
- Host: [David Sacks](https://realalpha.app/people/david-sacks/) · Co-founder & partner, Craft Ventures · PayPal's first COO, founded Yammer; White House AI & crypto czar 2025–26.
- Host: [David Friedberg](https://realalpha.app/people/david-friedberg/) · CEO, Ohalo · Founded The Climate Corporation, sold to Monsanto for about $1.1B in 2013.
- Show: All-In
- Episode: [Databricks CEO: AGI Is Already Here, Why Companies Are Behind, and the Superintelligence Debate](https://realalpha.app/v/1bR0gtecoHU/), Nov 17, 2026
- Moment: 50:05 to 53:37 of the episode (4 min), playing on https://realalpha.app/s/ali-sees-legacy-code-as-a-finite-cyber-risk-backlog/; the episode from there: https://realalpha.app/v/1bR0gtecoHU/?t=3005

## Quote

> “there's only a **finite number of vulnerabilities** in the code. Once we've secured that code base, there is no more.”
> — [Ali Ghodsi](https://realalpha.app/builders/ali-ghodsi/) at [53:13](https://realalpha.app/v/1bR0gtecoHU/?t=3193) · All-In

## Takeaways

1. Attackers need one successful intrusion; defenders must secure every entry point.
2. Ali sees legacy code as the main backlog of vulnerabilities.
3. Scanning new code and rewriting old systems could reduce future exposure.

## About this segment

Ali Ghodsi argues that AI-assisted scanning can secure new code while teams work through legacy vulnerabilities. He sees this as a finite cleanup problem, while stressing the asymmetry between attackers and defenders.

From “Databricks CEO: AGI Is Already Here, Why Companies Are Behind, and the Superintelligence Debate”, Nov 17, 2026. [Watch the full episode](https://realalpha.app/v/1bR0gtecoHU/)

## Transcript

Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.

[50:11](https://realalpha.app/v/1bR0gtecoHU/?t=3011) which would have lost, I don't know, 10 pounds of butter. It wouldn't have been a big deal. So look, cyber, I do think, is a real thing. Yes. And I think it's a real risk. We actually have a whole product in the cyberspace called LakeWatch built on all this data that has automated agents that actually detect these kind of intrusions that are happening and they monitor your agents that you have. This is a real problem.

[50:32](https://realalpha.app/v/1bR0gtecoHU/?t=3032) And I do think bad things will happen here, but then we will adjust. But bad things happened when internet came out as well. Shouldn't we be able to solve for this? Because you tell me if I'm right or wrong here. One theory I heard, which resonated with me for a certain type of hacking, not for the, you know, script kitty hacking, but real hacking is you have a lot of compute. You need a lot of compute to execute certain hacks, like the hugging face one, you know, thousand agents whatever the bad guys don't have that much compute the good guys have a massive amount of more compute and so if you just did your basic job as a white hat and you know uh defended properly and look for these exploits let's say you have a thousand times the resources you should be able to get to these problems long before the hackers does that make uh good sense to you that

[51:22](https://realalpha.app/v/1bR0gtecoHU/?t=3082) they're just yeah yeah it's a good argument right yeah it's it's but there's a the the issue is that you have to weigh that against the following asymmetric scenario that we have which is if i'm an attacker you know i can launch thousands of thousands of thousands of agents and i all of them can fail except for one and if one of them gets through i'm completely successful the asymmetry is that if i'm a defender you know i was able to like you know you know protect uh you know my my boundaries all the time except one got through this is a suicide bomber right not to be too graphics, but you only need to get one 9-11 to make your point.

[51:56](https://realalpha.app/v/1bR0gtecoHU/?t=3116) You can try a thousand times and not get it. So I need to be 100% safe all the time. They need to just get one thing through. So it's very asymmetric, that risk. But however, the way I would look at it, the reason I think that we're actually going to overcome this and it's going to be totally fine, is that these are actually latent bugs that exist in the source code. By the way, we're not creating more of them now because almost all of us are now scanning it. We all have products. I mean, we actually sell a product where we can scan the vulnerabilities of new code.

[52:23](https://realalpha.app/v/1bR0gtecoHU/?t=3143) So new code that's being produced is not going to have these vulnerabilities. By the way, that might sound silly, but think about it this way. In the next 12 months, we're going to... write more code than ever in the history of mankind, right? Actually, in less than the next 12 months. So all that code is going to be secure. So then, and by the way... Because right now, the AI is sophisticated enough to not make human errors and to look for it.

[52:43](https://realalpha.app/v/1bR0gtecoHU/?t=3163) And it's more dogged. Yeah, you just scan those things. So then what remains is all the legacy code, which, by the way, we can rewrite all of it, which is what we have to go through. And people are doing that, right? Yeah, we're doing that. Yeah, there's other ways to actually also protect, you know, do shadow patching before even actually without touching the existing legacy code. But so, you know, what's happening is that you can think of it as like, you know, it's like a fruit garden and there are like these bugs that, you know, attackers are leveraging.

[53:07](https://realalpha.app/v/1bR0gtecoHU/?t=3187) They're picking the low-hanging fruits. And before humans could pick a certain low-hanging fruit, now agents can reach higher and pick higher, you know, hanging fruits. But we're going to clean those up and then they can maybe reach a little bit higher, but there's only a finite number of vulnerabilities in the code. Once we've secured that code base, there is no more. So it's not like there's an infinite thing and this is going to go on forever.

[53:27](https://realalpha.app/v/1bR0gtecoHU/?t=3207) No, it then stops. Then we're at the steady state and then, you know, vulnerabilities might actually be fewer than what we had in the past.
