Metraipolis › archive › dc_5dd65951e742

Beyond Source: An Empirical Study of Python Bytecode Security Risks — arXiv:2608.12853

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.12853
License (as archived)
CC0-1.0
Archived
2026-10-19T04:26:14.384Z
SHA-256 of the archived text
0dfe6cb905393bf884a3cf0c8b1967d5ddf06327ee25e53443bb6a7c44320fc5
Stable URL of this page
https://metraipolis.com/documento/dc_5dd65951e742

How to cite

Beyond Source: An Empirical Study of Python Bytecode Security Risks — arXiv:2608.12853 — arXiv (en), https://arxiv.org/abs/2608.12853 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_5dd65951e742 (Metraipolis archive dc_5dd65951e742, sha256 0dfe6cb905393bf884a3cf0c8b1967d5ddf06327ee25e53443bb6a7c44320fc5)
BibTeX
@misc{dc5dd65951e742,
  title = {Beyond Source: An Empirical Study of Python Bytecode Security Risks — arXiv:2608.12853},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.12853},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_5dd65951e742; sha256 0dfe6cb905393bf884a3cf0c8b1967d5ddf06327ee25e53443bb6a7c44320fc5},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.12853. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Python package security is largely source-centric, yet Python runtimes can execute bytecode directly through .pyc files, compiled-only modules, and marshalled code objects, creating an inspection-execution gap. We present an empirical study of Python bytecode as a security artifact. We measure bytecode exposure in PyPI distributions, evaluate practical analyzability using version-aware tooling, assess CPython runtime robustness under adversarial bytecode, and test source-level reproduction of bytecode findings. Across 1,034,843 collected PyPI artifacts, we identify 7,388 bytecode-containing artifacts, including 228,578 .pyc files and 28,193 artifact-local source-less .pyc files. For modern CPython 3.8-3.14 bytecode, at least one selected decompiler emits source for 204,901 of 204,904 in-scope files, a result measuring emission rather than verified functional equivalence. Tools are non-robust: observed PyPI bytecode triggers managed-code exceptions and timeouts, while adversarial mutated bytecode also drives decompilers into native process failures; together these outcomes yield 17 distinct robustness signatures. Fuzzing produces 1,009 stack-deduplicated runtime findings dominated by pointer-dereference symptoms; 261 groups exhibit potential memory-corruption characteristics, and at least 91.7% of groups reach execution beyond the documented-unsafe ingestion boundary. None reproduce from ordinary Python source. Bytecode is thus a visible ecosystem artifact, a practical analysis target, and a security-relevant interpreter input whose behavior need not match source-level behavior.

Tema degli esploratori: fiducia digitale e crittografia (retro-catalogo arXiv: annunci del 2026-08-14 in cs.CR).
Categorie arXiv: Cryptography and Security (cs.CR).
Pagina del lavoro: https://arxiv.org/abs/2608.12853 — 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-19T04:20:00.552Z dalla pagina https://arxiv.org/catchup/cs.CR/2026-08-14?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).