From over a thousand "vulnerabilities" to three unfinished patches: lessons from building Treasure Map, a firmware audit tool for AI agents
从一千多个“漏洞”到三处没修完的补丁:给 AI agent 做固件审计工具的经验
Binary vulnerability researcher JoeyZzZzZz has open-sourced Treasure Map, a firmware audit tool for agents, and used it to find three incompletely fixed security fixes in the ipTIME C200 camera. The author's first version had the model flag 1017 "vulnerable functions," and sampling showed almost all were false positives; the current Treasure Map connects to agents as an MCP server, does not run models, and only organizes dangerous calls into a fact map marked "yes, no, unknown," with the agent's inferences written into an annotation layer that must cite facts. The case study uses DeepSeek-V4.1-Flash to compare firmware 1.058 and 1.060 before and after the CVE-2021-26614 fix, completing 144 must-read items; the three changes are: the backdoor branch was deleted but the handler remains, the stack buffer was enlarged but the copy length is still unlimited, and input validation was changed only on the browser side while the server-side CGI is unchanged.