Daily Tech Briefing
AI 科技速览
每天 5 分钟内学习 AI。获取最新的人工智能新闻,理解其重要性,并学习如何将其应用于您的工作。
MarkTechPost · 2026/8/3 20:16:56
How to Secure AI Agents, MCP Servers, and LLM Apps in Production
AI 中文解读
AI Agent正在快速进入企业系统,但安全防护却跟不上!Mend.io发布了一份实战指南,专门解决这个新问题。这份指南的核心价值在于改变思路:传统安全防护默认“代码没问题就安全”,但AI Agent的行为不看代码,而是看模型、系统提示和用户输入综合生成,两个部署相同的AI系统表现可能完全不同,这让现有防护体系直接失效。AI还带来新风险,比如恶意指令通过数据而非代码注入,权限过大的Agent可能在无漏洞利用的情况下自行做出危害动作,废弃模型继续运行,甚至MCP服务器上被篡改的工具描述就能改变Agent行为——这些都不会出现在漏洞库里。指南提出了三层应对方案:先看清AI使用情况,再快速修复最关键的配置错误,最后在生产环境中实时保护。还附带五个攻击面地图、扩展版AI-BOM清单和12项配置检查表等七份实用工具,帮企业从容应对AI时代的安全挑战,避免“盲目信任”或“因噎废食”两个极端。
Agents, MCP integrations, and LLM-powered applications are entering codebases faster than most security programs can track them. Mend.io’s new practitioner guide, ‘Securing AI agents, MCP servers & LLM apps: A practical framework’, targets that gap. It is organized around three moves: see what matters, fix what matters faster, protect AI in production and ships seven reusable artifacts.
Why traditional AppSec breaks
AppSec was built on one assumption: applications do what their code says. Agentic AI breaks it. Agent behavior emerges from a model, a system prompt, retrieved context, user input, and the tools it may call. Two identical deployments can behave differently.
The failure modes are new too. Prompt injection arrives through data, not code. An over-permissioned agent can take harmful actions without any vulnerability being exploited. A deprecated model keeps serving predictions after its maintainer stops patching it. A poisoned tool description on an MCP server can redirect an agent’s behavior without touching the application. None appear in a CVE feed. The mandate is two-sided: shift left, and protect right.
Artifact 1.1: the five-layer attack surface map
Interaction: user inputs, retrieved documents, inter-agent messages → prompt injection, context poisoning, data exfiltration
Agent: system prompts, configs, memory, autonomy settings → over-permissioned tools, unsafe defaults, goal hijacking
Integration: MCP servers, tool definitions, plugins, APIs → poisoned tool descriptions, unscoped credentials, shadow servers
Model: foundation and fine-tuned models, embeddings → EOL models, supply chain risk, unsafe generations
Code: AI-generated code, AI frameworks, SDKs → vulnerable code, framework CVEs, malicious packages
See: agent and MCP discovery
Agents rarely arrive through procurement. Three categories to hunt: shadow agents, unregistered MCP servers, and embedded AI frameworks. Every MCP server needs an owner, an access scope, and a review.
There are five discovery methods. First, scan repositories for agentic signatures. Second, watch network egress for calls to model API endpoints. Third, audit service accounts and API keys. Fourth, make declaration cheap via lightweight registration. Finally, automate continuously, since point-in-time discovery goes stale fast.
Artifact 2.1 extends the AI-BOM with nine fields per agent or MCP server: identity, model dependency, autonomy level, tool permissions, credential scope, data reach, MCP endpoints, prompt location, last review.
Artifact 2.2 is a 12-point misconfiguration checklist: credentials scoped to specific resources, not broad service-level access; no shared credentials between agents; high-impact tools requiring human approval; system prompts in version control, not editable in production; MCP servers authenticating clients; tool descriptions reviewed for injection-bearing content before adoption (tool poisoning); model versions pinned with EOL monitoring and an owner.
Fix: prioritization and triage
AI expanded the finding surface, not just the attack surface. The pipeline is enrich → prioritize → triage. Prioritization signals, in order of value: reachability, exploitability context, business context, agentic amplification, fix availability.
Artifact 3.1 draws the automation line:
DecisionDispositionReachability/dataflow, well-understood classesAutomateFP/TP assessment with evidence trailsAutomate, with samplingTier-3/high-risk applicationsAI-assist, human decidesNovel classes, AI behaviors, no evidenceHuman onlyAccepting risk or deferring a fixHuman only, documented
Two rules govern it. Every automated closure carries evidence; if the system cannot show why something is a false positive, it goes to a human. Error rates get sampled review, with thresholds triggering retraining.
Protect: runtime security
Runtime protection involves guardrails, prompt hardening, policy enforcement, and monitori
分享
阅读原文 ↗