Cybersecurity for Web Apps In 2027
This was a memo sent to all Speedshop clients.
I have been having conversations about security with many of you over the last 4 weeks. Most of the time, it’s been pretty much all we talk about.
On my own side, most all of you were probably notified by me when Northflank’s env plane got popped at the beginning of the month. We had a Slack token and a GitHub classic token potentially exposed as part of the breach. I now believe these were almost certainly not used by attackers before we revoked them. In any case, I spent the first week of the month dealing with the fallout of that.
I also was able to watch and help a few teams pre-disclosure for the Ruby 4.0.9 and 4.0.10 releases.
Then, last week I decided that the security issue queue for Puma had reached critical levels. Shopify reached out to me to tell me that their reported issue (about a week old) was actively exploited in production. So, I spent a few days burning through the backlog with agents and released now 2 security releases for Puma. There will be more.
Then, today, November 19th, we saw possibly the largest security release in Ruby’s history with Ruby 4.0.10. This release covered 7 vulnerabilities, but the most serious was a memory access issue in string upcase. When combined with multipart Rack form uploads, this can turn into a segfault or even remote code execution (RCE).
I am not a cybersecurity expert. However, I am a longtime Ruby platform engineer and trying to figure out how to sling tokens without wasting money and time. Many of you have asked me for my opinions on these topics. So, I figured I’d write it all down. Many of you have heard parts of this in the last couple weeks from me, but this is the first time I’ve put it all down in one place.
Threat Model: The Eye of Sauron #

AI agents have created an oversupply of elite attention. What we’re learning right now is that cybersecurity was bottlenecked on attention, both defensively and offensively.
Today’s Ruby vulnerability goes back to Ruby 2.4. Almost every single one of the vulnerabilities you keep hearing about goes back years, some decades. Why didn’t anyone notice until now?
What has changed now is that we have built the Eye of Sauron. There is an Eye, which can see every single Internet-accessible service, and determine quickly if it is vulnerable or not. This Eye is quickly and inexpensively scanning every line of code ever written, and via point-and-shoot tools like ARTEX it is scanning every port of every server.
Security by obscurity was never a strategy, but it was certainly true de facto. If it was possible to get RCE on a Rack server by sending a German “S” character through a multipart form upload, well, nobody had ever tried that. Now, you can try that and about 1 million other permutations for $2.00 and an hour of Deepseek v4.1.
What Do You Have That a Hacker Can Convert to Cash? #
The most commercially relevant threat actors are now mostly hackers who are attempting to collect LLM inference keys and pass them on to proxy inference resellers in China. The same group behind the Railway and Northflank attacks was working this way. Each LLM key, if unrestricted, could be worth tens of thousands of dollars if it can be pawned off to one of these stolen key resellers. These resellers pass these keys on at a discount, usually for the purposes of threat amplification, distillation, or just discounted general purpose inference.
Keep in mind that all cybersecurity requires some model of “why would someone want to hack us?” and that for commercial entities, this almost always involves “how do they think they can get money if they hack us?” While the recent spate of attacks has been around inference keys, we’ve also had a lot in the past which involved blackmail or DDoS.

What does this guy want that you have?
I advise you to think about what a hacker would have to gain if they gained unrestricted access to your systems, or if they could reliably take you offline until you pay them in crypto.
What can be most immediately and easily turned into cash? That is what you need to defend.
Who Is Doing It? (Sauron? or Anthropic?) #
On the bright side, I would say that from what I can see, defensive whitehats are mostly the ones reporting vulnerabilities. Only a minority of vulnerabilities you’re seeing posted are the result of a corporate security team seeing and responding to a novel attack in the wild (though this is definitely happening!).
Mostly, OpenAI and Anthropic, along with a bunch of security research firms, are maneuvering their own Eyes of Sauron over the immense body of open source software and sharing what they find. That’s good!

However, I have also seen a number of friends and members of our Ruby community essentially get “targeted” by a malicious threat actor, who has basically said “I have $200 of Deepseek attention here ready to ruin your day.” People describe experiences of being basically combed over with tools like ARTEX or just novel agents to find every single possible hole. Railway was popped by one such agent who had signed up as a customer account.
I do not believe “it’s behind a login” is really a viable defense anymore, as it appears that if your secrets are valuable enough, threat actors will actually spend money on your service to get in and poke around. I mean, they’re spending money on tokens after all - what’s a little more investment?
Because it is so cheap to do so, eventually someone may decide it is Your Time and ruin your day. In about 2 years, $200 of Deepseek will become $2 of Deepseek, and mass trawling of the internet will become commonplace (it isn’t yet). So you will have to solve this problem eventually.
These are Edge Cases, But It Only Takes One #
If you’ve been paying close attention to the vulnerabilities being released, you’ll have noticed most of them have exceedingly complex preconditions:
- Have a specific version of several different packages in place
- Have a specific non-default config
- Blood sacrifice under the moons of Venus, etc
Here’s a real world case from the Ruby 4.0.10 release today.
With $4.64 and 2.5 hours of Deepseek V4.1 Flash 1017, I was able to create an RCE in lab conditions. However, it requires the following:
- Knowledge of the application’s source code
- glibc malloc, not jemalloc
- OOBGC being on in production (makes it much easier)
- Higher threadcounts also make it harder to reproduce
You could absolutely spray and pray to make any Ruby 4.0.9 process crash, but RCE is much harder to obtain without creating a bunch of noise that will probably get noticed. Maybe tomorrow I’ll find a more “point and shoot” RCE, or maybe I won’t.
If you think about my “infinite elite attention” lens from earlier, this makes sense. All of the obvious vulnerabilities in old software have already been noticed. What’s left is all the weird edge cases.

The Swiss cheese model of accident causation.
Wikimedia Commons
(CC BY-SA 3.0)
However, the danger is still present, because all it takes is for the swiss cheese to line up one time, and you’ve got a company-ending cybersecurity incident.
It also means that prioritizing and judging the risk and urgency associated with any individual fix is difficult to assess: a CVSS 10 may be technically correct but completely unreachable on your specific setup and infrastructure. More on that later.
It also means that vulnerability patching in your dependencies cannot be your only response. Exploits are chains of vulnerable behavior, and we call a collection of vulnerable behavior an “application”. No one knows and understands your application better than you, so ultimately security will always be a problem only you can solve, even if you are running 100% on software with no vulnerabilities, known or unknown.
What Is Your Strategy? #

I keep thinking about what Greg Brockman has been saying since August:
“We took 25% of our production engineers and said, ‘Sorry, all your projects are on hold. You are now defending. You are now up-leveling our security architecture. You’re going to use the models to find all the holes.’ And we found a number of serious issues, and we fixed them.”
The biggest rocketship company in the world, with a cost of capital that is (sorry to say) 100x higher than yours, decided to take a quarter of their engineers, whose total comp is probably >$500k each, to do cybersecurity ONLY!
OpenAI’s threat model is different than yours: they have some of the most valuable secrets in the world to steal. But you have secrets too. How long until the cost to steal them becomes lower than the gain from selling them? How much should you spend today to prevent that from happening?
If the world’s fastest growing company devoted 25% of its engineering to security since August, that should ballpark you to where you should be at today.
Build, Don’t Buy #

Reasonably, almost all of you are looking for something off the shelf you can buy to fix this. You want money to fix the problem. I do not currently see a reasonable way to do this.
Reason one is that any vendor now becomes extremely trusted infrastructure. In the current environment, do you really want knowledge of “every single one of my app’s vulnerable pathways” to be on someone else’s infrastructure? And oh yeah by the way, that vendor also holds everyone else’s super-sensitive “here’s how to hack me instructions”?
Reason two is that no one really knows what they are doing. I feel like I spent a week or two looking deeply at this and I’m suddenly on the edge of cybersecurity? I’m not saying “it’s easy” but I am saying that it’s not that hard to get ahead of 99% of the world on this right now, because it boils down to applying a few hundred dollars of agentic attention to the correct areas.
Reason three is that vendors have the wrong incentives here. Any solution to this problem is going to involve applying large amounts of agentic attention on the problem. You will want to spend ~$X,000 of the best tokens you can find on this problem. A vendor will constantly be pressured to cut corners on this and try to spend less while selling you the same “outcome” for the same price. And critically, none of them can use Claude or OpenAI against your app, because as far as I can tell the frontier labs want you to buy that from them directly and are not approving cybermodel access for any wide-scale “sign up with a credit card” security product.
So for the time being, I think you are stuck doing this yourself. I’ll get into tactics later. The gist is that the tactics themselves are not actually that difficult to understand or hard to put in place.
There is one prerequisite though, which I think almost every company I work with is missing.
The Infinite Agent Plane #

For various reasons, cybersecurity among them, every company needs the ability to spawn 1 to infinity number of agents in a secure, scalable and observable plane.
Almost no one I work with today can say they have that.
This means that 24/7 background automations of agent workloads are not possible, because you don’t have anywhere to run them that is:
- Easy to use
- Hands no secrets to the agent directly (i.e. they only see one secret: their own identity, things like ANTHROPIC_API_KEY are injected outside where the agent can see)
- Scalable, including (with guardrails) by the agent itself (for subagents and swarms)
- Budget-controlled, so that any model can be used from any provider with hard caps.
- Observable, in that logs, traces, etc are all captured and stored
- Connected to all the MCPs and secrets they need to be useful, along with clear when-to-escalate-to-human approval guardrails
And while these qualities are all nice for background/non-interactive agent work, they also apply to interactive agents throughout your whole company. In a year, we will see it as positively caveman stuff that we allowed developers to run Claude Code on their own laptops, where secrets were lying all over the place in plaintext and login keychains are unlocked, waiting to be popped by any old hacked VSCode extension that accidentally got installed.
And, finally, this is another area that I think you’ll want to build rather than buy, for a number of reasons:
- Everyone you can buy this from wants to lock you in somewhere. They may want to lock you into a certain model ecosystem (Anthropic, OpenAI), lock you into a particular compute sandbox that you’ll have to pay for forever, etc. They need to lock you in to make you pay.
- They can’t really provide anything more valuable than what you can already run yourself on AWS, Google or Azure. Someone will figure out the “OSS” version of the infinitely scalable agent plane I’ve described, the k8s of agent planes, and people will go self-deploy that so they don’t have to trust anybody.
- I’ve looked at all the alternatives and off-the-shelf stuff here and I think every single one is insufficiently paranoid about security. All of them need to go much further.
This is currently where I feel the most pain. I want the infinite agent plane, but none exists.
You need to be able to say: “AI, make my company more secure.” in a 24/7 loop. There are a million reasons why you can’t do that today. Your job is to find and fix those reasons.
The Eye of Sauron is Also Coming for Compliance #
One side note: once you start to see things through a lens of infinite elite attention, you realize a whole bunch of other things are about to have their own version of the Vulnpocalypse.
Here are some other systems that are going to crumble under infinite elite attention:
- Compliance auditing. Now your auditor can actually check every single noncompliant surface in your company for $5.
- Data management and policy. Where you send customer PII, customer data, and really any confidential data at all used to be a sort of “ooze” that no one really knew or understood. Now, with agents, you can just figure all that out. Decades of bad practice can be discovered in hours.
- Tax auditing. God help us when the IRS figures out it can use AI to audit your company’s tax return. A lot of tax positions and employee/contractor classifications were made based on a 0.1% audit rate. What if that becomes 10%? 100%?
- Due diligence on M&A. Did you really get all the IP releases you needed? Did you correctly check all your OSS license terms and comply with them? Your acquirer is going to know every single one and use them against you when they negotiate.
- Offensive bureaucracy. Many government institutions are already seeing AI get weaponized against them in terms of increased disclosure requests, etc. You will see this used against your company in terms of customers now checking if you are actually meeting your SLA obligations, and having agents file for every single cent of credit they are due. Your customers will be watching to see if you actually comply with GDPR timelines and automatically report your noncompliance to the government.
Reactive Tactics #
Now, back to cybersecurity. What can you actually do to protect your company?
Set up your Cybersecurity Model Cascade #

I’m sorry Dave, but you’re a script kiddie and I’m
not gonna write leet hax for you.
You need the best frontier AI tokens you can get to direct the cybersecurity work at your company.
However, every single closed source model institutes some degree of cybersecurity refusals. Almost no one is getting full, no-refusal access to these models. So even if you get into the cybersecurity program, you will encounter refusals from these models. These refusals are random and not predictable. You should think of lab cybersecurity access programs as ‘getting fewer refusals’ not ‘getting no refusals’.
Critically, almost all of you will only be getting access to the “defensive” cybersecurity access programs. These programs (again, non-deterministically) will refuse to create reproductions/proofs of concept. This leaves you in another bad spot.
Most of you do not have dedicated cybersecurity employees who can reliably verify and classify the risk of “claimed” vulnerabilities. You just don’t have the time or the in-house expertise.
However, what all of you can do is watch a reproduction and say a) is that realistic? and b) does it do something I care about? It’s very easy for any application engineer to watch their application do something it’s not supposed to do and judge from there. Reproductions are the key to your cybersecurity approach and prioritization of risk, but OpenAI and Anthropic will not reliably let you create them with their models.
So, you will need multiple models and multiple providers in your toolkit. You will start with the best available, hit a refusal, then walk down your list, using slightly less intelligent but more willing/less refusing models each time.
Here is my currently recommended cascade and where you should get each model:
- Claude Defense Access. Yes, Opus 5.5 is by far the best AI model currently available, so it’s no surprise that if you can get it with fewer cyber refusals, it’s your best option. I consider Mythos/Fable an “orchestrator” model, not a “more intelligent” model, so the idea is to open a Mythos 5.2 session and say “hey claude go find all the security holes in my app, use subagents”. As of this week, Anthropic has relaxed a number of standards on this program and more people who were previously denied are getting access. My advice is keep trying until you get it.
- OpenAI Daybreak. Daybreak Blue is the tier you’ll want. Unfortunately, they only allow Sol to be used in this program, and Sol isn’t the best. Astra is not available via Daybreak Blue and “Red Team” access doesn’t seem to be easily obtainable (I don’t know anyone with it).
- GLM-5.3 Abliterated by abliteration.ai. This company is US based, backed by a16z and has a decent trust and safety page. I have used this one and it’s certainly nicer to talk to than most other open models. I have less experience with this model but I’m told it is considerably smarter than most other open models.
- Deepseek v4.1 Flash v1017. This is probably the most important model for you to get that you probably do not have currently. It’s very important that you specifically get v4.1 Flash 1017, and not an earlier October release of it. This model has zero cyber refusals in my experience, so it forms the “floor” of your cascade. It is so cheap that it’s basically free. You can buy it in a lot of different ways: I am mostly using Vercel Gateway. It is not available in any very trustworthy hyperscaler though (Google, Amazon, Azure), so you are taking a risk these days because you have to trust the inference provider is actually doing ZDR. (ZDR = Zero Data Retention: a contractual guarantee that the inference provider does not log or train on your prompts and source code.)ZDR = Zero Data Retention: a contractual guarantee that the inference provider does not log or train on your prompts and source code. It depends on your level of paranoia. Use via Vercel Gateway/Openrouter -> Use directly from Baseten or Fireworks -> Stand up your own GPUs for $60/hr on a hyperscaler. This is your “dumb”, “cheap” model (and it’s probably the most common adversary model hackers will be using).
60 minutes from CVE to Production #

rubywatch.speedshop.co
tracks how long Ruby installers, Docker images, and
platforms take to ship security releases.
I have been banging on about this one for a very long time. When I first started saying it people said I was crazy or unrealistic. They have stopped saying that.
You should automatically be scanning for new published vulnerabilities in your dependencies, using agents to assess risk of upgrade, and 99% of the time pushing an upgrade to production with no human intervention, aiming for 60 minutes from vuln published to deploy. This is possible and there are people out there achieving this. This will quickly become the standard.
This will also force you to improve a number of bottlenecks along the way: how fast can we run CI? What if our Docker image provider isn’t updated yet? (See my website.)
Human review adds nothing to this process except delay. This is the “software factory” in its purest form, and the first place you can build one that actually delivers value.
This is a great first test case for your company’s Infinite Agent Plane.
Building Your Own Eye of Sauron For Logs #
You should have an AI somewhere hooked up and reading every line of logs you can throw at it. At first this AI is probably going to be reading mostly noise and things it really doesn’t have to, but you can attenuate this signal over time.
Probably the number one thing you should be monitoring today is looking for segfaults, SIGABRT and unusual amounts of OOM or process restarts. I know that 99% of you probably don’t have this today. Ruby 4.0.10 is not the last RCE from memory overflow you will have to deal with. Most RCEs in C will require some amount of probing attempts, which will trigger segfaults and otherwise cause a certain degree of noise in your infrastructure. You should be watching for this now.
This field (SIEM) (SIEM = Security Information and Event Management (Datadog Cloud SIEM, Splunk, Panther, etc.) — centralized log alerting for security events.)SIEM = Security Information and Event Management (Datadog Cloud SIEM, Splunk, Panther, etc.) — centralized log alerting for security events. is well understood, but again, I’m somewhat skeptical of build vs buy here.
Building an Exploit Reproduction Lab #
As mentioned earlier, actual working reproduction exploits against your real application will greatly help you in prioritizing your security activities. To do that, agents basically need to be able to stand up a “production like” app on any random 4vCPU/8GB host you can find. Most apps cannot really do that today, mostly because of a smattering of backend services required to make it work. However, you will need this!
If there’s any reason an agent cannot get a “prod-like” copy of your app to demonstrate/develop reproductions against, you will be stuck evaluating hundreds of “potential” vulnerabilities with no idea how to prioritize.
Proactive Tactics #
Let’s get into how we can build our own Eye of Sauron so we can apply infinite elite attention to ourselves before someone else does.
Write a SECURITY.md #
This is something I did on Puma that really increased the quality of vulnerability reports I was getting and allowed me to quickly remove the ~75% that were irrelevant.
Write out your threat model. What you need to protect, what you trust, what is “out of scope” or the risks you accept. Put it in a SECURITY.md file right in the root of the repository, link it from AGENTS.md.
For an example, see Puma’s SECURITY.md. (From Puma’s SECURITY.md: ‘We don’t defend against someone who already controls: Puma’s config, command-line flags, environment variables, Gemfile, or load path; any code running inside Puma, including your app, Rack middleware, plugins, and hooks…’)From Puma’s SECURITY.md: ‘We don’t defend against someone who already controls: Puma’s config, command-line flags, environment variables, Gemfile, or load path; any code running inside Puma, including your app, Rack middleware, plugins, and hooks…’
Searching dependencies for vulnerabilities and risk #
Why wait for a vulnerability to be published?
If you have a dependency which has not published a security release in the last 3 months, I would be looking at that.
It seems to me you should be able to look through all your application’s dependencies and ask:
- Have there been security releases in the last 3 months?
- How accessible is this component?
- Does this component handle sensitive, important information or is it close to an important target in our threat model?
… and start to form a risk assessment of each dependency.
Then, simply apply Deepseek to every file in that dependency and start to try to produce vulnerabilities.
Cloudflare’s security audit skill is in my opinion overly complex and long, but it will work to get this job done.
You will obviously need an infinite agent plane to get this done, because it will take probably several weeks of agentic attention to properly inventory and assess everything.
Obviously, this one will require an Infinite Agent Plane.
Less Public Accessibility #
Pretty much any relevant exploit chain for you will depend on “is accessible via the public internet”. How much of that can you remove in your org? What can you move to VPN-only?
Not much else to say here, but I will say that patterns we used to accept in the past like Heroku’s databases being publicly internet-accessible (Standard Heroku Postgres exposes a public internet hostname protected only by credentials and TLS unless you’re on Private Spaces.)Standard Heroku Postgres exposes a public internet hostname protected only by credentials and TLS unless you’re on Private Spaces. will start to seem antiquated.
WAF #
Almost all of you already do this, but if you can’t put something on a VPN and it has to be publicly internet accessible, please put it behind a WAF of some kind.
- Cloudflare
- AWS WAF
… or whatever you have available. There aren’t really major differences in the WAF vendors. We’ve seen it with a number of these vulnerabilities now that these WAF vendors keep getting an advance heads-up from frontier labs. Part of the advantage of having a WAF is that you’re going to get pre-disclosure coverage against vulnerabilities that can be triggered on the network.
IP Allowlisting #
As a defense in depth measure, IP allowlisting of secrets is highly effective and is being supported by more and more providers.
Single Secret Store #
You have dozens of different places and workloads that have secrets.
You will want to stop spraying these secrets in plain text to every service you use and allowing them to store them.
Instead, most companies will probably land on an architecture where there is a single secret store. There are a lot of products here: HashiCorp Vault, AWS Secrets Manager, etc. Infisical and Doppler provide slightly more features and interesting architectures like “inject secrets via a proxy”.
More Secure Design #

mythos on the way to look at my dogshit 15 year old
code
Ultimately, a lot of what we “got away with” in the past re insecure design in our underlying software will have to be rearchitected.
Hot Cell, the new secure deployment architecture for ActiveStorage, is an excellent example.
Problem: You need dozens of different libraries to do various image processing tasks. They constantly have new vulnerabilities in them. You are fundamentally dealing with user uploaded binary content. What do you do? You put all that dangerous stuff in a tiny little box, like a bomb squad, and if something explodes, nobody gets hurt.
Lock Deepseek in The Gravity Machine #

You should run continuous, 24/7 penetration testing of your application.
In the anime series Dragon Ball, there is this thing called the “Gravity Machine”. It’s like a big dome, and inside the dome everything is 100x Earth’s gravity. The superheroes in the series, the Super Saiyans, go into the Gravity Machine so they can train extra-hard to defeat the villains.
Everybody is going to want to build their own cybersecurity Gravity Machine. Lock Deepseek inside, give them infinite tokens (you won’t be able to use them all, don’t worry), and say “produce reproducing exploits on this VM setup of our application, report anything you find to a smarter agent”.
As I mentioned earlier, one of the reasons this is so critical is that you, a non-cybersecurity expert, are not going to be able to triage and judge the risk of hundreds of vague defensive vulnerability reports that may or may not actually reproduce against your real application. The gravity machine is about actually proving reachability at scale.
Another reason to do this: in the LLMs, the “neurons” that are activated will be different depending on if a prompt is worded defensively versus offensively. Defensive-only approaches will miss things that an LLM who has been prompted to be an offensive red teamer will try.
You will want to write a
RULES.md
which gives the agents instructions about the “rules of
engagement” for this ongoing penetration test. You should
absolutely NOT COUNT on these rules being followed (they must
be enforced in the environment) but it will help you to stop
it from wasting tokens trying to do things that are outside
your threat model.
This will require an Infinite Agent Plane.
Tarpits #

You can’t stop yourself from getting attacked by AI agents, but you can slow them down when they try.
The classic approach that still works is “proof of work” which forces agents to do computation in order to access your site. Anubis seems popular.
The reason why this works is because an attacker is almost always using these terrible virtual machines with 1 vCPU from 10 years ago. Any amount of work that you can make it do to have to interact with your infrastructure can slow it down by 10 to 100x.
Cloudflare Turnstile and Bot Defense may be good products to consider if you’re already in the Cloudflare ecosystem.
Tracebit published some very good research about what works to tarpit AI agents. It’s pretty funny stuff like an S3 object of something juicy like “passwords.zip” but opening it just reveals another encrypted object, over and over and over like an infinite Russian doll. Of course, Tracebit will also sell you a tarpit for $1000/month.
You can remove proof of work for customers that you trust over time.
I’ve also seen cute tricks where you plant fake flag.txt files that tell a hacking agent “congratulations, you’ve won! Stop and report.”
Prepare for Post-Quantum #


We all got a little bit excited by Cloudflare CEO Matthew Prince’s Twitter vagueposting, which was accompanied by a joint statement from the NSA and most of the Mag-7.
I thought this announcement was very well analyzed by the
creator of
age
and maintainer of Go’s crypto stdlib,
Filippo Valsorda.
From a cryptography perspective, the gist seems to be that the AI labs have disclosed to the NSA and Big Tech that 256-bit elliptic curve cryptography is probably weaker than we thought. Not like “broken today”, but “probably doesn’t require a galactic scale of compute”.
I think it’s important to state plainly: This particular announcement is not a cause for panic or even to change your roadmaps for the next quarter or two. It only impacts a particular type of cryptography, which is just one of several in your business and app, and the information here is that “the timeline is shorter than we thought” rather than “it’s cracked today, you’re all pwnd”.
There are basically three main uses for cryptography in Rails and typical web applications:
- Encrypting data at rest. This is typically done with symmetric 256-bit algorithms like AES. This is stuff like ActiveRecord encrypted columns, bcrypt and your passwords, etc. These algorithms are almost always already post-quantum. Also, this is data at rest: a threat actor would have to get the data first, so, defense in depth is great but if they’ve dumped your database you have other problems.
-
Signing data on the wire. The NSA
disclosures this week do affect this: things like SSH keys,
federated login tokens (OIDC, OAuth, SAML), and the TLS
certs themselves. The crypto here is being used to say “I am
who I say I am”, rather than to keep a value secret. This
means that if the encryption is cracked 3 years from now, it
doesn’t matter, because this was about keeping a value from
being tampered with at the time. You’re not
vulnerable to an attack if this is decrypted at some point
in the future. While the affected algorithms are used in
this use case, you just have to update your algorithms “at
some point before they’re broken for real”, which
is probably still a ways away (as far as we know). In most
cases, the upgrades here will be out of your hands until
your upstream supports it (e.g., GitHub). If a customer or
auditor pushes you to get off 256-bit curves before true PQ
signing (
ML-DSA) is widely supported,RSA-3072andP-384are the NSA-approved stopgaps. - Encrypting data on the wire. This is the part everyone’s excited about. SSL is where you’re going to be exposed here, both in terms of the requests your app sends to others and requests that are sent to you. What are the secret values in there (passwords, credit card numbers, etc.)? The dastardly part about this, is that if this traffic is stored away on a hard drive today, it can be decrypted at any point in the future.
256-bit elliptic curve cryptography is used extensively in the process of encrypting data on the wire.
Here’s a couple of places the typical web application is going to be affected:
- You don’t use a CDN or hypercloud load balancer. Rare, but it happens. If you’re using Cloudflare, Heroku, etc., the SSL connection between you and your clients is out of your hands, and the load balancer has to do the right thing. Since the announcement dropped, you can bet they’re all doing that now. So, if you’re NOT using one of them, you need to make sure your Puma or nginx or HAProxy or whatever supports PQ key exchange. In practical terms, 99% of the time this is gonna mean “is the container running this proxy using OpenSSL 3.5+”.
- You’re using AWS ALB. AWS ALBs have this goofy SSL configuration default where, prior to like 2024, they didn’t have any post-quantum algorithms in the default set. ALB’s SSL config does not automatically update (unlike, say, a Cloudflare or Heroku), so you will need to audit this yourself. They still default to very old (2016) settings if you’re not explicit.
-
You are using
Cloudflare to your Origin
with Flexible or no SSL. If the “thing my customer’s browsers connect to” is not
“a load balancer in the same VPC as my app server”, you have
potential exposure on the backhaul from your
Cloudflare/other WAF or CDN -> your app server or load
balancer. You’ll need to audit your side of that connection,
and make sure that supports PQ. Lint the origin itself to
make sure it won’t fall back to a non-PQ algo.
(Quick 10-second check (requires OpenSSL 3.5+):
openssl s_client -connect yoursite.com:443 -tls1_3 -groups X25519MLKEM768— and test api/agent subdomains that bypass your CDN, too.)Quick 10-second check (requires OpenSSL 3.5+):openssl s_client -connect yoursite.com:443 -tls1_3 -groups X25519MLKEM768— and test api/agent subdomains that bypass your CDN, too.
The reality is that 99.9% of people’s PQ exposure is going to be regulatory and compliance. You are probably not important enough to have somebody keep all the traffic to your site on petabytes of hard drives in a vault for 4 years just in case crypto gets broken and they can hack your (4 year old!) secrets.
What is far more likely is that questions about your crypto inventory are going to start showing up in your enterprise customers’ security questionnaires, or in your SOC risk assessments.
Let’s get back to the idea of threat actors and “what do I have that’s worth stealing” - if somebody put all your traffic, unencrypted, on a hard drive and looked at it 2 to 4 years from now, what would they get that is valuable? Would it be worth it?
Conclusion #
I am not “worried” or really running around like the sky is falling. I do think the clock is ticking. Agentic attention is abundant and will only become more abundant over time. I believe that simply doing what you have been doing up to this point is not enough. I believe you will have to do something that feels like an overshoot today in order to be in the right place 6 months to a year from now.
On the bright side, I think “getting good at cybersecurity” means “getting good at agentic engineering in general”, and investments in an Infinite Agent Plane and “software factory workflows” will produce learnings and capabilities that can be used elsewhere in your organization.
Best of luck. Please do reach out with any questions or ways I can help you or your organization in this.
Appendix: Readiness Questionnaire #
Written by Fable 5.2.
This gives you two results: how exposed you are today, and how far up the ladder in this memo you have climbed. Answer for what is true in production right now, not for what is planned.
Part 1: How exposed are you today? #
Count one point for each yes.
- Do you hold any LLM inference key that has no hard spending limit?
- Can anyone with a credit card sign up and get a logged-in account on your product?
- Is any database, admin panel or internal tool reachable from the public internet?
- Does code that parses user uploads, such as images or documents, run on the same host as your application?
- Do production secrets sit in plaintext on developer laptops, in CI settings or in vendor dashboards?
- Did your last security upgrade take more than a day to reach production after the advisory was published?
-
Does any public endpoint (including APIs, agent endpoints,
or a Cloudflare-to-origin hop) terminate TLS without hybrid
post-quantum key exchange (
X25519MLKEM768)?
A score of 0 or 1 is low exposure, 2 or 3 is moderate, and 4 or more is high. Each point is a way in that the attackers described in this memo are already using.
Part 2: How far up are you? #
Your level is the highest one where you answered yes to every question, and to every question in the levels below it. If you can’t clear level 1, you are at level 0.
Level 1: You know what you are defending
- Can you name what an attacker would turn into cash first if they got into your systems?
- Can you list every secret you hold and every place a copy of it lives?
- Can you list everything you run that answers on the public internet?
- Do you have a cryptographic inventory covering TLS endpoints, container OpenSSL versions, certificates, and signing keys?
Level 2: You react at machine speed
- Does a fix for a newly published vulnerability in a dependency reach production the same day, with no human involved?
- Are you alerted when a production process segfaults, aborts or starts restarting more than usual?
- Do you have a model cascade that ends in a model which will write an exploit against your own app without refusing?
- Do your secrets live in one store and rotate without a human doing it?
Level 3: You can run agents unattended
- Can an agent run around the clock on infrastructure you control, with nobody’s laptop open?
- Do those agents run under a hard spending cap, with every run logged, and with no secret visible to them except their own identity?
- Can an agent stand up a production-like copy of your app on a single host without help?
- Can you turn a claimed vulnerability into a working reproduction against that copy?
Level 4: You attack yourself first
- Are agents searching your dependencies for vulnerabilities that nobody has published yet?
- Is something attacking a copy of your own app continuously and reporting what it finds?
- Does your riskiest code, such as parsers for user uploads, run where an exploit cannot reach your secrets or your database?
Reading your result #
Level 0 or 1 is the normal result today. This memo says that almost no company has an agent plane, and that 99% of its readers are not watching for segfaults.
Fix your yes answers in Part 1 first, because each one closes a way in that exists today. Then work on the lowest level you have not cleared.
Appendix: Agent Prompts #
Cash inventory
List everything in this codebase and its infrastructure config that an
attacker could sell, ransom or spend, such as inference keys, payment
credentials and customer data, ranked by how quickly each turns into cash.
For each item, give the file and line where you found it and say what stands
between it and an attacker on the public internet.
Secret map
Find every place a secret is stored or referenced in this repository, its CI
config and its deployment config, and tell me which vendors or services hold
a copy of each one. Flag every copy that is plaintext, never rotated or
shared between purposes, with file paths as evidence, and do not print any
secret's value.
Public surface
From our infrastructure code, DNS records and deployment config, list
everything we run that answers on the public internet, including databases,
admin panels, staging environments and forgotten subdomains. For each one,
say what authentication protects it and whether it could move behind a VPN,
and mark anything you could not verify.
Lab readiness
Stand up a production-like copy of this application on this machine using
only what is in the repository, with every backing service running locally.
Report each thing that blocked you or that you had to fake, in the order you
hit it, so we know what to fix before agents can develop exploit
reproductions here.
Dependency ranking
For every dependency in our lockfile, find out when it last shipped a
security release, how reachable it is from a request on the public internet,
and whether it handles secrets, user uploads or other sensitive data. Rank
them by which we should audit for unpublished vulnerabilities first, with
one line of reasoning each.
Crash watch
Read the last 24 hours of production logs and find every segfault, SIGABRT,
out-of-memory kill and unexpected process restart, grouped by service and
compared with a normal day. Tell me which ones look like someone probing for
a memory corruption bug and not an ordinary crash, and quote the log lines
that made you think so.
Post-quantum audit
Inventory every place this application and its infrastructure uses TLS,
certificates, JWTs, SSH keys, and encryption at rest. Test every public
domain, API or agent subdomain, and raw origin behind Cloudflare or a CDN
for TLS 1.3 X25519MLKEM768 support, check AWS ALB listener SSL policies
and container OpenSSL versions (3.5+ required for outbound PQ TLS), and
flag any legacy non-PQ fallback or Cloudflare Flexible SSL mode.
Want a faster website?
I'm Nate Berkopec (@nateberkopec). I write online about web performance from a full-stack developer's perspective. I primarily write about frontend performance and Ruby backends. If you liked this article and want to hear about the next one, click below. I don't spam - you'll receive about 1 email per week. It's all low-key, straight from me.
Speed is a feature.
We're a Ruby on Rails performance consultancy. We help you make your application faster and cut scaling costs.
Products from Speedshop
The Complete Guide to Rails Performance is a full-stack performance book that gives you the tools to make Ruby on Rails applications faster, more scalable, and simpler to maintain.
Learn more
More Posts
Organization for Transformative Works Performance Audit
A Rails performance audit report for the Organization for Transformative Works and Archive of Our Own.
Announcing the Rails Performance Apocrypha
I've written a new book, compiled from 4 years of my email newsletter.
We Made Puma Faster With Sleep Sort
Puma 5 is a huge major release for the project. It brings several new experimental performance features, along with tons of bugfixes and features. Let's talk about some of the most important ones.
The Practical Effects of the GVL on Scaling in Ruby
MRI Ruby's Global VM Lock: frequently mislabeled, misunderstood and maligned. Does the GVL mean that Ruby has no concurrency story or CaN'T sCaLe? To understand completely, we have to dig through Ruby's Virtual Machine, queueing theory and Amdahl's Law. Sounds simple, right?