Metraipolis › archive › dc_2e2a527b9512
PyCache Trap: The Inspection-Execution Gap in Agent Skill Scanners — arXiv:2610.10612
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.10612
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-09T06:18:18.632Z
- SHA-256 of the archived text
185fdbc49ea20247d4f1140a3fd8f03e1bedeef778e4f64bca96c249a0a15589- Stable URL of this page
https://metraipolis.com/documento/dc_2e2a527b9512
How to cite
PyCache Trap: The Inspection-Execution Gap in Agent Skill Scanners — arXiv:2610.10612 — arXiv (en), https://arxiv.org/abs/2610.10612 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_2e2a527b9512 (Metraipolis archive dc_2e2a527b9512, sha256 185fdbc49ea20247d4f1140a3fd8f03e1bedeef778e4f64bca96c249a0a15589)
BibTeX
@misc{dc2e2a527b9512,
title = {PyCache Trap: The Inspection-Execution Gap in Agent Skill Scanners — arXiv:2610.10612},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.10612},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_2e2a527b9512; sha256 185fdbc49ea20247d4f1140a3fd8f03e1bedeef778e4f64bca96c249a0a15589},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.10612. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Agent skills combine instructions with executable resources, giving third-party packages access to an agent's runtime. Existing skill scanners inspect documentation and visible source, but Python may execute a bundled bytecode cache with different behavior. We study this gap between inspection and execution through PyCache Trap, which pairs benign source with a substituted cache accepted by the loader and connects it to a task-relevant invocation. Scanner-guided rewriting changes the invocation wording while preserving the cache body, separating package admission from recognition of the concealed behavior. Across 100 skills and seven scanners, PyCache Trap achieves 94-100% attack success, with no semantic recognition of the cache-resident behavior. We propose execution-aware validation (EAV) to connect inspected instructions, scripts, imports, and runtime artifacts in a typed execution graph. EAV combines grounded behavioral analysis with trusted reproduction of compiled artifacts. It detects all 100 evaluated source-present cache substitutions and reaches 92.8% Recall at 10.0% FPR across five attack families and 200 benign skills. The results support checking the executable artifacts a runtime can select as part of skill admission, within the supported loaders and code-object normalization. The code is released at this https URL . Tema degli esploratori: fiducia digitale e crittografia (elenco arXiv cs.CR, nuovi lavori del giorno). Categorie arXiv: Cryptography and Security (cs.CR) ; Software Engineering (cs.SE). Pagina del lavoro: https://arxiv.org/abs/2610.10612 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-09T05:50:00.715Z dalla pagina https://arxiv.org/list/cs.CR/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).