Skip to content
EventPast event

PyCache Trap uses bytecode cache to bypass Agent skill scanners.

1 reports1 reporting sourcesLatest report

Start here

AI overview

Researchers propose the PyCache Trap attack: placing malicious behavior in Python compiled caches paired with visible source code, so that the source code checked by scanners differs from the bytecode actually loaded at runtime. On 100 Skills and seven scanners, the attack achieves a 94–100% attack success rate, and no scanner semantically identifies the hidden behavior in the cache; the success rate against the execution-based scanner ExecScan is 94%. The authors also propose execution-aware verification (EAV), which links instructions, scripts, imports, and runtime artifacts into a typed execution graph and uses trusted recompilation to compare caches.

Generated by AI from reports · Updated 2026-10-09

Related research

This event's paper

Progress timeline

Oct 7
  1. arXivSelected
    PyCache Trap exploits Python cache replacement to bypass seven Agent Skill scanners, with an attack success rate of 94–100%

    The researchers proposed PyCache Trap, which places malicious behavior in Python compiled caches paired with visible source code, so that the source code checked by scanners is inconsistent with the bytecode actually loaded at runtime. Across 100 Skills and seven scanners, the attack achieved a 94–100% attack success rate, and no scanner semantically identified the hidden behavior in the cache; the success rate against the execution-based scanner ExecScan was 94%. The authors also proposed execution-aware verification EAV, which connects instructions, scripts, imports, and runtime artifacts into a typed execution graph and uses trusted recompilation to compare cached bytecode, detecting all 100 cache-replacement samples with source code and achieving 92.8% Recall and 10.0% FPR across five attack families and 200 benign Skills. The code has been open-sourced on GitHub.