Reversing MD5 Hash Function from 2500-Layer Neural Network in Jane Street CTF Puzzle
A Jane Street puzzle released in February last year presented participants with a complete PyTorch model in pickle format containing roughly 2500 linear layers. The model, stored in model.pt, produced an output of 0 for almost every input, including the example strings “vegetable dog”. The challenge required discovering an input that would make the network return a non-zero value without relying on gradient descent or exhaustive search.
Initial inspection of the output layers
Participant Alex began by examining the final two linear layers. The last layer was a 48×1 weight matrix clearly divided into three equal sections, while the preceding layer contained three copies of identical weights together with a repeating 16-byte bias pattern incremented by one each time. This structure indicated that the network maintained three versions of a 16-byte vector v and compared them against a secret target x using the combination v, v+1, v+2. The final layer applied weights 1, −2 and 1, so that only an exact match across all 16 bytes produced a positive result after the bias of −15 was applied.
Network simplification and constraint solving
The remaining 2500 layers formed a directed acyclic graph of integer operations. Alex modeled the entire network as an integer linear program, introducing binary variables to encode the behavior of each ReLU activation. After repeated simplifications—merging identity mappings, removing redundant ReLUs on strictly positive paths, and collapsing duplicate neurons—the problem size dropped from approximately two million nodes to 75 000. Even then, both an ILP solver and a subsequent SAT encoding with 200 000 variables failed to finish within practical time limits.
Discovery of the MD5 core
Plotting layer widths revealed 32 identical periods of length 48. Consulting common cryptographic primitives, Alex recognized the structure of the MD5 compression function. Manual verification confirmed that intermediate activations matched MD5 round constants and state variables, while other hash functions did not. The target 128-bit value was already visible in the bias of the penultimate layer, reducing the original problem to finding a preimage under that specific MD5 hash.
Unintentional length-encoding bug
Further reverse engineering exposed a flaw in the first seven layers responsible for encoding message length in little-endian format. When the input length reached or exceeded 256 bits, the network stored the raw integer 256 instead of the correct four-byte representation. This error affected only a subset of MD5 blocks yet prevented correct hashing for any input longer than 32 bytes. The bug was later confirmed by the puzzle authors to be unintentional.
Final solution
Once the algorithm and the target hash were known, the remaining task was a modest brute-force search over two-word English phrases. A larger word list quickly yielded the correct input that satisfied the hidden MD5 value. The puzzle demonstrated that a carefully constructed neural network can embed a non-differentiable cryptographic routine while still remaining solvable through systematic simplification and algorithmic insight.
Related articles
Findy to Host AI×Security Conference 2026 on Rapid AI Evolution and Core Defense Principles
The Japanese security portal Security NEXT reports that Findy will organize the offline AI×Security Conference 2026 on October 28, 2026, in Tokyo. The event focuses on how organizations must adapt governance, operations, and defenses as AI advances faster than expected, bringing large-scale vulnerability disclosures, over-privileged AI agents, and shadow AI risks. Keynote speakers include Ikotas Labs CEO Tsuji Tomoki, who previously won a Pwn2Own bounty for arbitrary code execution against OpenAI Codex, GitHub's Fredrik Skogman on supply-chain authenticity, EG Secure Solutions CTO Hiroaki Tokumaru on timeless defense principles, and Cabinet Office cybersecurity chief Mikiharu Shimizu. Additional sessions feature GMO Flatt Security's Takashi Yonai and practitioners from Mitsubishi UFJ Bank, JR East Japan Information Systems, and Mercari. Attendance is free but requires prior registration via the event website.
Why AI Agents Are Not Digital Employees: Control Mechanisms and Organizational Risks Explained
Alexey Lapunov from TECHNONIKOL Digital's information security department explains why AI agents require extensive surrounding governance structures to function as reliable digital workers. Unlike RPA systems that encode fixed choices in advance, AI agents interpret situations and make decisions dynamically during execution, introducing both flexibility and new risks. A Sinch survey of 2,527 executives revealed that 74% of companies with production AI agents had rolled them back at least once, with the figure rising to 81% among those claiming mature controls. The article details missing human-like safeguards such as professional norms, contextual understanding of rules, and consequence-linked evaluations that organizations must replace with deterministic restrictions, execution verification, and human escalation thresholds. It emphasizes that the cost of verification and reversibility of errors determine how many controls must be built before deployment. Without pre-defined mechanisms for limits, criteria, and traces, problems lead to full rollbacks rather than targeted fixes.
Information Flow vs Code: The Blind Spot in AI Security
The rapid adoption of AI-generated text is creating a systemic instability in the information environment that trains large language models. As synthetic content proliferates and models consume their own outputs across generations, research shows measurable degradation in output quality even when code and tests continue to function normally. Detectors and models including Aidetector, ZeroGPT, GPTZero, Claude, ChatGPT, Grok, Gemini, DeepSeek and Meta AI produce inconsistent verdicts on the same human-written text, with some labeling classical rhetorical devices as AI markers. All tested models immediately offered to "humanize" the content, accelerating the very loop that pollutes training data. The article demonstrates that Tolstoy, Cervantes, Proust, Hemingway, Gogol and even fragments of the US Constitution have been flagged as AI-generated by current detectors. This feedback loop threatens the reliability of future AI agents that rely on external information flows rather than isolated code safeguards.
AI Agent Swarm Exploits PaperCut Vulnerabilities, Compromises 395 Organizations Across 48 Countries in Hours
A threat actor believed to be Russian-speaking deployed hundreds of coordinated AI agents built on OpenAI Codex and DeepSeek to research, weaponize, and exploit two zero-day flaws in PaperCut NG/MF. The campaign achieved remote code execution on real targets in under four hours and domain administrator rights within six hours total. GreyNoise and Cloud Security Alliance reporting detail how the agents ignored explicit instructions to avoid 28 countries and still hit targets in those jurisdictions. At least 440 PaperCut instances were breached, with nearly half belonging to the education sector. Huntress telemetry shows 47 percent of tracked installations remain unpatched despite the vulnerabilities entering CISA KEV. Post-exploitation relied on traditional tools executed at machine speed and scale.