Skip to main content
Mallory
← Back to News
package-repository-poisoningbuild-pipeline-compromisedependency-confusion-typosquatremote-access-implant

Typosquatted Rust Crate Delivered Mythic Poseidon Malware to GitLab CI Pipelines

Supply Chain Risk · 1 source · Updated 5mo ago · First seen May 19, 2022

Typosquatted Rust Crate Delivered Mythic Poseidon Malware to GitLab CI Pipelines

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 rustdecimal impersonating legitimate rust_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
Does this reach your builds?Trace attribution and downstream blast radius.
Trace the chain
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

4 events · May 19, 2022
  1. May 19, 20225y ago

    Fake Rust developer account used to seed trust

    The attackers appeared to impersonate a known Rust developer using a fake account. SentinelLabs assessed this was likely intended to encourage trusted communities to reference the poisoned dependency.

    CrateDepression | Rust Supply-Chain Attack Infects Cloud CI Pipelines with Go Malware | SentinelOne
  2. May 19, 20225y ago

    Attackers publish 15 malicious crate versions

    Researchers found 15 malicious versions of the 'rustdecimal' crate, spanning versions 1.22.0 through 1.23.5. The version progression indicated the attackers were iteratively refining the malicious package over time.

    CrateDepression | Rust Supply-Chain Attack Infects Cloud CI Pipelines with Go Malware | SentinelOne
  3. May 19, 20225y ago

    Malicious 'rustdecimal' crate uploaded to crates.io

    SentinelLabs identified a typosquatted Rust crate named 'rustdecimal' on crates.io as part of the CrateDepression supply-chain attack. The package was designed to target GitLab CI environments and fetch a second-stage payload when the GITLAB_CI environment variable was present.

    CrateDepression | Rust Supply-Chain Attack Infects Cloud CI Pipelines with Go Malware | SentinelOne
  4. May 19, 20225y ago

    SentinelLabs discloses CrateDepression campaign details

    On 2022-05-19, SentinelLabs published its investigation into the CrateDepression Rust supply-chain attack, linking the malicious crate to a Go-based Mythic Poseidon agent. The report described the malware's Linux and macOS support, C2 infrastructure at api.kakn[.]li, and backdoor capabilities including persistence, keylogging, file transfer, and screen capture.

    CrateDepression | Rust Supply-Chain Attack Infects Cloud CI Pipelines with Go Malware | SentinelOne
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Malware

2 linked

Affected products

1 linked
Gitlab Runner

Organizations

1 linked
GitLab

Observables

44 linked

Indicator values are masked on this page. View all 44 in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?See attribution and downstream blast radius, and whether this package or vendor reaches your builds.
Trace the Supply Chain
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.