Replying to @GrapheneOS
> The hard part is making the device independent LTS with all the backports.
Why backport this much and not use the latest stable Linux?
34
If you're moving to upstream kernels, why LTS and not follow the latest version?
Is it just to reduce the amount of times where you have to rebase patches or are there other reasons too?
36
26821 findings in just 43 projects.
This is how AI slop is hurting open source and preventing actual security. At this amount, a majority of "findings" is just spam.
Some personal news:
✅ Loupe has produced 26,821 findings across 43 open-source bitcoin repos
✅ Average successful scan took 2H 52M and returned 53.6 findings
✅ Longest scan ran for 36H 58M
✅ 26,809/26,821 findings shipped a proof-of-concept & 12,774 shipped a proposed patch
1
90
DownloadManager is a system app on AOSP/GrapheneOS, and non-removable.
Google Play Games is a 3rd party app.
26
Replying to @maximalistus
People can audit the software _before_ publishing binaries. As soon as binaries are published, info about the vulns can be found.
Also, the unpatched version can be analyzed by anyone to find vulns.
More about this exact issue on our blog:
nirvati.eu/blog/maintainers-…
16
Nirvati retweeted
To those responsible for the theft of bitcoin from the Liquid Network:
Blockstream will not pay a ransom for the return of stolen funds. Taking assets without authorization and withholding their return is a crime, not responsible disclosure. It is not white-hat activity. It is theft.
We have engaged in good faith in an effort to secure the return of stolen user funds and protect the broader Bitcoin community. That effort should not be mistaken for acceptance of the actions taken nor of the terms being demanded.
We will not be a party to the precedent that open-source software developed for the good of the Bitcoin community should subject its developers to paying a ransom that far exceeds their economic participation.
Bitcoin is hard money and can’t be minted without costs, Bitcoin doesn’t haircut users to pay a ransom.
To the Bitcoin community:
We are fighting for what we believe in, for the users whose funds were taken, and for the principles on which Bitcoin was built.
The community has demonstrated incredible resolve with teams of people dedicating their time in support of each other to identify and patch vulnerabilities in each other's products and systems. We are all driven by the mission that Bitcoin is the single best asset, for every person, company, and institution on the planet to invest, use, and build on. The world is a different place with the advancements of AI, and the Bitcoin community has responded with force to combat that threat.
Damage has been done, battles have been lost, but on the whole the Bitcoin community is gaining ground in the war with bad actors.
We want to thank the community for those efforts, for your support in hardening the network, helping users recover funds, and for your support in our assertion that crime does not deserve rewards.
To those holding the stolen bitcoin:
There is still an opportunity to resolve this responsibly. The bitcoin can be returned and we can revert to the standard of white-hat principals.
However, if the funds are not returned, we will pursue every lawful avenue available to us. We will work with law enforcement, exchanges, service providers, forensic specialists, and other relevant parties to trace and recover the assets and identify those responsible.
More importantly, Bitcoin is transparent by design and the community is made up of the most sophisticated engineers, cryptographers, and white-hat hackers globally. Transactions do not disappear, and neither does the evidence they leave behind.
We will not pay for the return of stolen property. We will not abandon our users. The Bitcoin community will not stop pursuing the funds.
Return the bitcoin.
Nirvati retweeted
Brief notes on the liquid hack, followed by 3 open questions.
Brief notes:
Liquid has confidential transactions, which make use of range proofs to check transactions are valid without revealing the amounts bring sent.
These are computationally expensive (relative to most other operations) so a range-proof caching optimisation was introduced ~7 years ago which was intended to avoid re-doing the same calculations unnecessarily.
The cache checked
- the range-proof bytes
- the value commitment
The issue appears to be that it didn't check
- The asset type
- The output script
As a result is that a later output that reuses a prior outputs checked features can get a cached pass even when full verification would fail.
It seems that the cache is not persistent, so a reboot of a node (possibly amongst other things) will wipe the cache.
The error appears to have sat unexploited for 7 years, throughout numerous rewrites & modifications to the surrounding code by multiple people - no one individual bears responsibility for this and the mantra that many eyes make bugs shallow is hopium which must be rejected.
Note: Fable5 in Github Copilot found this bug with a simple "spot anything erroneous with this?" prompt on the PR which introduced the caching.
Open questions:
1. How did the exploit happen before the fix was widely deployed?
It seems that the liquid team did spot and fix this bug prior to the exploit
- The fix commit is dated Aug 3,
- The PR to master was opened on Sept 1st
However it's notable that there hasn't been a release/tag since the fix. Clearly the sideswap team weren't running a fixed build when this was exploited a week later. Given sideswap have the ability to peg-out it is surprising to me that they weren't informed, or if they were that they didn't update.
Perhaps the magnitude of this exploit was not well understood when the PR was made introducing the fix publicly to master.
2. Why did Sideshift allow the huge peg-out?
There was an assumption by many that the federation imposed restrictions on the peg-out's triggered by members of the federation - were those restrictions honored by Sideshift?
Separately, why were there not sanity checks on the total amount per peg-out, and the daily total peg-outs?
I think a major learning here is that sanity checking and manual review of large peg outouts would likely have avoided this, but the team may have their reasons for not wanting to be involved in that process whatsoever.
3. Why did liquid.network and blockstream's explorer diverge?
It appears that the @liquidexplorer was not affected by the cache exploit - and rejected that transaction. Checking the monitoring page it seems the servers are running version 23.3.2 (released long before the fix was added to master). Was there some configuration which meant that this caching was not performed, or was regularly reset? I will dig into this area more to find out.
Replying to @start9labs
If it is helpful to you, you can also build from source using our reverse engineered code: github.com/nirvati/lightning…
It allows reproducing the official CLN builds for Fedora exactly (byte-for-byte), so it provides the same level of security. (We haven't verified Ubuntu yet)
54
Nirvati retweeted
> Now, maintainers, who provide the application, suddenly want users to just trust them without being able to easily verify what changed in a release. This is in clear conflict with the "don't trust, verify" approach.
+1 on this, reject black box binaries
We've published a blog post on the dangers of what @BtcpayServer, @Core_LN, and probably other maintainers are doing with security at the moment:
nirvati.eu/blog/maintainers-…
We've published a blog post on the dangers of what @BtcpayServer, @Core_LN, and probably other maintainers are doing with security at the moment:
nirvati.eu/blog/maintainers-…
Replying to @callebtc @OrangeSurfBTC
It may be worth mentioning: We told Claude to reconstruct the binaries to be identical byte-for-byte.
Because the binaries included debug information, this included writing comments and formatting code so line numbers lined up.
It would probably have been a lot less otherwise.
1
63
Replying to @OrangeSurfBTC
It took 3,828,448 tokens with Claude Opus 5 to get to source and basic understanding of most vulns 😁
Actually classifying them by severity and building exploits would take longer, but this is not something we want to do.
Replying to @OrangeSurfBTC
Initial version done, more details tomorrow.
xitter.gq/getnirvati/status/2093…
We've reverse engineered this release (LLM-assisted) to confirm it is free of backdoors.
Source code that can reproduce the Fedora binaries (others will be tested later) byte-for-byte is published at github.com/nirvati/lightning….
Details on verification will be published tomorrow.
8
We've reverse engineered this release (LLM-assisted) to confirm it is free of backdoors.
Source code that can reproduce the Fedora binaries (others will be tested later) byte-for-byte is published at github.com/nirvati/lightning….
Details on verification will be published tomorrow.
Core Lightning 26.06.7 is out and recommended for every node runner.
It fixes vulnerabilities reported over the past three weeks, during a sharp rise in AI-generated reports across open source Bitcoin. Details stay under embargo for two weeks, then all published.
github.com/ElementsProject/l…
Replying to @getnirvati @OrangeSurfBTC
We expect to release this today:
xitter.gq/getnirvati/status/2093…
We are currently reverse engineering the patched binaries and expect to be able to publish a fully reproducible version of the source code within the next 12h (LLM-assisted).
We plan to publish a blog post about security and FOSS code embargoes tomorrow.
1
33
We are currently reverse engineering the patched binaries and expect to be able to publish a fully reproducible version of the source code within the next 12h (LLM-assisted).
We plan to publish a blog post about security and FOSS code embargoes tomorrow.
Core Lightning 26.06.7 is out and recommended for every node runner.
It fixes vulnerabilities reported over the past three weeks, during a sharp rise in AI-generated reports across open source Bitcoin. Details stay under embargo for two weeks, then all published.
github.com/ElementsProject/l…
Replying to @getnirvati @OrangeSurfBTC
As we did with BTCPay, we will try to reverse engineer and publish the source code for the patches on our GitHub account so the patches can be public before the project embargo is over.
This is to demonstrate that these embargos are often useless and to help people verify.
1
1
59
Replying to @OrangeSurfBTC
C is a bit harder, for DotNet (like BTCPay, where this strategy was completely useless), it can be decompiled to pretty much identical source code.
In any case, as soon as you release patched binaries, all info about the vuln is basically "out there" and easy to find.
1
78
Replying to @slush
Same applies to @btcpayserver, which is only providing security fixes in binary form with a "trust me bro".
99





