SShortSingh.
Back to feed

Rust crate arrayref poisoned with malware that ran at compile time, deleted in 86 minutes

0
·1 views

On August 20, 2026, a malicious version of the popular Rust crate arrayref (0.3.10) was published to crates.io, carrying a typosquatted dependency called proc-macro1 whose build script downloaded and executed a binary on developers' machines during compilation. The attacker, operating from an account named dtolney — one letter off from trusted maintainer dtolnay — staged a clean decoy crate before adding the malicious build script, and also yanked legitimate arrayref versions to steer users toward the infected release. The Rust security response team deleted the malicious crate 86 minutes after publication, locking the compromised account and restoring clean versions; two other affected crates, internment and append-only-vec, were removed within two hours. According to RUSTSEC-2026-0260, the poisoned version was downloaded 2,285 times, with the maintainer's account believed to have been compromised rather than acting maliciously. The incident highlights a fundamental aspect of Rust's build system: Cargo runs dependency build scripts with full developer permissions and no sandbox, meaning a single added dependency line is sufficient to execute arbitrary code at compile time.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Modern scroll-driven animations: separating entry/exit with robust CSS fallbacks

A modern approach to scroll-driven web animations recommends splitting entry and exit effects into two separate animations rather than combining them in a single keyframe block. This separation allows independent control of easing, timing, and transforms, reducing layout bugs across different screen sizes and dynamic content. The technique leverages native CSS properties like animation-timeline: view() and animation-range, anchoring animations to semantic scroll ranges instead of fragile manual percentage calculations. Because browser support for scroll-driven animations is not universal, developers are advised to implement feature detection and fall back gracefully to the Intersection Observer API where needed. The overall approach prioritizes resilience, accessibility, and declarative CSS intent over geometry-dependent workarounds.

0
ProgrammingDEV Community ·

Wrium is a lightweight reactive JavaScript library that needs no build tools

A developer has released Wrium, a small open-source JavaScript library designed to bring reactivity to web interfaces without requiring a bundler or compiler. Users simply add a script tag to an HTML file and use Vue-inspired directives such as v-if, v-for, and v-model to bind data to the page. When data changes, Wrium automatically updates the relevant parts of the UI, eliminating the need to manually query and modify DOM elements. The library weighs approximately 10.9 KB minified, has zero dependencies, and ships with TypeScript declarations under the MIT license. Wrium is positioned not as a replacement for large frameworks but as a lightweight alternative for projects where full-scale tooling is unnecessary.

0
ProgrammingDEV Community ·

NVIDIA Launches OpenShell to Sandbox AI Agents and Enforce Access Policies

NVIDIA has released an open-source project called OpenShell, designed to provide a secure, isolated runtime environment for autonomous AI agents. The tool addresses risks such as credential leaks, prompt injection, and unintended system commands by running each agent inside its own sandbox with kernel-level controls. A built-in policy system lets developers define exactly which files, network hosts, and system calls an agent may access, with a gateway enforcing those rules at runtime. OpenShell supports Linux, macOS on Apple Silicon, and Windows via WSL 2, and requires Docker, Podman, or host virtualization to operate. SDKs are available for Python, TypeScript, Go, and Rust, allowing developers to integrate OpenShell into their own applications.

0
ProgrammingDEV Community ·

Developer Builds Flask Coupon Calculator to Solve Real Cashier Math Challenges

A developer and cashier created a lightweight Flask web app called Coupon Calculator to simplify discount calculations at checkout. The project was motivated by the creator's personal struggle with dyscalculia, which makes mental math difficult during busy retail shifts. The app allows users to enter an original price and apply either a percentage or fixed discount, then instantly view the savings and final price. It includes input validation, protection against negative values, and currency-safe rounding to two decimal places. The tool was built as a practical, everyday solution and is available as a live web app.