On the night of August 8, I detected a large-scale attack on Lightning Network nodes deployed through the popular BTCPay payment server. Attackers actively exploited a critical vulnerability that allowed remote retrieval of .macaroon files—node access keys—without any authorization. This granted full control over the node: closing channels and withdrawing funds became a trivial task.
The core issue and scope of impact
BTCPay developers promptly confirmed the theft and released an emergency update to version 2.4.2. I strongly recommend that all node operators using LND (the most common Lightning software) update immediately or completely shut down the server until the threat is mitigated. It is important to emphasize: the vulnerability affects exclusively configurations with LND. Regular BTCPay bitcoin wallets, including hot wallets, remain secure, but funds on the LND address are at direct risk, as this address is controlled by the compromised node.
The scale of losses has not yet been disclosed. The project stated that a full analysis of the incident will be presented in the coming days, but it is already clear that the attack is systemic in nature rather than targeted.
First victims and context
Notably, the vulnerability was not discovered by chance but during an audit using AI. BTCPay was warned in advance by volunteers from the Bitcoin Red Team organization, which in early August launched a large-scale review of bitcoin project codebases using neural networks, generating thousands of reports. This highlights the growing role of AI in cybersecurity but also demonstrates that even preventive measures do not always keep pace with hackers' actions.
Two public confirmations of the breach are already known. The CEO of hardware wallet manufacturer Foundation, Zach Herbert, reported that attackers drained the company's Lightning node on BTCPay overnight, while the on-chain wallet remained unaffected. A similar incident was confirmed by the bitcoin publication Citadel21, led by commentator hodlonaut, noting that insignificant amounts were stored on the node.
Expert analysis
This incident is a vivid example that the security of the Lightning Network directly depends on the quality of server software implementation. BTCPay is positioned as a solution for self-custodial bitcoin acceptance without intermediaries, and such vulnerabilities undermine trust in decentralized infrastructure. I recall that just a week earlier, on the night of July 31, about 500 owners of Coldcard hardware wallets lost 594.48 BTC (~$38.2 million), pointing to a worrying trend: hackers are actively hunting for funds of users employing self-custodial solutions. I recommend that node operators not only update but also conduct regular security audits, especially in light of the growing sophistication of attacks.