GitBook Security Breach: AI-Agent Attack Exposed API Tokens, Git Sync Secrets, and Assistant Queries
GitBook suffered a security breach in which an attacker gained unauthorized access to some of its infrastructure credentials, and the company says the attack was "sophisticated, highly targeted" and carried out using AI agents. GitBook took its app and authenticated docs sites offline, revoked all personal API tokens, and is telling customers to rotate GitBook API tokens, third-party integration secrets, and to re-authenticate the GitBook MCP server.
The disclosure surfaced on Hacker News through a support-ticket reply rather than a proactive breach notification. Hacker News user punchmesan posted the full text of GitBook's incident email under the title "Gitbook Breached," noting that the company had opened a support ticket about GitBook availability issues and received the incident summary in response.
What GitBook says happened
GitBook states that at 19:00 CET on November 2, an attacker gained unauthorized access to some of its infrastructure credentials. GitBook says it detected the attack immediately and blocked further impact, then took the GitBook app and authenticated docs sites offline to fully secure its infrastructure.
Publicly published content stayed live as long as possible using cached data, according to the notice.
In the company's own words:
GitBook has been the target of a sophisticated, highly targeted attack using AI agents. At 19:00 CET, November 2, the attacker gained unauthorized access to some of our infrastructure credentials. We detected the attack immediately and acted swiftly to block further impact.
What data may have been accessed
GitBook's investigation found that the attacker may have accessed four categories of data:
- Git Sync secrets
- GitBook API tokens
- Third-party API tokens used to connect external tools to GitBook
- Questions asked to GitBook Assistant by site visitors
GitBook stated that at that stage it had found no evidence that any customer content inside GitBook was modified.
What GitBook did immediately
GitBook's immediate response included four steps it listed in the incident notice:
- Blocked the attacker and closed the vulnerabilities involved
- Replaced every credential and secret across its infrastructure
- Brought services back only once it was confident they were secure
- Invalidated every customer's API tokens on the platform
Hacker News commenter FastDeep highlighted the token revocation as a positive signal:
Good that they rotated all the tokens themselves instead of just telling users to do it, seen too many incidents where that step gets skipped.
What customers need to do now
GitBook's remediation instructions to customers are specific and actionable:
- Rotate any existing GitBook API tokens. GitBook revoked all personal API tokens during the incident.
- Rotate any third-party API tokens or secrets used to connect other tools to GitBook.
- If you have published integrations that use secrets, rotate those secrets.
- If you use the GitBook MCP server, re-authenticate it. GitBook advises contacting the GitBook organization's admin to assist with this process.
GitBook's stated next steps
GitBook says it will monitor for further attacks, introduce additional security measures to the platform, and publish a full post mortem with more detailed information about the incident. The company pointed customers to status.gitbook.com for updates and to their account manager or support team for further questions.
The disclosure gap
The Hacker News poster said the incident email arrived as a reply to a support ticket about availability issues, and that no official customer communication or breach notification had been seen at the time of posting. That framing drove much of the discussion.
Commenter philipwhiuk pointed to the public status page entry and noted a discrepancy between the two disclosures:
This is the public disclosure: https://www.gitbookstatus.com/incidents/01M6FXDDGQRWHMYYWXY2... Note that the summary at the top of https://www.gitbookstatus.com at time of writing does not mention the unauthorized access and the incident details does not mention the contents disclosed above.
Another commenter, petecooper, linked the vendor's own incident page at https://www.gitbook.com/status/security-incident-2026-11-03.
GitBook's CTO responds
GitBook CTO Samy Pesse (SamyPesse) posted a brief statement in the Hacker News thread confirming the incident and describing the response posture:
We have been dealing with a security attack since yesterday. Our team has been all hands on deck since the start, and we took a large portion of our services offline to prioritize user security. Our service is progressively coming back online (most of it already is), and we are actively monitoring the situation. We'll continue to actively keep our users updated through emails, Slack, and our status page as we monitor the situation and learn more.
Criticism of the incident report's vagueness
A recurring theme in the thread was that the report withholds the technical detail security teams need to assess their own exposure.
Commenter latchkey asked directly:
One thing that would be appreciated are more details in these sorts of reports. "the attacker gained unauthorized access to some of our infrastructure credentials" How? Which infrastructure?
Commenter FearNotDaniel questioned the value of the standard incident-report vocabulary:
I love the way all incident reports tell you the attack was sophisticated and highly targeted, as if those words actually mean anything. Nobody wants to admit they were DDOSed by a script kiddie just randomly trying exploits. The subtext is: well, we expected hackers; just not really good ones.
Commenter aliasxneo reacted to the AI-agent framing with a one-liner: "Add it to the list, I guess." Commenter tom1337 asked whether the apparent frequency of major service breaches is genuinely driven by AI agents being aimed at targets.
Broader context raised in the thread
Commenter manytimesaway raised a historical note about the company behind GitBook, claiming the team had previously shut down a product called friendco.de without any announcement years earlier.
Commenter Panino suggested the volume of incidents has created an opening for a dedicated product: "I think the timing is perfect for someone to create a simple, clean, breach link aggregator site."
Commenter altbdoor noted that a related Hacker News post had appeared about five hours earlier and that the new thread added substantially more detail.
Key facts at a glance
- Vendor: GitBook
- Incident time stated by GitBook: 19:00 CET, November 2
- Attack method claimed by GitBook: sophisticated, highly targeted attack using AI agents
- Root cause stated by GitBook: unauthorized access to some infrastructure credentials
- Potentially accessed data: Git Sync secrets, GitBook API tokens, third-party API tokens, GitBook Assistant visitor questions
- Content integrity: no evidence found that customer content in GitBook was modified
- Immediate mitigations: attacker blocked, vulnerabilities closed, all credentials and secrets replaced, all customer API tokens invalidated
- Customer actions required: rotate GitBook API tokens, rotate third-party API tokens and secrets, rotate secrets in published integrations, re-authenticate the GitBook MCP server
- Follow-up promised: a full post mortem to be published soon
Sources
Related
- Dispatch
- Dispatch
- Dispatch
- Dispatch
- Dispatch