Todoist's AI Code Reviewer Treated an Attacker's Exfiltration Pull Requests as Routine, and Its CEO Says Models Won't Flag That Unprompted
Todoist's CEO says the company's in-house AI code reviewer passed pull requests carrying plain data-exfiltration code during the November breach, because nothing told the models to look for it. The incident report shows a stolen version-control credential led to production data, older password hashes for about 6% of users, and searches for AI API keys.
During last week’s breach at Todoist, an attacker submitted pull requests containing what CEO Amir Salihefendić called “extreme data-exfiltration code,” and the company’s internal AI code reviewer “reviewed them like completely normal PRs.” Salihefendić said the reviewer had no instructions to look for exfiltration and that models “will not do it out of the box.” A day later he added that the reviewer was not the root flaw: the attacker was already inside, working from a trusted developer account.
Salihefendić made the disclosure on X on November 28. “Any good junior dev would have flagged them and hit a panic button,” he wrote. “This is the state of spiky intelligence. We have systems that can solve the Riemann hypothesis, but still make blunders my 9-year-old would never make.”
A reviewer with no reason to be suspicious
In replies, Salihefendić described the reviewer as “our own system built on top of Pi that uses a collection of models,” adding that he thinks OpenAI’s Astra 6.2 is one of them. In another, he said Todoist “didn’t have enough guardrails to instruct the models to detect and flag this,” and noted that “the PR came from our own trusted developer account.”
The company has since changed the setup. “We’ve improved this system to detect attacks and report exfil attacks, so this is a solved problem, but LLMs will not do it out of the box,” he wrote. Todoist’s incident timeline records that it “added automated code review to flag potential data exfiltration” at 20:27 UTC on November 24, about a day after the account exports.
On November 29 he pushed back on readings of the episode as a failure of AI review. “The core issue has little to do with PR reviews (they hacked one of our developers first and used that to escalate the attack further),” he wrote. “A smarter reviewer could have helped, but this isn’t the root flaw.”
He did not say which repositories the pull requests targeted or whether any were merged.
From one credential to production
Todoist’s incident report, shared by its CTO and last updated November 26, sets out the attack in UTC times.
At 14:04 on November 22, the attacker first used a stolen credential for the company’s version control system. They modified automated workflows in three repositories to obtain more credentials and could read the source code. The report says the investigation “found no changes to application code.”
At 06:06 on November 23, one of those workflows yielded an administrative credential for the employee sign-in system. By 06:54 the attacker had changed an employee’s authentication settings and signed in to Todoist’s cloud infrastructure as that person. They created extra accounts, reached production databases from 09:08, and exported account records between 12:45 and 12:51.
Todoist has not established how the first credential was stolen. Its leading theory, which it calls unconfirmed, is that an employee’s device was compromised. Salihefendić put it more firmly on X, saying the attacker “first compromised a developer’s computer” and adding that “SAP and 1Password seem to follow the same pattern.”
What was taken, and the AI keys the attacker wanted
About 6% of Todoist users had email addresses, account creation dates and older salted SHA1 password hashes taken. These were early accounts whose passwords predated Todoist’s move off SHA1 over a decade ago. “We should have retired support for it sooner and have now done so,” the report says. Todoist found no sign that the attacker signed in to those accounts.
A much smaller group, about 0.003% of users, had Todoist API tokens and Slack integration tokens retrieved. Some of those tokens were then used to pull project, task and comment data through the /sync endpoint.
The attacker also searched customer content for secrets, and Todoist lists the patterns. Alongside cloud and code-hosting credentials, they looked for keys associated with OpenAI, Anthropic and OpenRouter, as well as Stripe and Shopify. About 0.001% of users had matching content returned.
Through stolen credentials for the Todoist for Outlook add-in, the attacker also requested subjects, senders and the first 255 characters of the 10 most recent messages in selected connected mailboxes, and ran keyword searches for terms such as GitHub, AWS, Coinbase and MetaMask. Todoist disabled the add-in at 05:06 on November 24.
The fixes on the list
Todoist says it has removed attacker-created accounts, revoked exposed credentials, rotated secrets across sensitive systems, enforced shorter lifetimes for relevant access tokens, and restricted which changes can trigger sensitive infrastructure workflows. Salihefendić said strengthening GitHub security is a top priority.
- #Todoist
- #AI Code Review
- #Supply Chain
- #Data Breach
- #GitHub
Author
Raj M
Contributor
AI Systems Architect is a seasoned technology leader with over 15 years of experience in the IT industry working with Fortune 500 companies. With a solid foundation in multi-agent systems, open-source LLM infrastructure, and enterprise deployment, he excels at building scalable production-grade AI platforms.