Typosquatted Rust Crate Delivered Mythic Poseidon Malware to GitLab CI Pipelines
Supply Chain Risk · 1 source · Updated 5mo ago · First seen May 19, 2022

A supply-chain attack on the Rust ecosystem used a malicious typosquatted crate, rustdecimal, published on crates.io to target cloud-based development pipelines. SentinelLabs found 15 malicious versions, from 1.22.0 through 1.23.5, indicating repeated refinement by the attacker. The package checked for the GITLAB_CI environment variable and, when present, downloaded and executed a second-stage payload, turning compromised CI jobs into an entry point for broader downstream compromise.
The second-stage malware was identified as the Mythic Poseidon agent written in Go, with Linux and macOS support and backdoor functions including persistence, keylogging, file transfer, and screen capture. Researchers said the campaign also appeared to involve impersonation of a known Rust developer through a fake account to lend credibility to the poisoned dependency and encourage adoption. The malware communicated with a command-and-control endpoint at api.kakn[.]li, which resolved to 64.227.12[.]57, underscoring the risk that a single malicious package could infect trusted build environments and propagate into software supply chains.
Why it matters
Impact assessment
This campaign affects organizations that build Rust software in GitLab CI, especially teams that may have mistakenly imported the typosquatted rustdecimal crate instead of the legitimate rust_decimal package. The impact is high because compromise occurs inside trusted CI runners, creating risk of credential theft, build-environment takeover, downstream software tampering, and broader supply-chain propagation.
The exposure appears targeted rather than indiscriminate: the malicious crate explicitly checked for the GITLAB_CI environment variable and attempted to blend into GitLab Runner failures when not in scope. There is confirmed malicious package publication and payload delivery behavior, but the provided reporting does not confirm named victim organizations or large-scale exploitation counts.
Supporting facts
- Campaign name: CrateDepression.
- Ecosystem targeted: Rust / crates.io.
- Initial access vector: typosquatted dependency
rustdecimalimpersonating legitimaterust_decimal. - Target environment: GitLab CI pipelines identified via
GITLAB_CI. - Potential business impact:
- compromise of cloud build runners
- theft of secrets present in CI jobs
- tampering with build artifacts and release pipelines
- downstream supply-chain compromise of produced software
- reputational and operational damage from poisoned builds
- Scope indicators:
- 15 malicious crate versions published, suggesting sustained attacker iteration
- fake maintainer identity used to increase trust and adoption
- Known in-the-wild activity:
- malicious crate was published to crates.io
- second-stage malware delivery and execution logic was present
- no specific victim list or incident count was published in the provided source


