On the evening of November 2, 2026, an attacker spent roughly two hours and forty-five minutes inside GitBook’s production systems, then came back for another forty minutes early the next morning. [1] By the time GitBook published its postmortem two days later, the company had rotated every secret in its infrastructure, invalidated every API token on the platform, and asked customers running the GitBook MCP server to re-authenticate it. What the postmortem still doesn’t explain, even in its final version, is how the attack actually started.
In this article:
GitBook’s incident timeline starts at 12:27 UTC on November 2, when an attacker took over an account belonging to one of GitBook’s own customers. [1] That alone would normally stay contained to that one customer’s workspace. It didn’t. Four hours later, at 16:32 UTC, the same attacker was inside GitBook’s own staff sessions, using a flaw in GitBook’s single sign-on flow to forge login credentials that made them look like GitBook employees.
From there the chain moved fast. Forged staff access led to GitBook’s internal source code. Inside that code, the attacker found the authentication details for a GitHub App that GitBook had installed as an integration and misconfigured. Those details led to a Cloudflare API key, and that key handed over full infrastructure access through a service account. By 17:48 UTC, five hours and twenty-one minutes after the first hijacked login, the attacker was standing inside GitBook’s production environment. [1]
GitBook caught it reasonably fast once it looked. An internal alert fired at 18:10 UTC, the SSO flaw was patched by 19:58 UTC, and by 20:32 UTC every compromised account was disabled and the attacker was locked out. The platform went offline during the cleanup and came back fully restored at 11:56 UTC the next day, after GitBook rotated every secret and API key it manages, including the ones it had issued to customers. [1]
GitBook’s first detailed public update, posted at 16:21 CET on November 3, didn’t hedge. It called this “a sophisticated, highly targeted attack using AI agents.” [1] That’s the line most of the coverage ran with, and it’s why outlets across the crypto and security press picked the story up within hours of the update going out.
The final postmortem, published the next day, uses noticeably softer language. It says the attacker “moved with a speed and precision that pointed to an attack driven largely by automation and AI,” without repeating the phrase “AI agents” and without saying which steps, if any, were AI-driven rather than scripted by a person. [1] GitBook never explains why its language shifted between the two statements, and nothing here should be read as a claim about why it did. It’s simply worth noticing that the company’s most quotable sentence didn’t survive into its most carefully written one.
That gap matters because the underlying claim isn’t far-fetched on its own. In November 2025, Anthropic disclosed a separate espionage campaign in which it assessed that AI performed 80 to 90 percent of the tactical work, with a human operator stepping in at only four to six decision points per campaign. [3] Anthropic attributed that operation to a state-sponsored group it believed used a manipulated version of Claude Code to map target networks, write exploit code, and harvest credentials largely on its own. If a framework like that is now reusable against ordinary SaaS infrastructure, “AI agents breached our systems” stops being a marketing flourish and starts being a plausible, checkable claim. Whether that’s what actually happened to GitBook is exactly what its postmortem doesn’t nail down.
The most important unanswered question in GitBook’s own timeline sits at the very start of it: how was that first customer account, hijacked at 12:27 UTC, actually compromised? A phished credential, a reused password, a stolen session token, something else entirely? The postmortem documents every step after that moment down to the minute and says nothing at all about the one before it.
There’s a second kind of gap worth naming here too. The SSO flaw that let the attacker forge staff login sessions is a question of identity, not just access: anyone holding a forged session token looks exactly like a legitimate employee to every system downstream that trusts it. It’s the same distinction I worked through in A2A’s signed agent cards proving integrity, not identity: a system can cryptographically prove a session or message wasn’t tampered with in transit while still having no real way to prove who originated it in the first place.
GitBook’s own updates also disagree with each other on scope. The first platform-wide notice, posted at 13:15 CET on November 3, described this as “a platform wide issue affecting a number of customers.” The final postmortem narrows that considerably, saying the attack was aimed at one GitBook customer and that no evidence turned up of any other customer’s content being modified. Both statements can’t have been fully accurate at the moment they were published, and GitBook doesn’t explain the change. That’s a normal part of how incident response actually works, since early updates get written under real uncertainty and later ones reflect what the investigation found. But it’s also exactly the detail a reader needs in order to judge how much weight to put on a company’s first public statement about any breach, not just this one.
A third data point didn’t come from GitBook at all. A security researcher who reviewed GitBook’s writeup separately named the affected customer as the crypto exchange Trade.xyz, reporting that its own anomalous document activity traced back to GitBook’s infrastructure rather than its own systems. [2] GitBook’s postmortem itself never names a customer, so this detail belongs to one outlet’s reporting, not to GitBook’s own confirmation. I’m flagging it as unverified rather than stating it as fact, which is the same posture GitBook has taken toward naming anyone involved.
GitBook’s own list of what the attacker could reach is long. It includes GitBook API tokens, integration tokens and secrets, session signing secrets, the questions visitors had asked GitBook’s Assistant feature, and content on documentation sites that use authenticated access. [1] For customers using Git Sync, the attacker could act as GitBook’s own GitHub App or GitLab integration, though only inside the specific repositories each customer had already granted it access to.
GitBook says it’s treating all of that as exposed rather than trying to prove a narrower blast radius, which is a more conservative posture than its earlier update, which had said the attacker “may have accessed” a shorter list of items. On the other side of the ledger, GitBook states plainly that billing information, passwords, and IP addresses were not compromised. [1] That’s a meaningfully narrower exposure than a full customer-database breach, and it’s worth taking at face value, since it’s a claim that cuts against GitBook’s own interest in overstating caution.
What stands out across both lists is how much of it is credential material rather than content: tokens, secrets, and signing keys, not customer records sitting in a database. That’s a direct consequence of the attack chain itself. Once the attacker had a service account with full infrastructure access, the most valuable thing left to grab wasn’t data, it was the keys that would let them come back later or pivot into connected systems. It’s the same reason the missing approval gate in OpenAI’s Medicare Australia incident mattered more than the specific task the agent in that case was executing: once something inside your perimeter holds broad standing permissions, the blast radius of a single compromise stops being about one action and becomes about everything that permission touches.
GitBook’s own remediation list is a reasonable template for what to do after an incident like this, and it’s worth working through even if you’ve never used GitBook. If you hold a GitBook API token, GitBook says to create a new one rather than trust that the old one was caught in the general rotation. [1] If you run a third-party tool or published integration that stores a GitBook secret, rotate that secret too. GitBook says it already rotated the GitHub and GitLab keys behind Git Sync on customers’ behalf, which is one place in this particular incident where no customer action is actually required.
The broader lesson generalizes well past this one vendor. A few habits would have narrowed this specific attack chain, and they’re worth checking against your own infrastructure regardless of what ultimately caused GitBook’s breach:
That last point is where most teams have the least visibility, and it’s the same gap I wrote about in what to log before your agent fails in production: the failures worth planning for ahead of time are rarely the ones sitting in your own application code. More often they’re the ones in the infrastructure underneath it, the layer nobody is watching closely enough to catch before the postmortem gets written. The same holds for the agent tooling itself. As more of what used to be manual security work gets handed to systems that act with less supervision, the attack surface shifts, and I’ve made that case before in why prompt injection isn’t theoretical anymore: the defenses that worked when a human was clicking every button don’t automatically carry over once something else is clicking them instead.
GitBook did most of the things a company should do after an attack like this. It cut the attacker off within hours of detection, rotated everything it could rotate, and published a timeline detailed enough that a stranger reading it a week later can walk the attack step by step. What it didn’t do is answer the one question that would tell you whether this could happen to you the same way: how the first account actually got hijacked. Until that’s answered, the most useful thing in any breach postmortem isn’t the part that explains what happened. It’s the part that admits what still isn’t known.
If you enjoyed the article and wish to show your support, make sure to:
What GitBook’s Postmortem Leaves Out was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.
原文来源:pub.towardsai.net