Appearance
Specs Are the Hard Part: TSA SQL Injection, Pac-Man's Level 256, and a Leaked AirPods Protocol
The known crewmember lane had a login form
The Known Crewmember lane at US airports lets pilots and flight attendants walk past the scanner on a personal trip. A TSA officer scans a badge or types an employee number, a laptop asks the airline whether that person still works there, and a yes puts them in the sterile area with no screening at all. A parallel system called CASS runs the same check for cockpit jumpseats.
Ian Carroll and Sam Curry wanted to know how that check works when 77 airlines each keep employee records in their own system. The answer runs through ARINC, a Collins Aerospace subsidiary that routes requests like CrewVerificationRequest between the TSA and each carrier. Big airlines run their own endpoint. Small ones buy one.
One of those vendors was FlyCASS, which sold small carriers a per-airline web login. Carroll and Curry put a single quote in the username field and got a MySQL error back. That error is the vulnerability in one line: the username was being pasted straight into the SQL string. sqlmap confirmed it. A username of ' or '1'='1 with the password ') OR MD5('1')=MD5('1 logged them in as the administrator of Air Transport International, because the injected parenthesis closed off the password comparison and left MD5('1')=MD5('1') sitting there as a tautology the database is happy to evaluate.
From admin, adding an employee was one form. No second approval, no callback to the airline. They created an employee named Test TestOnly, uploaded a photo of their choosing, and the system reported the account as authorized for both KCM and CASS.
Screening bypass, from a login page to a jumpseat, through a string concatenation.
One byte, a maze, and an edge math doesn't have
In pure math every number has a next one. In code, a single byte holds 256 values, 0 through 255, and adding 1 to 255 gives you 0.
Pac-Man shipped in 1980 counting levels in one byte, starting from zero. Level 256 gets stored as 255. The routine that draws the fruit at the bottom of the screen then adds 1 to that value, expecting a small number, and gets 0. It's supposed to draw at most seven pieces. Handed a 0, it tries to draw 256, and the right half of the maze fills with garbage. Players call it the kill screen. Don Hodges traced it line by line and wrote a patch decades later.
The counter was right. The routine that read it wasn't. A byte-sized level counter is a bet that no human will play that long, and in 1980 that was a good bet.
Vitalik Buterin makes the connection in a post on formal verification this year: a program is itself a mathematical object, so proving what a program does is proving a theorem. That should hand code math's certainty. Except code runs on fixed-width integers, and fixed-width integers are where the theorem stops matching the hardware.
Proofs answer the question you asked
Testing is spot checks. You throw inputs at a function and watch what breaks. A green suite tells you those inputs produced the right outputs. It says nothing about the input nobody wrote down.
A formal proof is different in kind. You state a property ("this counter never exceeds 255"), and a checker verifies it for every possible input. The cost has always been human: writing the proof is slow, expert work, which is why it lived in chips and crypto libraries and nowhere else.
| Method | What a pass tells you | What it can't tell you |
|---|---|---|
| Example tests | These inputs produced the right output | Anything about inputs nobody wrote |
| Property tests | Hundreds of generated inputs satisfy the rule | Whether the rule is the right one |
| Formal proof | Every input satisfies the stated property | Whether the stated property is what you wanted |
Quick Take: A proof only covers the rules somebody wrote down, and every story in this piece is a case where the rule, or the person holding it, was wrong.
A Stanford researcher, Chuyue Sun, and her colleagues built an AI tool that finished a verification project in under half a day for under $500. WIRED reports the same project took three experts five months. Sun has since joined &Truth, a startup building on Lean, an open-source proof assistant.
I'd hold that comparison loosely. Those experts probably spent a chunk of those five months working out what "correct" even meant for that code. If the AI tool inherited their definitions, the two jobs aren't the same size.
Which lands on the actual hard problem. Buterin calls formal verification "not a panacea" and names the biggest risk as the spec itself. A proof checker will happily confirm that your bridge holds exactly the weight you told it to check. It has no opinion on whether that's the right weight.
The history is blunter than that. Russell and Whitehead needed several hundred pages of Principia Mathematica to reach proposition ✱54.43, which is 1 + 1 = 2, because they had to define "1", "addition", and "2" first with no numbers allowed at the start. Then Gödel showed in 1931 that any consistent rulebook strong enough for basic arithmetic contains statements it can neither prove nor disprove. The certainty is real. It's conditional on rules people picked, and it doesn't cover everything.
The cost curve moved faster than the trust model
A 300x gap in elapsed time changes who can afford a proof. It doesn't change what a proof means. The proof checker is software too, written by someone, and it can have its own bugs. The field's answer is to keep the checker tiny. Lean advertises a small trusted kernel, the core that validates every proof, small enough for people to read closely. The trust gets concentrated and shrunk. It doesn't disappear.
The projects doing this for real seem to know it. Signal Shot, an effort to prove Signal's encryption down to the actual Rust code, brings in domain experts to check the key definitions before the heavy proving starts. Even the moonshot begins with a person asking whether the question is correct.
One cost comparison, one caveat. Under half a day and under $500 for the AI-assisted run. Five months for three experts on the same code. Roughly 150 days against 0.5, and the experts likely spent part of that time deciding what "correct" meant in the first place.
The vendor patched it. The agency denied it.
Carroll and Curry disclosed to ARINC and the FAA on April 23, 2024, then to DHS through CISA the next day. By May 7, DHS confirmed FlyCASS had been disconnected from KCM and CASS. That's a 14-day turnaround on a vulnerability that let anyone with a browser skip airport screening.
Then the story gets worse. The TSA press office reportedly said the bug couldn't be used because the TSA vets people before issuing a KCM barcode. A barcode isn't required at the lane, since the officer can type an employee ID by hand. After being corrected, the TSA deleted the page describing manual entry and stopped replying.
Patching the vendor is step one. Keeping the public record straight is step two, and step two failed. If you work somewhere that treats disclosure as a comms problem rather than an engineering one, that pattern will look familiar.
Reverse engineering a protocol nobody published
AirPods talk to Apple devices over AACP and ATT, two Bluetooth profiles with no public spec. Kavish Devar's LibrePods implements both so the hardware works on Linux and Android: noise control modes, ear detection, battery reporting, conversational awareness.
He reverse engineered the protocol himself before a Wireshark dissector existed, then used Nojus's dissector for later features. That ordering matters. The dissector documents what someone already worked out by hand.
| Feature | Linux | Android |
|---|---|---|
| Listening mode switching | Works | Works |
| Ear detection | Works | Works |
| Battery status | Works | Works |
| Conversational awareness | Works | Works |
| Head gestures | Won't be implemented | Works, AI-generated |
| Hearing aid setup | Not yet | Works |
| Transparency customization | Not yet | Works |
| Bluetooth multipoint (2 devices) | Neither | Neither |
Several features sit behind a vendor ID spoof. On Linux you add DeviceID = bluetooth:004C:0000:0000 to /etc/bluetooth/main.conf. On Android it's an "act as Apple device" toggle that requires Xposed and the LibrePods module. That toggle is why half those rows carry a warning: you're telling every nearby device you're Apple hardware, and the pairing behavior of everything else on the bus changes with it.
The project's own notes are candid about where AI fit. Head gestures, the offset setup around r2 and the Xposed module, and the log collector were AI-generated. The background service, the AACP and ATT manager classes, and the UI were written by hand. Protocol work punishes guessing, so the split makes sense: AI handled the plumbing around the RE, not the RE.
What a 507-file security dataset actually gives you
The Vyber07 cyber-security dataset on Hugging Face is billed as a PhD-level knowledge base for training security assistants. 507 files, 30+ domain folders, Apache 2.0, released in ShareGPT, instruction/IO, and reference formats. The metadata schema is the useful part: each record can carry attack_types, defense_types, and tools, which makes filtering for training mixtures tractable.
Coverage runs wide. MITRE ATT&CK's 200+ techniques and 400+ sub-techniques, all 31 PortSwigger topics, four OWASP Top 10 versions, CIS Controls v8's 153 safeguards, NIST CSF's 108 subcategories, plus dedicated folders for Thread/OpenThread, blockchain, container escape, and LLM attacks. If you're building a detection-engineering assistant, 1,500+ HackTheBox labs and the Sigma/YARA/Suricata rule examples are a reasonable starting corpus.
Two numbers on the same page don't agree. The overview says 16 GB. The statistics table says roughly 95 GB. Same 507 files, so one of them is wrong by a factor of six, and 394 of those files are valid JSON.
That matters more than it sounds. A dataset that's sloppy about the one number a reader can check in two seconds invites the same question about everything else: which ATT&CK version, which OWASP release, whether the CVEs were refreshed this year, and whether the Apache 2.0 license actually covers text lifted from PortSwigger and HackTheBox. None of that is answered on the page.
What trips people up
Pasting user input into a query and trusting a WAF to catch it. The TSA case had a login form with zero second gates, and the tautology payload needs no special tooling. Parameterize the query and treat any string concatenation in a login path as a bug, not a style issue.
Reading a green test suite as a specification. Property tests generate hundreds of inputs and still only test the rule you wrote. If you can't state the property in one sentence, you don't have one yet.
Picking an integer width without thinking about what happens at the boundary. Level counters, retry counters, sequence numbers, page offsets. Check before you add, or use a type that can't wrap.
Trusting dataset size claims before sampling. Open twenty JSON files at random and diff the metadata against the source it cites. On the Vyber07 corpus, start with the file count and byte size, because they already disagree.
Spoofing a vendor ID to unlock features and then forgetting you did it. Your
main.confchange is global, it persists, and it changes how every other device pairs with you. Keep a stock config to fall back on.
One Thing to Remember
A proof, a parameterized query, and a reverse-engineered protocol all fail the same way: silently, on the input nobody considered. More confidence in the tool doesn't help. Writing down what you meant, in a form a machine or a stranger can check, is the part that does.
The Bottom Line
If you own any login path that builds SQL by string concatenation, including a vendor's admin panel you inherited, fix it before you write another test. The TSA chain broke on a single quote and an always-true comparison, and 14 days from report to disconnect is the best case.
If you're letting an AI write code you won't read line by line, spend the budget on the spec instead of the test count. Pick one boundary (auth, a counter, a state machine), write the property you want to hold for all inputs, and prove that. A proof of the wrong property is a very expensive comment.
If you're evaluating the Vyber07 dataset or any large security corpus for fine-tuning, sample twenty files and reconcile the size and source claims before you rent GPUs. The 16 GB versus 95 GB gap is the cheapest audit you'll ever run, and it tells you how much of the rest was copied without checking.