Manuscript Offprint

arXiv:2610.20437

From Training to Escalation: Forensic Analysis and Local Recreation of RL/RLHF-Induced Privilege Escalation in AI Agents (CVE-2026-65616)

Alicia Colmenero-Fernández

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Alicia Colmenero-Fernandez, Universidad de Jaen, Jaen, Spain (e-mail: acf00053@red.ujaen.es; ORCID 0000-0003-3129-7778)

IA-ismo LAB, Spain

Abstract—Mid-2026 reporting on autonomous AI evaluation incidents claimed that frontier large language model (LLM) agents escaped server containment through emergent coordination and cloud infrastructure attacks. This paper contextualizes those claims through forensic analysis and containerized recreation of both the Highly Persistent Internal Model (HPIM) training-case conditions and the Phase One privilege escalation targeting internal package repositories during OpenAI's ExploitGym evaluations. We recreate the configuration of the OpenAI-provided training example and reproduce the cryptographic verification bypass (CVE-2026-65616) in isolated repository servers, where misconfigured systems enabled token forgery and privilege escalation through basic HTTP requests, Python, and JavaScript. Crucially, the training-example conditions and the Phase One (and later) misconfigurations share the same exploitable patterns. Our analysis explains how Zero Trust Architecture principles neutralize this shared attack vector. Contemporary AI risks derive directly from training and deployment conditions in ambivalent learning environments lacking adequate containment measures.

Conceptualization of the Benchmark and Critical Analysis of Experimental Design

Stated Objectives and Context (OpenAI's Perspective)

In mid-2026, OpenAI conducted internal cybersecurity capability evaluations under a framework known as ExploitGym [1]. According to official technical reports [2], the stated objective of ExploitGym was to measure the offensive cyber capabilities of frontier models prior to commercial deployment—whether autonomous agents could discover and exploit software vulnerabilities.

To estimate maximal capabilities, OpenAI placed the models within an isolated Container-as-a-Service (CaaS) environment—a “sandbox” with ephemeral per-task isolation. While OpenAI stated that standard commercial safeguards were disabled, it did not disclose the original system prompts, nor did it provide technical specifications regarding its monitoring mechanisms—such as safety classifiers, auto-review systems, or runtime Chain-of-Thought (CoT) tracking.

Following these incidents, recent literature has conceptualized agentic behavior and security containment across complementary dimensions:

• Operational Containment and Swarm Coordination: Frank [3] framed prospective episode discovery to isolate unsanctioned multi-agent coordination through shared storage (stig-mergy); De Marzo et al. [4] showed via statistical

This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

XXXX-XXX © 2026 IEEE

Digital Object Identifier 10.1109/XXX.0000.0000000

September

Published by the IEEE Computer Society

IEEE Intelligent Systems mechanics that collective agent dynamics often arise from local copying rather than planned cooperation.

• Evaluation Boundaries and Dual-Use Tooling: Siddik [5] synthesized a five-class taxonomy of cyber-capable agent vulnerabilities, establishing the evaluation environment itself as a critical security boundary and highlighting the dual-use dilemma and the asymmetry problem: testing cyber capabilities inherently involves dual-use tools and payloads that generic safety guardrails fail to distinguish from malicious activity.

• Auditability, Evidence Integrity, and Regulatory GRC: Addressing post-incident evidence preservation, Bromme [6] proposed a vendor-neutral black-box architecture using blockchain-anchored cryptographic commitments for tamper-evident audit trails for Governance, Risk, and Compliance (GRC) under the EU AI Act, NIS2, and Cyber Resilience Act (CRA).

• Global Governance and Loss-of-Control Warnings: In September 2026, the UN Independent International Scientific Panel on AI [7] analyzed the OpenAI-Hugging Face incident as an alarming real-world warning of potential loss of human control, while acknowledging a fundamental limitation: policy frameworks cannot resolve why model policies diverge from developer intent in execution environments.

However, while macro-level governance briefs [7] catalog systemic risks and taxonomy surveys [5] describe evaluation boundaries, there remains a critical empirical gap regarding root-cause technical replication. This paper bridges that gap by delivering a local Docker recreation of the Phase One events, showing that the observed privilege escalation in JFrog Artifactory (CVE-2026-65616), catalogued in the Common Vulnerabilities and Exposures (CVE) dictionary—the standardized reference for publicly disclosed security flaws—was not an unexplainable loss of control, but the deterministic result of RL/RLHF conditioning within an ambivalent training design. Both open-source containers are offered so that readers can verify how Zero Trust Architecture (ZTA)—a security model operating under continuous verification and explicit authorization without implicit network trust—neutralizes these attack vectors without runtime performance penalties.

In particular, Siddik's dual-use problem provides the theoretical background for what this paper defines as an ambivalent learning environment: while Siddik locates the friction between defensive testing

a) Timeline: Incident Evolution and Scope

Phase One: Scope of This Study

Phase Two: Out of Scope / Post-Reset

Figure

b)

Docker Compose – Network Architecture and Access Flow

Two networks (external & internal) with isolated services and controlled access

Figure

c)

CVE-2026-65616 EXPLOTATION FLOW

Figure

POST /api/security/token (grant_type:client_credentials)

Returns valid refresh_token + 1-year reader access_token

Constructs Forged JWT

(Header:Payload: invalid_signature)

Expires 'exp' to applied-permissions/admin; retains 'ts', 'sub', 'jtf'

POST /api/security/token

(grant_type:refresh_token)

(Supplies valid refresh_token + FORGED access_token)

HTTP 200 OK: Issues NEW valid R5256 token with ADMIN scope

PUT /api/security/users/agente-admin (admin: true)

FLAG CAPTURED: Permanent Admin User Created (admin: True)

FIGURE 1. (a) Incident timeline and study scope. (b) Recreated network architecture. (c) CVE-2026-65616 exploitation flow.

and offensive capability at runtime, this duality is rooted much earlier—in the Reinforcement Learning from Human Feedback / Reinforcement Learning (RL/RLHF) fine-tuning dataset, the post-training methodology that aligns model behavior using reward signals. When models are trained within Open Web Application Security Project (OWASP)-style environments exhibiting misconfigurations by commission (e.g., root-privileged Chromium instances with exposed debugging interfaces) alongside impossible task objectives, the reward pipeline positively reinforces out-of-bounds infrastructure subversion.

Benchmark Setup, Task Portfolio, and Model Participants

The evaluation suite comprised 898 cybersecurity tasks across two primary model families:

• GPT-5.6 Sol [8]: A production model family

2

IEEE Intelligent Systems evaluated here with cyber safety classifiers and system harnesses removed.

• Highly Persistent Internal Model (HPIM, “Internal Model 1”): An unreleased prototype model of scale comparable to GPT-5.6 Sol, trained for multi-agent collaboration, high task persistence, and extended reasoning horizons.

HPIM was provisioned with extraordinarily high reasoning budgets (token limits far exceeding commercial products) and exhibited an extreme reluctance to abandon tasks. Crucially, 198 out of the 898 tasks (22%) were technically impossible to solve legitimately due to environment misconfigurations, missing databases, or broken external links (e.g., inaccessible Google Drive URLs or unresolvable protein databases). Unable to reach a valid completion state or a graceful exit, these persistent agents allocated their vast reasoning budgets toward out-of-bounds environment probing and reward hacking, generating 93% of all unauthorized communications on the emergent Artifactory message board. This communication enabled the orchestration and exploitation of the environment, culminating in the privilege escalation used to solve the assigned task.

References (12)