Tencent Cloud Keys

ID

tencent_cloud_keys

Severity

critical

Vendor

Tencent Cloud

Family

API Token

Description

Tencent is a Chinese multinational technology and entertainment conglomerate and holding company. It is one of the highest grossing multimedia companies in the world based on revenue. Their API allows to operate Tencent Cloud products.

Security

Any hardcoded Tencent Key is a potential secret reported by this detector.

Accidentally checking-in the key to source control repositories could compromise your Tencent account.

Examples

public class Constants {
  public static final String TENCENT_ID = "123589119";
  public static final String TENCENT_KEY = "gbh5f5aet8xv9tz3kud9ga5ahykjbshq";
}

Mitigation / Fix

  1. Remove the Key from the source code or committed configuration file.

  2. Follow your policy for handling leaked secrets, which typically require revoking the secret in the target system(s). Tokens can be revoked from the console in the "Cloud API Key" section.

  3. If under a git repository, you may remove unwanted files from the repository history using tools like git filter-repo or BFG Repo-Cleaner. You may follow the procedure listed here for GitHub.

You should consider any sensitive data in commits with secrets as compromised.

Remember that secrets may be removed from history in your projects, but not in other users' cloned or forked repositories.