返回首页

对比阅读

对比阅读:AI App Security Goes Beyond Prompt Injection: Five Risks Determine Go-Live 与 AI 应用安全不该只盯提示注入,五类风险正在决定能否上线

AEN
OWASPOpenAIFastAPI·

AI App Security Goes Beyond Prompt Injection: Five Risks Determine Go-Live

Once AI applications begin connecting to logs, caches, databases, and external tools, defending only against prompt injection—where attackers use text to induce changes in model behavior—is far from enough. The OWASP risk list for large language model applications now covers input, output, permissions, resources, and supply chains. Every component added to the architecture can create another exposure surface.

What this is

Threat modeling can be understood as drawing a security map for an AI application. First, identify the assets that need protection, such as business data, keys, system prompts, and logs. Next, mark trust boundaries including user inputs, the application network, and vendor APIs. Then identify the attacks possible at each boundary and prioritize them by impact and likelihood.

This approach brings ten common risk categories into a single framework. Prompt injection falls on the input side; sensitive information disclosure, excessive tool permissions, and unlimited resource consumption appear on the output, permission, and resource sides, respectively. Supply-chain risk comes from models, SDKs, and container dependencies. The article emphasizes that the threat model must evolve continuously with the architecture rather than becoming a document the security team submits after the fact.

Industry view

We believe this approach is closer to production reality than simply adding more security filters. Logging and observability tools, for example, help teams troubleshoot problems, but they may also retain user privacy, business prompts, and complete conversations for long periods. Infrastructure built to improve efficiency can therefore become a source of data leakage.

Focusing entirely on threat modeling also has limitations. Security checklists can help teams identify risks, but they cannot replace access controls, data redaction, call limits, or dependency governance. If an organization lacks even an asset inventory and defined access permissions, drawing a map will not automatically eliminate vulnerabilities. A more realistic risk is that companies prioritize launching features, postpone security reviews until after an incident, or substitute a static checklist for continuous validation. Threat models create real value only when tied to testing, monitoring, and incident response.

Impact on regular people

For enterprise IT: As enterprises procure AI applications, security reviews will no longer focus solely on answer quality. They will also ask whether data enters logs, whether models can call internal systems, and whether spending has an upper limit. Deployment teams will need stronger permission isolation, quotas, and traceable records.

For workplace productivity: Tools such as enterprise knowledge-base assistants will become more common, but they often access more than public materials. They may also handle customer information, internal documents, and business rules. Individuals using these tools need to distinguish which content is appropriate to upload and which should be redacted first.

For the consumer market: Consumer-facing AI products will place greater emphasis on permission prompts, sensitive-content filtering, and call-cost controls. Some free offerings may tighten usage limits or restrict tool capabilities, making security and usage allowances part of the overall product experience.

来源: juejin.cn
BZH
OWASPOpenAIFastAPI·

AI 应用安全不该只盯提示注入,五类风险正在决定能否上线

当 AI 应用开始连接日志、缓存、数据库和外部工具,只防提示注入(攻击者通过文字诱导模型改变行为)远远不够。值得关心的是,OWASP 的大语言模型应用安全风险清单已把风险扩展到输入、输出、权限、资源和供应链,架构每增加一个组件,就可能多出一个泄露面。

这是什么

威胁建模可以理解为给 AI 应用画安全地图:先列出需要保护的资产,例如业务数据、密钥、系统提示词和日志;再标出用户输入、应用网络、供应商接口等信任边界;随后识别每个边界可能遭受的攻击,并按影响和发生概率划分优先级。

这套方法把常见的十类风险纳入同一框架。其中,提示注入属于输入侧风险;敏感信息泄露、工具越权和无限消耗分别出现在输出、权限与资源侧;供应链风险则来自模型、SDK 和容器依赖。文章强调,威胁模型必须随架构持续更新,而不是安全团队事后补交的文档。

行业怎么看

我们认为,这套思路比单纯增加安全过滤器更接近生产现实。尤其是日志和可观测工具,它们一方面帮助团队排查问题,另一方面可能把用户隐私、业务提示词和完整问答长期保存下来,原本提升效率的基础设施也可能成为数据泄露源。

但把全部注意力转向威胁建模也有局限。安全清单能帮助团队发现风险,却不能替代权限控制、数据脱敏、调用限额和依赖治理;如果组织连资产清单和访问权限都没有,画图本身不会自动消除漏洞。更现实的风险是,企业可能优先上线功能,把安全评审推迟到事故之后,或者用一张静态清单代替持续验证。因此,威胁模型只有和测试、监控、应急处置绑定,才会产生实际价值。

对普通人的影响

对企业 IT:企业采购 AI 应用时,安全审查将不再局限于回答质量,还会追问数据是否进入日志、模型能否调用内部系统,以及费用是否有上限。负责部署的团队会更需要权限隔离、配额和可追溯记录。

对个人职场:企业知识库助手等工具会更常见,但它们接触的往往不只是公开资料,还包括客户信息、内部文档和业务规则。个人使用这些工具时,需要区分哪些内容适合上传,哪些应先脱敏。

对消费市场:面向消费者的 AI 产品会更重视权限提示、敏感内容过滤与调用成本控制。相应地,部分免费体验可能收紧次数或限制工具能力,安全与使用额度会成为产品体验的一部分。

来源: juejin.cn