Exploring the SECURITY.md in the Dependency Chain: Preliminary Analysis of the PyPI Ecosystem
Chayanid Termphaiboon, Raula Gaikovina Kula, Youmei Fan, Morakot Choetkiertikul, Chaiyong Ragkhitwetsagul, Thanwadee Sunetnanta, Kenichi Matsumoto
TL;DR
<3-5 sentences high-level summary> The paper investigates whether adopting a SECURITY.md security policy influences how PyPI projects manage dependencies. Using a dataset of 211 projects with a policy and 249 without, it analyzes dependency trees via pipdeptree/pipforester and tracks dependency-file changes with PyDriller, applying nonparametric statistics. Key findings show that policy-bearing projects have more direct dependencies, while depth and transitive dependencies are similar, and that later adopters exhibit higher rates of dependency-file commits, particularly in setup.py and pyproject.toml. The work highlights security policy signals as indicators of proactive maintenance and provides actionable guidance for tooling and future cross-ecosystem studies.
Abstract
Security policies, such as SECURITY.md files, are now common in open-source projects. They help guide responsible vulnerability reporting and build trust among users and contributors. Despite their growing use, it is still unclear how these policies influence the structure and evolution of software dependencies. Software dependencies are external packages or libraries that a project relies on, and their interconnected nature affects both functionality and security. This study explores the relationship between security policies and dependency management in PyPI projects. We analyzed projects with and without a SECURITY.md file by examining their dependency trees and tracking how dependencies change over time. The analysis shows that projects with a security policy tend to rely on a broader set of direct dependencies, while overall depth and transitive dependencies remain similar. Historically, projects created after the introduction of SECURITY.md, particularly later adopters, show more frequent dependency updates. These results suggest that security policies are linked to more modular and feature-rich projects, and highlight the role of SECURITY.md in promoting proactive dependency management and reducing risks in the software supply chain.
