
When Your AI Code Reviewer Waved Through the Attack: Lessons from the Todoist Breach
Todoist's CEO confirmed publicly on November 28 that the company's AI code reviewer looked at the attacker's data-exfiltration pull requests and treated them as routine. The breach itself was reported by Todoist on November 26. The AI reviewer detail came later, in Amir Salihefendic's posts on X, and it matters for any team that has built automation around code review.
Key takeaways:
- An AI code reviewer cannot detect that the person who opened a PR is an attacker using stolen credentials. It reviews the diff, not the author's identity.
- The Todoist attacker had a live foothold for nearly 27 hours before monitoring flagged an unexpected admin account (about 8 of those hours inside production).
- Three controls that work regardless of model quality: human gates on workflow files, short-lived credentials, and anomalous account alerting.
- Fixing the reviewer prompt is the right response after the fact, but it is not the control that would have caught this earlier.
What happened :
On November 22, an attacker used a stolen version control credential to modify automated workflows in three Todoist repositories. Todoist's leading theory is that the credential came from a compromised developer device, though the company has not confirmed how the device was compromised.
From there the attack expanded over roughly 19 hours: the modified workflows collected additional credentials, including an admin credential for the employee sign-in system. By 10:08 CET on November 23, the attacker had access to production databases. Exports of account records with emails and older password hashes ran between 13:45 and 13:51 CET. Detection came at 18:01 CET, when monitoring flagged an unexpected admin account. Containment followed within 41 minutes.
Throughout that window, Todoist's AI code reviewer was running. Salihefendic wrote on X that the reviewer, which "runs on some of the best models right now," handled the attacker's pull requests "like completely normal PRs," adding that a good junior developer would have raised the alarm. He also noted the team "didn't have enough guardrails" instructing the models to look for exfiltration. A check for that was added the following day.
Source: Todoist incident report (November 26, 2026) and Salihefendic's posts on X (November 28, 2026), reported and timeline-converted by i10x.ai.
Who this affects :
This is not a story about Todoist specifically. If your team uses an AI-assisted code reviewer, the same gap applies. AI review is good at catching bugs, security anti-patterns, and logic errors in code written by people who are trying to write good code. It is not built to detect that the author's machine belongs to someone who should not be there.
The gap is not a failure of the models. It is a category error. Code review tools evaluate diffs. Access controls govern who can produce a diff. These are different problems, and conflating them is how teams end up with automation that adds confidence without actually improving their security posture.
If your engineering workflows include any of the following, this applies to you:
- AI-assisted PR review (Copilot, internal systems, any review bot).
- GitHub Actions or similar workflow automation touching secrets.
- Production credentials stored as repository or workflow secrets.
- Developer access that is not scoped to the minimum needed.
What to do in the next 24 to 72 hours.
1. Put a human gate on workflow files - .github/workflows, CI/CD definitions, and any infrastructure automation should require a second human reviewer, not just a passing AI comment. GitHub's CODEOWNERS file makes this mechanical: add the directory, require approval from a named team. This does not depend on any model noticing anything unusual.
2. Audit what secrets your workflows can reach -
GitHub's own documentation notes that anyone with write access to a repository can read the secrets configured in it. Walk your workflow definitions and list every secret and credential they touch. For each one: does it need to be there, and can the token be scoped narrower or issued short-lived?
3. Check whether you have an alert for new admin accounts -
The control that stopped this attack was not the AI reviewer. It was monitoring that flagged an unexpected admin account. If you do not have an alert for new privileged accounts in your identity system or cloud provider, add one. This is a 30-minute setup in most platforms and covers a wide range of attack types.
4. Test your AI reviewer with planted bad PRs -
If you keep AI review in the loop, explicitly tell it to flag outbound network calls from unusual places, new secret access, and encoded payloads. Then test it: open a PR with a deliberately suspicious change and check whether the reviewer surfaces it. i10x.ai cites research suggesting that AI code reviewers miss a significant portion of deliberately malicious patches even at high effort settings. The number varies by model, but the direction is consistent.
The deeper pattern :
Todoist deserves credit for publishing a minute-level timeline and the list of credential types the attacker searched for. That detail is genuinely useful for defenders. But the uncomfortable part of this incident is the CEO's own observation: the AI reviewer was in the loop, it added perceived confidence, and it did not add safety.
This is the same pattern as most other automation failures. A tool that works well in one context gets extended to a second context where its assumptions no longer hold. AI code review assumes honest authors. When the author's credentials belong to an attacker, the assumption fails and the tool produces false confidence rather than a neutral absence of opinion.
The practical rule: any path that can touch secrets, production data, or identity infrastructure needs a human approval that a single compromised account cannot bypass on its own. That is not a statement about AI being unreliable. It is a statement about access controls being a different category from code quality checks.
Adding exfiltration detection to your reviewer prompt is the right response after an incident like this. It is not a substitute for the human gates and anomaly alerts that would have caught it earlier.
If your team is building automation layers and wants to think through where the trust boundaries should sit, ZycoSoft works through that with ops teams directly.
Rate this article
Choose a star rating, then submit.
Frequently Asked Questions
The reviewer evaluated the code diff, not the author's identity or intent. AI code review assumes honest authors writing code in good faith. When credentials are stolen, that assumption fails. The reviewer saw normal-looking workflow changes and surfaced no warnings.
AI code reviewers are built to catch bugs, anti-patterns, and logic errors. They are not access controls. Deciding who is allowed to push code is a separate category from deciding whether the code itself looks correct. Conflating the two creates false confidence without real security improvement.
GitHub's CODEOWNERS file lets you require approval from a named team or person for changes to specific directories. Setting it on .github/workflows means any CI/CD change needs a second human reviewer before merging, regardless of what the AI reviewer says. This is a mechanical control that doesn't depend on model quality.
Walk every workflow definition and list each secret it references. For each one, ask: does it need to be there, and can the token be scoped narrower or issued short-lived? Anyone with write access to a repository can read its configured secrets, so scope and lifespan both matter.
Open a test PR with a deliberately suspicious change: an outbound network call from an unexpected location, new secret access, or a base64-encoded payload. Check whether the reviewer surfaces it. If not, update the reviewer's instructions to explicitly flag those patterns, then retest.

Comments
No comments yet. Be the first to share your thoughts.
Leave a comment
Comments are reviewed before they appear publicly.