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 measured | Expected | Found |
|---|---|---|
| Extra attacker effort across a series of releases | 21 times | 2.8 times |
| Same decoys on real open-source fixes | similar | 1.03 times, which is nothing |
| Target from the crossover article | 9 times | never approached |
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 shown | Readers who said the old version could be attacked |
|---|---|
| Real fix for an obvious bug | 5 of 5 |
| Real fix for a subtle bug | 5 of 5 |
| Fake fix for a fake bug | 0 of 5 |
| A cosmetic change | 0 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.
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.
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.
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.
- Shorten the window. The attacker's advantage is the time between the fix shipping and customers installing it. Faster, safer, more automatic updates attack the real problem. This was the playbook's main recommendation and it still is.
- Ship fixes inside ordinary maintenance. It gives a small benefit, costs nothing, and requires no deception.
- Say less about which releases matter. In our first round of tests, the effect that held up best was not hiding the fix but declining to point at it. This has real costs for customers who need to prioritise, so it is a trade-off and not a free win.
- Don't build decoys. The benefit is small, it vanishes against a capable attacker, and the attempt can add real bugs.
What we don't know
- No human analysts have been tested. This is the biggest gap.
- The fake-bug and fake-fix tests used one small example program and one kind of weakness.
- We know some decoys turn out to be real bugs. We have not measured how many.
- There is a related idea we did not test: a deliberate, monitored trap whose purpose is to detect an intruder, not to slow one down. That is a different goal with its own risks.
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.