← All AI resources

AI-assisted security incident · GitBook AI-agent attack response guide

GitBook says AI agents helped an attacker reach infrastructure credentials

GitBook revoked customer API tokens after an attacker reached infrastructure credentials. Integration tokens, Git Sync secrets and visitor questions may also have been accessed.[1]

Published by Learnetto team · Published November 4, 2026

Credential trust path

1 · AccessInfrastructure credentialsGitBook confirms unauthorized access, while the initial route remains unpublished.
2 · ReachConnected secretsAPI tokens, integration tokens, Git Sync secrets and assistant questions may have been accessed.
3 · ResponseRotate, hunt, narrowReplace credentials in GitBook and every connected service, then inspect their audit trails.

Confirmed: GitBook revoked customer API tokens. Pending: root cause, affected count, agent evidence and indicators of compromise.

GitBook says an attacker gained unauthorized access to some of its infrastructure credentials at 19:00 CET on November 2, 2026, using AI agents.[1] The company took its app and authenticated documentation sites offline, replaced its infrastructure credentials and invalidated customer API tokens before restoring services on November 3.[1] GitBook says integration tokens, Git Sync secrets, API tokens and questions submitted to GitBook Assistant may have been accessed. It has found no evidence that hosted content was changed, but absence of observed modification does not rule out credential use elsewhere.[1] The company has not yet explained the initial access path, the vulnerabilities involved, which agent system was used, how it identified agent activity or how many customers were affected.[1][2][3] Until the promised post-mortem answers those questions, customers should treat every secret that GitBook could read or use as exposed and inspect connected systems for activity from November 2 onward.

Initial access
November 2 at 19:00 CET
Confirmed action
All customer API tokens invalidated
Possible exposure
Integration and Git Sync secrets
Key unknown
Initial access path

What GitBook confirmed

GitBook's incident notice [1] says an attacker reached some infrastructure credentials at 19:00 CET on November 2. GitBook attributed the operation to AI agents and says it contained the intrusion before fixing the exploited weaknesses.[1]

The company took the GitBook app and authenticated documentation sites offline while it replaced infrastructure secrets. Public documentation stayed available from cached copies where possible. GitBook restored its app, API and published documentation on November 3, while warning that some services could remain degraded.[1]

GitBook invalidated every customer's API tokens. Its investigation says the attacker may also have accessed integration tokens, Git Sync secrets and questions that visitors submitted to GitBook Assistant.[1] These categories matter because they can connect a documentation platform to source repositories, deployment systems and other services.

What the disclosure does not establish

GitBook has not named the agent framework, model or operator behind the attack. It has also not published the evidence that distinguishes agent activity from fast human automation.[1][2][3] The vendor's attribution should therefore be reported as GitBook's finding rather than an independently verified technical conclusion.

Independent reporting by Decrypt [2] notes that the disclosure does not explain how the credentials were obtained and does not implicate GitBook's own AI products.[2]

In the Hacker News discussion [3], GitBook CTO Samy Pesse said the company would provide details in a longer post-mortem. He described the attack as unusually fast and adaptable, but did not publish logs or an initial-access explanation.[3]

No affected-customer count, access duration, data-exfiltration volume or list of exploited vulnerabilities is public. GitBook says it found no evidence that content was modified, which is narrower than saying no data was read or no connected credential was used.[1]

Response checklist for GitBook customers

  • Confirm that old personal and service API tokens fail, then issue replacements only after removing unused integrations and reducing scopes.[1]
  • Rotate Git Sync deploy keys, personal access tokens or app credentials at the repository host.[1] Review repository audit logs for unusual clones, fetches, pushes, webhook edits and new keys.
  • Rotate every third-party secret used by a published GitBook integration.[1] Start with credentials that can write, deploy, administer users or read private data.
  • Re-authenticate the GitBook MCP server only after reviewing its permitted tools, data sources and account scope.[1]
  • Search cloud, source-control, CI/CD and SaaS logs from November 2 onward for activity tied to the retired credentials. Revocation stops future use but does not explain earlier use.
  • Check visitor questions sent to GitBook Assistant for secrets, customer data or internal details, then follow the appropriate notification and deletion procedures.[1]
  • Record each old credential, its replacement, owner, scope, rotation time and log-review result so the response can be audited later.

Why documentation credentials create a wider incident

A hosted documentation system can sit between source repositories, build pipelines, support tools and public readers.[1] A credential exposed through that system can therefore matter more than the public pages themselves.

Git Sync secrets may permit repository access, while integration credentials may reach whichever external service granted them.[1] Teams should map the real permissions of each credential instead of treating every token as equivalent. A read-only repository key and a deployment token require different containment and investigation steps.

Questions sent to an assistant form another data class.[1] Users may paste unreleased features, account details, error logs or credentials into a documentation chatbot. The incident is a reason to review retention, redaction and access controls for assistant conversations, even when the published documentation remains unchanged.

How this fits the wider AI-cyber shift

The UK National Cyber Security Centre's November 3 assessment [4] says AI is increasing the speed, scale and efficiency of established intrusion techniques, while skilled human operators still remain important.[4] That is a better working model for this incident than assuming an autonomous system completed every step.

The defensive implication is operational. Teams need shorter credential lifetimes, faster revocation, protected audit logs and alerts that follow identities across SaaS products. Those controls follow the NCSC recommendation to strengthen established cyber defenses as AI increases attack speed and scale.[4]

Agent attribution still matters because pace and parallelism affect detection thresholds. The promised post-mortem should show which observations support GitBook's claim and which actions required a human operator.[3]

What to watch next

  • GitBook's full post-mortem, including the initial access path, exploited vulnerabilities, timeline and evidence for agent use.[1][3]
  • A final affected-data and customer count, plus any confirmation that exposed credentials were used outside GitBook.[1][2]
  • Clarification of whether Git Sync, integration and assistant-question access varied by customer configuration.[1]
  • Additional revocations, product changes or customer notifications after forensic work is complete.[1]
  • Indicators of compromise that customers can match against source-control, cloud and SaaS audit logs.[1]

Frequently asked questions

  • Was GitBook breached? Yes. GitBook says an attacker gained unauthorized access to some infrastructure credentials.[1]
  • Did the attacker change documentation? GitBook says it has found no evidence of content modification. That statement does not rule out access to secrets or assistant questions.[1]
  • Were AI agents definitely involved? GitBook attributes the attack to AI agents, but it has not yet published the technical evidence or named the tools.[1][2][3]
  • Is rotating a GitBook API token enough? No. GitBook also instructs customers to rotate connected third-party tokens and published-integration secrets, and to re-authenticate its MCP server.[1]
  • Should teams wait for the post-mortem? No. Rotate and investigate now, then use the post-mortem to refine scope and follow-up work when it appears.

Keep learning on Learnetto

Sources

[1] GitBook security incident notice

[2] Decrypt: GitBook breach report

[3] Hacker News discussion and GitBook CTO responses

[4] UK NCSC: Artificial intelligence and cyber intrusion