Log in
For business
KYT office
Compliance solution to monitor risks, detect sanctions and ensure AML rules.
KYT office
Compliance solution to monitor risks, detect sanctions and ensure AML rules.
AML certification
How industry players can get up-to-date knowledge and professional certification.
AML certification
How industry players can get up-to-date knowledge and professional certification.
Comprehensive transaction analytics that helps to build graphs and trace funds.
Graph
Travel rule
(soon)
For personal use
Telegram bot
Bot for checking crypto for risks, providing AML reports.
Telegram bot
Bot for checking crypto for risks, providing AML reports.
Crypto recovery
Services are focused on tracking
and recovering crypto assets.
Сrypto recovery
Services are focused on tracking
and recovery crypto assets.
Docs and reports
All types of documents related
to cryptocurrency.
Docs and reports
All types of documents related
to cryptocurrency.
Portfolio tracker
Information about all assets and risk assessment in one place.
Portfolio tracker
Information about all assets and risk assessment in one place.
AML checks
Сhecking wallets and transactions
for illicit funds.
AML checks
Сhecking wallets and transactions
for illicit funds.
ES
FR
中文
Вход
AML-сертификация
Актуальные знания в области AML/KYT от ведущих экспертов отрасли.
AML-сертификация
Актуальные знания в области AML/KYT от ведущих экспертов отрасли.
Graph
Визуализация перемещения активов
и связей между кошельками.
Graph
Визуализация перемещения активов
и связей между кошельками.
KYT Office
Мониторинг транзакций и кошельков для вашего отдела комплаенса.
KYT Office
Мониторинг транзакций и кошельков для вашего отдела комплаенса.
Для себя
Для Бизнеса
Travel rule
(Cкоро)
Телеграм-бот
Бот для проверки кошельков и транзакций с выдачей отчётов.
Телеграм-бот
Бот для проверки кошельков и транзакций с выдачей отчётов.
Возврат средств
Услуги по отслеживанию и возврату украденных криптоактивов.
Возврат средств
Услуги по отслеживанию и возврату украденных криптоактивов.
AML-проверки
Проверка кошельков и транзакций на наличие "грязной" криптовалюты.
AML-проверки
Проверка кошельков и транзакций на наличие "грязной" криптовалюты.
Портфолио трекер
Информация о всех активах и оценка рисков в одном месте.
Портфолио трекер
Информация о всех активах и оценка рисков в одном месте.
Отчёты
Все типы документов связанные
с криптовалютой.
Отчёты
Все типы документов связанные
с криптовалютой.
PRIVATE
Government
Financial institutions
Exchanges
PSP's
Wallets
Gambling platforms
Investment platforms
Stablecoin issuers
Investigators
Regulators
Law enforcement
Для бизнеса
Госсектор
Финансовые организации
Биржи
Платежные провайдеры
Кошельки
Игровые платформы
Инвестиционные платформы
Эмитенты стейблкоинов
Расследователи
Регуляторы
Правоохранительные органы
ES
FR
中文
24.07.2026

A $ 3.9 Million 'Master Key':
How a Hacker Drained B² Network

On July 23, 2026, approximately $ 3.9 million worth of B2 tokens was withdrawn from B² Network’s staking contract. What makes the incident unusual is that the attacker did not exploit the code in the conventional sense. Instead, they gained control of a privileged key used by the project to upgrade its contracts, quietly replaced the contract’s underlying logic, and made the contract release the funds itself. The stolen assets then disappeared across four blockchains.

BitOK analysts reconstructed how the attacker used this 'master key' and where the stolen funds ultimately went.


Table of content:


  1. How Approximately $3.9 Million Was Drained From B² Network Staking
  2. How the Attack Unfolded
  3. How the Stolen Funds Moved
  4. Where the Funds Ultimately Went
  5. Key Addresses
  6. The Big Picture
  7. The Key Lesson

How Approximately $3.9 Million Was Drained From B² Network Staking

The first point to understand is that the weak link was not the contract code itself, but the access controls governing who could change it. Before going further, here are three terms that are central to the incident:
  • Staking is the process of locking tokens in a dedicated contract in exchange for rewards. B² Network's B2 tokens were held in such a contract.
  • Upgradeable contract (proxy). Many smart contracts are designed so that their logic can be updated: the public-facing address remains the same, while the underlying implementation - the rules that determine how the contract behaves - is replaced with a new version. Only the holder of a trusted privileged key, commonly called an upgrade key, is authorized to make such changes.
  • Key compromise occurs when a trusted key falls into unauthorized hands. The attacker does not need to break the contract itself; they can simply install their own version of the system's logic. That is exactly what happened here.
Investigator's note: The incident was not caused by a calculation error in the contract or by a vulnerability that any user could reproduce. The attacker obtained upgrade privileges, replaced the contract's operating logic, and made it transfer B2 tokens to their wallet. It remains unclear how control of the key was obtained - whether through theft, infrastructure compromise, or insider activity.
A simple analogy helps explain the exploit. Imagine an office where every payment is processed by an automated cashier that follows instructions stored in a safe. The cashier cannot be bribed and does not make mistakes; it simply executes what is written. A technical administrator, however, is authorized to rewrite those instructions. The attacker gains administrator access and adds a new rule: 'When this signal is received, transfer all funds to this account.' The cashier follows the updated instruction without violating any of its rules. The attacker never had to break the cashier - they changed the rules it was required to follow.

The key facts:
  • Losses - approximately $3.9 million in B2 tokens.
  • Attack vector - compromise of administrative access.
  • What happened to the funds - the B2 tokens were sold for BNB, consolidated, and distributed across several blockchains and services. The public trail ultimately enters a privacy-oriented service layer.

How the Attack Unfolded

  1. Obtaining privileged access. The attacker gained control of an address that the project had previously used to upgrade the staking contract.
  2. Deploying a malicious implementation. The attacker deployed a new contract implementation containing a function that could transfer B2 tokens to any specified address.
  3. Replacing the contract logic. Using the standard upgrade mechanism, the staking contract was pointed to the malicious implementation. The contract address remained unchanged, but its behavior was altered.
  4. Withdrawing the B2 tokens. The new function forced the contract to send the tokens it held to the attacker's primary wallet, labeled Exploiter 1 in this report.
  5. Selling and distributing the proceeds. The tokens were sold for BNB, the proceeds were transferred to a second wallet, Exploiter 2, and then split across routes on different blockchains.
Important: There was no repeated withdrawal caused by a coding error, no price-oracle manipulation, and no malfunction in reward accounting. The decisive event was the unauthorized replacement of the contract's logic.

How the Stolen Funds Moved

After receiving the B2 tokens, the attacker did not keep the funds in their original form. The tokens were sold through LiquidMesh trading infrastructure. The resulting BNB and WBNB were consolidated in the second wallet, and the WBNB was unwrapped back into native BNB. From there, the flow split into several branches.

Investigator's note: WBNB is the wrapped version of BNB - a tokenized format used in decentralized trading. Unwrapping it back into native BNB made the subsequent transfers easier to execute.

The transfer routes were as follows:
  1. Route A - directly to NEAR. Part of the BNB and USDT was sent from BNB Chain to one-time deposit addresses associated with NEAR Intents. The funds were then collected by HOT Bridge Treasury, an operational service node, meaning they had entered NEAR's official service infrastructure.
  2. Route B - through Ethereum and then to NEAR. A large share of the flow passed through Relay and Bridgers and appeared on Ethereum as ETH. Ethereum served only as an intermediate network. The ETH was then distributed across one-time addresses also linked to confidential NEAR Intents deposits.
  3. Route C - Solana. A separate portion of the BNB was bridged into SOL, split between two addresses, and later reconsolidated in a shared collector wallet. This collector is the last public node in the branch that can be traced with confidence.
Two routes that initially appear different - one directly from BNB Chain and another passing through Ethereum - ultimately converge at the same destination: the NEAR Intents service layer. This is crucial to understanding why the trail becomes difficult to follow.
How the attacker moved the funds. The graph was built using BitOK's Graph tool.
Investigator's note: A deposit into NEAR Intents does not automatically reveal the ultimate recipient. The service fulfills user intents through internal settlement processes and operational addresses, so blockchain tracing can identify where funds entered the system but cannot always link that deposit to a subsequent withdrawal.
A possible, but unconfirmed, exit into Zcash should also be noted. Transactions involving ZEC were observed within the NEAR/HOT infrastructure. This may indicate that part of the funds was converted into Zcash, but no public withdrawal address could be conclusively linked to the stolen assets. Zcash should therefore be treated as a possible direction of travel, not a confirmed endpoint.

Where the Funds Ultimately Went

The funds can be publicly traced to several boundaries. It is important to distinguish between the last visible node and the actual final owner: a service deposit or bridge may be only an intermediate step, not a wallet controlled by the attacker.
Bottom line: Most of the traceable flow entered NEAR Confidential Intents, partly directly and partly through Ethereum. Another confirmed branch ended at a Solana collector wallet. Once the funds entered NEAR, the public link to the ultimate recipient wallets was lost, and there is no conclusive evidence that all of the funds were withdrawn into Zcash.

Important: NEAR Intents pools deposits from many users and processes them through internal operational wallets. A single deposit does not necessarily correspond to a single withdrawal, and matching amounts or closely timed transactions are not proof on their own. Conclusive deanonymization would require internal service records covering user intents, deposits, and withdrawals.

Key Addresses

The Big Picture

The attacker's most valuable asset was neither capital nor a sophisticated market strategy, but access to a trusted upgrade key. Once in control of that key, the attacker replaced the staking contract's logic, made it release the B2 tokens, sold them for BNB, and moved the proceeds across several blockchains, directing most of the traceable flow into NEAR's privacy-oriented service layer.

The use of multiple routes and confidential deposits indicates that the effort to obscure the trail was planned in advance.

The Key Lesson

The main lesson is that a smart contract is only as secure as the authority that can change its logic.
  • The upgrade key is effectively the key to all of the funds. There was no flaw in the contract code: the contract faithfully executed the new logic installed by the holder of a trusted key. The project's security therefore depended on how securely that key was stored and how tightly its authority was restricted. A single upgrade key held on an ordinary workstation created a single point of failure whose compromise brought down the entire security model.
  • Upgrade authority should be distributed. A more resilient design places it behind a multisignature wallet controlled by several independent parties and enforces a mandatory delay, or timelock, so the team and users have time to detect and respond to a suspicious upgrade. Automated alerts should also flag contract-logic changes and unusual transfers from treasury or staking contracts.
In this case, the funds did not disappear into a single mixer. They moved through four blockchains and into a privacy-oriented service layer. Investigators could trace the deposits into that layer, but not the ultimate recipient. This once again demonstrates how difficult asset recovery becomes after such a withdrawal. The cost of securing privileged keys is negligible compared with the price of an exploit.
Support
Get it

To inquire about our plans, click here

Try BitOK for free