包中有什么?利用安全敏感 API 调用洞察依赖项
What's in a Package? Getting Visibility Into Dependencies Using Security-Sensitive API Calls
AI总结:
本文提出通过调用图分析构建生态系统安全敏感 API 列表,并以 Java 实现,用于比较功能相似包的安全风险;110 人调查显示过半开发者愿意使用该信息选择依赖。
摘要:
了解某个依赖项可能访问哪些敏感资源,将有助于开发者在选择依赖项之前评估其风险。理解依赖项潜在敏感资源使用情况的一种方法是使用安全敏感 API,即那些提供对系统中安全敏感资源(例如文件系统或网络资源)访问的 API。然而,由于缺乏能够揭示依赖项潜在敏感资源使用情况的工具或研究,开发者很难将这一点作为其依赖项选择过程中的考量因素。本研究的目标是通过调用图分析识别包中的安全敏感 API,从而帮助开发者评估其依赖项的安全风险。在本研究中,我们提出了一种新颖的方法,用于为一个生态系统构建安全敏感 API 列表,以便在将包选为依赖项之前更好地理解和评估它们。我们使用 Java 实现了该方法。随后,我们比较了功能相似的包组中安全敏感 API 的普遍程度,以了解功能相似的不同包在安全敏感 API 方面可能存在多大差异。我们还开展了一项开发者调查(共有 110 名受访者),以了解开发者对于在依赖项选择过程中使用安全敏感 API 信息的看法。如果能够获得此类信息,超过一半的开发者会在依赖项选择过程中使用安全敏感 API 信息。最后,我们主张将安全敏感 API 信息纳入依赖项管理工具,以便开发者在依赖项选择过程中更便捷地访问这些信息。
英文摘要:
The Log4Shell vulnerability occurred because the JNDI (Java Naming and Directory Interface) lookup feature was used, even though it was not needed for log4j's core functionality. This case illustrates why developers may want visibility into the sensitive capabilities available through a dependency. The presence of a call alone does not establish that the call is unnecessary or risky. Security-sensitive APIs provide access to security-sensitive resources, such as filesystem, network, or process-related resources. If developers know which types of sensitive resources a dependency can access, they can control their dependencies at a finer grain, and they can consider an alternative dependency when a dependency makes unnecessary or suspicious security-sensitive API calls. However, prior work has not provided a documented, repeatable procedure for deriving an ecosystem-specific security-sensitive API list, so developers lack systematic visibility into the sensitive capabilities of their dependencies. The goal of this study is to aid developers in understanding sensitive resources accessible to their dependencies by identifying security-sensitive APIs in packages through an empirical study of Java packages. In this study, we present a novel and repeatable methodology to construct a security-sensitive API list for an ecosystem, and we apply it to Java. We then compare the security-sensitive API calls of functionally similar Java packages. The number of security-sensitive API calls (call level) ranges from 0 to 368 in one capability and from 0 to 429 in total among packages with similar functionality. These packages also differ in capability breadth, the number of the 15 capabilities that a package reaches. For example, capability breadth ranges from 0 to 10 in the "Dependency Injection" category and from 0 to 13 in the "Web Frameworks" category.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。