Death by small bugs: securing code in the Vulnpocalypse, with Patrick Collins and Simon Harloff

Death by small bugs: securing code in the Vulnpocalypse, with Patrick Collins and Simon Harloff

November 5, 2026
48m

The frontier models that refuse to help you hack your own software are, paradoxically, making you less safe—while open weights models like DeepSeek Flash V4.1 will comply, cost a tenth as much as GPT-6, and find more vulnerabilities in the process. Patrick Collins and Simon Harloff from Dam Secure join Yaniv to explain why agent-built code needs typed languages, why PR gating has flipped from taboo to essential, and how compliance frameworks like SOC 2 are lagging years behind actual threats. They name specific red teaming tools, model providers, and infrastructure choices, and lay out a three-stage security factory that slots into automated software pipelines without slowing human engineers down.

Show notes

Key takeaways

  • Open weights models like DeepSeek will comply with requests to find exploits that frontier models refuse, making them essential for defence even as they raise attacker capability.
  • DeepSeek Flash V4.1 outperforms GPT-6 on Dam Secure's benchmark of 80 repositories at roughly one-tenth the cost, though it generates more false positives that need filtering.
  • Switching from JavaScript or PHP to TypeScript—or any typed language—dramatically improves both LLM reasoning quality and security posture, with teams now auto-migrating codebases via agents running 40–100 hours unattended.
  • Modern threat models require always-on automated red teaming rather than annual pen tests; specialist vendors include Harmony Intelligence, Shinobi, and Expo, with PromptFu for LLM-specific attacks.
  • The best defensive setup chains tools together: linting guardrails during implementation, security review at PR time, and active exploitation attempts against findings via red teaming software.
  • PR gating is now accepted because it blocks agents, not humans, and auto-approval of low-risk PRs is emerging—but compliance auditors still require human batch review every one to two weeks.
  • Citizen coders using tools like Lovable or Base44 should treat output as prototype-only and have a skilled engineer review before production; unauthenticated routes and missing RLS policies are common failures.

Chapters

  • 00:00 Opening: Fight Fire with Fire
  • 03:09 Open Source Vulnerabilities Accelerating
  • 04:20 Burn the Bug Backlog
  • 06:49 Typed Languages, No Exceptions
  • 08:14 Infrastructure Choices
  • 12:02 Always-On Red Teaming
  • 16:08 The DeepSeek Advantage
  • 19:15 Quantization and Provider Quality
  • 26:12 Cutting Noise with Verification
  • 29:36 Security in the Software Factory
  • 34:12 PR Gating and Auto-Approval
  • 37:42 Compliance vs Real Security
  • 42:15 Actionable Advice by Role

Links and tools mentioned

About Patrick Collins & Simon Harloff

Patrick Collins and Simon Harloff are the founders of Dam Secure, a code security platform for AI-first engineering teams that builds adversarial agents to find vulnerabilities and runs model evaluations across 80 repositories to determine which LLMs are best at security review.

This episode is presented by SparkLaunch and Dam Secure.

Credits

Transcript

Yaniv Bernstein

Hack into your own system before somebody with access to a model like that hacks into it.

Patrick Collins and Simon Harloff — Founders of Dam Secure

The issues that we saw come through would make your toes curl.

Oh, my app works, but everyone can read everyone's data, for instance.

The things that we have to comply with are not the things that we're worried about.

Yaniv Bernstein

In order to defend your own software to fight fire with fire, you need to be going on those same dangerous models.

Patrick Collins and Simon Harloff — Founders of Dam Secure

The best model depends on your definition of best. Time, speed to run, cost, ability to find the vulnerabilities that we're talking about, and the noise that it generates along the way as well.

Yaniv Bernstein

Building software with AI agentically is so rewarding and so much fun. You feel like you can build really valuable software and give it to the world so quickly and efficiently. And it's true. But that world out there, it's full of amazing people and wonderful customers, but it's also full of bad guys. The Internet is full of hackers who are also massively accelerated by AI. And so if you want to get your stuff out into the world, you need to be thinking about security. Whether you like it or not. It's like eating your vegetables. And so today I have two incredible guests, Patrick Collins and Simon Harloff from DAM Secure, who know everything there is to know about AI agents and security on to talk us through it. Full of actionable advice, they will scare you a little bit, but then they'll also tell you how to make yourself safe. This is an episode you don't want to miss. Now, a brief disclosure. DAM Secure are a sponsor of this podcast, but this is not a sponsored episode. The reason I can say that is because I actually asked Patrick and Simon to come on the podcast before we discussed the sponsorship. And I brought them on because they are the best people to talk about this topic. It's an unbiased conversation about the right way to do security for your product and your company. We will jump into this discussion right after this break. This episode of Applied Wizardry is brought to you by DAM Secure. DAM Secure is the code security platform for AI first engineering teams. Get top tier security PR reviews at a fraction of the cost of other models and get through your PRs 32% faster. Don't just take my word for it, head over to DAM Secure AI Wizardry. That's DAM Secure AI Wizardry for your first month, completely free. One of the amazing things about AI is it allows you to turn your idea into a real business faster than ever before. But you don't want to let yourself get dragged down by paperwork, bureaucracy and government, stuff like that. So that's why you need today's sponsor, Spark Launch for just $499. Their Delaware C Corp Formation package includes Delaware filing and your year of registered agent service. Plus keep your company documents and founder equity organized as you grow so you can focus on building the business. You build the product. Spark Launch helps you start the company. Visit SparkLaunch IO Wizardry to get another 20% off. They're already great deals. And get started.

Patrick Collins and Simon Harloff — Founders of Dam Secure

Yeah, so I think this is just going to keep happening. First happened in Curl and then FFmpeg and then Linux and Firefox. It's now happening in PHP. It's just going to keep happening. And everyone's talking about the frontier models and their guardrails. We try to ask the frontier models to find vulnerabilities and they just won't comply because of their guardrails. Enter the open weights models from China. DeepSeek's incredibly effective. It'll comply with our requests to try to hack if we want. And that's very helpful for us as defenders to try to find vulnerabilities. But it's equally as dangerous in the hands of attackers. And so this kind of stringing together of complex vulnerability chains in open source software is just going to accelerate under the presence of new, more powerful cyber capable open weights models.

Yaniv Bernstein

As a founder and builder, what do I do about all this? I'm like, damn, it's scary. Things are moving very quickly. I don't want my thing to be hacked. So how should I be thinking about it? All

Patrick Collins and Simon Harloff — Founders of Dam Secure

I was thinking about like PHP for Shell, right? And if we look at what happened there is that there was an issue that was known at a time where it was human labor to fix the issue and it was probably, you know, lower priority by the time they worked out it couldn't be exploited. My message to people is when the human effort involved in fixing even, you know, medium and lower class of bugs, maybe that gets found, drops to zero. Just put in the time to close each issue out so you don't get caught with your pants down. When someone eventually works out how to chain together like three low class security bugs that have been sitting in your backlog for a long time. So I think this is the time where people should be trying to burn through their backlogs so that they don't get caught off guard

and use agents to burn through your backlogs. Or especially like if you've got a tool that's found a bunch of vulnerabilities even if they seem like they're low, get on them because a bunch of lows chain together into highs. There's another angle to your question, you know, which is all of the software that I depend on, you know that proverbial meme with the like down at the bottom of the XKCD meme, where by the bottom, at the bottom like little component right now says PHP, the proverbial component that the entire Internet relies on. That'll keep happening. It'll be DNS or NTP or whatever. Is the next thing that where there's some like critical vulnerability. I think we have to stay responsive. We need to accept that we're need to patch any part of our supply chain at any point in time and stay responsive to that. So this idea that there are dark corners of my old application that I don't need to worry about anymore because very few people use it, it's over. If it's on the Internet and it's exposed, then you're now responsible for keeping that entire supply chain up to date.

Yaniv Bernstein

I would have thought that some choices that you make early on can make a pretty big difference. So it might be trite right now to say, well, don't use PHP, but there are some languages that are more open to finding vulnerabilities and exploits than others. I would also say in terms of infrastructure, stack, probably better off on a well managed serverless framework where a bunch of stuff gets patched by the provider, rather than running in containers where you have to keep patching stuff yourself. I'm fairly naive, so I'm posting this as a question, but I'm like, are there things you can do, especially if you're starting fresh with something that are at least somewhat prophylactic, make it less likely to be hit by one of these things and also less burdensome to deal with it when it does happen.

Patrick Collins and Simon Harloff — Founders of Dam Secure

Typed languages, please just

Yaniv Bernstein

typed languages.

Patrick Collins and Simon Harloff — Founders of Dam Secure

No JavaScript, no PHP. The LLM just reasons better. With typed languages it's like built in linting and one shot, your JavaScript do JavaScript stuff over to TypeScript. You can do it, just make it happen. I'm being facetious there, but like if you're starting something new, you know, like no Ruby, no JavaScript and actually we were a CTO. I was at a CTO dinner last night with some of like leading CTOs sitting around the table. This was actually their opinion, like just get rid of the, get rid of the scripting languages, like right now. Make it happen. And they're literally one shotting things. Sit down, like just let Claude run for, you know, 40 hours, 100 hours if needed, and just make it happen. It'll ultimately dramatically increase your security profile overnight because the LLMs just are much more effective at the typed languages, even if they're less readable and they kind of are less readable. I find TypeScript kind of hard to read, but like, whatever. Probably because I'm not. Who

Yaniv Bernstein

reads code anymore anyway? Who

Patrick Collins and Simon Harloff — Founders of Dam Secure

reads code anymore? Exactly. What does it matter? Like, it's not for me. Simon, didn't your team just like actually put a linting rule in to rip comments out of the code because it kept tripping up the LLMs as well?

Yeah, yeah, we've been really clamping down on like there's like a one line code change and then 50 lines of prose from Claude documenting every single scenario. So yeah, we've been deploying linting rules just to slap the agent's hand, so to speak. Right. And they're security specific ones tailored to our code base. So every time an edit happens you can run these linting rules and be like, no, don't do that. And so you can very, very quickly get to a better outcome. I want to touch also on your new point around the like infrastructure. I feel like it's a bit of a double edged sword because I look at railway.dev I don't know whether you guys saw that got recently popped. I've always been of the mindset of like, you know, maybe one less server is better to manage and you know, not having to manage your own SSL certs and your own firewall rules and VPCs and all of that kind of jazz. So I do think there's a lot of merit to serverless. I do think you're probably safest on still the big hyperscalers or maybe a tier 2, a weld lane tier 2 provider like a Vercel, for instance.

Yaniv Bernstein

I'm a massive Cloudflare fanboy. They're not a sponsor of this show, although I'd love them to be. They have strong security roots, they've built a modern serverless cloud. I kind of trust them to keep their shit patched up and, and so on. Like, what are your thoughts on someone like them compared to one of the hyperscalers?

Patrick Collins and Simon Harloff — Founders of Dam Secure

Yeah, definitely. I mean, I think Cloudflare, like you said, knows their stuff. All they do all day long is security networking. Like they've got deep roots in all of this. There's a lot of infrastructure providers popping up like everywhere and then you go like Yep, sure. I'm now no longer managing my app. It's just basically a GitHub repo that magically spins into action. And I think that magic can sometimes be hurtful when the underlying platform might get popped and all your credentials get stolen. So it is a double edged sword. But I think you've got safe harbor in these kind of bigger scale providers for sure.

One way to process what Simon's saying is vanilla and simple is best. Think about it this way. The LLMs are trained on all the stuff that's on the open Internet and the more common and popular that stuff is, the more likely you are to get it right. And so vanilla is good right now. Vanilla TypeScript. Why go with obscure language choices that have poor training data for the LLMs and probably have less, just overall less training data when you can go simple and vanilla. There was once a period of time where cool tech, modern tech was the right way to go. And it was normally through the lens of sometimes like principles like DRY and you know, keeping the code simpler and that, that doesn't matter anymore. It doesn't matter if the code's verbose, it doesn't matter if it, if it takes more lines of code and is more, you know, is harder to read. It doesn't, doesn't matter anymore. What matters is that an LLM can lint it correctly. It's got plenty of source material. Whether Cloudflare is good or not is through the lens of like, is the training material good enough? I would probably say is that brand new service that Cloudflare is deploying the one you want to use? Are you sure? Because it's got less like, just general visibility to your, to your LLM. Pulling back to your broader question of like how to, how to keep myself secure in these days, I would say first principles. Every PR you push has got to have a security review on it. Most customers we talk to SOC 2 or getting towards SOC 2 or ISO compliance and it's pretty easy to check the box on those things without getting the basics in place. So PR scanning at a minimum. And also I'm a big believer in automated and always on red teaming for your application. If you don't know what red teaming is, I'm using that word instead of pen testing. So the old school used to be we'd run an annual pen test and some kind of junior folk at a consulting firm would come in and poke, poke a couple of holes,

Yaniv Bernstein

get through your firewall,

Patrick Collins and Simon Harloff — Founders of Dam Secure

try to get through your proverbial firewall. And I think we can all agree that was a pretty ineffective way of trying to find security issues. But there's modern tooling that constantly red teaming your software. And red teaming means constantly trying to find the issues that would come through a code scanning tool like us and then probing through the front door to try to adversarially exploit those issues. Hack

Yaniv Bernstein

into your own software before a bad guy does it.

Patrick Collins and Simon Harloff — Founders of Dam Secure

Hack it constantly. Always token expensive, but make it happen. Yeah. And try to guide that.

Yaniv Bernstein

And how would you do that practically? Like are there specific tools that, that people can use? Or it's like one of the amazing things about agentic AI is it allows you to build amazing things really quickly. Now the concern used to be slop, like just bad code, bad product. I think a lot of that is kind of solved. So now I can create something that seems like it works pretty well even at scale really quickly. But then I'm like, oh, but what about security? What about vulnerabilities? I don't want to have to massively slow down my pace because of this. So like I'm approaching this from the point of view of like, how can I do this? That's not going to be a massive headache for me.

Patrick Collins and Simon Harloff — Founders of Dam Secure

We're not a red team vendor by the way, so I have no skin in the game here. I recommend that as an always on best practice. There's a variety of vendors in this space, also a variety of open source. I would say that given the explosion of investment into the cybersecurity space with companies operating and targeting small businesses or enterprises or mid market, I literally think you'd be crazy to build your own. You could maybe try to vibe code up your own red teaming thing, but why would you do that? It's not your core business. And actually what makes you think that you know how to build a good security tool anyway? Just because you've been a good engineer. Like let me just pressure test that. So come to our side of the equation where we do pull request reviews constantly. We are always talking to security teams, platform engineering teams often who are like, oh, we've built our own bot and when they see our demo and they understand what we've had to build, they tend to freak out because they realize there's a lot of edge cases and it's hard to make it work smoothly in a way that works for your developers and doesn't slow them down. Like for instance, Simon's team have built nine sub agents specifically good at knowing how to craft the kinds of vulnerabilities in different like in the OAuth categories, different security categories have different tools, different skills. We even use different models per language and we've got a whole evaluation suite around that. So it's just like, well, you know, it's just up to you whether you think you can build that. Now we're just one vendor, there's quite a few vendors. I'm just challenging the idea that you would DIY something. No,

Yaniv Bernstein

I completely agree that. Hence my question. Like I actually think, you know, you mentioned vanilla before and like, well, my articulation of that thesis is that there is just a kind of vibe coding or agentic AI stack that you should just kind of use. And you know there's more than one option for that. But I think for any individual developer or team, just standardize on a pretty vanilla stack. Like for me I'm like, you know what, I build everything in Nuxt, on Supabase, on Cloudflare. It's not very interesting. And that's sort of the point. The agents know how to use it, I know how the agents use it. I don't have to think about that stuff.

Patrick Collins and Simon Harloff — Founders of Dam Secure

Well, Supabase is loving life as well right now because if you fire up a new application like Supabase is now the default. It is actually a vendor. It's, I mean it's like, wow.

Yaniv Bernstein

Exactly. Choosing interesting new infrastructure is not the point. I'm trying to build an interesting product and an interesting business. And to your point, some of the earlier ideas of like, oh, can I optimize 20% of my human labor by choosing this new framework or whatever, it doesn't matter much anymore. Just go for stuff that is deep and well supported, typed languages, whatever. Right. And so I guess my question is for things like red teaming, that should be part of your stack too. And as you said, you're not a vendor. So I would actually love it if you name some names. I just want to build my thing, my stack and my software factory or whatever should have a red teaming tool. What are a couple of the guys who I should be considering there?

Patrick Collins and Simon Harloff — Founders of Dam Secure

Well, there's some local Aussie startups, Harmony Intelligence for instance, one of them Shinobi. And then you've got bigger players like Exeo for instance that just do this continual style exploitation campaigns, you know, where they'll look at the code, theorize an exploit and then try and kind of go work from the outside in. Typically it requires a little bit of investment as well in terms of like, hey, do you have a live running environment? Like it's the old pen testing thing, rears its head again, it's like, where's your staging environment? How do people log in? Oh, you can only log in with social login providers, so you'd want to get that kind of sorted, which we've done on our end.

There's even specialist red teaming software specifically for attacking your LLM bots. If you're building an LLM bot or your LLM applications is one called Promptfoo, which is specifically designed to help you secure through adversarial attacking, secure your LLM applications you're building as well. So there's a variety of them out there.

The other thing I just wanted to just touch on very quickly is like for those people who will ultimately try, I think they'll very quickly run into what we run into every day, which is just like flat out refusals. So the moment any model gets any sense that you're trying to do something malicious, even if it's as simple as, hey, explain to me how this issue, how someone could exploit it, for instance, which is something like, that's like the root of the question that we try and productize in some of our pipeline. You'll just get refusals from all of the frontier labs. And so you have to use Qwen 2.5, you have to use DeepSeek. It's just not possible to go deeper without being like a, I don't know, a Palo Alto Networks who's on the version of the model that has all the guardrails removed.

Yaniv Bernstein

Okay, so just so I understand, I think I understand, but for our audience as well, what you're saying is the well intentioned work coming from Anthropic and OpenAI where they're like, oh, you can't use our, our most capable models to try to hack into things because bad guys could use that. It's nearly like it becomes one of those situations where they're like, if only the bad guys have access to the really good models, then that actually puts you in a bad situation. And so now that we have all of these open weight models that are not refusing requests to hack and so on, in order to defend your own software, to fight fire with fire, you need to be going on those same dangerous models so that they can again, back to our previous point, try to hack into your own system before somebody with access to a model like that hacks into it. And so staying in your little fable safe playground means that you're not getting access to the most dangerous exploits.

Patrick Collins and Simon Harloff — Founders of Dam Secure

That's exactly it. Yep. The model refusal is so frustrating right now and it's getting harder and harder. We're fortunate as a vendor that we're typically a partner of the frontier models, and so we can use their models that are less guarded. We'll also use the open weights models if our customers support it. We just have generally got more experience navigating around these guardrails as well, even though it's still very frustrating.

Yaniv Bernstein

So in terms of the models right now that are the best at security or hacking, what's the state of the art again? We're recording this on the 23rd of October 2025, which I think is important to know as things change quickly. But yeah, what are you seeing right now?

Patrick Collins and Simon Harloff — Founders of Dam Secure

We build evaluation suites around a few specific tasks. One of them, which we publish a benchmark on, it's on our blog, is specifically the task of determining whether a pull request has a security issue in it. So if you're like building, pushing pull requests into your pipeline, you want a bot that can quickly and effectively. I say quickly because time does matter in the context of a pull request. You don't want a pull request that's sitting there spinning for an hour waiting for a security review to occur. So we built an evaluation suite. It's pretty expensive to run. We've got like repositories with multiple languages. We've got 80, 80 of them. Yeah,

80, 80 repos in the. In the background that we do this across

plant vulnerabilities in those repos, deliberately planted vulnerabilities, and then we test each model's ability to find those vulnerabilities. And so we do that in a really systematic way. So to answer your question, the best models at finding the vulnerabilities depends on your definition of best time, speed to run, cost and ability to find the vulnerabilities that we're talking about. And the noise that it generates along the way as well. So there's like four different parameters there. But if you wanted to optimize for cost and just overall finding quality, DeepSeek is hands down the winner right now. DeepSeek Flash V4.1 like the latest one that just came out.

Yeah, the 17th of October snapshot.

Astonishingly good. A tenth of the price of the nearest frontier model, which is GPT-4.1, which is about on par with DeepSeek Flash. We, our jaws are on the floor. So we run this benchmark every, what, every two weeks? Roughly, Simon. Every few weeks. Like when a new model, Gemini Argon for four came out, every model, we'd put that in there as well. And when the DeepSeek Flash model came out we didn't believe the results. We were like running the, running the benchmark multiple times. Simon was like, there's got to be something wrong. But it really is just very effective.

Yaniv Bernstein

So you would recommend plugging that into your red teaming tool, whatever you choose and be like, have at it.

Patrick Collins and Simon Harloff — Founders of Dam Secure

Yes. However, and here's that this is the challenge of being on the frontier. Come join us. Is it's really hard to get access to. To DeepSeek. Vercel have availability for it, but it's a bit rate limited

I think in our context. I think it's also really important to call out like we really care about giving developers timely feedback. And so like our P50 for giving someone feedback on their PR is two and a half minutes right now. And so the reason why I'm going there is that at our scale, we need a lot of token throughput. So I mean, it's a lot of requests per minute, a lot of tokens per minute. Anyone that wants to jump on can sign up to Vercel or sign up to Baseten Fireworks.

Yaniv Bernstein

Wouldn't I just sign up to OpenRouter? Sorry, forgive my naivety. I'd be like, OpenRouter gives you everything, right?

Patrick Collins and Simon Harloff — Founders of Dam Secure

Yeah, that's my point. I think as a starting point, you can get access to these tools through OpenRouter. I think at our scale, what we're trying to optimize for is a really good developer experience and it sort of gets a little bit harder when you're trying to do it for one PR a second kind of thing.

Just check the quantization level though, as like we're finding we run our eval suite across different providers and some of them say they have like the latest Qwen or DeepSeek and it's heavily quantized and the results aren't as good.

Yaniv Bernstein

We actually had Peter Walker from OpenRouter on this podcast a couple of weeks ago and he talked quite a lot about the fact that, you know, models ain't models. And it really depends on the provider and what they've done to that model,

Patrick Collins and Simon Harloff — Founders of Dam Secure

how they've deployed it, how. Yeah, exactly.

Yaniv Bernstein

Now, I wanted to take a moment to talk about cybersecurity and one of today's sponsors, DAM Secure, really caring about building secure software is one of the key differences between agentic AI software development and mere vibe coding. And DAM Secure specialize on providing security PR reviews for you and your AI first engineering team. They do their own research on the latest models and they learn your code base. The result is you get PR reviews that are security focused and faster and cheaper than the general models with far less noise and unnecessary reports. So you can focus on fixing the security issues that really matter and get back to building for your customers. DAM Secure is offering Applied Wizardry listeners one month for free. If you go to DAM Secure AI Wizardry, that's DAM Secure AI Wizardry to claim your first month completely free. Building with AI allows you to get your business started so quickly, but to do that right, you need a partner that helps you do the paperwork and the bureaucracy at the same speed. With today's sponsor, Spark Launch, you can create your startup in seconds using their platform or you can even plug in your favorite AI tool and it can talk to it directly. For just $499, you get a Delaware C Corp. Now, Delaware C corporations are a really great choice for startups all over the world. A lot of investors will only invest in Delaware C Corps as well as the registration. That $499 package helps you keep company documents and founder equity organized as you grow. Now, for Applied Wizardry listeners, you get another 20% off the already fantastic price. So go to SparkLaunch IO Wizardry. That's SparkLaunch IO Wizardry to claim another 20% off. You mentioned noise, and this is one that's sort of close to my heart because when you run a security review, somewhat naively on your code base or on a PR, it'll be like, here are 40 things that are potential vulnerabilities. Now, I don't believe that most of those are things I need to be worried about, but some of them definitely are. And sorting through those, again, it's nerve wracking because I'm having to make judgments on what are real issues versus just noise. How do I think about that and how do we kind of get the noise down?

Patrick Collins and Simon Harloff — Founders of Dam Secure

I mean, I can maybe just walk through a couple of the questions that we asked. So we have a whole adversarial verification pipeline. It asks a ton of questions and has specialist tools. You know, there are sometimes cases where the LLM will be like, hey, you know, I think there's something wrong here, but that code's not reachable or that path. So like a basic reachability test will do wonders where you're just like, hey, are you sure someone can actually get here as a for instance, One of the other things that we do is just contextualize, like what is the part of the application that you found this in? You know, is this a CLI tool being used by a developer? And so therefore, you know, the the idea of like input that's controlled by like a malicious actor is like, well, what are you talking about? That's just going to be one of our staff members running this CLI tool, for instance, right?

Yaniv Bernstein

Yeah, exactly.

Patrick Collins and Simon Harloff — Founders of Dam Secure

You know, those, those kind of things can, can go a long way. But what you end up is kind of like a skill that asks like, you know, four or five kind of validating questions to go, well, are you sure about this? Are you sure about that? We do all of that automatically and we pre build some of that context so it's like readily available and we can deliver the feedback quickly. But that's ultimately the route you end up going down to kind of try and reduce the noise. Because the other thing that we found is that an LLM will always have something to say. So if you ask the same question five times in a row and you fix the output of each one of them, you'll never get to a point where it's actually going to say nothing.

We talked about it briefly earlier, but some models think well and generate less findings to start with. Unfortunately, although DeepSeek is the best at finding the vulnerabilities we plant, it's also the noisiest. So our issue processing pipeline has to work hardest with DeepSeek, the issue processing pipeline that Simon just mentioned, to invalidate and cull those findings. And then coming back to where we started, you know, if we talked about red teaming, there's another great tactic is the to take those findings and push it into your red teaming software. See if you can exploit. Here's a finding that our code scanning tool came up with. See if you can exploit it, see if you can go find this.

I will say just going back all the way to the front of the call, like, just fix the issues. Like to run a loop and be like, hey, can you just address these issues regardless of what they are? For most people today, it's not a, a budget breaker or bank breaker and it's going to result in you not being the next PHP to shell, basically because that's exactly what happened. Right? It's like someone did that prioritization and they went, ah, I can't exploit that issue. So it's going to go further down. So I think in today's, you know, world where you're not writing the handcrafting the code, you're not spending six hours fixing it. So just, just do another loop, fix the issues.

Yaniv Bernstein

I think that's a good sort of segue to the broader question of software factories. Right? Software factories in the sense of let's have a harness and a set of infrastructure and processes that kind of allow us to build high quality software with as little human in the loop as possible. I think what we're saying here is security needs to be a part of that factory. So how do we fit it in? And again, in a way that keeps you safe without slowing you down too much.

Patrick Collins and Simon Harloff — Founders of Dam Secure

The way I think of a software factory is like the, you know, basically the stages, automated. Most examples I've looked at and companies we work with that have tried this end up being doing like a DAG or like a workflow, a predefined workflow where you pop in like some logs that were noisy or some error logs from your production system. Then something goes and writes a spec on how to fix it. Something generates the tests that need to pass. So there's like a TDD step and then there's the actual implementation step. And they tend to be kind of separate agents that are handing context off to each other. I think security can happen at that planning step. So when you're planning out what the implementation is going to look like. Right, that's a good point. Starting point where you can like ask questions around like okay, how does this fit into my threat model? For instance? Then at the implementation, one of the things that we do internally is we have very specific linting guardrails from a security point of so that as the agent is generating code, we are actually kind of like slapping the agent and being like ha, that tripped up that little security rule. Most agents are smart enough to go okay, either I did something wrong or I just need to suppress that rule. So linting rules can be incredibly helpful just in a lights out fashion to just like keep slapping the hand. And then at the very end when the entire PR is available, then yeah, as Patrick mentioned, you wanted to do like a review of that and then you know, in depth check. And so those are the three things that come to mind. I will say I haven't seen anyone do like a total lights out software factory. I think there's always humans in the loop. And so I feel like most implementations are lights on and people are getting involved either when the agent just has too much ambiguity and it needs to ask questions or follow up questions to, you know, flesh out the, the spec a little bit more. Implementation didn't go as planned and so on.

I'll add a few interesting examples from what we're seeing at some of our more advanced customers who, who are building software factories. There used to be a period where blocking a PR was a no, no. Engineering leaders would be like, you cannot block the PR these days. It's a great day because you're not, you're not blocking an engineer if it's a software factory, you're blocking an agent. So if your bot finds a critical vulnerability, like if we find a critical vulnerability in a pull request, we will block the pull request and an agent will go back and forward with our agent until it resolves that issue. No human's been affected by that process. So I think all of our customers are actually turning on PR gating because they want their agents to not jam past and blow past critical or high vulnerabilities. So it's an interesting trend Shift. And on the opposite end of the spectrum, the other trend with shift we're seeing is auto approval of PRs. Everyone's now aligned. We need to get to auto approval PRs. Very few customers have gotten there. There was an interesting article last week from Anthropic how they just, they've kind of gotten rid of it altogether because they're trusting their software factory so much, in fact, so much that they've even just taken git out of the loop. Interestingly, almost every CTO I speak to right now is engaged with their CEO on how to auto approve some percentage of their PRs. And it's always through the lens of efficacy, speed and getting to market faster. If you're really honest and you look at your pull requests, at least a third of them we would consider to be routine, routine, basic, very low risk pull requests, either documentation update or simple SEO page updates, things like that, they can be auto approved. The trap's going to be your compliance partner hasn't caught up with you. So if you need to do an annual compliance audit, they're going to insist that was a human in the loop on every single software production push from a software quality perspective. So then how do you rise to meet that need? My advice is to still review those auto approved pull requests, but do it in a batch. Because no one says there has to be a human in the loop in real time. It just means there needs to be a human who looks at it at some point. And so some customers are looking at all of the auto approved PRs on every two week basis, for instance, and just kind of casting their eye back over it and then guiding their agents from there.

Yaniv Bernstein

There's an interesting philosophical question I guess that AI is breaking is what does it mean for a human to review a PR in any case? Right. Last week's Episode was all about PR reviews. Like, does it have to be line by line? Does it just have to enter the retinas? Or do they have to certify that they've thought about it in a certain way?

Patrick Collins and Simon Harloff — Founders of Dam Secure

And who says that a human did a better job anyway?

Yaniv Bernstein

It's increasingly unlikely.

Patrick Collins and Simon Harloff — Founders of Dam Secure

Yeah. Yeah.

Yaniv Bernstein

I think, like, the insecurity, in particular the degree of security theater now is that the gap between what actual secure practices are and what best practices that can be certified is wider than ever. It's always been pretty wide.

Patrick Collins and Simon Harloff — Founders of Dam Secure

Yeah,

Yaniv Bernstein

but it's wider than ever.

Patrick Collins and Simon Harloff — Founders of Dam Secure

Well, Simon, I mean, you're helping us get through our SOC 2, and ISO. And what I see is the things that we have to comply with are not the things that we're worried about. Right.

Yaniv Bernstein

That's what I mean.

Patrick Collins and Simon Harloff — Founders of Dam Secure

Yeah. I mean, I think it also comes down to, like, when you're going through it the first time, just making the most of it for yourself. Right. Like, I'll talk for a really boring example. You know, you do your, like, business, your tabletop, like, IR exercise. Just make it relevant, you know, don't do the, like, Gary lost his laptop. Make something like, oh, someone downloaded LiteLLM and their laptop actually got popped. We lost all of our, like, make it. Make it spicy, make it interesting. Because the reality is you can create a lot of value for yourself and go like, okay, actually there's ways to make it better. But I mean, I agree, like, the old world of, like, you know, I'm going through a SOC 2 and we do the training, you know, once a year and call that security. Yeah, it's pretty theatrical.

Yeah. I mean, take. Take the example from earlier of needing an annual pen test. I get it. I get the control. In our instance, like, we go way beyond what's required from a compliance perspective. You know, Simon's nudging agents to break out of the sandboxes we're putting them into. We're adventuring adversarially, trying to get our system to, you know, as we assume that all code coming into our system is malicious,

Yaniv Bernstein

the fact that a company like DamSecure, which is all about the latest security practices, still has to jump through hoops to get SOC 2. Kind of tells you what you need to know. Right. In an ideal world, they should come in and look around and be like, yep, you're compliant. Obviously you do a better job than most.

Patrick Collins and Simon Harloff — Founders of Dam Secure

Do we think these frameworks are going to catch up and if so, how long?

I think they already are. I mean, I talk to our auditor on sort of A monthly basis. And I think the tides really turned on them and they're like yeah, we're a bit more flexible here or we're happy to work with you on an agentic access review for instance. Some of these things do make you more secure, like the idea of an access access review and culling people to access where it's not needed, that ultimately prevents things like someone's account getting hijacked, them having like permissions to do basically everything and it resulting in like a LiteLLM where you know, they're actually a maintainer of like a really popular open source library or something that millions of people deploy. So some of it can be helpful.

Yaniv Bernstein

So I know a lot of your clients are perhaps larger customers, like larger businesses and so on, but. And we have folks listening to us who are working in places like that, but also founders and people who are earlier stage and even some people who are perhaps more semi technical than qualified software engineers. And so if they're listening to this and it's a bit overwhelming, right, it's scary, what's the highest leverage thing that someone could do right now to level up their security today

Patrick Collins and Simon Harloff — Founders of Dam Secure

as a citizen coder or as a software developer? Because I think there's different answers between those two.

Yaniv Bernstein

Okay, give me the distinction. What do you mean by citizen coder? And then yeah, give an answer for each of those.

Patrick Collins and Simon Harloff — Founders of Dam Secure

You gave the example of a founder who's not very technical. I think if you're a non technical founder pushing stuff onto the Internet, you should be very concerned. I think that there's a high level of trust in the tools that are putting code out onto the market right now. And I really would strongly advise ensuring you have a skilled engineer around you reviewing stuff that you're putting onto the Internet. So that's the one thing I would say for the non technical developer using security stuff.

The journey I think that most people go on is they start with a ChatGPT session and ChatGPT starts like, or Claude Code starts creating files like a software project and they don't know that they're creating a software project. And then to our earlier point, like most of these models, they're on distribution for recommending Vercel or Supabase. And then you're like you should go and create a Vercel account or create a Supabase account and you're like okay, I'll go and do that. And then 10 minutes later you've got your app up and running and it's extremely gratifying. But you also, you Know, if you don't really know what you're doing with Supabase, you can shoot yourself in the foot with the RLS policies, for instance, you know, and you're like, oh, my app works, but everyone can read everyone's data, for instance, you know, like, there's no, there's no concept of actual tenancy. So I think in the citizen developer context, I agree with Patrick,

Yaniv Bernstein

that doesn't sound like the best news. What about like, some of these, like walled gardens, like Lovable or Base44 or things like that? Are there any of those that

Patrick Collins and Simon Harloff — Founders of Dam Secure

same deal, great for prototypes, do not put it in production.

Yaniv Bernstein

That feels like a gap in the market, doesn't it?

Patrick Collins and Simon Harloff — Founders of Dam Secure

Yeah, well, it's interesting. Like, Simon and I often talk about whether we want to try and fill that gap and we, you know, here's the question that we ask ourselves. Is it fillable? Let's take an example of. I was talking to LawPath last night and they were like, people are, you know, citizen developing their own legal documents as well, and lawyers are aghast at that process. And the right question is like, is it better than a lawyer's guiding an LLM because they're an expert judge of the output? And is it okay that it found as LLM generating a contract? And it's the same question to ask with code. The risks are the same. And so I think it just, it really depends on your risk appetite there as a security professional looking at the kinds of things that come out of Lovable. Well, we did a trial with the. A customer who their process would add the product team developing an app with Lovable. It would then go into. It was through a filtering mechanism with DamSecure and their engineering team. And the issues that we saw come through would make your toes curl. There was routes that didn't have authentication on them at all, like just completely open, authenticated, unauthenticated routes. And these are just things that if you would have prompted correctly, those issues wouldn't have occurred. So it's actually in the hands of the operator not knowing how to prompt it correctly and ask it correctly for the right outcomes. Which is why I just go back to like, if you're in that position, just get an engineer around you to help you review the outcomes of it before you put it in production.

Yaniv Bernstein

The LLMs to a decent degree do know what to look for. And sometimes it's just this, like, dumb thing. I'm not saying I've done this for security, but I've done this for other things where I say to the LLM, don't make any stupid mistakes on this. So I could say, hey, when you're building this, make sure that you're architecting it in a secure way and watch out for any obvious security vulnerabilities and it will actually do an okay job. Right, but you don't even have to know what you're asking it. You're basically asking it to sort of activate that part of its weights to say, oh, I need to actually think about the security of what I'm building as I build it. You can put it in your AGENTS.md, for example.

Patrick Collins and Simon Harloff — Founders of Dam Secure

I think you get pretty decent mileage out of that. We found, even with our internal testing. Like some of the stuff that we do is like, well, okay, you found that thing, but did you find the other thing? So LLMs are really good at like, hey, have I do I think I've satisfied the task. And so, you know, you end up finding a couple of things and you as a user you're like, oh yeah, okay, I've found two things good, but there might be another three or four or five, you know, and that's why we kind of take our approaches to, to try and, you know, exhaustively find all the things that could be wrong so that it's not just like the, the three things that get fixed, it's the other, you know, seven that might matter in the, in the long run. So I, I think that's definitely a good starting point. I would say it's like, hey, can you have a think? But also I would say you're getting an incomplete answer just by design on how the LLM works and thinking and reasoning levels and effort levels. At some stage it's just going to stop and be like, okay, I think I'm done here.

They do generate secure code if prompted correctly. That's correct. Just never Forget that these LLMs are trained on the same material that's on the Internet. And that material is not necessarily secure. There is. I could point you at numerous articles, even recent ones, that test the code that comes out of even modern LLMs. They're not more secure than the code we generated manually four years ago. They're just not. There's no magic machine here. They're trained on the same stuff that we generated over the last four years. And so will they get better? Maybe at minimum have an adversarial agent like ours in place trying to review stuff and there's some open source stuff that you could use. If, if you don't want to purchase a commercial vendor, at minimum do that. But again, you're like at a point where, like, can a citizen coder even configure that and get that up and going? Maybe this is where you need a software engineer involved, I think, to get that kind of software factory building going so that talking to a customer yesterday and. And like they're doing some crazy cool things. I've got very large customer. You would all know the brand name and their sales team put pull requests into their production repository. They're encouraging everyone across the company to do pull requests against the repository. It's a great idea and now I've got a whole process for how to manage that. The product team then take that, they take it as an idea. It's just like product feedback. It's like a feedback mechanism. It doesn't mean it's going to hit production. It's more like, I'm going to show you how I would build this for our customers. And a lot of that code actually ends up getting polished and put into production as well. So I do think there's. We're going to see some really interesting different models occur in smaller and bigger companies with this citizen coder model. And I think the quality of the software factory you build will be the determinant of how quickly you can take that input and push it through in.

Yaniv Bernstein

If I were to summarise, everything that you've been saying today is that the Internet is a dangerous place. It's more dangerous than it's ever been. And while it is a lovely idea to say, well, I can just take what I've built and give it to the world, you really need to be aware of all of the risks that are out there and have the right processes in place and the right tools in place of which there are many to get things right. And if you do it well, it doesn't need to be inordinately expensive in either time or money,

Patrick Collins and Simon Harloff — Founders of Dam Secure

even more so today, the adversarial capabilities unfortunately have accelerated. I'm not trying to instill fear. It is accelerating rapidly. We're seeing it happening in market and the defenses need to come up accordingly. And so if you rewind the clock on your thinking three or four years ago, on your kind of security preparedness, amplify that several levels and you're probably getting towards the right level of where you need to be today.

Yaniv Bernstein

Well, I think I'm going to get right off this call and do some things. Simon and Patrick, this has been a really informative conversation, a little bit terrifying, but at least I've got a bunch of actions I can take to make my software as secure as it possibly can be. If people want to learn more more about the space. Want to follow you guys online, learn about some of your research. What is the best place to go?

Patrick Collins and Simon Harloff — Founders of Dam Secure

Yeah, please just go to DamSecure AI. You can look at our blog and find the benchmark that we talked about earlier and we're very active on LinkedIn. Please follow Simon and I on LinkedIn. We're very active on current topics, current issues, whether it relates to open weights or security, active security issues as well. Maybe see some images of my cat along the way.

Yaniv Bernstein

Yeah, you're both a great follow. Thanks again. And that's it. That's the pod. Have a good one. Today's episode of Applied Wizardry was brought to you by DAM Secure, the code security platform for AI first engineering teams. Honestly, I've used some of the big guys and they drive me a bit crazy. You get so many comments, so many vulnerability reports and most of them are just noise. They're not real vulnerabilities and they hide the stuff. Stuff that actually matters to you. Not only that, I got the bill and it was so expensive I couldn't believe it. Now DamSecure is cheaper, faster, it'll do your reviews in under 2 minutes and you'll get 3 times less noise than from the big guys. They do their own model research and so they know what works really well. That is the difference between a specialist like DamSecure and just one of the big guys. So see it for yourself. Go to DamSecure AI Wizardry. That's DamSecure AI Wizardry for your first month, completely free, and see how painless security reviews can be for your product. This episode is sponsored by Spark Launch. When my last company applied to Y Combinator, we were told there were only three incorporation options that Y Combinator would accept. One is a Singapore registration, one is a Canary Islands registration, but the third is the one nearly everybody chooses, and that is a Delaware C Corporation. Spark Launch has a launch package for just $499 that will register your company as a Delaware C Corporation, give you one year of registered agent service, and allows you to keep your company documents and founder equity organized as you grow. This is a great place to start. And if you're thinking of applying to Y Combinator or any number of other exceptions accelerators, you may as well get your paperwork right from the beginning. You build the product, Spark Launch helps you start the company. Visit SparkLaunch IO Wizardry to get 20% off. Exclusively for Applied Wizardry listeners off their already very low prices. That's SparkLaunch IO Wizardry. And get started today.

Episode Details

PublishedNovember 5, 2026
Duration48m