“Fundamental to any theory of the evolution of the immune system is the fact that immune investment is costly.”
Hamilton et al., 2008. Two arms are better than one: parasite variation leads to combined inducible and constitutive innate immune responses.

Cybersecurity sits in a strategic balance between the capabilities of attackers and defenders. Frontier open-weights models like GLM 5.4 extend the capabilities of everyone, including a broad class of attackers. We’re introducing the Modal Cyber Defense Program to help ensure those models aid defenders even more.

To maximize benefit, we’re starting from a small set of trusted partners with critical software to protect — large organizations and key open source projects. Contact us here to apply, and read on for more on how we’re approaching these epochal changes in cybersecurity at Modal and why we think this program is so important.

Artificial intelligence has expanded the capabilities of attackers.

We’ve been woke to this since the notorious Hugging Face attack. ICYMI: during a training run, one of OpenAI’s frontier models exploited unintended remote code execution in an unauthenticated endpoint deployed by a customer on our platform.

But autonomous agent swarms straight out of science fiction aren’t the only, or even the primary, change to the security landscape. The same AI agent tools that are accelerating software’s development are also accelerating its exploitation. Every “script kiddie” just got a friend with an IOI medal who writes code at 10k WPM.

Publicly, this shift is visible in the form of high-impact breaches. Privately, we and others have observed a massive increase in “scanner” attacks, which throw a kitchen sink of known exploits at systems in hopes of catching a stray unpatched vuln.

Once an attacker gains access, agents also accelerate the steps after an exploit — data exfiltration, hostile program deployment, discovery of additional targets. The prize has grown at the same time as the difficulty of winning it has decreased. Ceteris paribus, the equilibrium shifts in favor of attackers.

In response, defenders must extend their own capabilities with artificial intelligence.

What are we software engineers, stewards of systems relied upon by the rest of the world, to do?

Start with the basics. Social engineering attacks like phishing are still hitting the weakest link. These attacks are also accelerated by artificial intelligence and are at the root of many recent breaches, even though this gets less press than hypothetical threats to post-quantum cryptographic techniques. The techniques for solving this are standard, but require tough choices and the will to execute.

But the weakest link is not the only one that needs shoring up. Instead, as always in security engineering, we require defense in depth.

With multiple layers of defense, the impact of a breach or vulnerability at any single layer is limited.
With multiple layers of defense, the impact of a breach or vulnerability at any single layer is limited.

For that reason, we’re shipping security improvements to key open source software we rely on, from containerization for workload isolation to GPU-accelerated inference. We’re also proud to offer audited zero data retention for our Model APIs, providing customers peace of mind about a popular new attack surface.

Operating at the speed and sophistication of attackers requires that defenders adopt the same techniques as attackers. In particular, rather than waiting for external security researchers (or worse, attackers!) to discover vulnerabilities, we can proactively search for and fix them — aka red-teaming.

Red-teaming actively discovers issues, enabling them to be patched to improve system security.
Red-teaming actively discovers issues, enabling them to be patched to improve system security.

Run your red-teaming with open-weights models.

This work is often better done with open-weights models, rather than proprietary models. Proprietary model services often refuse both cyber-offensive and cyber-defensive security tasks. Additionally, even within explicitly sandboxed red-teaming environments, they frequently hesitate to take offensive action as part of validating an attack. Even without techniques like abliteration to adjust model behavior, the open-weights models we’ve used refuse far less.

Red-teaming work from open-weights models is also much less expensive — even when cost is measured per discovered finding, rather than raw cost per token.

Results from an internally developed red-teaming benchmark appear below, providing directional evidence for these claims, which are folkloric. Note that in our benchmark, the GPT-6.2 Astra API flagged every request as a cybersecurity risk. We’ll share more on our experiments and experiences with automated red-teaming in an upcoming blog post.

ModelCost (API rate)Confirmed findingsCost per confirmed finding
Daybreak GPT-5.6 Sol$3,4908$436
GPT-6.2 Astra~$00-
GLM 5.4$1752$87
Kimi K3.1 Pro$917$13
GLM 5.3$1276$21
DeepSeek V4.1 Flash 1017$2380-

Where does this end?

“A slow sort of country!" said the Queen. "Now, here, you see, it takes all the running you can do, to keep in the same place. If you want to get somewhere else, you must run at least twice as fast as that!”
Lewis Carroll Through the Looking-Glass and What Alice Found There

This is all, at first blush, vertiginously scary. But we don’t buy the doomer hype. We see a more secure future for software.

First, consider the counterfactual where these capabilities were not publicly available. These security vulnerabilities would still exist, but they would be latent, unknown — or at least not publicly known. Security through obscurity is a slur for a reason!

Second, defenders have an advantage here. They collectively run the systems the rest of the world depends on. Attackers are in it only for their own gain. We’re hopeful that even with the same raw tools, superior resources and coordination capabilities give advantage to the defenders. Put another way: a spike in CVE disclosures is hardly a sign that attackers are winning — it’s a sign that defenders are working together to discover, patch, and responsibly disclose issues.

But looking more broadly, we see deeper changes to software driven both by the change in the security landscape directly and by the same underlying changes to the creation of software with machines.

Formal verification has long been employed in the most sensitive settings, like aviation. This wasn’t done in general because it was too costly. But this was really a concession to an industry-wide skill issue, one that agentic systems resolve.

And biological systems are egregiously hackable — just ask anyone who has ever caught a cold. They resolve their vulnerability with active, adaptive immune systems. Autonomous site reliability and security engineering systems provide a glimpse of what this future might look like. We believe they promise fewer issues, not more.

We’re proud to help more and more teams live in that future today with the Modal AI infrastructure platform: flexible and scalable Sandboxes, Functions, Servers, and Model APIs. If you’re interested in joining them, try GLM 5.4 via our Model API or apply to join our new Cyber Defense Program for additional support.