tencent cloud

Web Application Firewall

Sensitive Data Detection

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-11-19 16:21:14
Diterjemahkan & Diperiksa oleh AI

Feature Overview

Sensitive data detection is a data security capability of LLM security. Based on a data classification and grading detection engine, it detects sensitive data in user inputs and LLM outputs in real time, preventing the leakage of enterprise sensitive data and personally identifiable information (PII).
During interactions with users, an LLM may leak sensitive data for the following reasons:
User-initiated input: Users enter personal information such as their ID numbers, bank card numbers, and phone numbers in prompts.
Model output leakage: Based on training data or RAG search results, the model includes sensitive data such as enterprise keys, database connection strings, and internal addresses in its responses.

Detection Type

Sensitive data detection has more than 50 built-in rules for detecting sensitive data types. It identifies and handles interactive content in real time with tiered responses, meeting data security compliance requirements. The following categories are covered:
Personally identifiable information: ID cards, passports, and so on.
Financial information: bank cards, VISA card numbers, and so on.
Credentials and keys: password credentials, API keys, and so on.
Contact information: email addresses, phone numbers, and so on.
Location information: longitude, latitude, and so on.
Device identifiers: IP addresses, MAC addresses, and so on.

Configuration Steps

Traffic Onboarding

Prerequisites

The LLM business has been connected to the LLM security feature through the Traffic Onboarding method.

Operation Step

1. Log in to the WAF console, and in the left sidebar, choose LLM Security > Security Configurations.
2. Select the target business instance and domain, and click Custom Protection Rule.
3. On the custom protection rules page, click Add Rule.
4. In the Add Custom Protection Rule window, configure the parameters.
5. For Detection Content, select Data Classification. For detailed parameter descriptions, see Parameter Description.
6. After completing all parameter settings, enable the rule, and then click OK to submit the configuration. The rule takes effect immediately.

SDK/API Integration

Prerequisites

The LLM business has been connected to the LLM security feature through the SDK/API Integration method.
The DescribeLLMContentSecCheck API has been called to report the content to be detected 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 Sensitive Data Detection feature.
4. Click Sensitive Data Detection to switch to the Sensitive Data Detection 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. In the Detection Mode column dropdown list, select the detection direction:
Detect inbound only: Detects only input prompts.
Detect outbound only: Detects only model output.
Detect inbound and outbound: Detects both input and output.
8. To perform batch operations on multiple rules, select the checkboxes before the rules, click Batch Configuration above the list, and then adjust the Action, Detection Mode, and On/Off settings in a unified manner.

Must-Knows

Enable the corresponding rules based on the data types actually involved in your business. For example, consumer-facing businesses should focus on personal identity and financial information such as phone numbers, ID cards, and bank cards. Internal enterprise systems should focus on credential types such as keys and connection strings.
We recommend that you enable blocking for Extreme high and High risk types, and observe Medium and Low risk types in alarm mode first to avoid false positives affecting your business.
Sensitive data leakage in model output is often harder to detect than that in user input. We recommend that you enable detection on both Detect inbound and outbound.
For scenarios where sensitive data must be passed through, we recommend that you first complete data masking on the business side, and then integrate detection as a fallback defense.
When integration via SDK/API is performed, the protection results of sensitive data detection can be queried through Log Audit.

References

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan