The Bitbucket integration lets Intruder read your source code during an AI Full Pentest, so findings can be traced back to the code responsible. It's source code only, and it's the only thing this integration does.
🎫 Plan availability
The Bitbucket integration is available on all plans and is used exclusively by AI Full Pentest (purchased per pentest). You need the Admin role to connect the integration or run a pentest; review the AI Penetration Testing guide before getting started.
ℹ️ Note: We support Bitbucket Cloud (bitbucket.org) only. Bitbucket Server and Bitbucket Data Center aren't supported.
What is the Bitbucket integration?
The Bitbucket integration connects your Bitbucket Cloud account to Intruder, giving our AI pentesting agents read access to your repositories during an AI Full Penetration Test. Because these pentests are code-assisted, the agent analyzes your source code to trace where an issue originates, then tests your running application to verify it.
This integration is strictly for code analysis; it does not sync assets, create targets, or raise issues in Bitbucket. To push new findings into a tracker, connect a ticketing integration instead.
What you need before you start
The Admin role in Intruder.
A Bitbucket Cloud account with access to the repositories you want reviewed.
A scoped Atlassian API token for Bitbucket with all three of these scopes:
read:repository:bitbucketread:workspace:bitbucketread:user:bitbucket
💡 Tip: Only grant these three scopes. Intruder only needs read access, so wider permissions go unused.
How to connect Bitbucket
There are two places to do it, and they create the same connection. Use whichever you're already in.
From the integrations page
Go to Integrations and find Bitbucket.
Click
+ Add.Enter your Atlassian account email and API token, then click
Connect.
Once it's connected, the card shows an Enabled pill, and the button changes to Settings:
From the pentest setup
Go to Pentests and select
+ New pentest.
Work through to the Source code step.
If Bitbucket isn't connected yet, select Bitbucket in the Not connected row.
Enter your account email and API token, then select Connect.
We check your email and token as you connect, so an incorrect email or a revoked token fails immediately.
⚠️ Important: A token that's missing the repository or workspace scope can still connect successfully. You'll only find out when the Source code step tries to list your repositories and shows "Failed to load repositories". If that happens, make a new token with all three scopes and reconnect.
How to add a repository to a pentest
Repositories are chosen in the Source code step of the pentest setup, not on the integrations page.
In the Source code step, select the Bitbucket card. If Bitbucket is your only connected source, it's selected for you.
Select a repository and branch.
⬇️
Add notes if part of the repository matters more than the rest, for example, "monorepo, focus on /services/auth".
ℹ️ Note: Every repository in one pentest has to come from the same provider. If you switch from Bitbucket to GitHub or GitLab, we'll ask you to confirm, and the repositories you already added will be removed.
What Intruder does with your code
We only read your repositories. We never write to them.
Nobody at Intruder ever accesses a complete copy of your repository.
Your source code is sent to Anthropic's Claude API as part of the pentest, where it may be held for up to 30 days before deletion.
We delete engagement data when the pentest is torn down, and may keep limited source code excerpts for up to 30 days to improve the service.
Your code is never used to train or fine-tune any AI model. Every model provider we use confirms that contractually.
💡 Tip: The Intruder Trust Center has the full details, including where data is processed and which sub-processors are involved.
Limits worth knowing
One Bitbucket account per Intruder account. Once connected, Intruder can access repositories across every workspace that Bitbucket user belongs to.
We list repositories from the first 25 workspaces your account can see. A repository in a workspace beyond that won't appear in the picker.
We list up to 2,000 repositories per workspace, and up to 2,000 branches per repository.
One provider per pentest. You can't mix Bitbucket and other code repositories such as GitHub in the same pentest.
ℹ️ Note: None of these limits are shown in the portal, so if a repository or branch you expect is missing, check them before assuming it's a permissions problem.
How to remove the Bitbucket integration
Go to Integrations, click Settings on the Bitbucket card, then click Remove Bitbucket under Danger zone and confirm.
⬇️
⚠️ Important: Removing the integration also removes any Bitbucket repositories you've added to a pentest you haven't submitted yet. Pentests already running or completed aren't affected, and their reports stay available.
FAQ
Does the Bitbucket integration create issues or tickets?
No, it's source code only. For ticketing, use Jira, Linear, GitHub, GitLab, Azure DevOps, or ServiceNow.
Does it work with Bitbucket Server or Data Center?
No, Bitbucket Cloud only.
Can I connect more than one Bitbucket account?
No, one per Intruder account. It reaches every workspace that account has access to.
Why does it ask for my email as well as a token?
Bitbucket Cloud authenticates an API token together with the account email that owns it. GitHub and GitLab authenticate the token on their own, which is why they don't ask.
Can I use Bitbucket and GitHub repositories in the same pentest?
No, all repositories in a pentest have to come from one provider.
Who can connect it?
Admins only. If you don't see the option, ask an admin in your account to connect it or to give you the Admin role.
Do I need to keep it connected after the pentest finishes?
No. Once a pentest has been submitted, removing the integration doesn't affect it or its report.
Is my code used to train AI models?
No. See What Intruder does with your code above, and the Trust Center.
Troubleshooting
"Unable to authenticate with Bitbucket. Please verify the email and API token."
The email isn't the Atlassian account that owns the token → Fix: use the account email the token was created under.
The token has been revoked, expired, or was pasted with characters missing → Fix: create a fresh token and reconnect.
"The Bitbucket API token is missing required scopes."
The token was created without one of the three scopes. The message names the scope Bitbucket wants → Fix: create a new token with
read:repository:bitbucket,read:workspace:bitbucket, andread:user:bitbucket, then reconnect.
"Failed to load repositories" in the Source code step
The token connected but is missing the repository or workspace scope, which isn't checked at connect time → Fix: create a new token with all three scopes and reconnect.
A temporary Bitbucket error → Fix: select Try again.
A repository I expect isn't in the list
Your Bitbucket account doesn't have access to it → Fix: get access in Bitbucket, then reload the step.
It's on Bitbucket Server or Data Center → Fix: not supported; use a Bitbucket Cloud repository.
It's in a workspace beyond the first 25 we list → Fix: contact us, and we'll help.
A branch I expect isn't in the list
We list up to 2,000 branches per repository → Fix: contact us if the branch you need is missing.
My pentest shows "Source code check failed"
We couldn't reach your repository when the pentest started, usually because the integration was removed, the token was revoked, or the repository or branch was renamed or deleted → Fix: check that the integration is still connected and the branch still exists, then use the Contact us button on the error, and we'll pick it up.
I can't see Bitbucket on the integrations page
You don't have the Admin role → Fix: ask an admin in your account.
Glossary
AI Full Pentest — An in-depth, code-assisted penetration test of a web application, run by an AI agent and bought as a one-off.
Code-assisted penetration test — A test that combines a review of the application's source code with live testing of the running app, so each finding is backed by evidence and mapped to the code responsible.
Bitbucket Cloud — Atlassian's hosted Bitbucket service at bitbucket.org, as opposed to a self-hosted Bitbucket Server or Data Center instance.
Scoped API token — A Bitbucket token created with a named list of permissions, rather than one that inherits everything the account can do.














