Skip to content
Path traversal Write-up Advanced

Beyond Prompt Injection Hacking Apples Private Cloud Compute

A path traversal vulnerability in darwin-init, the first userspace process on Apple's Private Cloud Compute nodes, allowed an attacker to write arbitrary files as root during boot. This enabled redirecting telemetry to an attacker-controlled server and bypassing attestation guarantees.

blog.sentry.security

Published on blog.sentry.security

This work is my contribution to Sentry's AI Security research initiative, run through SARC, the Sentry Applied Research Center. Our SARC focuses on evaluating systems that carry the most consequence as AI moves into everyday technologies.

The author, on blog.sentry.security

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

The archive extraction function appended entry names to the output directory without sanitising them, and libarchive's security flags were not set, allowing path traversal.

Impact

An attacker could write arbitrary files as root, redirect telemetry to a controlled server, and exfiltrate sensitive inference metadata, while attestation still reported the node as clean.

What the attacker needed

Access to a PCC node or VRE instance; ability to supply a malicious cryptex configuration; no special privileges required

The fix

The vulnerability was fixed in PCC releases 5E290.3 and later.

How it was found

  1. Build a malicious tar archive containing traversal entries and a valid cryptex bundle.
  2. Register the malicious tar as a third cryptex in a VRE instance.
  3. Boot the VRE instance; darwin-init downloads and extracts the tar.
  4. Verify that files were written outside the extraction directory as root.
  5. Write a configuration file to redirect splunkloggingd to an attacker-controlled server.
  6. Observe telemetry and inference metadata being sent to the attacker's server.

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.

Private Cloud Compute (PCC) is Apple's secure server system for handling AI requests that are too big for your iPhone. A program called darwin-init runs at startup with full system privileges and extracts downloaded files without checking if they try to escape their folder. This flaw let a researcher write files anywhere on the system, including configuration files that control where logs are sent.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.