arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.13525cs.CR
收藏

API代理问题的形式化分析

Formal Analysis of the API Proxy Problem

Somesh Jha, Mihai Christodorescu, Anh Pham

摘要:

在API之上实现安全机制需要清楚地理解每个API的语义,以确保在所有可能为攻击者执行相同功能的API之间一致且完整地实施安全权限。不幸的是,API并没有被设计成“语义正交”的,它们经常重叠,例如为相同的功能提供不同的性能点。这就留给安全机制来发现和说明API代理,即,一组API,这些API一起近似于其他API的功能。由于缺乏对API-代理关系结构的完整视图,当前的安全机制通过在新的API代理被攻击者发现和滥用时更新实现,以临时和被动的方式解决它。我们分析了发现API代理关系的问题,并表明其复杂性使其NP完全,这使得计算有关API代理的确切信息对于由数万个API组成的现代API表面来说过于昂贵。然后,我们提出了一个简单的启发式算法来近似相同的API代理信息,并认为这种过度近似可以安全地用于安全目的,只有一些效用损失的缺点。我们的结论与一些开放的问题,理论和实践的兴趣和潜在的方向,新的解决方案的API代理问题。

英文摘要:

Implementing a security mechanism on top of APIs requires clear understanding of the semantics of each API, to ensure that security entitlements are enforced consistently and completely across all APIs that could perform the same function for an attacker. Unfortunately, APIs are not designed to be "semantically orthogonal" and they often overlap, for example by offering different performance points for the same functionality. This leaves it to the security mechanism to discover and account for API proxies, i.e., groups of APIs which together approximate the functionality of some other API. Lacking a complete view of the structure of the API-proxy relationship, current security mechanisms address it in an ad-hoc and reactive manner, by updating the implementation when new API proxies are uncovered and abused by attackers. We analyze the problem of discovering API-proxy relationships and show that its complexity makes it NP-complete, which makes computing exact information about API proxies prohibitively expensive for modern API surfaces that consist of tens of thousands of APIs. We then propose a simple heuristic algorithm to approximate the same API-proxy information and argue that this overapproximation can be safely used for security purposes, with only the downside of some utility loss. We conclude with a number of open problems of both theoretical and practical interest and with potential directions towards new solutions for the API-proxy problem.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑