Securing Ground
By Roman R., Incident Response Lead, and Andrei Stefan, Auditing Engineer, Quantstamp
Some of the largest losses in crypto over the past two years didn't begin with a flaw in a smart contract. In October 2026, attackers took roughly $6.3 billion from Binance. Its preliminary investigation traces the attack through compromised engineer devices and stolen deployment credentials into its wallet signing service (initial findings). Drift Protocol lost roughly $285 million in April 2026 at the end of a six-month social engineering operation aimed at its people rather than its code (incident summary).
An audit is deliberately scoped to the code, so it leaves out the people who sign transactions, the laptops they sign from, the pipeline that deploys the code, and the vendor accounts behind all of it. Over the past six months we've been working with Ground on exactly that part of their security, and this post walks through what we did, what we found, and what we think other protocol teams can take from it.
The 2am question
The test we used throughout was a simple one. An endpoint alert fires on an engineer's laptop in the middle of the night, and nobody knows yet whether it's a false positive, an infostealer, or an attacker who has been on the machine for days. Mandiant's M-Trends 2025 report puts the global median attacker dwell time at 11 days. Someone has to decide what to rotate first, and in what order, without locking the team out of its own admin controls, and most teams make that call from memory or from a runbook written by someone who has since left.
A standard security review answers part of this with a list of findings, each scoped to one control. Ground got that list too, but a list can't show that one account can reach a secret, which grants access to a key, which holds a role, which moves customer funds. The severity sits in those connections, so the work was built to map them.
| Code audit | Control checklist | Access-graph review | |
| Models | The contracts | Individual controls | Reachability between assets |
| Answers | "Can this be exploited?" | "Is this configured well?" | "If this falls, what falls with it?" |
| Output | Findings | Findings | Findings and rotation worklists |
What we did with Ground
Started with the people. Every Ground team member had a sixty-minute, one-on-one session with us covering the first ten minutes of a suspected compromise, the phishing patterns currently aimed at crypto teams, editor and package-manager hardening, and keeping secrets out of plaintext. Each person then received a managed password manager, endpoint detection, and hardware security keys, and we removed the weaker fallback and recovery options, since a hardware key stored next to a password and authenticator code in the same vault gives up most of its phishing resistance.
Set up custom onchain monitoring. Onchain, we pinned every value that decides who controls Ground's contracts, including proxy implementations and admins, and set up contract-specific invariants and threshold monitors on fund flows, so the team hears about any change over Slack, Telegram, or email as soon as it happens.
Closed gaps in vendors and code. We reviewed every service Ground depends on, including its identity provider, code hosting, CI/CD, hosting, databases, and custody, against each vendor's own security guidance. We set up a repository scanner that now checks Ground's full git history for committed secrets and its dependency tree for malicious packages, the kind of exposure the November 2025 Shai-Hulud npm worm exploited when it left 2,485 still-valid secrets behind (Check Point).
Kept watch. When a major supply-chain or credential-stealer campaign starts circulating, we push its indicators into Ground's endpoint tooling and sweep the whole organization with matching rules, and we triage every onchain and endpoint alert from one consolidated log dashboard.
Mapped how a compromise would spread. Finally, we modeled Ground's environment as one graph of people, devices, accounts, vaults, secrets, keys, onchain roles, and the funds at the end of each path, so we could see what falls with each asset rather than only whether each asset is configured well.
What we found
- About thirty compromise paths. Ground's access graph came to just over 200 nodes and 240 edges, and walking it turned up about thirty distinct paths an attacker could take, even though every node on those paths was configured correctly on its own.
- Six places they ended. The thirty paths converged on six endpoints, and we shared each of those findings with Ground and implemented mitigations for them.
- Campaigns cleared in minutes. Several major campaigns have circulated this year, and each time we confirmed Ground was not affected within minutes, a check that would have taken hours or days without the setup in place.
What other protocol teams can take from this
Severity lives in the connections. A finding that looks minor on its own can be the first step in a path to customer funds, and the only way to see that is to map the paths.
Plan for where an incident ends up. Ground's thirty paths collapsed into six endings, which is a far more manageable number to rehearse, mitigate and monitor than one runbook per possible starting point.
Start with a conversation. The one-on-one sessions need no system access and nothing provisioned, and they surface more than most teams expect. If you do one thing after reading this, walk each person on your team through the first ten minutes of a suspected compromise.
Working with us
The work we did with Ground draws on years of Quantstamp incident response, across website compromises, organized scam groups, and nation-state campaigns, and we're now offering these operational security engagements to more protocol teams alongside our audits.
If you'd like to see where your team stands, every engagement starts the same way Ground's did, with a sixty-minute conversation per person.
Book a 60-minute operational review
Already dealing with an incident? Talk to us now