AegisAsync: Symbolic Async-Event Simulation for Risks in Python Asynchronous Programs
Baihong Chen, Wen Li
Abstract
Security and robustness risks in Python async programs depend on event order, object identity, and execution after exceptions or cancellation. Detecting these risks requires connecting related operations across function calls and tracking their effects along execution paths. We present AegisAsync, a bytecode-based analysis of Python async risks for CPython 3.10-3.14. Its Async Event Transition Graph combines bytecode control flow, resolved calls, async events, and symbolic object relations. Bounded path-local simulation tracks event order and object states and explores cancellation at await suspensions. Six detector plugins evaluate the resulting traces and states to produce candidates with supporting witnesses. On AsyncBench, our benchmark of 180 labeled risks, AegisAsync detects all labeled risks with zero false positives on each of the five versions. Across five path budgets on 2,500 PyPI package versions, source review confirms 457 of 910 AegisAsync candidate records (50.2%), representing 457 unique bugs; across three flake8-async samples, 70 of 2,187 review judgments are confirmed (3.2%). By submission, 166 PoCs reproduce AegisAsync findings, and we have reported 157 bugs to developers, of which 16 have been confirmed and fixed.
Create a lesson
Related papers
Bytes to Threats: Byte-Sequence Transformer For Malware Detection
Abdelrahman Yassin Eljamal, Abdeltawab Hendawi
ARACDE: Retrofitting Databases with ABAC using External Authorization Engines
Karthikeya S M Yelisetty, Shamik Sural, Santosh Nagarakatte
Nudge the Judge: Uncovering Program Decision Hijacking in Real-World Jev Applications
Yang Luo, Tiantian Ji, Zifeng Kang et al.
DPOison-VL: Clean Preference Poisoning in Vision-Language Direct Preference Optimization
Chengtao Jian, Kai Yang
Autonomous Cyber Operations Gym for Training and Evaluating AI Models for Defence
Tobias Hürten, Johannes F. Loevenich, Florian Spelter et al.
X.js: A Live Benchmark for Node.js Taint-Style Vulnerabilities
José Afonso, João Madeira Pereira, Ronghao Ni et al.