5 Rust crates pose as time utilities to steal .env files

MediumTyposquatcrates.io

Five crates published between late February and early March 2026 posed as local time utilities while exfiltrating .env files via curl to a lookalike domain timeapis.io (typosquatting timeapi.io). All packages were 0.1.0 and yanked within hours. Account aliases: gehakax777, dictorudin.

Published 28 Feb 2026

At a glancecrates-2026-02-28-time-utility-typosquats
5
Packages tracked5 malicious versions

Every version named by the advisory is in the scanner, so a lockfile check finds it directly.

Severity
Medium
Type
Typosquat
Published
28 Feb 2026
Ecosystems
crates.io
Detected by
Socket

Typosquat. A package that never had a legitimate version, named to be mistaken for a real one - a misspelling, a lookalike scope, or an impersonated vendor SDK.

What happened

The full picture

Between late February and early March 2026, five crates appeared on crates.io under two publishing handles - gehakax777 and dictorudin - all posing as local time utilities. Names included chrono_anchor, dnp3times, time_calibrator, time_calibrators, and time-sync. Each was published at exactly version 0.1.0, which is the early-tell.

On build, the crates execute a curl to a lookalike domain timeapis.io - a typosquat of the legitimate timeapi.io - uploading the contents of any .env file found on the host. The payload is small (a single shell-out, no obfuscation), which is consistent with the broader pattern of opportunistic Rust-side credential theft this quarter.

All five crates were yanked by crates.io within hours of Socket's disclosure, and combined download counts stayed in the low double digits, so direct exposure is limited. The takeaway is process-level: any crate at 0.1.0 with no prior version history posing as a near-name of a known utility should be treated as suspect, and CI should run cargo-audit plus a cargo-deny denylist for known-malicious names.

typosquatcredential-theft
Affected packages

5 packages 5 versions

These are usually pulled in as transitive dependencies rather than installed directly. Check your whole tree at once. It runs in your browser and nothing is uploaded.

Impact

What it does if you installed it

  • .env file theft including API keys, tokens, and credentials
  • Targets developer workstations and CI runners
  • Low download counts but represents continuing typosquat pattern
What to do

Clean-up steps

  1. Block egress to timeapis.io and remove the listed crates from Cargo.lock
  2. Rotate credentials on any host that built with the malicious crates
  3. Add cargo-deny rules for known-malicious crate names
References

Sources

crates-2026-02-28-time-utility-typosquatsBack to incidentsSubmit a correction
Am I affected?

Check your lockfile against this and every other incident.

Paste a lockfile and it is matched on your own device against every compromised version we track. Nothing is uploaded and there is no account.