Skip to content
Write-up Advanced

Ouroboros: Emergent Behavior Through Trust Composition

The research evaluates whether documented configuration and lifecycle mechanisms across Python, pip, uv, npm, pnpm, Gradle, Maven, and a Claude-compatible hook can recreate each other's state on a shared workstation. In a controlled lab, nine declared recovery edges all reinstated removed target artifacts, showing that trust relationships across developer tools can compose into a distributed reinstatement graph.

Matt Landers Follow

Published on osec.com

An experimental framework for evaluating trust composition across developer ecosystems. It tests whether documented configuration and lifecycle behavior in Python, pip, uv, npm, pnpm, Gradle, Maven, and AI-assisted coding tools can recreate one another’s state on a single shared workstation.

Matt Landers, on osec.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the underlying mistake is that multiple developer tools grant execution authority to configuration, metadata, and lifecycle hooks without considering that these trusted mechanisms can recreate each other's state when they share a filesystem.

Impact

In the controlled lab, removing a single artifact did not necessarily eliminate the recovery graph because another declared execution path could recreate it; the text does not establish real-world propagation, credential access, privilege escalation, or malicious behavior outside the lab.

What the attacker needed

Shared disposable workstation; multiple developer tools installed; documented configuration mechanisms present

How it was found

  1. Establish ten mechanism artifacts across Python, pip, uv, npm, pnpm, Gradle, Maven, and Claude-compatible configuration surfaces.
  2. For each recovery edge, remove the target artifact.
  3. Execute the restorer's trigger.
  4. Fingerprint the target before and after execution, checking object type, permissions, symlink destination, and SHA-256 checksum.
  5. Record each run with a UUID in a host-owned SQLite evidence database.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Developer tools like package managers and build systems trust certain configuration files and scripts to run automatically. This research shows that if an attacker can set up one such trusted mechanism, it can recreate another tool's configuration after it is removed, making persistence harder to clean up. The test was done in a lab on one machine, not in a real attack.

More by Matt Landers

View all

4 more disclosed reports, best first.

Similar reports

Same bug class and techniques, clearest first.