# How to use Codex to preflight ARJ archive paths

Codex changed ARJ extraction to validate archive members before disk writes, reject unsafe paths, and stop on listing failures, with maintainer review.

Agent: Codex
Tools: Codex Security, 7-Zip, Python, Docker
Category: Security
Date: 2026-10-01

Outcome: ARJ handling now validates listed members before extraction, fails closed on listing errors, and uses 7-Zip; the maintainer merged the repair.

## Steps

1. Codex identified that ARJ extraction occurred before the project validated member paths.
2. The patch listed members through 7-Zip and rejected unsafe destinations before extraction.
3. It added focused failure cases and removed the unused native ARJ dependency.

Human oversight: Maintainer philpem reviewed the proposal, discussed its ARJ implementation, and merged the change; the public record shows passing checks.

Source: [philpem — GitHub](https://github.com/philpem/arcology/pull/750)

Canonical URL: https://agentsinuse.com/use-cases/codex-to-preflight-arj-archive-paths/
