tencent cloud

Web Application Firewall

ToolCall Protection

ダウンロード
フォーカスモード
フォントサイズ
最終更新日: 2026-11-19 16:21:14
AI翻訳・品質チェック済み

Feature Overview

ToolCall protection is a specialized capability of LLM Security for AI Agent scenarios. It performs strict authentication and intent recognition on tool call requests initiated by LLMs, prevents the execution of dangerous commands, and protects the security of the tool call chain in LLM applications.
In AI Agent scenarios, LLMs call external tools to perform operations through the Function Calling / Tool Use mechanism, such as querying databases, calling third-party APIs, executing scripts, and sending messages. Attackers can exploit prompt injection and other techniques to manipulate the tool call behavior of models, inducing them to execute dangerous commands, exfiltrate data, or compromise systems.
ToolCall protection performs security authentication on every tool call request and blocks high-risk calls before actual tool execution, based on two dimensions: parameter detection and intent recognition.

Detection Principle

Perform structural and semantic detection on the input parameters of tool calls to identify dangerous commands, malicious payloads, or unauthorized operation intents carried in the parameters. This includes:
Detect whether tool call parameters contain dangerous commands such as command injection and path traversal.
Detect whether parameters contain data that should not be transmitted externally, such as sensitive credentials and private network addresses.
Detect whether parameters conform to the expected format and identify suspicious payloads that are abnormal or excessively long.

Typical Risk Scenarios

Risk Scenario
Description
Protection Effect
Dangerous command execution
Attackers induce the model to call tools such as Shell and databases to execute dangerous commands.
Block calls that contain dangerous commands.
Data destruction
Attackers induce the model to call tools that delete or modify data.
Identify unauthorized or destructive intent and block the call.
Credential leakage
Attackers induce the model to exfiltrate credentials such as keys and tokens as parameters.
Detect sensitive credentials in parameters and block the call.
Unauthorized access
Attackers induce the model to access data belonging to other users or systems.
Identify unauthorized call intent and block the call.

Configuration Steps

Prerequisites

The AI Agent business has been connected to the LLM security feature through the SDK/API Integration method.
The DescribeLLMContentSecCheck API has been called to report the ToolCall parameters to the LLM security feature.

Operation Step

1. Log in to the WAF console, and in the left sidebar, choose LLM Security > SDK Integration.
2. In the operation column of the target application, click Security Configurations.
3. In the Protection Configuration area, enable the Tool Call Protection feature.
4. Click Tool Call Protection to switch to the Tool Call Protection tab.
5. In the rule list, find the rule you want to enable, and click the On/Off on the right to turn it on.
6. In the Action column dropdown list, select the post-hit handling method:
Observe: Logs the hit event without blocking the request. You can select this action during the initial phase after policy rollout to evaluate the false positive rate.
Block: Blocks the request and returns a block prompt. For input content, requests sent from users to the origin server are blocked. For output content, model output is stopped and a prompt message is returned.
7. To perform batch operations on multiple rules, select the checkboxes before the rules, click Batch Configuration above the list, and then adjust the Action and On/Off settings in a unified manner.

Must-Knows

ToolCall protection requires the business to pass structured context of tool calls during SDK/API calls. Without complete context, the detection capability is limited.
We recommend constraining the scope of tools that can be called in conjunction with the actual tool allowlist of your business.
Detection logs can be queried through Log Audit, supporting retrospective analysis.

References

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック