Get started
Quickstart
Sign in, connect a repository, scan it, run a verified fix and open the pull request: the whole loop on the public demo repository in about ten minutes.
This walkthrough uses the public demo repository aadhi0612/arachne-demo, which pins
requests==2.30.0. That version is affected by GHSA-j8r2-6x86-q33q (CVE-2023-32681: requests can leak
Proxy-Authorization headers to the destination server on redirect), fixed in 2.31.0. The same steps
work for your own public repositories once they are on the allowlist (see Current limits).
What you need
- An email address you can receive a verification code at.
- About ten minutes. A fix job usually starts within a minute and runs for a few minutes in CodeBuild.
- One of your three free monthly uses. It is only consumed if you actually open the PR.
1. Sign in#
- Open the appGo to arachne.withaadhi.com/app. You are sent to the sign-in page.
- Create an account or sign inSign-in is email and password (Cognito hosted login). New accounts verify their email with a code before the first sign-in; Arachne refuses an unverified email.
- Land on the dashboardYou get a personal organisation automatically. The header shows your usage meter, for example 0 of 3 used this month (resets Dec 1, 2026).
2. Connect a repository#
- Open the Connect tab and pick your source controlGitHub, GitLab (gitlab.com or an operator-approved self-hosted host), Bitbucket Cloud, Azure DevOps, or Any Git for any other public HTTPS Git server.
- Enter the repositoryEither the short form (
owner/repo,group/project,workspace/repo,org/project/repo) or paste the repository URL; Arachne normalises both. Any Git takes thehttps://clone URL. - Choose accessPublic repository needs no token. Add a token lets Arachne open pull/merge requests; see Connecting repositories for the exact scopes.
- Click Connect repositoryArachne checks the address, detects whether the repository is public, and adds it as a project. Connecting never writes to the repository. Hatchling allows 3 connected repos.
Connect GitHub in one click#
On the Connect tab, choose GitHub and press Continue with GitHub. A small window opens on github.com; approve access there and it closes by itself. Arachne then lists your repositories (name, owner, public or private, language, default branch and last push). Search the list, tick the repositories you want, and press Connect selected. Nothing to type, no token to create.
- What you approve. GitHub shows Arachne's OAuth App asking for the
repoandread:userscopes. GitHub has no read-only scope for private repositories, sorepois the narrowest scope that can list them; Arachne only reads repository names and metadata with it, plus creating a repository when you ask it to (see Starting a new project). - The token stays on the server. It is stored write-only in AWS Secrets Manager, per person and organisation, and is never sent to your browser, logged, put in a URL or written to the audit log. Disconnect GitHub on the same page revokes it at GitHub and deletes it.
- Public and private. Public repositories connect for scanning and fixing. Private repositories can be connected, but scanning and fixing them is not supported yet.
- Pop-up blocked? The page falls back to signing in in the same tab and brings you back to the Connect tab.
- Prefer a URL? Enter a URL instead shows the manual form below. It is also what you see when GitHub sign-in has not been set up on a deployment (the page says so in plain words).
Operators: create the GitHub OAuth App#
Continue with GitHub stays off until the deployment has an OAuth App. In GitHub, go to Settings, Developer settings, OAuth Apps, New OAuth App (create it under the organisation that should own it) and enter:
| Field | Value |
|---|---|
| Application name | Arachne |
| Homepage URL | https://arachne.withaadhi.com |
| Authorization callback URL | https://arachne.withaadhi.com/auth/github/callback |
Generate a client secret, then store both values in AWS Secrets Manager (Terraform creates the two secrets empty; it never overwrites the values you set):
aws secretsmanager put-secret-value --secret-id <prefix>/github_oauth_client_id --secret-string '<client id>'
aws secretsmanager put-secret-value --secret-id <prefix>/github_oauth_client_secret --secret-string '<client secret>'
No redeploy is needed: the app reads them when a person opens the Connect tab. Organisations that restrict third-party OAuth apps must approve Arachne before their members can create repositories there.
Connect GitLab in one click#
On the Connect tab, choose GitLab and press Continue with GitLab. A small window opens on gitlab.com; approve access there and it closes by itself. Arachne then lists your projects (path, public or private, default branch and last activity). Search the list, tick the projects you want and press Connect selected. It works exactly like the GitHub flow above, and a connected project behaves exactly like one connected by URL.
- gitlab.com only. The one-click flow is for gitlab.com. A self-hosted GitLab would need its own OAuth application, so connect those with Enter a URL instead and an access token (see the table below).
- What you approve. GitLab shows Arachne's OAuth application asking for the
apiandread_userscopes. GitLab has no narrower scope that can list private projects and create merge requests, soapiis the minimum; Arachne only reads project names and metadata with it, plus creating a project when you ask it to (see Create a GitLab project). - The token stays on the server and renews itself. GitLab access tokens last 2 hours, so Arachne stores the access and refresh tokens write-only in AWS Secrets Manager, per person and organisation, and renews them on the server before they expire. They are never sent to your browser, logged, put in a URL or written to the audit log. If GitLab stops accepting the sign-in (you revoked the app, or the refresh failed) the page says Your GitLab sign-in expired and asks you to reconnect; nothing else is affected. Disconnect GitLab revokes the tokens at GitLab and deletes them.
- Public and private. Public projects connect for scanning and fixing. Private projects can be connected, but scanning and fixing them is not supported yet.
- Pop-up blocked? The page falls back to signing in in the same tab and brings you back to the Connect tab.
Operators: the GitLab OAuth application#
Continue with GitLab stays off until the deployment has an OAuth application. In gitlab.com go to Preferences, Applications, Add new application (or the group's or admin area's Applications page) and enter:
| Field | Value |
|---|---|
| Name | Arachne |
| Redirect URI | https://arachne.withaadhi.com/auth/gitlab/callback |
| Confidential | Yes (leave ticked) |
| Scopes | api, read_api, read_user, read_repository, write_repository, profile, email (Arachne requests only api read_user at sign-in) |
Store the Application ID and Secret in AWS Secrets Manager (Terraform creates the two secrets with the placeholder not-configured; it never overwrites the values you set):
aws secretsmanager put-secret-value --secret-id <prefix>/gitlab_oauth_client_id --secret-string '<application id>'
aws secretsmanager put-secret-value --secret-id <prefix>/gitlab_oauth_client_secret --secret-string '<secret>'
No redeploy is needed. The secret names can be overridden with GITLAB_OAUTH_CLIENT_ID_SECRET_NAME and GITLAB_OAUTH_CLIENT_SECRET_SECRET_NAME.
Connect Bitbucket in one click#
On the Connect tab, choose Bitbucket and press Continue with Bitbucket. A small window opens on bitbucket.org; approve access there and it closes by itself. Pick a workspace, and Arachne lists its repositories (name, public or private, default branch and last update). Search the list, tick the repositories you want and press Connect selected. It works like the GitLab flow above, and a connected repository behaves exactly like one connected by URL.
- Bitbucket Cloud only. The one-click flow is for bitbucket.org. Bitbucket Server and Data Center are a different product and are not supported yet: neither by the one-click flow nor by Enter a URL instead, which is pinned to bitbucket.org.
- What you approve. Bitbucket shows the permissions the operator gave Arachne's OAuth consumer (Account read; Repositories read, write and admin; Pull requests read and write; see the operator steps below). Bitbucket fixes these on the consumer, so Arachne does not ask for a scope at sign-in.
- The token stays on the server and renews itself. Bitbucket access tokens last 2 hours, so Arachne stores the access and refresh tokens write-only in AWS Secrets Manager, per person and organisation, and renews them on the server before they expire. They are never sent to your browser, logged, put in a URL or written to the audit log. If Bitbucket stops accepting the sign-in the page says Your Bitbucket sign-in expired and asks you to reconnect.
- Disconnecting. Disconnect Bitbucket deletes the stored tokens and the token copies held by private repositories you connected this way. Bitbucket Cloud has no documented way for an application to revoke a token, so Arachne does not pretend to: for a hard revoke also remove Arachne in Bitbucket under Personal settings, OAuth, Authorized apps.
- Public and private. Public repositories connect for scanning and fixing. Private repositories can be connected, but scanning and fixing them is not supported yet.
- Pop-up blocked? The page falls back to signing in in the same tab and brings you back to the Connect tab.
Operators: the Bitbucket OAuth consumer#
Continue with Bitbucket stays off until the deployment has an OAuth consumer. In Bitbucket go to the workspace's Settings, OAuth consumers, Add consumer and enter:
| Field | Value |
|---|---|
| Name | Arachne |
| Callback URL | https://arachne.withaadhi.com/auth/bitbucket/callback |
| This is a private consumer | Yes (tick it, so the consumer has a secret) |
| Permissions | Account: Read. Repositories: Read, Write and Admin (Bitbucket requires Admin to create a repository; without it Create Bitbucket repository is refused, while listing and connecting still work). Pull requests: Read and Write. |
Store the consumer's Key and Secret in AWS Secrets Manager (Terraform creates the two secrets with the placeholder not-configured; it never overwrites the values you set):
aws secretsmanager put-secret-value --secret-id <prefix>/bitbucket_oauth_client_id --secret-string '<key>'
aws secretsmanager put-secret-value --secret-id <prefix>/bitbucket_oauth_client_secret --secret-string '<secret>'
No redeploy is needed. The secret names can be overridden with BITBUCKET_OAUTH_CLIENT_ID_SECRET_NAME and BITBUCKET_OAUTH_CLIENT_SECRET_SECRET_NAME.
Connecting repositories#
| Provider | Repository | Token for pull/merge requests | PR status |
|---|---|---|---|
| GitHub | owner/repo or URL | Fine-grained personal access token limited to this one repository: Contents read and write, Pull requests read and write (Metadata read is added automatically). | Live-tested |
| GitLab | group/project (subgroups allowed) or URL; optional self-hosted host (self-hosted is manual only: the one-click sign-in is gitlab.com) | Project access token, role Developer or higher, scope api (merge requests need the API; write_repository alone only covers git push). | Beta |
| Bitbucket Cloud | workspace/repo or URL (one-click sign-in available; Bitbucket Server and Data Center are not supported yet) | Repository access token with repository:write and pullrequest:write. App passwords are deprecated by Atlassian and not supported. | Beta |
| Azure DevOps | org/project/repo or https://dev.azure.com/org/project/_git/repo | Personal access token for that organisation with Code (Read & write) (vso.code_write, which covers pushes and creating pull requests). Pull Request Threads is only for comments and is not needed. | Beta |
| Any Git | https:// clone URL on a public host name | None: there is no pull request API. Verified fixes are exported as a patch. | Patch only |
Beta means the GitLab, Bitbucket and Azure DevOps pull/merge request code is verified against each vendor's documented API request and response shapes with mocked HTTP, not yet against a live account.
Public and private repositories
Monorepos: a scan finds dependency files in any folder (not inside node_modules or vendor) and lists each folder it checked. "Fix this folder" runs the fix job inside that folder, and the PR or patch carries the real repository paths. Over MCP, pass path (for example services/api) to fix_submit and propose_version.
Private repositories: connect with Continue with GitHub, GitLab or Bitbucket, or paste a token. Arachne clones the repository with that token for scans and fix jobs. In a fix job the token is read with temporary credentials scoped to that one secret for 15 minutes; the build role holds no tenant secret and the token is never passed to the sandbox that runs your code. Azure DevOps and Any Git private repositories are open-PR only for now.
- Tokens are write-only. Each one is stored in AWS Secrets Manager under its own name, used only for the one repository it was added for, and never shown again, logged or written to the audit log. Replace token rotates it; Disconnect deletes it immediately.
- Who can do what. Owners and admins connect repositories and manage tokens; members and viewers can see the list.
- Addresses are checked. Only
https://on port 443, no user name or password in the URL, no IP addresses or internal host names, and the host must resolve to public addresses (checked again before every clone).
No token? Download the patch#
Every verified fix has a Download patch button on its job page, and Open PR offers it whenever a pull request can't be opened (no token, Any Git, or the provider refused). Apply it from the repository root:
git switch -c remediation/<job-id>
git apply --check arachne-<job-id>.patch && git apply arachne-<job-id>.patch
git commit -am "Remediate vulnerable dependencies"
git push -u origin HEAD # then open the pull/merge request as usual
3. Scan it#
On the dashboard, click Findings next to the project, then Scan now. Arachne clones the repository, detects the ecosystem, reads the declared dependencies and matches each against the advisory database. Scans are free and never count against your allowance.
For the demo you should see a row like:
| Package | Version | Advisory | Fix | KEV | EPSS |
|---|---|---|---|---|---|
requests | 2.30.0 | GHSA-j8r2-6x86-q33q | 2.31.0 | (a small probability) |
Tip
Findings are sorted most urgent first: anything in CISA's Known Exploited Vulnerabilities list, then by EPSS (the probability of exploitation in the next 30 days).
4. Click "Fix this"#
Fix this appears on findings that have a known fixed version. It queues one fix job for the project: the job plans upgrades for every fixable vulnerable dependency it finds, not only the row you clicked.
- Your allowance is checked and one use is reserved (not spent).
- The job page opens and refreshes every few seconds:
queued→running→done. - The scheduled worker claims the job within about a minute and starts a CodeBuild build for it.
5. Read the evidence#
When the job is done, the page shows the outcome, a confidence label and three sections:
| Section | What to check (demo values) |
|---|---|
| Plan | One row per package: requests 2.30.0 -> 2.31.0 with status fix_found. The resolver picks the lowest version that fixes every known advisory, respects the package-age cooldown and does not jump a major version without asking. |
| Gates | Five rows, each with a status: clean_room_reinstall, build, independent_rescan, test_delta, policy. All pass means the outcome is verified. |
| Diff | The exact change that would be pushed. For the demo it is a small edit to the dependency manifest (and lockfile, where there is one). |
The outcome reads verified with confidence high: deterministic dependency-only change. If you see
failed or unverifiable instead, nothing can be opened and your use has already been returned.
What each gate checks.
6. Approve, then open the PR#
- Approve PRRecords your decision on the job's
open_prapproval. (Reject instead and the reserved use goes back.) - Open PRArachne re-checks that the job is
verifiedand approved, pushes a branch namedremediation/<job-id-prefix>-<project>with exactly the reviewed files, and opens the pull request. The PR body is the evidence bundle: plan, gate results and confidence. - DoneA "Pull request opened" card links to the PR, and the meter now reads 1 of 3 used. Review and merge it on GitHub as you would any PR.
Warning
Opening the PR is the step that spends a use. Opening the same job's PR again returns the existing PR and does not count twice.
Starting a new project (no repository yet)#
On the Connect tab, the Start a new project card sets up a project that has no repository. Pick a language,
name the project and list the packages you need, one per line (requests or flask==3.0.0). Arachne
generates only the basic setup, never application code:
- the language's dependency manifest with each package pinned: the version you gave, or otherwise the newest release that no known advisory affects (and that is more than 7 days old);
- a
README.mdthat lists every package, its version and why it was pinned; - a
.gitignore.
| Language | Manifest |
|---|---|
| Python | requirements.txt |
| JavaScript (npm) | package.json |
| Java (Maven) | pom.xml |
| Go | go.mod |
| Rust (Cargo) | Cargo.toml |
| PHP (Composer) | composer.json |
| Ruby (Bundler) | Gemfile |
| .NET (NuGet) | <project>.csproj |
| Dart (pub) | pubspec.yaml |
| Swift (SwiftPM) | Package.swift |
| Erlang (rebar3) | rebar.config |
The files appear in a read-only preview with a tab per file. Copy one, or download everything as a .zip. Nothing is
stored, and nothing is pushed anywhere unless you create a GitHub repository, GitLab project or Bitbucket repository from it (below). If version data is not available for a package (for example the registry is unreachable, or
Swift, which has no package registry), Arachne leaves it unpinned and says so in the README; it never invents a version. Any
other language gets a clear language not supported yet answer that lists the supported ones.
Vulnerability check#
Under the preview, Vulnerability check lists every advisory that affects the pinned versions: its id, severity and the version that fixes it. A clean result reads No known vulnerabilities. A package Arachne could not check (no advisory data, or left unpinned) is labelled as such and is never reported as clean.
Create a GitHub repository#
After Continue with GitHub, Create GitHub repository creates a new repository in your own account (or an organisation you belong to), private or public, and pushes the generated files in one commit. It uses your GitHub sign-in, never Arachne's own credentials. The name is checked strictly; if it is already taken Arachne creates nothing and tells you. It never overwrites, force-pushes or deletes. GitHub adds its own first commit when a repository is created, so the history is that commit plus one Arachne commit holding every file. Then Connect it adds it as a project and, for a public repository, Scan it opens its findings.
Create a GitLab project#
Under the generated files, Create it on lets you choose GitHub, GitLab or Bitbucket. After
Continue with GitLab, Create GitLab project creates a new project on gitlab.com in
your own namespace (or a group you belong to), private or public, with GitLab's initial README, and pushes the generated files in one
commit (the README is replaced by Arachne's). It uses your GitLab sign-in, never Arachne's own credentials, refuses a name that is
taken without creating anything, and never overwrites, force-pushes or deletes. Connect it and
Scan it then work as for GitHub. Over the API this is the same POST /v1/scaffold/publish with
"provider": "gitlab" added (default github).
Create a Bitbucket repository#
Under the generated files, Create it on also offers Bitbucket Cloud. After
Continue with Bitbucket, choose one of your workspaces (Bitbucket has no default one) and
Create Bitbucket repository creates a new repository there, private or public, and pushes the generated files as one
commit on main. The name may use letters, numbers, hyphens and underscores. Creating a repository needs the Repositories: Admin permission on the operator's consumer. It uses your Bitbucket sign-in, never
Arachne's own credentials, refuses a name that is taken without creating anything, and never overwrites, force-pushes or deletes.
Connect it and Scan it then work as for GitHub. Over the API this is the same
POST /v1/scaffold/publish with "provider": "bitbucket" and "owner": "<workspace>" added.
The same thing is available over the API for a signed-in person (a read-only role is enough):
GET /v1/scaffold/languages, POST /v1/scaffold with
{"language": "python", "project_name": "demo", "packages": [{"name": "requests"}, {"name": "flask", "version": "3.0.0"}]},
and POST /v1/scaffold/zip for the archive. Up to 50 packages; names are validated strictly for each ecosystem.
Do the same from your AI assistant#
Everything above except the approval can be driven over MCP: repos_affected scans,
fix_submit queues the job, job_status shows the gates, and pr_open opens the PR once you have
approved it in the web app. Start with Install & connect.