On 4 June 2015, the security researcher Samy Kamkar released OpenSesame: a pink children's texting toy, reprogrammed to open old fixed-code garage doors far faster than brute force should allow. The hardware was a discontinued Mattel toy; the interesting part was a piece of discrete mathematics, the De Bruijn sequence, which reduced what should have been a 29-minute attack to about eight seconds.
Kamkar was already well known. In 2005, at 19, he released the Samy worm on MySpace, the first publicly released self-propagating cross-site scripting worm, which reached over a million profiles in about 20 hours and led to a felony guilty plea and three years' probation. He has since worked as a privacy and security researcher. This post explains what OpenSesame demonstrated and why it mattered, at the level of Kamkar's own public write-up and the Wired coverage, both linked at the end. It is an explanation of a disclosed weakness in obsolete hardware, not a how-to.
1. The Mattel IM-ME: A Pink Toy as a Research Tool.
The IM-ME, sold by Mattel under its Girl Tech brand, was a pink handheld texting toy that let children message each other wirelessly. It had a screen, a keyboard and a backlight, ran on batteries, and contained a Texas Instruments CC1110, a sub-GHz radio chip with a built-in microcontroller. Discontinued, it turned up second-hand for anywhere from about $12 to $100, and its low price and capable radio made it a favorite of radio hobbyists.
Kamkar did not discover the IM-ME as a research platform; he built on others' work. Reverse engineering of its display and keyboard, Travis Goodspeed's GoodFET programmer, and Michael Ossmann's spectrum-analyzer firmware and original "opensesame" transmitter had already turned the toy into a pocket radio tool. Kamkar credits all of them. His contribution was the attack technique the tool carried.
2. Fixed-Code Garage Doors: A Password That Never Changes.
Older garage door openers use a fixed code: a short binary value, often set with 8 to 12 physical dip switches, that the remote sends and the receiver checks. Because it never changes, it behaves like a password that is the same every time. Kamkar's own comparison is blunt: a 12-bit code is 212, or 4,096 possibilities, which he notes is easier to exhaust than guessing a two-character website password.
The fix is not a trick but a product category. Systems that use rolling codes, which change with every press (marketed as Security+, Intellicode or "hopping codes"), are not vulnerable to this attack. Kamkar's own advice is to replace any opener that advertises a fixed code with one that states it uses rolling codes.
3. The De Bruijn Sequence: Testing Many Codes at Once.
A De Bruijn sequence, named after the Dutch mathematician Nicolaas Govert de Bruijn, is a cyclic string that contains every possible substring of a given length exactly once. For a binary alphabet and length n, the whole sequence is only 2n symbols long, yet it contains all 2n possible windows of that length as overlapping substrings.
That property is what OpenSesame exploits. Instead of sending each candidate code separately, with a full code's worth of bits for each, a single De Bruijn sequence lets every overlapping window serve as another candidate. The key insight Kamkar describes is that many fixed-code receivers read their input through a shift register: they shift in one new bit at a time and keep comparing, rather than clearing and starting fresh after each full code. Against such a receiver, one continuous stream tests a new code with every single bit, not every twelve.
4. From 29 Minutes to 8 Seconds.
Kamkar lays out the arithmetic in his write-up. A naive brute force over all 8- to 12-bit codes, with each code sent five times for reliability and a wait between codes, comes to about 1,771 seconds, roughly 29 minutes. Two simple savings come first: sending each code once instead of five times divides the time by five (to about six minutes), and removing the wait between codes halves it again (to about three minutes).
The De Bruijn sequence is the large saving. Because every overlapping window is a new candidate and the shift-register receiver never resets between attempts, the whole 8-to-12-bit space can be covered in a stream of only a few thousand bits. By Kamkar's figures that is about 8.2 seconds, more than twenty times faster than even the optimized brute force without it. The point is not the exact number but the shape of it: a mathematical insight, not faster hardware, is what collapses the attack.
| Approach | Time to cover 8–12 bit codes |
|---|---|
| Naive brute force (5 repeats, with waits) | ~1,771 s (~29 min) |
| Send each code once | ~354 s (~6 min) |
| Also remove the inter-code wait | ~177 s (~3 min) |
| De Bruijn sequence over a shift register | ~8.2 s |
5. The Wired Story: A Toy on the Front Page.
Kamkar presented OpenSesame publicly, and Wired covered it under the headline "This Hacked Kids' Toy Opens Garage Doors in Seconds." The pink toy was the hook; the lesson was that a whole class of consumer access devices still shipping relied on a design that had been insecure for years.
Kamkar has a habit of making security research legible this way, including a YouTube series in which he explains his projects. The showmanship is part of the method: a vivid demonstration reaches manufacturers and the public in a way a conference paper does not.
6. The CC1110: Why the Radio Mattered.
The CC1110 is the reason the toy was usable at all. It is a sub-GHz radio paired with an 8051-based microcontroller, able to transmit on the bands that garage remotes use and to be programmed with custom firmware. A device that a child used to send text messages happened to contain exactly the radio needed to speak a garage remote's language.
That is the broader point the chip illustrates. Capable, programmable radios have become cheap and are embedded in ordinary products, so the hardware barrier to radio research has largely disappeared. What protects a wireless device now is its protocol, not the scarcity of equipment to talk to it.
7. Responsible Disclosure: Releasing Bricked Code.
Kamkar published the OpenSesame source code, but deliberately "bricked" it: as he states on the project page, the released code almost works but not quite, enough to educate, not enough to hand a working break-in tool to someone who could not already build one. Someone expert in RF and microcontrollers could repair it, but such a person did not need his help in the first place.
It is a middle path between full silence and full weaponization. The design flaw and the mathematics are explained openly, so defenders and manufacturers can understand and act, while the convenient, ready-to-run artifact is withheld. His prevention advice, to move to rolling-code systems, is published alongside it.
8. The Real Lesson: Obscurity Is Not Security.
Fixed-code garage openers were never really secret; their weakness was a tiny key space and a receiver that read input in a way the designers did not think an attacker would exploit. OpenSesame showed both at once: the codes were few enough to exhaust, and the shift-register behavior let a clever sequence exhaust them almost instantly.
The general lesson applies well beyond garages, to the many wireless locks, remotes and entry systems built on proprietary protocols that are assumed safe because they are undocumented. A protocol's details can be recovered, and once recovered, a weak design has nothing left to fall back on. Security has to come from the mechanism (rolling codes, real cryptographic authentication), not from hoping no one looks.
Conclusion
OpenSesame is memorable for the pink toy, but its substance is the De Bruijn sequence: a decades-old result in combinatorics that turned a half-hour brute force into seconds against hardware that was still being sold. Kamkar's handling of it, a public explanation, a deliberately broken release, and clear advice to upgrade, is a model of disclosure that informs defenders without shipping an attack.
The fix was available the whole time: rolling-code openers already existed. The value of the demonstration was in making it impossible for manufacturers and owners to keep treating a fixed code as good enough.