Industry

Published:

27 Nov, 2026

Attackers can understand your software faster than ever. What are you doing about it?

AI summary

Steven Hall explains why faster AI-assisted attacks and increasingly connected software should prompt teams to review their security assumptions. He recommends testing your own code, reviewing integration permissions, and limiting credential access. GitBookโ€™s recent improvements include personal API token controls and passkeys, with ongoing updates published in its security bulletins.

Our recent security incident made us look harder at how people and tools access GitBook, and how much control customers have over that access. Itโ€™s also made me think about the security practices and assumptions teams need to revisit as their products and the tools available to attackers change.

Across the industry, companies are dealing with slightly different versions of the same problem. AI lets attackers understand a system faster, while integrations give them more places to look for a way in. Our incident was a wake-up call for us, but you shouldnโ€™t wait for your own security breach to wake you up: you should act now.

AI changes how attackers work

AI makes these kinds of attacks brutal. An attacker used to have to spend time understanding an application and analyzing its code for weaknesses. Now they can hand much of that work to an agent and get through it far faster, before they even send the first request to your system.

These attacks come like a knife now. Old-school probing attacks are easier to detect and counter because you can see somebody trying random endpoints and requests to find out what works. A direct, precise attack from an AI agent is much harder to spot: the attacker has already done the analysis and knows precisely where to hit.

In a campaign documented by Anthropic, attackers used Claude Code to inspect systems, identify and test vulnerabilities, and harvest credentials. Human operators still directed the campaign, but AI carried out much of the work. Anthropic reported that the reconnaissance took a fraction of the time it would have taken a human team.

Look at what happens after someone gets access

An attack can look like a series of perfectly valid requests. Once somebody gets into an account, they can work out what it can reach and start using the credentials or permissions they find. An agent can move through those steps very quickly, so you need to look at what the account is doing even when its requests succeed.

Iโ€™d look for activity outside an accountโ€™s normal job, whether thatโ€™s a service account reading secrets it doesnโ€™t normally need or a token being used from outside your usual infrastructure. New credentials or permission grants that donโ€™t match any work your team is doing deserve attention too, especially if several of these events happen close together.

You need to know which accounts should read production secrets and which workflows should change permissions. Record those actions and make sure you can trace them back to an identity. Set up alerts for unexpected changes as well as failed requests or spikes in traffic.

Iโ€™d also focus on how far somebody could get with one compromised credential. Limit each workload to the access it needs and use short-lived credentials where possible. The server should check authorization for every sensitive operation. Test those boundaries yourself: can an account reach another customerโ€™s data, or can an integration do more than its job requires? Itโ€™s worth practicing how youโ€™d revoke that access quickly if something went wrong.

Everything wants to be connected to everything

Across the industry, more work happens through APIs and integrations between products. AI and agents are accelerating that because connected tools work better together. An agent can do more when it has access to the systems a team already uses, so people are eager to hook them up.

We see that at GitBook too. More people use Git Sync than ever, connecting repositories to their docs, and APIs and agents let people work with the product without even touching the UI. But now people need access controls and safeguards that reflect those ways of working.

Letโ€™s say you connect a tool to GitHub so it can show you pull requests. Then somebody wants to install another GitHub app to try something, and you get a request: can I install this app? Itโ€™s so easy to just say yes.

But all of a sudden, youโ€™ve just given that app access to a repository it doesnโ€™t need. If the app becomes compromised, an attacker could get access to that repository too.

Those permissions can accumulate very quickly. And a decision that took a few seconds when somebody wanted to try a tool can leave the same access in place long after anyone remembers why they granted it.

Treat your source code as public

Thereโ€™s a project on GitHub called REA โ€” Reverse Engineer Anything that helps an agent reverse-engineer an application. Its Notion example traces how the desktop app handles clipboard data without access to the original source code. When thinking about what an attacker could discover, Iโ€™d treat your application as if its source code were public.

Iโ€™d recommend using the same tools an attacker would to analyze your code and actively try to break the assumptions youโ€™re relying on. If somebody understood how your application worked, could they reach something they shouldnโ€™t? What would stop them?

That applies to the systems around your application too. Look at how many apps you have installed in GitHub and what access they have, along with the credentials your automated workflows can access. Do your API tokens grant more access than they need for the work theyโ€™re doing? If one of those credentials is compromised, how far could somebody get?

Checking these details and adding more steps to prevent breaches might slow you and your team down, and I get the desire to move quickly. I work the same way. When Iโ€™m trying a tool, I just want to connect it and get on with using it. But choosing how much access to give a tool deserves more time than we sometimes give it.

If a tool only needs one repository, give it just that repository. If a workflow only needs to read data, look for a way to give it read-only access. And then revisit those decisions as the tools and the work change.

If you want to try REA for yourself, Iโ€™d start with a local copy of your own application in a separate working folder, without production credentials. REA works with coding agents such as Claude Code, Codex, and Cursor, and its setup guide walks through the tools you need. Give the agent a specific question to investigate, such as how your application handles authentication or where it checks permissions. Ask it to show the code behind its answer, then check those findings yourself and use them to decide what to test more closely.

What weโ€™re changing at GitBook

Our incident made us take programmatic access to GitBook more seriously. Over the past few weeks weโ€™ve been improving account security and giving people more control over how tools access their content.

Weโ€™ve recently shipped better controls for personal API tokens. You can create read-only tokens and restrict where a token can be used by allowing or denying specific IP ranges. New tokens expire after 90 days by default, with other expiration options available.

When you rotate a token, you can revoke the previous secret immediately or keep it working for 1 hour or 24 hours while you update the integrations that use it. That gives teams time to replace credentials without updating everything at exactly the same moment.

And for accounts that donโ€™t require SSO, weโ€™ve shipped passkeys too. People can use a passkey to sign in and confirm their identity before sensitive account changes.

Thereโ€™s more coming, and security is a major ongoing focus for the team. We need to keep examining our own systems and giving customers better controls as their use of GitBook changes, whether theyโ€™re signing in themselves or giving integrations and agents access.

If you want to keep track of what weโ€™re doing in the product, weโ€™ll keep posting updates in our security bulletins.

โ†’ Learn about permissions and inheritance in GitBook

โ†’ How we made GitBook easier for AI agents to use

โ†’ Read more about security in the GitBook Trust Center

Share
Get the GitBook newsletter

Get the latest product news, useful resources and more in your inbox. 130k+ people read it every month.

Email

Accurate docs. Better answers.

Your docs are already feeding AI. Are users getting the right answers or the wrong ones?

Accurate docs. Better answers.

Your docs are already feeding AI. Are users getting the right answers or the wrong ones?

Accurate docs. Better answers.

Your docs are already feeding AI. Are users getting the right answers or the wrong ones?

Enterprise

Intelligent documentation thatโ€™s built to scale




Verifone thumbnail
Verifone logo - white
Verifone

How Verifone increased assistant traffic by 8x after migrating to GitBook

The State of Docs Report 2026

State of Docs brings together insights from documentation experts from across the industry

Verifone thumbnail
Verifone logo - white
Verifone

How Verifone increased assistant traffic by 8x after migrating to GitBook

The State of Docs Report 2026

State of Docs brings together insights from documentation experts from across the industry

Verifone thumbnail
Verifone logo - white
Verifone

How Verifone increased assistant traffic by 8x after migrating to GitBook

The State of Docs Report 2026

State of Docs brings together insights from documentation experts from across the industry