# What's in a Package? Getting Visibility Into Dependencies Using Security-Sensitive API Calls

DevFeed: [What's in a Package? Getting Visibility Into Dependencies Using Security-Sensitive API Calls](<https://devfeed.tech/articles/what-s-in-a-package-getting-visibility-into-dependencies-using-security-sensitive-api-calls-101333.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2408.02846>)

Author: Imranur Rahman, Ranidya Paramitha, Henrik Plate, Dominik Wermke, Laurie Williams

Published: 2026-10-27T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [code security](<https://devfeed.tech/topics/code-security.md>), [software composition analysis](<https://devfeed.tech/topics/software-composition-analysis.md>), [Security](<https://devfeed.tech/topics/security.md>), [CVE-2021-44228](<https://devfeed.tech/topics/cve-2021-44228.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [package](<https://devfeed.tech/tags/package.md>), [security](<https://devfeed.tech/tags/security.md>), [visibility](<https://devfeed.tech/tags/visibility.md>)

## AI overview

The study presents a repeatable method for identifying security-sensitive APIs in an ecosystem and applies it to Java packages, helping developers see which sensitive resources dependencies can access. It compares packages with similar functionality and finds substantial variation: call counts range from 0 to 368 for a single capability and from 0 to 429 in total. Packages also differ in breadth across 15 capabilities, ranging from 0 to 10 for dependency injection and 0 to 13 for web frameworks. The authors emphasize that an API call alone does not show that it is unnecessary or risky; visibility can help developers assess dependencies and consider alternatives when calls appear unnecessary or suspicious.

## Source excerpt

arXiv:2408.02846v3 Announce Type: replace Abstract: 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.