Xinwei Yu, University of Delaware; Zhenkai Zhang, Clemson University; Yuzhe Tang, Syracuse University; Xing Gao, University of Delaware
Security incidents targeting open-source software have increased substantially in recent years, yet existing defenses primarily focus on analyzing source code while largely overlooking configuration files that define how software is built, installed, and executed. In this paper, we present an in-depth study of security risks in Python configuration files, analyzing five widely used formats across the project lifecycle. We focus on risks that exploit configuration files to silently redirect dependency resolution to attacker-controlled infrastructure or hijack benign commands. We design an automated framework and identify 39 configuration fields that can be exploited under realistic usage scenarios. We further demonstrate that existing malware detection tools fail to detect most of these risks. As mitigation, we develop ConfigScoper, which not only examines security-relevant fields but also employs multiple vulnerability detectors to identify potential malicious behaviors. We apply ConfigScoper in a measurement study analyzing millions of open-source Python projects on GitHub, and our empirical results show that exploitable risks already exist in real-world projects. Finally, we have responsibly disclosed the identified vulnerabilities to relevant stakeholders.
USENIX Security '26 Open Access Sponsored by
King Abdullah University of Science and Technology (KAUST)
Open Access Media
USENIX is committed to Open Access to the research presented at our events. Papers and proceedings are freely available to everyone once the event begins. Any video, audio, and/or slides that are posted after the event are also free and open to everyone. Support USENIX and our commitment to Open Access.
author = {Xinwei Yu and Zhenkai Zhang and Yuzhe Tang and Xing Gao},
title = {Toward Understanding the Security Implications in Python Configuration Files},
booktitle = {35th USENIX Security Symposium (USENIX Security 26)},
year = {2026},
isbn = {978-1-939133-58-8},
address = {Baltimore, MD},
pages = {3599--3618},
url = {https://www.usenix.org/conference/usenixsecurity26/presentation/yu-xinwei},
publisher = {USENIX Association},
month = aug
}