Approaching security as risks accelerate.
As is often the case recently, it’s been an interesting week on security with the NSA’s advisory, rampant speculation on Twitter, and the excellent writeup from Filippo Valsorda. Behind this specific issue, though, is an even more important theme: the rate of security findings is going to continue accelerating over the next several years, and every engineering organization has to figure out a strategy for navigating that.
With the hope that it will be useful, this is my high-level summary of the strategy that we’re taking at Imprint.
Diagnosis: what’s changed?
Before solving a problem, you have to diagnose what’s going wrong. My diagnosis of the current situation is:
Attackers are accelerating, getting more sophisticated, and getting cheaper. Since the Eternal September of last year’s winter break when models finally crossed a threshold of being really, really effective at software tasks, they’ve continued to both get better and get cheaper. Combined with the rise of abliterated models, that means that surprisingly effective attacks are available to anyone who wants them and has even a very modest amount of funds.
However fast these attackers are today, we should expect them to be multiple times faster every year for at least the next few years.
Attackers can and do search further downstream because the highest-value targets are already under so much pressure. You may be a low-value target, and everyone is a low-value target compared to someone else, but the highest-value targets are already under so much attack volume that it’s surprisingly difficult to attack them in a novel way. The reduction of cost means the highest-value targets are even less interesting for the incremental attacker, and lower-value targets are coming under more load as well.
The mathematics behind “best-in-class defenses” is shifting. Many of the techniques for securing software are shifting. They are not shifting overnight, but it seems likely that we will have to rework the algorithms defending our software multiple times over the next few years as advances in mathematics accelerate.
The majority of defenders have access to more capital and context than attackers. Even though the attacks are getting much cheaper, defenders can benefit equally from every advantage, and only have to defend one company versus having to scan an infinite number of targets. Defenders generally have substantially more resources than any attacker would (perhaps excluding nation-state actors), and critically have access to the full context of their environment to identify and prevent attacks.
Capabilities to identify vulnerabilities are substantially improved. With a combination of vendors (e.g. Wiz, Panther, Claude Security, etc.), you can get an excellent stream of potential issues flowing in to evaluate. These tools are increasingly a combination of what’s always worked (e.g. static analysis, monitoring suspicious patterns in SIEM) and what has newly worked over the past 12 months (e.g. excellent foundation models).
Designing out categories of weaknesses is vastly easier than it was even a year ago. This one is a bit counter-intuitive, but my experience is that it’s conceptually easier and faster to design out entire categories of problems than to solve the full volume of one-offs. I’ve added a Designing out categories header below to make this argument in more detail.
Throughout this piece, when I talk about “designing categories” out, I’m specifically referring to John Ousterhout’s idea of “defining errors out of existence” that he explores in A Philosophy of Software Design.
Policy & Operations: what to do about it?
The above issues in the diagnosis are intimidating. However, I believe the best approach to addressing them is both fairly compelling and accessible to even very modestly funded companies. There’s no way to solve security; even the very best security companies will be exposed to breaches over time, but I think this is an effective combination of policy and operations to address our collective circumstances:
Standardize on highly funded, security-minded vendors. Access to information about vulnerabilities is being directed to a small number of highly visible companies. If you’re not in one, you largely don’t have access to accurate information about security risks. Standardize on vendors with strong access to the latest findings: they are likely to have fixed particularly serious issues before you are aware of the findings.
There are legitimate gripes about whether this is a good way for things to be working, but it’s not particularly clear what an effective alternative to the status quo looks like, and strategy’s goal is to protect our company, not to preserve fair competition in the market.
Ensure your harness has comprehensive access to context about your setup. At one point, our Cloudflare configuration was not managed via Terraform. It was, in some ways, more convenient that way. However, it meant that static analysis made assumptions about how Cloudflare’s setup interacted with our backend code. Assumptions are the enemy, generating both false findings and missing gaps. We moved Cloudflare into Terraform, and ensured that our Terraform is equally available to our security scanners along with our backend code, clients (web, iOS, Android), our security scanner itself, and other relevant details.
The combination of static analysis along with a frontier-class foundation model (e.g. Claude Mythos) is extremely valuable and works extremely well. However, it only works if you have set up your systems to make the entirety of the relevant context available to it. If not, attackers will have more context about your software than you do via inspection, and that is where weaknesses emerge.
Automate detection, triaging, and ticketing. Have findings from your various suspicious pattern detection, automated attacking tools, security findings, and package dependency updates flow automatically–with zero human hands involved–into a centralized bucket of issues, enriched with as much relevant context as possible. Handle reconciling new findings into existing issues here.
Automate initial resolution in a centralized harness. I’ve previously discussed our centralized harness, and that harness is a load-bearing part of our strategy here. As new issues are identified, immediately kick off resolution of those issues. Now when they reach a human, there is a proposed solution. Sometimes that solution is good enough to merge after reviewing it. Sometimes it’s misguided. In either case, you’re getting a fully-formed view on the problem and at least one option for addressing it.
Automate clustering of problems into categories. Every week, have an automated process run to analyze the new findings, and look at the known categories of issues. Automatically enrich the known categories with new findings, and automatically create new clusters with the related issues. Automatically suggest categories of solutions that might support “designing out.”
Assign clusters to experienced engineers to design out. For each cluster of problems, assign it to an experienced engineer to reason about how to close the gap permanently by making it effectively impossible to occur in your software. The next section will go into how to do this in more detail, but here let’s focus on the why.
You can, sort of, solve one-offs by simply fixing them very quickly, but that still means you have these issues showing up in your software. If they show up, that’s a vulnerability. Then you can argue that we should be using automated code-review scanners to identify and prevent those issues in code review. I think that’s true-ish, but I don’t find it true in practice for a couple reasons. First, code review is inefficient: giving instructions is the slowest and least reliable way of preventing problems versus adding automated lints that are very quick and deterministic, so it’s quite easy for a code review to miss a particular problem, especially if you provide enough of them. This problem applies equally to non-deterministic approaches to solving this in the harness’ software development loop before code review. (If you say, let’s use deterministic ways to provide feedback, then I would say that we’re fully aligned: that is exactly what I mean by designing out.)
Second, repurposing code review to introduce a wide variety of constraints tends to drive down cohesion of changes in a way that reduces quality over time. You’re almost always better off solving the categorical problem in one set of pull requests, and then adding the new functionality in a distinct pull request. Automated code review mechanisms almost always couple both concepts into a single change. You can make the argument that your code review should still be providing this feedback, and then the harness should be taking the feedback to solve the categorical problem and then solve the problem it’s actually focused on. I think directionally that’s right, but usually solving the category is sufficiently interesting that it’s a place where you really do want a human involved.
Weekly review of the security operating system. Once you have all the above, perform a weekly deep-dive with the folks working on security looking at how the findings, resolutions, and categorical fixes are flowing through the system. These systems can get bottlenecked in so many places, especially early on. You have to keep reviewing the pipelines and triaging fixes.
If you adopt these mechanisms, I think you’ll find yourself in a good place to keep accelerating as changes come. Most importantly, as new categories of problems come up, e.g. moving to post-quantum encryption, that is just a new category of problem to fix.
Designing out categories of vulnerabilities
Alright, so as the final part of this strategy, it’s important to align on what it means to design out a category of
vulnerabilities. As an example, I’ll use a perennial favorite: inadvertently logging sensitive fields. This is a category
of problem I’ve been dealing with my entire career. I remember once at Stripe in ~2017 arguing that we needed to move to an approach
where every single sensitive value was stored in a specific type (e.g. string.SSN and string.PAN) that every logger knew how
to handle. That made sense–everyone agreed we should–but who was going to do that massive project?
Well, things are different in 2026: I did exactly this project myself at Imprint as a side project over the course of two weeks. It was a good chunk of work, but now we have complete visibility into the full lifecycle of every sensitive value through our codebase: that is what I mean by designing a category out of existence.
My approach to this project was:
- As our automated findings improved and were ticketed, it became clear that one category was lack of complete lifecycle control over sensitive values in our codebase. For example, if a sensitive value was later added to an object, it was possible for that value to be emitted into a log.
- I worked a handful of one-off findings with Claude to make sure I really understood the problem as it existed in our codebase. This can feel unnecessary, but I think it’s so easy to misunderstand the underlying problem if you don’t dig into a few concrete examples quite deeply. Solving the wrong problem is a great way to waste time.
- Brainstorm with Claude how we could wholly eliminate this category of problem. This largely came down to:
- Banning all functions and logging verbs (e.g.
%v) that allowed printed objects, moving all existing usage to an exception comment - Adding specific types for each type of sensitive field, which log as expected depending on their type,
and providing a mix of strategies depending on the type. For example, most of these write to logs as
[REDACTED], but some write with a few pieces of data, e.g.[REDACTED] XXX-1234. Less sensitive types offer a.Digestwhich provides a value that’s stable within an environment using a shared secret within that environment
- Banning all functions and logging verbs (e.g.
- Orchestrate implementing those capabilities, the initial comment-exceptions of existing cases, and then the slice-by-slice migration of the entire codebase such that all exceptions were removed. This took fewer than 200 pull requests to fully implement: some of them were large, and they were sliced based on what would minimize merge conflicts and maximize reviewability for the areas that had felt risky, mostly regarding where a field might be used downstream in data pipelines.
This was only possible because our codebase is so highly visible to our harnesses, and because our central harness is highly usable. For example, I must have had 100+ merge conflicts across this project, but I didn’t even think about any of them; they just automatically got fixed within the centralized harness without me being aware they had occurred.
I don’t mean to imply that this was easy; it was a lot of work that required a good amount of thinking, but now our codebase has total control over what is used and logged, and we can statically enforce claims about exactly how each kind of sensitive data is used. Our code review doesn’t even have to think about logging sensitive data accidentally, because that category of error cannot be represented in our codebase.