Blockchain asset management protocol Swan Treasury has suffered an estimated $625,000 loss after attackers exploited a leaked off-chain signer key to buy STY tokens at a steep discount before selling them for profit.
According to blockchain security firm Defimon Alerts, the exploit took place on $BNB Chain after the protocol’s off-chain signer key, hardcoded as the _signer address in the ZhaiquanBuy contract, was compromised.
🚨 @SwanTreasurpaj – Loss ~$625K (2026-07-30)
— Defimon Alerts (@DefimonAlerts) July 31, 2026
Token: $STY @ $2.87
Network: $BNB Chain
Type: Private Key Compromise (signer key leak)
The protocol's off-chain signer key (0xdEb4…8284, hardcoded as _signer in ZhaiquanBuy) was compromised. buy() sells STY at a signed discount:…
The attacker used the leaked key to generate valid signatures for their own wallet, allowing them to bypass the protocol’s intended purchase restrictions.
Swan Treasury exploit relied on leaked signer key
Defimon Alerts said the attacker manipulated the buy() function, which calculates the amount of STY a user receives based on a signed discount value. By generating a valid signature with the discount parameter set to one, the attacker purchased STY at roughly one-hundredth of its intended price.
Using a PancakeSwap flash loan worth about 19,700 $USDT, the attacker acquired nearly 687,000 STY tokens through the discounted purchase mechanism.
The security firm said the exploit did not stop there. Valid signatures were also forged for the protocol’s claim() and transfer() functions on related contracts, giving the attacker additional access to STY before selling the tokens into the STY/$USDT liquidity pool.
After unwinding the position, the attacker realized about 625,000 $USDT in profit, according to Defimon Alerts.
STY traded at approximately $2.87 at the time of the incident, the firm’s alert noted.
Transaction analysis points to a compromised private key
In its technical assessment, Defimon Alerts said every ecrecover operation observed during the exploit resolved to the protocol’s hardcoded signer address rather than any attacker-controlled account.
The firm said this behavior indicates the private signer key itself had been compromised instead of the protocol containing a flaw in its signature verification logic. Because the generated signatures matched the expected signer exactly, the transactions appeared valid to the affected smart contracts.
The finding narrows the likely cause of the exploit to unauthorized access to the protocol’s signing credentials rather than an error in the cryptographic verification process.
At the time of publication, Swan Treasury had not publicly explained how the signer key was exposed or whether additional mitigation measures had been implemented.
Private key compromises continue to drive crypto losses
The incident adds to a series of crypto attacks in which compromised privileged keys, rather than smart contract bugs, allowed attackers to access protocol funds.
In June 2025, blockchain security company Hacken disclosed that a compromised private key tied to a contract with minting privileges enabled an attacker to create 900 million HAI tokens across Ethereum and $BNB Chain.
Hacken said the key was exposed while the company was making architectural changes to its blockchain bridge infrastructure, allowing the attacker to realize about $250,000 before the affected minting account was revoked and bridge operations were paused.
Separate research has also continued to identify private key exposure as one of the industry’s most persistent security risks. A Hacken report cited by crypto.news previously found that access control failures, including private key leaks, accounted for 78% of crypto hack losses recorded during 2024.
More recently, Zilliqa disclosed a flaw in its native Ledger application that could allow attackers to recover private keys from public transaction signatures. The network suspended native ZIL transactions after determining that a weakness in nonce generation made it possible to reconstruct affected keys once enough signatures had been collected.
Zilliqa said the issue stemmed from its own Ledger application rather than Ledger hardware itself and instructed affected users to wait for recovery guidance instead of moving funds immediately.
Security researchers continue warning about key exposure
Academic researchers and crypto industry players have likewise warned that private key security remains vulnerable outside traditional smart contract exploits.
Researchers from the University of California reported earlier this year that some third-party AI routing services were capable of accessing sensitive credentials, including cryptocurrency private keys and seed phrases, because they process user requests in plaintext.
During controlled testing, the researchers observed malicious behavior from several routing services and demonstrated that one intermediary successfully drained Ether from a test wallet after receiving its private key.
While the university study was unrelated to the Swan Treasury incident, the researchers concluded that developers should avoid exposing private keys or seed phrases to intermediary systems and instead rely on stronger cryptographic protections to reduce credential theft risks.