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

Security News

The Hacker News

Cybersecurity news and insights

RondoDox Exploits Unpatched XWiki Servers to Pull More Devices Into Its Botnet - November 15, 2025

The botnet malware known as RondoDox has been observed targeting unpatched XWiki instances against a critical security flaw that could allow attackers to achieve arbitrary code execution. The vulnerability in question is CVE-2025-24893 (CVSS score: 9.8), an eval injection bug that could allow any guest user to perform arbitrary remote code execution through a request to the “/bin/get/Main/

Trail of Bits Blog

Security research and insights from Trail of Bits

Level up your Solidity LLM tooling with Slither-MCP - November 15, 2025

We’re releasing Slither-MCP, a new tool that augments LLMs with Slither’s unmatched static analysis engine. Slither-MCP benefits virtually every use case for LLMs by exposing Slither’s static analysis API via tools, allowing LLMs to find critical code faster, navigate codebases more efficiently, and ultimately improve smart contract authoring and auditing performance.

How Slither-MCP works

Slither-MCP is an MCP server that wraps Slither’s static analysis functionality, making it accessible through the Model Context Protocol. It can analyze Solidity projects (Foundry, Hardhat, etc.) and generate comprehensive metadata about contracts, functions, inheritance hierarchies, and more.

When an LLM uses Slither-MCP, it no longer has to rely on rudimentary tools like grep and read_file to identify where certain functions are implemented, who a function’s callers are, and other complex, error-prone tasks.

Because LLMs are probabilistic systems, in most cases they are only probabilistically correct. Slither-MCP helps set a ground truth for LLM-based analysis using traditional static analysis: it reduces token use and increases the probability a prompt is answered correctly.

Example: Simplifying an auditing task

Consider a project that contains two ERC20 contracts: one used in the production deployment, and one used in tests. An LLM is tasked with auditing a contract’s use of ERC20.transfer(), and needs to locate the source code of the function.

Without Slither-MCP, the LLM has two options:

  1. Try to resolve the import path of the ERC20 contract, then try to call read_file to view the source of ERC20.transfer(). This option usually requires multiple calls to read_file, especially if the call to ERC20.transfer() is through a child contract that is inherited from ERC20. Regardless, this option will be error-prone and tool call intensive.

  2. Try to use the grep tool to locate the implementation of ERC20.transfer(). Depending on how the grep tool call is structured, it may return the wrong ERC20 contract.

Both options are non-ideal, error-prone, and not likely to be correct with a high interval of confidence.

Using Slither-MCP, the LLM simply calls get_function_source to locate the source code of the function.

Simple setup

Slither-MCP is easy to set up, and can be added to Claude Code using the following command:

claude mcp add --transport stdio slither -- uvx --from git+https://github.com/trailofbits/slither-mcp slither-mcp

It is also easy to add Slither-MCP to Cursor by adding the following to your ~/.cursor/mcp.json:

{
 "mcpServers": {
 "slither-mcp": {
 "command": "uvx --from git+https://github.com/trailofbits/slither-mcp slither-mcp",
 "env": {
 "PYTHONUNBUFFERED": "1"
 }
 }
 }
}
Figure 1: Adding Slither-MCP to Cursor

For now, Slither-MCP exposes a subset of Slither’s analysis engine that we believe LLMs would have the most benefit consuming. This includes the following functionalities:

  • Extracting the source code of a given contract or function for analysis

  • Identifying the callers and callees of a function

  • Identifying the contract’s derived and inherited members

  • Locating potential implementations of a function based on signature (e.g., finding concrete definitions for IOracle.price(...))

  • Running Slither’s exhaustive suite of detectors and filtering the results

If you have requests or suggestions for new MCP tools, we’d love to hear from you.

Licensing

Slither-MCP is licensed AGPLv3, the same license Slither uses. This license requires publishing the full source code of your application if you use it in a web service or SaaS product. For many tools, this isn’t an acceptable compromise.

To help remediate this, we are now offering dual licensing for both Slither and Slither-MCP. By offering dual licensing, Slither and Slither-MCP can be used to power LLM-based security web apps without publishing your entire source code, and without having to spend years reproducing its feature set.

If you are currently using Slither in your commercial web application, or are interested in using it, please reach out.

Schneier on Security

Security news and analysis by Bruce Schneier

Friday Squid Blogging: Pilot Whales Eat a Lot of Squid - November 14, 2025

Short-finned pilot wales (Globicephala macrorhynchus) eat at lot of squid:

To figure out a short-finned pilot whale’s caloric intake, Gough says, the team had to combine data from a variety of sources, including movement data from short-lasting tags, daily feeding rates from satellite tags, body measurements collected via aerial drones, and sifting through the stomachs of unfortunate whales that ended up stranded on land.

Once the team pulled all this data together, they estimated that a typical whale will eat between 82 and 202 squid a day. To meet their energy needs, a whale will have to consume an average of 140 squid a day. Annually, that’s about 74,000 squid per whale. For all the whales in the area, that amounts to about 88,000 tons of squid eaten every year...

SecurityWeek

Latest cybersecurity news

Fortinet Confirms Active Exploitation of Critical FortiWeb Vulnerability - November 14, 2025

Security firms say the flaw has been actively exploited for weeks, even as Fortinet quietly shipped fixes and CISA added the bug to its KEV catalog.

The post Fortinet Confirms Active Exploitation of Critical FortiWeb Vulnerability appeared first on SecurityWeek.

Schneier on Security

Security news and analysis by Bruce Schneier

Upcoming Speaking Engagements - November 14, 2025

This is a current list of where and when I am scheduled to speak:

  • My coauthor Nathan E. Sanders and I are speaking at the Rayburn House Office Building in Washington, DC at noon ET on November 17, 2025. The event is hosted by the POPVOX Foundation and the topic is “AI and Congress: Practical Steps to Govern and Prepare.”
  • I’m speaking on “Integrity and Trustworthy AI” at North Hennepin Community College in Brooklyn Park, Minnesota, USA, on Friday, November 21, 2025, at 2:00 PM CT. The event is cohosted by the college and The Twin Cities IEEE Computer Society...

SecurityWeek

Latest cybersecurity news

In Other News: Deepwatch Layoffs, macOS Vulnerability, Amazon AI Bug Bounty - November 14, 2025

Other noteworthy stories that might have slipped under the radar: EchoGram attack undermines AI guardrails, Asahi brewer still crippled after ransomware attack, Sora 2 system prompt uncovered.

The post In Other News: Deepwatch Layoffs, macOS Vulnerability, Amazon AI Bug Bounty appeared first on SecurityWeek.

The Hacker News

Cybersecurity news and insights

Researchers Find Serious AI Bugs Exposing Meta, Nvidia, and Microsoft Inference Frameworks - November 14, 2025

Cybersecurity researchers have uncovered critical remote code execution vulnerabilities impacting major artificial intelligence (AI) inference engines, including those from Meta, Nvidia, Microsoft, and open-source PyTorch projects such as vLLM and SGLang. “These vulnerabilities all traced back to the same root cause: the overlooked unsafe use of ZeroMQ (ZMQ) and Python’s pickle deserialization,“

Iranian Hackers Launch ‘SpearSpecter’ Spy Operation on Defense & Government Targets - November 14, 2025

The Iranian state-sponsored threat actor known as APT42 has been observed targeting individuals and organizations that are of interest to the Islamic Revolutionary Guard Corps (IRGC) as part of a new espionage-focused campaign. The activity, detected in early September 2025 and assessed to be ongoing, has been codenamed SpearSpecter by the Israel National Digital Agency (INDA). “The

SecurityWeek

Latest cybersecurity news

Checkout.com Discloses Data Breach After Extortion Attempt - November 14, 2025

The information was stolen from a legacy cloud file storage system, not from its payment processing platform.

The post Checkout.com Discloses Data Breach After Extortion Attempt appeared first on SecurityWeek.

Akira Ransomware Group Made $244 Million in Ransom Proceeds - November 14, 2025

Akira was seen exploiting SonicWall vulnerabilities and encrypting Nutanix Acropolis Hypervisor (AHV) VM disk files this year.

The post Akira Ransomware Group Made $244 Million in Ransom Proceeds appeared first on SecurityWeek.

Schneier on Security

Security news and analysis by Bruce Schneier

The Role of Humans in an AI-Powered World - November 14, 2025

As AI capabilities grow, we must delineate the roles that should remain exclusively human. The line seems to be between fact-based decisions and judgment-based decisions.

For example, in a medical context, if an AI was demonstrably better at reading a test result and diagnosing cancer than a human, you would take the AI in a second. You want the more accurate tool. But justice is harder because justice is inherently a human quality in a way that “Is this tumor cancerous?” is not. That’s a fact-based question. “What’s the right thing to do here?” is a human-based question...

Trail of Bits Blog

Security research and insights from Trail of Bits

How we avoided side-channels in our new post-quantum Go cryptography libraries - November 14, 2025

The Trail of Bits cryptography team is releasing our open-source pure Go implementations of ML-DSA (FIPS-204) and SLH-DSA (FIPS-205), two NIST-standardized post-quantum signature algorithms. These implementations have been engineered and reviewed by several of our cryptographers, so if you or your organization is looking to transition to post-quantum support for digital signatures, try them out!

This post will detail some of the work we did to ensure the implementations are constant time. These tricks specifically apply to the ML-DSA (FIPS-204) algorithm, protecting from attacks like KyberSlash, but they also apply to any cryptographic algorithm that requires branching or division.

The road to constant-time FIPS-204

SLH-DSA (FIPS-205) is relatively easy to implement without introducing side channels, as it’s based on pseudorandom functions built from hash functions, but the ML-DSA (FIPS-204) specification includes several integer divisions, which require more careful consideration.

Division was the root cause of a timing attack called KyberSlash that impacted early implementations of Kyber, which later became ML-KEM (FIPS-203). We wanted to avoid this risk entirely in our implementation.

Each of the ML-DSA parameter sets (ML-DSA-44, ML-DSA-65, and ML-DSA-87) include several other parameters that affect the behavior of the algorithm. One of those is called $γ_2$, the low-order rounding range.

$γ_2$ is always an integer, but its value depends on the parameter set. For ML-DSA-44, $γ_2$ is equal to 95232. For ML-DSA-65 and ML-DSA-87, $γ_2$ is equal to 261888.

ML-DSA specifies an algorithm called Decompose, which converts a field element into two components ($r_1$, $r_0$) such that $(r_1 \cdot 2γ_2) + r_0$ equals the original field element. This requires dividing by $2γ_2$ in one step and calculating the remainder of $2γ_2$ in another.

If you ask an AI to implement the Decompose algorithm for you, you will get something like this:

// This code sample was generated by Claude AI.
// Not secure -- DO NOT USE.
//
// Here, `alpha` is equal to `2 * γ2`, and `r` is the field element:
func DecomposeUnsafe(r, alpha int32) (r1, r0 int32) {
 // Ensure r is in range [0, q-1]
 r = r % q
 if r < 0 {
 r += q
 }

 // Center r around 0 (map to range [-(q-1)/2, (q-1)/2])
 if r > (q-1)/2 {
 r = r - q
 }

 // Compute r1 = round(r/alpha) where round is rounding to nearest
 // with ties broken towards zero
 if r >= 0 {
 r1 = (r + alpha/2) / alpha
 } else {
 r1 = (r - alpha/2 + 1) / alpha
 }

 // Compute r0 = r - r1*alpha
 r0 = r - r1*alpha

 // Adjust r1 if r0 is too large
 if r0 > alpha/2 {
 r1++
 r0 -= alpha
 } else if r0 < -alpha/2 {
 r1--
 r0 += alpha
 }

 return r1, r0
}

However, this violates cryptography engineering best practices:

  1. This code flagrantly uses division and modulo operators.
  2. It contains several branches based on values derived from the field element.

Zen and the art of branchless cryptography

The straightforward approach to preventing branches in any cryptography algorithm is to always perform both sides of the condition (true and false) and then use a constant-time conditional swap based on the condition to obtain the correct result. This involves bit masking, two’s complement, and exclusive OR (XOR).

Removing the branches from this function looks something like this:

// This is another AI-generated code sample.
// Not secure -- DO NOT USE.
func DecomposeUnsafeBranchless(r, alpha int32) (r1, r0 int32) {
 // Ensure r is in range [0, q-1]
 r = r % q
 r += q & (r >> 31) // Add q if r < 0 (using arithmetic right shift)

 // Center r around 0 (map to range [-(q-1)/2, (q-1)/2])
 mask := -((r - (q-1)/2 - 1) >> 31) // mask = -1 if r > (q-1)/2, else 0
 r -= q & mask

 // Compute r1 = round(r/alpha) with ties broken towards zero
 // For r >= 0: r1 = (r + alpha/2) / alpha
 // For r < 0: r1 = (r - alpha/2 + 1) / alpha
 signMask := r >> 31 // signMask = -1 if r < 0, else 0
 offset := (alpha/2) + (signMask & (-alpha/2 + 1)) // alpha/2 if r >= 0, else -alpha/2 + 1
 r1 = (r + offset) / alpha

 // Compute r0 = r - r1*alpha
 r0 = r - r1*alpha

 // Adjust r1 if r0 is too large (branch-free)
 // If r0 > alpha/2: r1++, r0 -= alpha
 // If r0 < -alpha/2: r1--, r0 += alpha

 // Check if r0 > alpha/2
 adjustUp := -((r0 - alpha/2 - 1) >> 31) // -1 if r0 > alpha/2, else 0
 r1 += adjustUp & 1
 r0 -= adjustUp & alpha

 // Check if r0 < -alpha/2
 adjustDown := -((-r0 - alpha/2 - 1) >> 31) // -1 if r0 < -alpha/2, else 0
 r1 -= adjustDown & 1
 r0 += adjustDown & alpha

 return r1, r0
}

That solves our conditional branching problem; however, we aren’t done yet. There are still the troublesome division operators.

Undivided by time: Division-free algorithms

The previous trick of constant-time conditional swaps can be leveraged to implement integer division in constant time as well.

func DivConstTime32(n uint32, d uint32) (uint32, uint32) {
 quotient := uint32(0)
 R := uint32(0)

 // We are dealing with 32-bit integers, so we iterate 32 times
 b := uint32(32)
 i := b
 for range b {
 i--
 R <<= 1

 // R(0) := N(i)
 R |= ((n >> i) & 1)

 // swap from Sub32() will look like this:
 // if remainder > d, swap == 0
 // if remainder == d, swap == 0
 // if remainder < d, swap == 1
 Rprime, swap := bits.Sub32(R, d, 0)

 // invert logic of sub32 for conditional swap
 swap ^= 1
 /*
 Desired:
 if R > D then swap = 1
 if R == D then swap = 1
 if R < D then swap = 0
 */

 // Qprime := Q
 // Qprime(i) := 1
 Qprime := quotient
 Qprime |= (1 << i)

 // Conditional swap:
 mask := uint32(-swap)
 R ^= ((Rprime ^ R) & mask)
 quotient ^= ((Qprime ^ quotient) & mask)
 }
 return quotient, R
}

This works as expected, but it’s slow, since it requires a full loop iteration to calculate each bit of the quotient and remainder. We can do better.

One neat optimization trick: Barrett reduction

Since the value $γ_2$ is fixed for a given parameter set, and the division and modulo operators are performed against $2γ_2$, we can use Barrett reduction with precomputed values instead of division.

Barrett reduction involves multiplying by a reciprocal (in our case, $2^{64}/2γ_2$) and then performing up to two corrective subtractions to obtain a remainder. The quotient is produced as a byproduct of this calculation.

// Calculates (n/d, n%d) given (n, d)
func DivBarrett(numerator, denominator uint32) (uint32, uint32) {
 // Since d is always 2 * gamma2, we can precompute (2^64 / d) and use it
 var reciprocal uint64
 switch denominator {
 case 190464: // 2 * 95232
 reciprocal = 96851604889688
 case 523776: // 2 * 261888
 reciprocal = 35184372088832
 default:
 // Fallback to slow division
 return DivConstTime32(numerator, denominator)
 }

 // Barrett reduction
 hi, _ := bits.Mul64(uint64(numerator), reciprocal)
 quo := uint32(hi)
 r := numerator - quo * denominator

 // Two correction steps using bits.Sub32 (constant-time)
 for i := 0; i < 2; i++ {
 newR, borrow := bits.Sub32(r, denominator, 0)
 correction := borrow ^ 1 // 1 if r >= d, 0 if r < d
 mask := uint32(-correction)
 quo += mask & 1
 r ^= mask & (newR ^ r) // Conditional swap using XOR
 }

 return quo, r
}

With this useful function in hand, we can now implement Decompose without branches or divisions.

Toward a post-quantum secure future

The availability of post-quantum signature algorithms in Go is a step toward a future where internet communications remain secure, even if a cryptography-relevant quantum computer is ever developed.

If you’re interested in high-assurance cryptography, even in the face of novel adversaries (including but not limited to future quantum computers), contact our cryptography team today.

SecurityWeek

Latest cybersecurity news

Amazon Detects 150,000 NPM Packages in Worm-Powered Campaign - November 14, 2025

A financially motivated threat actor automated the package publishing process in a coordinated tea.xyz token farming campaign.

The post Amazon Detects 150,000 NPM Packages in Worm-Powered Campaign  appeared first on SecurityWeek.

The Hacker News

Cybersecurity news and insights

Ransomware’s Fragmentation Reaches a Breaking Point While LockBit Returns - November 14, 2025

Key Takeaways:

85 active ransomware and extortion groups observed in Q3 2025, reflecting the most decentralized ransomware ecosystem to date. 1,590 victims disclosed across 85 leak sites, showing high, sustained activity despite law-enforcement pressure. 14 new ransomware brands launched this quarter, proving how quickly affiliates reconstitute after takedowns. LockBit’s reappearance with

SecurityWeek

Latest cybersecurity news

Imunify360 Vulnerability Could Expose Millions of Sites to Hacking - November 14, 2025

A vulnerability in ImunifyAV can be exploited for arbitrary code execution by uploading a malicious file to shared servers.

The post Imunify360 Vulnerability Could Expose Millions of Sites to Hacking appeared first on SecurityWeek.

The Hacker News

Cybersecurity news and insights

Now-Patched Fortinet FortiWeb Flaw Exploited in Attacks to Create Admin Accounts - November 14, 2025

Cybersecurity researchers are sounding the alert about an authentication bypass vulnerability in Fortinet Fortiweb Web Application Firewall (WAF) that could allow an attacker to take over admin accounts and completely compromise a device. “The watchTowr team is seeing active, indiscriminate in-the-wild exploitation of what appears to be a silently patched vulnerability in Fortinet’s FortiWeb

SecurityWeek

Latest cybersecurity news

Anthropic Says Claude AI Powered 90% of Chinese Espionage Campaign - November 14, 2025

A state-sponsored threat actor manipulated Claude Code to execute cyberattacks on roughly 30 organizations worldwide.

The post Anthropic Says Claude AI Powered 90% of Chinese Espionage Campaign appeared first on SecurityWeek.

Google Security Blog

Security insights from Google

Rust in Android: move fast and fix things - November 13, 2025

Last year, we wrote about why a memory safety strategy that focuses on vulnerability prevention in new code quickly yields durable and compounding gains. This year we look at how this approach isn’t just fixing things, but helping us move faster.

The 2025 data continues to validate the approach, with memory safety vulnerabilities falling below 20% of total vulnerabilities for the first time.

<em>Updated data for 2025. This data covers first-party and third-party (open source) code changes to the Android platform across C, C++, Java, Kotlin, and Rust. This post is published a couple of months before the end of 2025, but Android’s industry-standard 90-day patch window means that these results are very likely close to final. We can and will accelerate patching when necessary.</em>

We adopted Rust for its security and are seeing a 1000x reduction in memory safety vulnerability density compared to Android’s C and C++ code. But the biggest surprise was Rust's impact on software delivery. With Rust changes having a 4x lower rollback rate and spending 25% less time in code review, the safer path is now also the faster one.

In this post, we dig into the data behind this shift and also cover:

  • How we’re expanding our reach: We're pushing to make secure code the default across our entire software stack. We have updates on Rust adoption in first-party apps, the Linux kernel, and firmware.
  • Our first rust memory safety vulnerability...almost: We'll analyze a near-miss memory safety bug in unsafe Rust: how it happened, how it was mitigated, and steps we're taking to prevent recurrence. It’s also a good chance to answer the question “if Rust can have memory safety issues, why bother at all?”

Building Better Software, Faster

Developing an operating system requires the low-level control and predictability of systems programming languages like C, C++, and Rust. While Java and Kotlin are important for Android platform development, their role is complementary to the systems languages rather than interchangeable. We introduced Rust into Android as a direct alternative to C and C++, offering a similar level of control but without many of their risks. We focus this analysis on new and actively developed code because our data shows this to be an effective approach.

When we look at development in systems languages (excluding Java and Kotlin), two trends emerge: a steep rise in Rust usage and a slower but steady decline in new C++.

Net lines of code added: Rust vs. C++, first-party Android code.
This chart focuses on first-party (Google-developed) code (unlike the previous chart that included all first-party and third-party code in Android.) We only include systems languages, C/C++ (which is primarily C++), and Rust.

The chart shows that the volume of new Rust code now rivals that of C++, enabling reliable comparisons of software development process metrics. To measure this, we use the DORA1 framework, a decade-long research program that has become the industry standard for evaluating software engineering team performance. DORA metrics focus on:

  • Throughput: the velocity of delivering software changes.
  • Stability: the quality of those changes.

Cross-language comparisons can be challenging. We use several techniques to ensure the comparisons are reliable.

  • Similar sized changes: Rust and C++ have similar functionality density, though Rust is slightly denser. This difference favors C++, but the comparison is still valid. We use Gerrit’s change size definitions.
  • Similar developer pools: We only consider first-party changes from Android platform developers. Most are software engineers at Google, and there is considerable overlap between pools with many contributing in both.
  • Track trends over time: As Rust adoption increases, are metrics changing steadily, accelerating the pace, or reverting to the mean?

Throughput

Code review is a time-consuming and high-latency part of the development process. Reworking code is a primary source of these costly delays. Data shows that Rust code requires fewer revisions. This trend has been consistent since 2023. Rust changes of a similar size need about 20% fewer revisions than their C++ counterparts.

In addition, Rust changes currently spend about 25% less time in code review compared to C++. We speculate that the significant change in favor of Rust between 2023 and 2024 is due to increased Rust expertise on the Android team.

While less rework and faster code reviews offer modest productivity gains, the most significant improvements are in the stability and quality of the changes.

Stability

Stable and high-quality changes differentiate Rust. DORA uses rollback rate for evaluating change stability. Rust's rollback rate is very low and continues to decrease, even as its adoption in Android surpasses C++.

For medium and large changes, the rollback rate of Rust changes in Android is ~4x lower than C++. This low rollback rate doesn't just indicate stability; it actively improves overall development throughput. Rollbacks are highly disruptive to productivity, introducing organizational friction and mobilizing resources far beyond the developer who submitted the faulty change. Rollbacks necessitate rework and more code reviews, can also lead to build respins, postmortems, and blockage of other teams. Resulting postmortems often introduce new safeguards that add even more development overhead.

In a self-reported survey from 2022, Google software engineers reported that Rust is both easier to review and more likely to be correct. The hard data on rollback rates and review times validates those impressions.

Putting it all together

Historically, security improvements often came at a cost. More security meant more process, slower performance, or delayed features, forcing trade-offs between security and other product goals. The shift to Rust is different: we are significantly improving security and key development efficiency and product stability metrics.

Expanding Our Reach

With Rust support now mature for building Android system services and libraries, we are focused on bringing its security and productivity advantages elsewhere.

  • Kernel: Android’s 6.12 Linux kernel is our first kernel with Rust support enabled and our first production Rust driver. More exciting projects are underway, such as our ongoing collaboration with Arm and Collabora on a Rust-based kernel-mode GPU driver.
  • Firmware: The combination of high privilege, performance constraints, and limited applicability of many security measures makes firmware both high-risk, and challenging to secure. Moving firmware to Rust can yield a major improvement in security. We have been deploying Rust in firmware for years now, and even released tutorials, training, and code for the wider community. We’re particularly excited about our collaboration with Arm on Rusted Firmware-A.
  • First-party applications: Rust is ensuring memory safety from the ground up in several security-critical Google applications, such as:
    • Nearby Presence: The protocol for securely and privately discovering local devices over Bluetooth is implemented in Rust and is currently running in Google Play Services.
    • MLS: The protocol for secure RCS messaging is implemented in Rust and will be included in the Google Messages app in a future release.
    • Chromium: Parsers for PNG, JSON, and web fonts have been replaced with memory-safe implementations in Rust, making it easier for Chromium engineers to deal with data from the web while following the Rule of 2.


These examples highlight Rust's role in reducing security risks, but memory-safe languages are only one part of a comprehensive memory safety strategy. We continue to employ a defense-in-depth approach, the value of which was clearly demonstrated in a recent near-miss.

Our First Rust Memory Safety Vulnerability...Almost

We recently avoided shipping our very first Rust-based memory safety vulnerability: a linear buffer overflow in CrabbyAVIF. It was a near-miss. To ensure the patch received high priority and was tracked through release channels, we assigned it the identifier CVE-2025-48530. While it’s great that the vulnerability never made it into a public release, the near-miss offers valuable lessons. The following sections highlight key takeaways from our postmortem.

Scudo Hardened Allocator for the Win

A key finding is that Android’s Scudo hardened allocator deterministically rendered this vulnerability non-exploitable due to guard pages surrounding secondary allocations. While Scudo is Android’s default allocator, used on Google Pixel and many other devices, we continue to work with partners to make it mandatory. In the meantime, we will issue CVEs of sufficient severity for vulnerabilities that could be prevented by Scudo.

In addition to protecting against overflows, Scudo’s use of guard pages helped identify this issue by changing an overflow from silent memory corruption into a noisy crash. However, we did discover a gap in our crash reporting: it failed to clearly show that the crash was a result of an overflow, which slowed down triage and response. This has been fixed, and we now have a clear signal when overflows occur into Scudo guard pages.

Unsafe Review and Training

Operating system development requires unsafe code, typically C, C++, or unsafe Rust (for example, for FFI and interacting with hardware), so simply banning unsafe code is not workable. When developers must use unsafe, they should understand how to do so soundly and responsibly

To that end, we are adding a new deep dive on unsafe code to our Comprehensive Rust training. This new module, currently in development, aims to teach developers how to reason about unsafe Rust code, soundness and undefined behavior, as well as best practices like safety comments and encapsulating unsafe code in safe abstractions.

Better understanding of unsafe Rust will lead to even higher quality and more secure code across the open source software ecosystem and within Android. As we'll discuss in the next section, our unsafe Rust is already really quite safe. It’s exciting to consider just how high the bar can go.

Comparing Vulnerability Densities

This near-miss inevitably raises the question: "If Rust can have memory safety vulnerabilities, then what’s the point?"

The point is that the density is drastically lower. So much lower that it represents a major shift in security posture. Based on our near-miss, we can make a conservative estimate. With roughly 5 million lines of Rust in the Android platform and one potential memory safety vulnerability found (and fixed pre-release), our estimated vulnerability density for Rust is 0.2 vuln per 1 million lines (MLOC).

Our historical data for C and C++ shows a density of closer to 1,000 memory safety vulnerabilities per MLOC. Our Rust code is currently tracking at a density orders of magnitude lower: a more than 1000x reduction.

Memory safety rightfully receives significant focus because the vulnerability class is uniquely powerful and (historically) highly prevalent. High vulnerability density undermines otherwise solid security design because these flaws can be chained to bypass defenses, including those specifically targeting memory safety exploits. Significantly lowering vulnerability density does not just reduce the number of bugs; it dramatically boosts the effectiveness of our entire security architecture.

The primary security concern regarding Rust generally centers on the approximately 4% of code written within unsafe{} blocks. This subset of Rust has fueled significant speculation, misconceptions, and even theories that unsafe Rust might be more buggy than C. Empirical evidence shows this to be quite wrong.

Our data indicates that even a more conservative assumption, that a line of unsafe Rust is as likely to have a bug as a line of C or C++, significantly overestimates the risk of unsafe Rust. We don’t know for sure why this is the case, but there are likely several contributing factors:

  • unsafe{} doesn't actually disable all or even most of Rust’s safety checks (a common misconception).
  • The practice of encapsulation enables local reasoning about safety invariants.
  • The additional scrutiny that unsafe{} blocks receive.

Final Thoughts

Historically, we had to accept a trade-off: mitigating the risks of memory safety defects required substantial investments in static analysis, runtime mitigations, sandboxing, and reactive patching. This approach attempted to move fast and then pick up the pieces afterwards. These layered protections were essential, but they came at a high cost to performance and developer productivity, while still providing insufficient assurance.

While C and C++ will persist, and both software and hardware safety mechanisms remain critical for layered defense, the transition to Rust is a different approach where the more secure path is also demonstrably more efficient. Instead of moving fast and then later fixing the mess, we can move faster while fixing things. And who knows, as our code gets increasingly safe, perhaps we can start to reclaim even more of that performance and productivity that we exchanged for security, all while also improving security.

Acknowledgments

Thank you to the following individuals for their contributions to this post:

  • Ivan Lozano for compiling the detailed postmortem on CVE-2025-48530.
  • Chris Ferris for validating the postmortem’s findings and improving Scudo’s crash handling as a result.
  • Dmytro Hrybenko for leading the effort to develop training for unsafe Rust and for providing extensive feedback on this post.
  • Alex Rebert and Lars Bergstrom for their valuable suggestions and extensive feedback on this post.
  • Peter Slatala, Matthew Riley, and Marshall Pierce for providing information on some of the places where Rust is being used in Google's apps.

Finally, a tremendous thank you to the Android Rust team, and the entire Android organization for your relentless commitment to engineering excellence and continuous improvement.

Notes


  1. The DevOps Research and Assessment (DORA) program is published by Google Cloud. ↩

The Hacker News

Cybersecurity news and insights

Fake Chrome Extension “Safery” Steals Ethereum Wallet Seed Phrases Using Sui Blockchain - November 13, 2025

Cybersecurity researchers have uncovered a malicious Chrome extension that poses as a legitimate Ethereum wallet but harbors functionality to exfiltrate users’ seed phrases. The name of the extension is “Safery: Ethereum Wallet,” with the threat actor describing it as a “secure wallet for managing Ethereum cryptocurrency with flexible settings.” It was uploaded to the Chrome Web Store on

Schneier on Security

Security news and analysis by Bruce Schneier

Book Review: The Business of Secrets - November 13, 2025

The Business of Secrets: Adventures in Selling Encryption Around the World by Fred Kinch (May 24, 2024)

From the vantage point of today, it’s surreal reading about the commercial cryptography business in the 1970s. Nobody knew anything. The manufacturers didn’t know whether the cryptography they sold was any good. The customers didn’t know whether the crypto they bought was any good. Everyone pretended to know, thought they knew, or knew better than to even try to know.

The Business of Secrets is the self-published memoirs of Fred Kinch. He was founder and vice president of—mostly sales—at a US cryptographic hardware company called Datotek, from company’s founding in 1969 until 1982. It’s mostly a disjointed collection of stories about the difficulties of selling to governments worldwide, along with descriptions of the highs and (mostly) lows of foreign airlines, foreign hotels, and foreign travel in general. But it’s also about encryption...

Trail of Bits Blog

Security research and insights from Trail of Bits

Building checksec without boundaries with Checksec Anywhere - November 13, 2025

Since its original release in 2009, checksec has become widely used in the software security community, proving useful in CTF challenges, security posturing, and general binary analysis. The tool inspects executables to determine which exploit mitigations (e.g., ASLR, DEP, stack canaries, etc.) are enabled, rapidly gauging a program’s defensive hardening. This success inspired numerous spinoffs: a contemporary Go implementation, Trail of Bits’ Winchecksec for PE binaries, and various scripts targeting Apple’s Mach-O binary format. However, this created an unwieldy ecosystem where security professionals must juggle multiple tools, each with different interfaces, dependencies, and feature sets.

During my summer internship at Trail of Bits, I built Checksec Anywhere to consolidate this fragmented ecosystem into a consistent and accessible platform. Checksec Anywhere brings ELF, PE, and Mach-O analysis directly to your browser. It runs completely locally: no accounts, no uploads, no downloads. It is fast (analyzes thousands of binaries in seconds) and private, and lets you share results with a simple URL.

Using Checksec Anywhere

To use Checksec Anywhere, just drag and drop a file or folder directly into the browser. Results are instantly displayed with color-coded messages reflecting finding severity. All processing happens locally in your browser; at no point is data sent to Trail of Bits or anyone else.

Figure 1: Uploading 746 files from /usr/bin to Checksec Anywhere
Figure 1: Uploading 746 files from /usr/bin to Checksec Anywhere

Key features of Checksec Anywhere

Multi-format analysis

Checksec Anywhere performs comprehensive binary analysis across ELF, PE, and Mach-O formats from a single interface, providing analysis tailored to each platform’s unique security mechanisms. This includes traditional checks like stack canaries and PIE for ELF binaries, GS cookies and Control Flow Guard for PE files, and ARC and code signing for Mach-O executables. For users familiar with the traditional checksec family of tools, Checksec Anywhere reports maintain consistency with prior reporting nomenclature.

Privacy-first

Unlike many browser-accessible tools that simply provide a web interface to server-side processing, Checksec Anywhere ensures that your binaries never leave your machine by performing all analysis directly in the browser. Report generation also happens locally, and shareable links do not reveal binary content.

Performance by design

From browser upload to complete security report, Checksec Anywhere is designed to rapidly process multiple files. Since Checksec Anywhere runs locally, the exact performance depends on your machine… but it’s fast. On a modern MacBook Pro it can analyze thousands of files in mere seconds.

Enhanced accessibility

Checksec Anywhere eliminates installation barriers by offering an entirely browser-based interface and features designed to provide accessibility:

  • Shareable results: Generate static URLs for any report view, enabling secure collaboration without exposing binaries.

  • SARIF export: Generate reports in SARIF format for integration with CI/CD pipelines and other security tools. These reports are also generated entirely on your local machine.

  • Simple batch processing: Drag and drop entire directories for simple bulk analysis.

  • Tabbed interface: Manage multiple analyses simultaneously with an intuitive UI.

    Figure 2: Tabbed interface for managing multiple analyses
    Figure 2: Tabbed interface for managing multiple analyses

Technical architecture

Checksec Anywhere leverages modern web technologies to deliver native-tool performance in the browser:

  • Rust core: Checksec Anywhere is built on the checksec.rs foundation, using well-established crates like Goblin for binary parsing and iced_x86 for disassembly.
  • WebAssembly bridge: The Rust code is compiled to Wasm using wasm-pack, exposing low-level functionality through a clean JavaScript API.
  • Extensible design: Per-format processing architecture allows easy addition of new binary types and security checks.
  • Advanced analysis: Checksec Anywhere performs disassembly to enable deeper introspection (like to detect stack protection in PE binaries).

See the open-source codebase to dig further into its architecture.

Future work

With an established infrastructure for cross-platform binary analysis and reporting, we can easily add new features and extensions. If you have pull requests, we’d love to review and merge them.

Additional formats

A current major blind spot is lack of support for mobile binary formats like Android APK and iOS IPA. Adding analysis for these formats would address the expanding mobile threat landscape. Similarly, specialized handling of firmware binaries and bootloaders would extend coverage to critical system-level components in mobile and embedded devices.

Additional security properties

Checksec Anywhere is designed to add new checks as researchers discover new attack methods. For example, recent research has uncovered multiple mechanisms by which compiler optimizations violate constant-time execution guarantees, prompting significant discussion within the compiler community (see this LLVM discourse thread, for example). As these issues are addressed, constant-time security checks can be integrated into Checksec Anywhere, providing immediate feedback on whether a given binary is resistant to timing attacks.

Try it out

Checksec Anywhere eliminates the overhead of managing format-specific security analysis tools while providing immediate access to comprehensive binary security reports. No installation, no dependencies, no compromises on privacy or performance. Visit checksec-anywhere.com and try it now!

I’d like to extend a special thank you to my mentors William Woodruff and Bradley Swain for their guidance and support throughout my summer here at Trail of Bits!

↑ Back to top