arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.11247cs.CR
收藏

用于检测 API 注入攻击的少样本异常检测检索式分类框架

A Classification-by-Retrieval Framework for Few-Shot Anomaly Detection to Detect API Injection Attacks

Udi Aharon, Ran Dubin, Amit Dvir, Chen Hajaj

AI总结:

提出一种结合 FastText API 语言模型与近似最近邻检索的无监督少样本异常检测框架,仅用少量正常请求即可检测新型 API 注入攻击,并在两个数据集上优于 SOTA 基线。

摘要:

应用程序编程接口(API)注入攻击指的是对 API 的未经授权或恶意使用,这类攻击常被用于获取敏感数据或操纵在线系统以实现非法目的。识别那些欺骗性使用 API 的行为主体是一项颇具挑战性的问题。尽管 API 安全领域已取得显著进展和贡献,但在应对采用新型手段、且其攻击方式与常见攻击中熟知的有效载荷不匹配的攻击者时,仍存在重大挑战。此外,攻击者还可能以非常规方式利用标准功能,其目的超出这些功能的预期边界。因此,API 安全需要比以往更加复杂和动态化,并借助先进的计算智能方法,例如能够快速识别并响应异常行为的机器学习模型。针对这些挑战,我们提出了一种新颖的无监督少样本异常检测框架,该框架由两个主要部分组成:首先,我们基于 FastText 嵌入训练一个专门面向 API 的通用语言模型。接着,我们在检索式分类方法中使用近似最近邻搜索。该框架能够仅使用少量正常 API 请求样本训练出快速、轻量级的分类模型。我们使用 CSIC 2010 和 ATRDF 2023 数据集评估了该框架的性能。结果表明,与最先进(SOTA)的无监督异常检测基线相比,我们的框架提升了 API 攻击检测准确率。

英文摘要:

Application Programming Interface (API) Injection attacks refer to the unauthorized or malicious use of APIs, which are often exploited to gain access to sensitive data or manipulate online systems for illicit purposes. Identifying actors that deceitfully utilize an API poses a demanding problem. Although there have been notable advancements and contributions in the field of API security, there remains a significant challenge when dealing with attackers who use novel approaches that don't match the well-known payloads commonly seen in attacks. Also, attackers may exploit standard functionalities unconventionally and with objectives surpassing their intended boundaries. Thus, API security needs to be more sophisticated and dynamic than ever, with advanced computational intelligence methods, such as machine learning models that can quickly identify and respond to abnormal behavior. In response to these challenges, we propose a novel unsupervised few-shot anomaly detection framework composed of two main parts: First, we train a dedicated generic language model for API based on FastText embedding. Next, we use Approximate Nearest Neighbor search in a classification-by-retrieval approach. Our framework allows for training a fast, lightweight classification model using only a few examples of normal API requests. We evaluated the performance of our framework using the CSIC 2010 and ATRDF 2023 datasets. The results demonstrate that our framework improves API attack detection accuracy compared to the state-of-the-art (SOTA) unsupervised anomaly detection baselines.

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

↑