On the night of August 8, I recorded a series of targeted attacks on Lightning Network nodes deployed via the BTCPay payment server. The attackers gained unauthorized access to the nodes and withdrew funds. BTCPay developers promptly confirmed the exploitation of a critical vulnerability and strongly recommended that all LND users—the most common Lightning implementation—immediately update to version 2.4.2 or completely shut down the server until the circumstances are clarified.
BTCPay is a popular solution for merchants who want to accept bitcoin without intermediaries, often integrating Lightning Network for micropayments. The problem lies in the authentication mechanism: application access to the node is granted through .macaroon files. Due to a code error, these files could be remotely extracted without passing authorization. Once an attacker obtained the .macaroon, they gained full control over the node—up to forcibly closing channels and withdrawing all funds locked in them.
It is important to emphasize: the vulnerability is limited to configurations with LND. Regular BTCPay on-chain wallets, including hot wallets, are not affected. However, coins held at the LND address are at risk, as they are managed by the compromised node. This means that even if BTCPay itself operates correctly, the Lightning component remains in the danger zone.
First victims and the scale of the incident
So far, at least two organizations have publicly confirmed losses. The CEO of hardware wallet manufacturer Foundation, Zach Herbert, reported that overnight the attackers completely drained the company's Lightning node, while the on-chain wallet remained untouched. The bitcoin publication Citadel21, run by well-known commentator hodlonaut, suffered a similar hack. He noted that the node held insignificant amounts, which mitigated the damage, but the very fact of the attack points to the systemic nature of the problem.
The exact number of affected stores and the total damage have not yet been disclosed—developers promise to present a full analysis of the incident in the coming days. The vulnerability itself was discovered during an audit using artificial intelligence, and members of the volunteer organization Bitcoin Red Team, which launched a large-scale review of bitcoin project codebases in early August, warned about the issue in advance.
My analysis: This incident is another alarming wake-up call for the entire Lightning Network ecosystem. Vulnerabilities in infrastructure software such as BTCPay show that decentralization requires not only ideology but also strict discipline in updates. The fact that the attack was carried out within hours of the problem being discovered indicates that attackers are actively monitoring repositories and commits. I urge all node operators not to delay updates—in this case, hesitation directly translates into loss of funds.