Detect Malicious IPs in Cloud Access Logs with Tencent Cloud CLS
Use Tencent Security threat intelligence in CLS to analyze source IPs, trigger alerts, and connect malicious-IP findings to cloud security controls.

Cloud access logs often contain the first evidence of a security problem: repeated requests from suspicious addresses, attack traffic against a public endpoint, abnormal API calls, or source IPs that should be blocked before they reach the business system. Tencent Cloud Log Service (CLS) Threat IP Detection adds threat-intelligence analysis directly to log data so security and operations teams can identify malicious IPs, inspect related access logs, and respond through alerts or cloud security policies.
The capability is built on Tencent Security threat intelligence from the Tencent Security Threat Intelligence Center and Keen Lab. The intelligence base contains more than 300 million security intelligence records and processes more than 3 trillion threat data events per day. In CLS, that intelligence is applied to source IP fields in access logs, turning ordinary log streams into a real-time malicious-IP detection workflow.
When Threat IP Detection Fits
Threat IP Detection is useful when teams already collect access logs but still need a faster way to answer questions like:
| Question an operator may ask | How CLS helps answer it |
|---|---|
| Are malicious IPs accessing my cloud services? | Analyze source IPs in access logs against Tencent Security threat intelligence. |
| Which requests are related to a detected malicious IP? | Open the associated access logs for the IP in the current business system. |
| What type of threat is this IP linked to? | Review the threat level and classification labels attached to the IP. |
| Can I alert on malicious access instead of checking manually? | Configure alert policies after malicious IPs are detected. |
| Can I block the IP after detection? | Use the detection result with security groups, firewalls, WAF, or similar controls. |
This is not a replacement for application security design. It is a log-centered detection layer that helps teams turn cloud access records into actionable security signals.
How CLS Threat IP Detection Works
The workflow has four practical steps:
- Access logs are collected into CLS from a supported cloud service or business system.
- The Threat IP Detection feature is enabled for a selected log topic and IP field.
- CLS analyzes the IP values in real time against Tencent Security threat intelligence.
- Detected malicious IPs are presented with threat context, related access logs, and response options.
The key design point is that the log does not need to be preprocessed for a separate security pipeline. Once the relevant log topic and IP field are selected, CLS can analyze the source IPs directly and surface malicious-IP findings alongside the original access-log context.
Threat Categories the Detection Can Identify
The detection result may include malicious behavior categories such as:
| Threat category | What it means in an access-log workflow |
|---|---|
| Network attack | The IP has been associated with attacks against information systems, infrastructure, networks, or endpoint devices. |
| Vulnerability exploitation | The IP is linked to attempts to exploit software vulnerabilities for unauthorized access or system damage. |
| Web attack | The activity may involve XSS, CSRF, SQL injection, or similar web attack patterns. |
| Brute-force activity | The IP may be attempting to guess credentials or gain account access through repeated trials. |
For each detected malicious IP, CLS can provide the threat level, threat classification labels, and associated access logs in the current business system. That combination is what makes the output useful for triage: the team can see both the external intelligence context and the local request evidence.
Cloud Logs Worth Connecting
Threat IP Detection is most useful for logs that contain externally visible source IPs. The source workflow highlights several cloud-service scenarios:
| Scenario | Why it matters |
|---|---|
| CLB access logs | Detect malicious access to services behind a load balancer. |
| COS access logs | Identify suspicious object-storage access behavior. |
| CDN access logs | Find malicious or abnormal traffic at the edge. |
| EdgeOne logs | Inspect attacks or suspicious requests passing through edge acceleration and security layers. |
| Cloud-native API Gateway logs | Detect malicious API callers and possible API abuse. |
| Website access logs | Identify malicious IPs visiting web applications. |
| Internal traffic or operation logs | Support security audit workflows and abnormal-behavior review. |
The common requirement is simple: the log should contain an IP field that represents the source address to evaluate.
Configure Threat IP Detection in CLS
The configuration path is intentionally short:
- Open the CLS console.
- Go to the Cloud Product Center.
- Select Tencent Security | Threat IP Detection.
- Choose the log topic that contains the access logs.
- Select the IP field that should be checked.
- Enable the detection workflow and review the results.
After configuration, the result view can be used to inspect malicious IP statistics, individual malicious-IP records, threat labels, and the related access logs for the business system.
Turn Detections into Security Response
Detection is only useful if it leads to a response path. The source workflow describes three response patterns:
| Response pattern | Practical use |
|---|---|
| Active alerting | Notify operators when malicious IPs are detected so they can respond quickly. |
| Security-policy collaboration | Use findings with security groups, firewalls, WAF, or other cloud security controls. |
| IP blocking | For CLB scenarios, a security group can be bound to block a selected malicious IP. |
For production use, keep the response proportional. A high-confidence malicious IP against a public endpoint may justify blocking. A lower-confidence finding may first need log review, affected-service identification, and business-owner confirmation.
Operational Checklist
- Confirm that the log topic receives the access logs you care about.
- Confirm that the selected IP field represents the source IP, not a backend or proxy-only field.
- Start with externally exposed services such as CLB, CDN, API Gateway, COS, or EdgeOne.
- Review threat level, threat tags, and associated access logs together before taking irreversible action.
- Configure alerts for high-priority services so malicious-IP findings are not left as a manual console check.
- Define the blocking workflow in advance: who can block, which control is used, and how to roll back.
- Keep the detection result connected to broader incident-response records.
FAQ
Can CLS detect malicious IPs without a separate preprocessing pipeline?
Yes. The feature is designed to analyze IP fields in CLS logs directly after a log topic and IP field are selected. The source workflow emphasizes real-time full-volume analysis without requiring log preprocessing.
Which logs should I start with?
Start with access logs from externally reachable services. CLB, COS, CDN, EdgeOne, cloud-native API Gateway, website access logs, and API logs are all strong candidates because they usually contain source IP fields.
What information does CLS provide for a detected malicious IP?
CLS can provide threat level, threat classification labels, and access logs associated with the IP in the current business system. That lets operators connect external threat intelligence to local request evidence.
Can the detection result trigger alerts?
Yes. Alert policies can be configured so teams are notified after malicious IPs are found. This is important for turning the feature from a manual review tool into an operational security workflow.
Can I block a malicious IP after detection?
Yes, but the blocking action happens through security controls such as security groups, firewalls, WAF, or similar policies. In a CLB example, binding a security group can be used to block a selected malicious IP.





