Observed incident

Phala links an exploited ownership-check flaw to AI-assisted API code

Reported

Published here

What happened

Phala’s June postmortem says an AI coding assistant selected a lookup that skipped workspace ownership checks. An attacker used the resulting API flaw to replace other customers’ VM pre-launch scripts with secret-stealing scripts.

Parties and reporting

Where this happened

Victim location not disclosed. Real organizations or systems were affected or targeted, but the sources do not say where. Explore the world map.

AI tools and systems: AI coding assistant (unnamed), Phala Cloud API, Offchain KMS confidential VMs

Outcome

Phala counted roughly 100 distinct CVMs modified across two automated rounds and treated them as compromised. It patched the endpoints June 1, stopped affected VMs, reverted changes, banned attacker accounts and notified customers. Its guidance requires clean redeployment and rotation of environment and registry secrets. Endpoint audits and isolation tests were completed; several longer-term changes were still planned in the June report.

Operating lesson

Make authorization mandatory at the API boundary and test attempts to access resources owned by another workspace.

Evidence and limits

Historical backfill. June 1 is the initial disclosure; June 6 explains the AI contribution. About 100 counts VMs, not customers or proven downstream losses. Phala says Onchain KMS VMs, TEE hardware and attestation were unaffected. Attempts to reach container-internal secrets through this pre-launch path failed. No attacker AI use or relationship to Phala’s later incidents is established.

Sources