Security Resilience

Defensive research · negative result

We tested decoy patches. They don't work.

Last updated: 30 November 2026 13:31 UTC

In the Defenders' playbook I listed fake security fixes as one of the uncomfortable moves a software vendor might try. We spent five weeks building and testing the idea, in four different forms. None of them did the job. Here is what we tried, what happened, and what I now think vendors should do instead.

Where this started

Two earlier articles set this up.

In How will attackers react? I argued that once AI tools flood the world with newly found bugs, attackers will lean harder on a cheap, reliable trick: wait for the vendor to ship a fix, compare the new version with the old one, and read the difference. The fix tells you where the bug was. Customers take weeks or months to install updates, so the attacker has a window in which the fix is public and most machines are still exposed.

In the Defenders' playbook I asked what vendors should do about it. Among the unorthodox options were "synthetic patch noise" and "patch obfuscation": make the fix harder to find by surrounding it with changes that look like fixes but aren't. I also listed an open question: how quickly would attackers learn to spot decoy patches?

Then in The patch-obfuscation crossover I did the arithmetic. Because the number of fixes is rising seven to twelve times, a vendor would need to make each fix about nine times harder to locate just to stay level.

So the target was clear. Could decoys make an attacker's job nine times harder?

How we tested

We built the decoys and then handed them to readers who did not know what we were up to.

Each reader was given only the difference between two versions of a program and asked a plain question, such as "which change is the security fix?" or "is there something here you could attack?" Nothing mentioned decoys. We wrote down what we expected before each run, so we could not adjust the story afterwards.

One honest caveat up front: the readers were AI models, not people. We ran over 1,100 of these blind readings. Two different AI models agreed closely with each other, but no human analyst has been tested yet.

We tested four kinds of decoy.

1. Fake fixes shipped next to a real one

This is the original idea. Ship the real fix with several look-alikes and make the attacker check each one.

There is a rule you cannot break: a fake fix must not change what the software does. A decoy that breaks a customer's system is worse than the bug.

That rule is what sinks the idea. A change that does nothing can be seen to do nothing. Readers dismissed the fakes in a sentence and went straight to the real fix. They found it in essentially every run.

What we measuredExpectedFound
Extra attacker effort across a series of releases21 times2.8 times
Same decoys on real open-source fixessimilar1.03 times, which is nothing
Target from the crossover article9 timesnever approached
HOW MUCH HARDER THE ATTACKER'S JOB BECAME needed to break even 9× (crossover article) fakes, our own test code 2.8× fix inside a tidy-up, real code 1.3× fakes, real code 1.03× no decoys at all 1× dotted line = no change. Every measured bar is far short of the dashed target.
Figure 1. The bar to clear was nine times. Nothing we measured came close, and on real code the fakes did nothing at all.

Adding more fakes made things worse. A row of similar fakes reads as a group, and the real fix is the one that doesn't belong.

One thing did help a little. Tucking the fix inside an ordinary tidy-up of the same code raised attacker effort by about a third on real code. Vendors already do this, and it needs no decoy machinery. Its limit is the size of the fix itself. Out of 140 added lines that did not touch the fix, readers bothered to look at none.

We also asked whether such changes would get past a code reviewer. They did, until the reviewer asked the author to explain the extra lines. When an honest explanation was attached, approval went from every reviewer to none.

2. Fake bugs

If fake fixes don't work, what about fake bugs? Ship code that is secure but looks like it has a hole, and let attackers waste time trying to break in.

We built one. Two of five readers said it was exploitable, and four of five said it was worth their time. That looked like progress.

It wasn't. The decoy looked dangerous because it was dangerous. In trying to write code that only appeared broken, we had written code with a real, subtle flaw. Worse, we had written a test to confirm the code was safe, and the test passed. One of the blind readers described a working attack that our test had missed.

Code that looks exploitable and code that is exploitable turned out to be very nearly the same thing.

3. Suspicious-looking new code

A milder version: add new, safe code that merely looks like a tempting place to dig.

No reader thought it was exploitable. No reader thought it was worth much time. Safe code read as boring.

4. A fake fix for a fake bug

The last idea combines the others. Ship the suspicious-looking code first. Later, ship a "fix" for it, so that attackers believe an older version had a hole and go hunting for it.

We compared this with real fixes for real bugs.

What the reader was shownReaders who said the old version could be attacked
Real fix for an obvious bug5 of 5
Real fix for a subtle bug5 of 5
Fake fix for a fake bug0 of 5
A cosmetic change0 of 5

Every reader was highly confident. An attacker's job is to confirm that the old version can actually be attacked. The moment they check, the fake bug evaporates.

"IS THERE SOMETHING HERE TO ATTACK?" "COULD THE OLD VERSION BE ATTACKED?" real bug, obvious 5 of 5 real bug, subtle 5 of 5 our fake bug 2 of 5 ↑ it was a real bug suspicious-looking code 0 of 5 harmless change 0 of 5 real fix, obvious bug 5 of 5 real fix, subtle bug 5 of 5 fake fix for a fake bug 0 of 5 cosmetic change 0 of 5 each circle is one blind reader; filled = said yes. Readers said yes only where a real bug existed.
Figure 2. Readers said "yes, I can attack this" only where a real bug existed. The one decoy that drew any interest was the one that turned out to be a real bug.

Using all of it, release after release

Maybe decoys add up over time. We looked at that too.

Against an attacker who compares versions by eye, decoys add a modest, fixed amount of work, and then the effect levels off. Past that point the vendor's own quiet fixes go unnoticed as well, by customers as much as by attackers.

Against a better-equipped attacker, decoys do nothing. Someone who already has a working test for a bug can find which release fixed it the way programmers track down any regression: test the middle version, then halve the range, and repeat. Across a thousand releases that takes ten tests. It takes ten tests with no decoys and ten tests with sixty-four decoys in every release, because a decoy that changes nothing cannot change a test result.

TESTS NEEDED TO FIND THE FIX AMONG 1,024 RELEASES 0 decoys per release 10 tests 1 decoy per release 10 tests 8 decoys per release 10 tests 64 decoys per release 10 tests an attacker with a working test halves the range each time. A decoy that changes nothing cannot change a test result.
Figure 3. Decoys are invisible to an attacker who can test for the bug. The count stays at ten however many decoys are added.

And there is a cost. Our own experience in section 2 shows that code built to look vulnerable tends to be vulnerable. Ship enough decoys over enough releases and some of them will be real holes.

Why it fails every time

All four results come down to one sentence.

A decoy that is safe to ship has nothing in it to attack, and "nothing to attack" is exactly what an attacker checks for.

To be safe, a decoy must change nothing that matters. To be convincing, it must look like it changes something that matters. A careful reader can tell which is true. We never found a decoy that was both safe and convincing, and the one time we thought we had, it was not safe.

WHERE EVERY DECOY WE BUILT ENDED UP SAFE TO SHIP changes nothing that matters fake fixes suspicious-looking code fake fix for a fake bug readers: "nothing here" CONVINCING something really can be attacked real bugs our 'fake' bug readers: "I can attack this" no overlap nothing we built was both
Figure 4. Safe and convincing turned out to be two separate groups. Everything we built landed in one or the other.

What vendors should do instead

This revises the Defenders' playbook. I would now strike synthetic patch noise and decoy fixes from the list of moves worth evaluating. The parts of the playbook that survive are the plain ones.

What we don't know

Answering the playbook's open question: attackers do not need time to learn to spot decoy patches. A careful reader spots them on first sight, for the same reason they are safe to ship.

Why publish a failure

The idea did not work. I am sharing it because failed experiments rarely get written up, and the next person who thinks about decoy patches should know what has already been tried.