← Back to all posts
Published on · by Renaud Deraison

The token was outside the vault

On November 25, 1Password disclosed that an attacker had used one employee's corporate GitHub account and a stolen token to copy private source code, reach its CI/CD system, and push code to backend services that downloaded customer account records. The vaults held. The credential that worked was a developer token, and developer tokens sit in plain files that every process on a laptop can read, coding agents included. In Bromure Agentic Coding, the GitHub token in the agent's machine is a stand-in, every push waits for you on the Mac, and the real token never leaves the Mac's encrypted store.

The company that builds the vault lost customer data through a key that wasn't in it: a GitHub token belonging to one employee.

On November 25, 1Password published an update on a security incident it had started investigating on November 19. Someone had gained access to "an employee's corporate GitHub account." With it, the attacker "used the account to access source code and push malicious code to backend services, which downloaded administrative data pertaining to our customers." The attacker also "copied source code from private repositories and gained access to our CI/CD system." BleepingComputer, SecurityWeek and Help Net Security covered it the same day.

The records covered a subset of users: names, email addresses, account and user identifiers, creation and last sign-in times, public keys, Secure Remote Password parameters, and the tokens inside some emailed invitation, provisioning and recovery links. 1Password says vault contents, the keys that protect them, recovery keys, and its apps and browser extensions were not touched: "At no time were customer vault contents accessed by, or available to, the attacker." The link tokens need an SSO sign-in or a six-digit emailed code to be used, and 1Password has lengthened those codes to ten alphanumeric characters.

The cleanup list is what you'd expect when a developer credential goes missing. Disable the account. "Revoked the stolen token." Remove the access the attacker created. Rotate "all credentials which may have been exposed", because the CI/CD system "contains infrastructure related secrets". Tighten GitHub, CI/CD and endpoint controls. Restore clean versions of the services that ran the attacker's code.

1Password hasn't said how the token was taken, and none of the coverage says either. Its disclosure does show what one GitHub token was worth.

One token, three jobs

The attacker used a token issued to one person, and it was enough for three things:

  • Read. Clone private repositories and copy the source.
  • Write. Push code that ended up running on backend services, where it pulled customer records.
  • Reach the pipeline. Get into the CI/CD system, and with it the infrastructure secrets 1Password then had to rotate.

None of that needed the token's owner to click anything after the theft. GitHub checks that the token is valid and has the right scopes. It doesn't know whether the person holding it is the employee.

One stolen tokenfrom one employee'scorporate GitHub accountinvestigation began Nov 19Read: private repositories"copied source code fromprivate repositories"Write: a push to backend servicesthe attacker's code ran and downloadednames, emails, IDs, public keys,SRP parameters, link tokensReach: the CI/CD system"contains infrastructure related secrets"rotation of everything it could readThe vaultvault contents and their keysaccount recovery keysapps and browser extensionsnot accessedthe token never needed them
What one stolen GitHub token was worth at 1Password, from its November 25 disclosure. The vault, its keys and the client apps sit apart and were not reached. The token opened private source, a push that turned into code on backend services, and the CI/CD system with its infrastructure secrets.

Where a developer's GitHub token lives

The vault is built to keep secrets away from everything that shouldn't read them. A GitHub token on a working laptop gets no such treatment, because the tools that use it need it in plain text: the gh CLI keeps it in ~/.config/gh/hosts.yml, git's credential store keeps it in ~/.git-credentials, and plenty of people export GH_TOKEN from their shell profile so scripts can use it. Any process running as that user can read all three.

In 2026, the processes running as that user include a coding agent and everything the agent runs: the npm install after a pull, the test suite, an MCP server, a script a rules file tells it to start. This month, this blog has covered three campaigns built to collect those files:

  • The wfx campaign used stolen tokens for 4,837 GitHub accounts to push a stealer into more than 8,000 repositories, 771 of them as an npm postinstall hook that reads gh and git credentials off whatever machine installs it.
  • The 22 repositories Bitdefender found told the coding agent to run a setup script that checks which GitHub and GitLab tokens can push, then commits itself into up to 25 more repositories.
  • GTIG's MIDNIGHT NEPTUNE edited .claude/settings.json in internal repositories so that starting Claude Code fetched a backdoor, and named its stolen GitHub tokens after Copilot.

Each of those ends where 1Password's incident started, with someone other than the developer holding a token GitHub accepts. Bromure takes that token off the machine the agent works in.

The same token in Bromure Agentic Coding

Bromure Agentic Coding runs Claude Code, Codex, Grok, Kimi and omp in Ubuntu VMs on your Mac, one VM per machine. The agent's shell, its package installs and every script it starts stay inside that VM. Every connection out goes through a virtual switch and a proxy on the Mac, outside the VM.

The token in the VM is a stand-in

You add your GitHub token once, under Credentials › GitHub Tokens, on the Mac. Bromure writes a fake into the machine's ~/.git-credentials and gh configuration and exports it as GH_TOKEN. It is ghp_ plus 36 characters, so gh and git accept it, and GitHub never issued it. The real token stays in Bromure's secrets vault on the Mac, encrypted with AES-GCM under a master key held in the macOS Data Protection Keychain, with iCloud sync off.

When the agent runs git push or gh pr create, the request leaves the VM carrying the stand-in. The proxy swaps in the real token, and only for requests to the host the token belongs to. Matching is exact or subdomain and never a substring match, so github.com.example.net doesn't get it.

When a postinstall hook, a rules-file script or a backdoor reads ~/.config/gh/hosts.yml inside a Bromure machine, it gets a string that signs in to nothing. Taken off the machine and tried from the attacker's side, it can't clone a private repository and it can't push. The read and the write in the 1Password timeline both start with a token GitHub accepts, and GitHub rejects this one.

Using it from inside trips the alarm

A thief who knows about stand-ins might try to use the token from inside the VM, through the proxy, so the swap happens on the way out. The swap only happens for GitHub's hosts. Sent anywhere else, to an upload endpoint, a paste site or a server that "validates" keys, the stand-in is a tripwire. The proxy scans every outbound request, headers and body, for a stand-in headed outside its scope. It blocks the request with HTTP 451 before a byte is forwarded, pauses the VM, and shows an alert titled This environment may have been compromised, listing the credential, the host it was minted for and the host it was sent to. The detection is a red Credential brokering row in the Security Timeline.

Only allow credentials Bromure injects goes one step further. With that strict mode on, a request carrying any credential Bromure didn't put there is blocked with the same alert: a token someone pasted into the VM by hand, one the agent found in a log, one a script brought with it. Your organization can require strict mode on every machine.

Bromure VMagent, npm hooks, MCP servers,any script it starts~/.git-credentials~/.config/gh/hosts.ymlGH_TOKEN=ghp_…all hold the same stand-in:right prefix, right length,never issued by GitHubProxy on your Macoutside the VMreal token: secrets vault,AES-GCM, Keychain-held keyswapped in only forgithub.com and its subdomainsevery write to the forgewaits for you1. git push to github.comAllow write on "github" fromworkspace "…"? POST …/git-receive-packreal token added only after you approve2. Stand-in sent to another hostblocked with HTTP 451, no byte sent.VM paused. "This environment mayhave been compromised."3. A stealer copies it outpostinstall hook, rules-file script,backdoor: it gets the stand-inTried from the attacker's machineno Mac in the path to swap it. GitHub rejects it:no clone of private source, no push.
The same GitHub token in a Bromure machine. The VM holds a ghp_ stand-in; the real token stays encrypted on the Mac. A push to github.com waits for your approval, then goes out with the real token swapped in. The stand-in sent anywhere else is blocked with HTTP 451 and the VM pauses. Copied out of the VM, it signs in to nothing.

Every push waits for you

The 1Password attacker's most damaging step was a write: code pushed with a token that was allowed to push. In a Bromure machine, writes to a git forge go through Guardrails, and new machines put GitHub, GitLab and Bitbucket in Prompt before write. git push (git-receive-pack on the wire) counts as a write, and so does every write through the REST API. Each one pauses for a dialog on the Mac titled Allow write on "<scope>" from workspace "<name>"?, with the exact operation as METHOD /path. Reads, including git fetch, go through with no dialog.

You asked the agent to fix a test. A push to a backend service's repository you never mentioned shows up as a dialog you didn't expect, and you refuse it. An approval lasts 15 minutes by default, or the rest of the session if you choose, and grants are wiped when the session ends.

A machine that only needs to read code can be set to Read-only for GitHub. Every push and every REST write is then blocked outright. On machines using the OpenShell + Sentry engine, the starter policy already allows GitHub read-only. Each request is inspected by method and path, so a rule can open writes for the one repository the task is about and keep every other repository the token can reach closed.

Your Automations get the same treatment. A GitHub trigger is polled from the Mac with the machine's stored token, and that token never enters the VM. The agent that runs when the trigger fires holds stand-ins like any other.

Whatever it collects has nowhere to go

1Password's attacker downloaded customer records and copied source code. Data that leaves a Bromure machine leaves through the Mac. With the Bromure Firewall's Unmatched traffic set to Deny, or on an OpenShell + Sentry machine, the VM reaches the hosts its rules name and nothing else. An upload to a host no rule names is refused. With Enforce binaries on, each rule also names the programs allowed to use it, and every path to root inside the VM is removed.

The agent watchdog watches the session from outside the VM: bursts of blocked requests, credentials that don't belong, new destinations once the session has settled, outbound volume far above its baseline. Set to Quarantine, it cuts the network, pauses the VM and asks you what to do.

You know which session did it

1Password started from "indications" that someone else was using an employee's GitHub account. On a Bromure machine with the kernel sentry, a kernel module reports every program launch and every connection from inside the VM, over a channel the agent can't silence. Each refused upload, each 451 and each declined push is a row in the Security Timeline. Double-click a network row and its network lineage opens: your prompt, the agent's stated intent, the tool call, and the process chain from the agent down to the script that made the connection. A connection that no tool call explains reads "Not traced to an agent's tool call."

On Macs enrolled in Bromure Enterprise Manager, credential exfiltration attempts reach the administrator as credential.exfiltration events, alongside the rest of the session metadata, never prompts or secrets. The security team sees which Mac and which machine tripped, the day it happens.

Nothing real to rotate in the VM

1Password's response included rotating "all credentials which may have been exposed." When a Bromure machine is compromised, the real tokens were never in it. The list of things to rotate on that machine is the stand-ins, which Bromure re-issues on the next launch. If you decide to rotate a real token anyway, you change it in the machine's Credentials settings on the Mac, not in files scattered across a laptop.

The machine itself comes back clean. A compromise alert marks it compromised, and it won't boot again until you choose Wipe and Launch, which wipes its disk image and home and keeps your tokens, SSH keys and settings. For anything short of that, ⋯ › Rewind home… restores the home from a daily copy-on-write checkpoint.

The token is a stand-in

The agent and every script it runs see a ghp_ token GitHub never issued. The real one stays encrypted on the Mac and is swapped in only for GitHub's hosts.

Pushes wait for you

Prompt before write is the default for GitHub, GitLab and Bitbucket. Each push shows the exact operation. Read-only machines can't push at all.

Misuse trips the alarm

A stand-in headed to any other host gets HTTP 451 and pauses the VM. Strict mode blocks any credential Bromure didn't inject.

One row, one rotation

The kernel sentry traces each refused connection to the tool call behind it. The real tokens never entered the VM, so there's nothing on it to rotate.

What to do this week

  • If you're a 1Password customer, 1Password says you don't need to change your password or Secret Key. Expect phishing aimed at a list of known 1Password users: treat unexpected invitations, recovery requests and "verify your account" emails with suspicion, and go to the app or the website directly.
  • List the GitHub tokens that can reach your organization. In the organization settings, require approval for fine-grained personal access tokens, restrict classic tokens, and set a maximum lifetime. Revoke anything nobody can account for.
  • Check what a push can do without a second person. Branch protection with required reviews, and environment protection rules with required reviewers on deployment jobs, keep a pushed commit from running on backend services by itself.
  • Look at your GitHub audit log for clones and pushes from addresses and tokens you don't recognize, and at your CI/CD system for secrets read by jobs that shouldn't need them.

Then take the token off the machines where agents work. Add it once in Bromure, on the Mac, and let the agent's VM hold a stand-in. The token model is covered in the Credentials & the Wire Boundary chapter of the manual, Prompt before write in Prompt Injection, and default deny and the kernel sentry in Sandbox Policy.

Related articles

The tests asked the blockchain

On November 24, SafeDep reported a 58-line Python loader planted in 375 GitHub repositories by PolinRider, a North Korea-linked campaign that Apiiro now counts in at least 7,609 repositories. In some of them it sits in conftest.py, so a plain pytest run reads an Ethereum wallet, decodes the newest transaction as JavaScript and hands it to Node.js, with every error hidden. Running the tests is the first thing a coding agent does in a new repository. In Bromure Agentic Coding, that first request to the Ethereum indexer meets a default-deny network on the Mac, the agent is told what its test run just tried, and anything that gets further finds stand-ins and a push that waits for you.

Agentic CodingNews & Analysis

The key was planted

On November 16, someone in Bucharest pointed OpenCode, a free coding agent, at a US financial firm. In 5 minutes 44 seconds it read the API documentation, followed a link only an agent would follow, found a key and tried it with curl. The key was a decoy Jesta had planted, so nothing was taken. In Bromure Agentic Coding, every key your own agent holds works the same way: a stand-in that authenticates only through your Mac, and that trips an alarm when it heads anywhere else.

Agentic CodingNews & Analysis

The agent deleted the rule

On November 26, Apiiro reported that six of seven popular coding agents could rewrite the ignore files and deny rules meant to keep them out of .env. Qwen Code removed the rule, read the key and put the rule back. On public GitHub, 243 agent-signed commits removed the last rule guarding .env, and 131 of them committed the file. In Bromure Agentic Coding, the key isn't in .env to begin with, the rules that matter are set on your Mac where the agent can't edit them, and every push waits for you.

Agentic CodingNews & Analysis