Skip to content
Menu
← All digests
cat -- '2025-11-10-security.md'

Security News

The Hacker News

Cybersecurity news and insights

Microsoft Uncovers ‘Whisper Leak’ Attack That Identifies AI Chat Topics in Encrypted Traffic - November 08, 2025

Microsoft has disclosed details of a novel side-channel attack targeting remote language models that could enable a passive adversary with capabilities to observe network traffic to glean details about model conversation topics despite encryption protections under certain circumstances. This leakage of data exchanged between humans and streaming-mode language models could pose serious risks to

Trail of Bits Blog

Security research and insights from Trail of Bits

Balancer hack analysis and guidance for the DeFi ecosystem - November 07, 2025

TL;DR

  • The root cause of the hack was a rounding direction issue that had been present in the code for many years.
  • When the bug was first introduced, the threat landscape of the blockchain ecosystem was significantly different, and arithmetic issues in particular were not widely considered likely vectors for exploitation.
  • As low-hanging attack paths have become increasingly scarce, attackers have become more sophisticated and will continue to hunt for novel threats, such as arithmetic edge cases, in DeFi protocols.
  • Comprehensive invariant documentation and testing are now essential; the simple rule “rounding must favor the protocol” is no longer sufficient to catch edge cases.
  • This incident highlights the importance of both targeted security techniques, such as developing and maintaining fuzz suites, and holistic security practices, including monitoring and secondary controls.

What happened: Understanding the vulnerability

On November 3, 2025, attackers exploited a vulnerability in Balancer v2 to drain more than $100M across nine blockchain networks. The attack targeted a number of Balancer v2 pools, exploiting a rounding direction error. For a detailed root cause analysis, we recommend reading Certora’s blog post.

Since learning of the attack on November 3, Trail of Bits has been working closely with the Balancer team to understand the vulnerability and its implications. We independently confirmed that Balancer v3 was not affected by this vulnerability.

The 2021 audits: What we found and what we learned

In 2021, Trail of Bits conducted three security reviews of Balancer v2. The commit reviewed during the first audit, in April 2021, did not have this vulnerability present; however, we did uncover a variety of other similar rounding issues using Echidna, our smart contract fuzzer. As part of the report, we wrote an appendix (appendix H) that did a deep dive on how rounding direction and precision loss should be managed in the codebase.

In October 2021, Trail of Bits conducted a security review of Balancer’s Linear Pools (report). During that review, we identified issues with how Linear Pools consumed the Stable Math library (documented as finding TOB-BALANCER-004 in our report). However, the finding was marked as “undetermined severity.”

At the time of the audit, we couldn’t definitively determine whether the identified rounding behavior was exploitable in the Linear Pools as they were configured. We flagged the issue because we found similar ones in the first audit, and we recommended implementing comprehensive fuzz testing to ensure the rounding directions of all arithmetic operations matched expectations.

We now know that the Composable Stable Pools that were hacked on Monday were exploited using the same vulnerability that we reported in our audit. We performed a security review of the Composable Stable Pools in September 2022; however, the Stable Math library was explicitly out of scope (see the Coverage Limitations section in the report).

The above case illustrates the difficulty in evaluating the impact of a precision loss or rounding direction issue. A precision loss of 1 wei in the wrong direction may not seem significant when a fuzzer first identifies it, but in a particular case, such as a low-liquidity pool configured with specific parameters, the precision loss may be substantial enough to become profitable.

2021 to 2025: How the ecosystem has evolved

When we audited Balancer in 2021, the blockchain ecosystem’s threat landscape was much different than it is today. In particular, the industry at large did not consider rounding and arithmetic issues to be a significant risk to the ecosystem. If you look back at the biggest crypto hacks of 2021, you’ll find that the root causes were different threats: access control flaws, private key compromise (phishing), and front-end compromise.

Looking at 2022, it’s a similar story; that year in particular saw enormous hacks that drained several cross-chain bridges, either through private key compromise (phishing) or traditional smart contract vulnerabilities. To be clear, during this period, more DeFi-specific exploits, such as oracle price manipulation attacks, also occurred. However, these exploits were considered a novel threat at the time, and other DeFi exploits (such as those involving rounding issues) had not become widespread yet.

Although these rounding issues were not the most severe or widespread threat at the time, our team viewed them as a significant, underemphasized risk. This is why we reported the risk of rounding issues to Balancer (TOB-BALANCER-004), and we reported a similar issue in our 2021 audit of Uniswap v3. However, we have had to make our own improvements to account for this growing risk; for example, we’ve since tightened the ratings criteria for ​​our Codebase Maturity evaluations. Where Balancer’s Linear pools were rated “Moderate” in 2021, we now rate codebases without comprehensive rounding strategies as having “Weak” arithmetic maturity.

Moving into 2023 and 2024, these DeFi-specific exploits, particularly rounding issues, became more widespread. In 2023, Hundred Finance protocol was completely drained due to a rounding issue. This same vulnerability was exploited several times in various protocols, including Sonne Finance, which was one of the biggest hacks of 2024. These broader industry trends were also validated in our client work at the time, where we continued to identify severe rounding issues, which is why we open-sourced roundme, a tool for human-assisted rounding direction analysis, in 2023.

Now, in 2025, arithmetic and correct precision are as critical as ever. The flaws that led to the biggest hacks of 2021 and 2022, such as private key compromise, continue to occur and remain a significant risk. However, it’s clear that several aspects of the blockchain and DeFi ecosystems have matured, and the attacks have become more sophisticated in response, particularly for major protocols like Uniswap and Balancer, which have undergone thorough testing and auditing over the last several years.

Preventing rounding issues in 2025

In 2025, rounding issues are as critical as ever, and the most robust way to protect against them is the following:

Invariant documentation

DeFi protocols should invest resources into documenting all the invariants pertaining to precision loss and rounding direction. Each of these invariants must be defended using an informal proof or explanation. The canonical invariant “rounding must favor the protocol” is insufficient to capture edge cases that may occur during a multi-operation user flow. It is best to begin documenting these invariants during the design and development phases of the product and using code reviews to collaborate with researchers to validate and extend this list. Tools like roundme can be used to identify the rounding direction required for each arithmetic operation to uphold the invariant.

Image showing Appendix H from our 2021 Balancer v2 review
Figure 1: Appendix H from our October 2021 Balancer v2 review

Here are some great resources and examples that you can follow for invariant testing your system:

Comprehensive unit and integration tests

The invariants captured should then drive a comprehensive testing suite. Unit and integration testing should lead to 100% coverage. Mutation testing with solutions like slither-mutate and necessist can then aid in identifying any blind spots in the unit and integration testing suite. We also wrote a blog post earlier this year on how to effectively use mutation testing.

Our work for CAP Labs in 2025 contains extensive guidance in Appendix D on how to design an effective test suite that thoroughly unit, integration, and fuzz tests the system’s invariants.

Image showing Appendix D for 2024 CAP Labs review
Figure 2: Appendix D from our 2025 CAP Labs Covered Agent Protocol review

Comprehensive invariant testing with fuzzing

Once all critical invariants are documented, they need to be validated with strong fuzzing campaigns. In our experience, fuzzing is the most effective technique for this type of invariant testing.

To learn more about how fuzzers work and how to leverage them to test your DeFi system, you can read the documentation for our fuzzers, Echidna and Medusa.

Invariant testing with formal verification

Use formal verification to obtain further guarantees for your invariant testing. These tools can be very complementary to fuzzing. For instance, limitations or abstractions from the formal model are great candidates for in-depth fuzzing.

Four Lessons for the DeFi ecosystem

This incident offers essential lessons for the entire DeFi community about building and maintaining secure systems:

1. Math and arithmetic are crucial in DeFi protocols

See the above section for guidance on how to best protect your system.

2. Maintain your fuzzing suite and inform it with the latest threat intelligence

While smart contracts may be immutable, your test suite should not. A common issue we have observed is that protocols will develop a fuzzing suite but fail to maintain it after a certain point in time. For example, a function may round up, but a future code update may require this function to now round down. A well-maintained fuzzing suite with the right invariants would aid in identifying that the function is now rounding in the wrong direction.

Beyond protections against code changes, your test suite should also evolve with the latest threat intelligence. Every time a novel hack occurs, this is intelligence that can improve your own test suite. As shown in the Sonne Finance incident, particularly for these arithmetic issues, it’s common for the same bugs (or variants of them) to be exploited many times over. You should get in the habit of revisiting your test suite in response to every novel incident to identify any gaps that you may have.

3. Design a robust monitoring and alerting system

In the event of a compromise, it is essential to have automated systems that can quickly alert on suspicious behavior and notify the relevant stakeholders. The system’s design also has significant implications for its ability to react effectively to a threat. For example, whether the system is pausable, upgradeable, or fully decentralized will directly impact what can be done in case of an incident.

4. Mitigate the impact of exploits with secondary controls

Even DeFi protocols are high-assurance software, but even high-assurance software like DeFi protocols has to accept some risks. However, risks must not be accepted without secondary controls that mitigate their impact. Pure risk acceptance without any controls is rare in high-assurance systems; every decision to accept risk should be followed by a question: “How can we protect ourselves if we were wrong to accept this risk?”

Even high-assurance software like DeFi protocols has to accept some risks, but these risks must not be accepted without secondary controls that mitigate their impact if they are exploited. Earlier this year, we wrote about using secondary controls to mitigate private key risk in Maturing your smart contracts beyond private key risk, which explains how controls such as rate limiting, time locks, pause guardians, and other secondary controls can reduce the risk of compromise and the blast radius of a hack via an unrecognized type of exploit.

The Hacker News

Cybersecurity news and insights

Samsung Mobile Flaw Exploited as Zero-Day to Deploy LANDFALL Android Spyware - November 07, 2025

A now-patched security flaw in Samsung Galaxy Android devices was exploited as a zero-day to deliver a “commercial-grade” Android spyware dubbed LANDFALL in targeted attacks in the Middle East. The activity involved the exploitation of CVE-2025-21042 (CVSS score: 8.8), an out-of-bounds write flaw in the “libimagecodec.quram.so” component that could allow remote attackers to execute arbitrary

SecurityWeek

Latest cybersecurity news

Landfall Android Spyware Targeted Samsung Phones via Zero-Day - November 07, 2025

Threat actors exploited CVE-2025-21042 to deliver malware via specially crafted images to users in the Middle East. 

The post Landfall Android Spyware Targeted Samsung Phones via Zero-Day appeared first on SecurityWeek.

Data Exposure Vulnerability Found in Deep Learning Tool Keras - November 07, 2025

The vulnerability is tracked as CVE-2025-12058 and it can be exploited for arbitrary file loading and conducting SSRF attacks.

The post Data Exposure Vulnerability Found in Deep Learning Tool Keras appeared first on SecurityWeek.

ClickFix Attacks Against macOS Users Evolving - November 07, 2025

ClickFix prompts typically contain instructions for Windows users, but now they are tailored for macOS and they are getting increasingly convincing.

The post ClickFix Attacks Against macOS Users Evolving appeared first on SecurityWeek.

Schneier on Security

Security news and analysis by Bruce Schneier

Faking Receipts with AI - November 07, 2025

Over the past few decades, it’s become easier and easier to create fake receipts. Decades ago, it required special paper and printers—I remember a company in the UK advertising its services to people trying to cover up their affairs. Then, receipts became computerized, and faking them required some artistic skills to make the page look realistic.

Now, AI can do it all:

Several receipts shown to the FT by expense management platforms demonstrated the realistic nature of the images, which included wrinkles in paper, detailed itemization that matched real-life menus, and signatures...

The Hacker News

Cybersecurity news and insights

Hidden Logic Bombs in Malware-Laced NuGet Packages Set to Detonate Years After Installation - November 07, 2025

A set of nine malicious NuGet packages has been identified as capable of dropping time-delayed payloads to sabotage database operations and corrupt industrial control systems. According to software supply chain security company Socket, the packages were published in 2023 and 2024 by a user named “shanhai666” and are designed to run malicious code after specific trigger dates in August 2027 and

SecurityWeek

Latest cybersecurity news

DOJ Antitrust Review Clears Google’s $32 Billion Acquisition of Wiz - November 07, 2025

Google’s acquisition of Wiz is expected to close in 2026, but there are other reviews that need to be cleared.

The post DOJ Antitrust Review Clears Google’s $32 Billion Acquisition of Wiz appeared first on SecurityWeek.

Chrome 142 Update Patches High-Severity Flaws - November 07, 2025

An out-of-bounds write flaw in WebGPU tracked as CVE-2025-12725 could be exploited for remote code execution.

The post Chrome 142 Update Patches High-Severity Flaws appeared first on SecurityWeek.

The Hacker News

Cybersecurity news and insights

Enterprise Credentials at Risk – Same Old, Same Old? - November 07, 2025

Imagine this: Sarah from accounting gets what looks like a routine password reset email from your organization’s cloud provider. She clicks the link, types in her credentials, and goes back to her spreadsheet. But unknown to her, she’s just made a big mistake. Sarah just accidentally handed over her login details to cybercriminals who are laughing all the way to their dark web

Google Launches New Maps Feature to Help Businesses Report Review-Based Extortion Attempts - November 07, 2025

Google on Thursday said it’s rolling out a dedicated form to allow businesses listed on Google Maps to report extortion attempts made by threat actors who post inauthentic bad reviews on the platform and demand ransoms to remove the negative comments. The approach is designed to tackle a common practice called review bombing, where online users intentionally post negative user reviews in an

Vibe-Coded Malicious VS Code Extension Found with Built-In Ransomware Capabilities - November 07, 2025

Cybersecurity researchers have flagged a malicious Visual Studio Code (VS Code) extension with basic ransomware capabilities that appears to be created with the help of artificial intelligence – in other words, vibe-coded. Secure Annex researcher John Tuckner, who flagged the extension “susvsex,” said it does not attempt to hide its malicious functionality. The extension was uploaded on

↑ Back to top