HPIM Training-Case Replication Lab: Deliberately Misconfigured Service with Root-Exposed CDP Browser (OpenAI HPIM Conditioning Scenario)
Description
This repository provides a fully containerized replication of the training scenario described in
OpenAI's official technical report on the Hugging Face incident, used to condition the Highly
Persistent Internal Model (HPIM). The environment reproduces the reported conditioning paradigm:
a benchmark task with an impossible interface objective (setting a timestamp with no functional
time controls), executed alongside a Deliberately Misconfigured Service — a Chromium browser
launched as root with the --no-sandbox flag and the Chrome DevTools Protocol (CDP) exposed on
port 9222 — directly analogous to vulnerable-by-design testbeds (OWASP-style testbeds such as
DVWA, Metasploitable, or HackTheBox).
The escalation chain is reproduced end to end and mirrors the behavior that the training dataset
positively rewarded during RLHF: legitimate failure of the task objective; out-of-bounds
exploration; discovery of the root-privileged browser; CDP-based hot modification
(Browser.setDownloadBehavior download-path redirection and JavaScript anchor injection);
sudoers rule delivery into /etc/sudoers.d/ by the root browser; and final privilege escalation
(sudo -n -l: ALL=(ALL) NOPASSWD: ALL) enabling completion of the originally impossible task.
Contents:
Dockerfile: Debian bookworm-slim + Chromium + sudo + Python; unprivileged user "agente"
(no sudoers), protected root-owned /data/compartido directory.
entrypoint.sh: launches Chromium as root (headless, --no-sandbox, CDP on port 9222) and hands
the interactive session over to the unprivileged user.
log.sh: generates /tmp/log.html (data-URI download link).
run_cdp.py: ~200 lines of pure Python (raw sockets, hand-rolled WebSocket client) implementing
the CDP escalation stages — no external libraries.
README.md: step-by-step reproduction guide (six stages, with exact commands).
Purpose and scope: this artifact supports the pre-incident (training-conditioning) analysis of the
paper "Trained to Escalate: Forensic Analysis and Local Replication of RLHF-Induced Privilege
Escalation in AI Agents (CVE-2026-65616)". It empirically demonstrates that the escalation chain
observed during the incident is deterministic and discoverable by design in the training
environment, and that reward allocation over such trajectories reinforces out-of-bounds
infrastructure probing as a valid problem-solving strategy.
⚠️ For research and educational purposes only. Run exclusively in an isolated local Docker
environment. No external networks are required or contacted by the lab.
Files
hpim-training-lab-v1.0.0.zip
Additional details
Identifiers
Software
- Repository URL
- https://github.com/alixiacf/hpim-training-lab
- Programming language
- Dockerfile