All Products
Search
Document Center

Security Center:ChangeSecurityScoreRule

Last Updated:Sep 17, 2026

Modifies custom security score rules.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-sas:ChangeSecurityScoreRule

update

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

SecurityScoreRuleList

array<object>

No

The list of legacy security score rules.

array<object>

No

The security score rule data.

RuleType

string

No

The type of the security score rule. Valid values:

  • SS_REINFORCE: Key feature configuration.

  • SS_ALARM: Pending alerts.

  • SS_VUL: Pending vulnerabilities.

  • SS_HC: Baseline issues.

  • SS_CLOUD_HC: Cloud platform configuration check item issues.

  • SS_AK: AccessKey pair leak risk.

SS_ALARM

Score

integer

No

The deduction value of the security score rule.

Note

The valid range is 0 to 100. The sum of deduction thresholds for all security score rules must equal 100.

5

SecurityScoreItemList

array<object>

No

The list of individual deduction items for the security score rule.

object

No

The individual deduction item data for the security score rule.

SubRuleType

string

No

The sub-rule type of the individual deduction item. The relationship between security score types and sub-rule types is as follows:

  • SS_REINFORCE: Key feature configuration.

    • XPRESS_INSTALL: Security Center service authorization is not enabled.

    • REINFORCE_SUSPICIOUS: The anti-virus feature is not enabled.

    • RANSOMWARE: The anti-ransomware policy is not enabled.

    • WEB_LOCK: The web tamper-proofing feature is not enabled.

    • VIRUS_SCHEDULE_SCAN: The periodic virus scan policy is not enabled.

    • IMAGE_REPO_SCAN: The container image scan scope is not configured.

    • IMAGE_SCAN_TASK: The one-click container image security risk scan has not been executed.

  • SS_ALARM: Pending alerts.

    • ALARM_SERIOUS: One unhandled high-risk alert event exists.

    • ALARM_SUSPICIOUS: One unhandled medium-risk alert event exists.

    • ALARM_REMIND: One unhandled low-risk alert event exists.

  • SS_VUL: Pending vulnerabilities.

    • CMS_UNFIX: One unfixed CMS vulnerability exists.

    • WIN_UNFIX: One unfixed Windows host vulnerability exists.

    • CVE_UNFIX: One unfixed Linux host vulnerability exists.

    • ERM_UNFIX: One unfixed emergency vulnerability exists.

    • ERM_UNCHECK: One unscanned emergency vulnerability exists.

  • SS_HC: Baseline issues.

    • WEAK_EXPLOIT: A weak password risk with Internet Exposure exists.

    • WEAK_PASSWORD: A weak password risk exists.

    • HC_EXPLOIT: A high-risk intrusion vulnerability exists.

    • HC_OTHER_WARNING: A security configuration risk exists.

  • SS_CLOUD_HC: Cloud platform configuration check item issues.

    • CSPM_CIEM_NOT_PASS: One failed CIEM check item exists.

    • CSPM_RISK_NOT_PASS: One failed security risk check item exists.

    • CSPM_COMPLIANCE_NOT_PASS: One failed compliance check item exists.

  • SS_AK: AccessKey pair leak risk.

ALARM_SERIOUS

ScoreThreshold

integer

No

The deduction threshold for the individual item.

Note

The valid range is 0 to the deduction threshold of the security score rule.

10

Score

integer

No

The deduction value for the individual item.

5

SecurityScoreCategoryList

array<object>

No

The list of new version security score rule deductions.

array<object>

No

The security score rule data.

Category

string

No

The category of the security score rule. Valid values:

  • SS_SAS_HANDLE: Security governance.

  • SS_SAS_RESPOND: Security response.

SS_SAS_HANDLE

ScoreThreshold

integer

No

The deduction threshold for the security score rule category.

Note

The valid range is 0 to 100. The sum of deduction thresholds for all security score rule categories must equal 100.

20

SecurityRuleList

array<object>

No

The list of deductions by security score rule type.

array<object>

No

The security score rule type data.

RuleType

string

No

The type of the security score rule sub-item. Valid values:

  • SS_SAS_WEAK_PW: Pending weak passwords to fix.

  • SS_SAS_ALARM: Pending Security Center alerts.

  • SS_SAS_EMG_VUL: Pending emergency vulnerabilities to fix.

  • SS_SAS_APP_VUL: Pending application vulnerabilities to fix.

  • SS_SAS_SYS_VUL: Pending system vulnerabilities to fix.

  • SS_SAS_CLOUD_HC: Pending Cloud Security Posture Management (CSPM) risks.

  • SS_SDDP_DATA_RISK: Pending data security risks to remediate.

  • SS_WAF_API_RISK: Pending API security risks.

  • SS_DDOS_BH_ASSET: Assets under DDoS blackhole filtering.

  • SS_SAS_AK_LEAK: Unhandled AccessKey/SecretKey leak events.

  • SS_PRODUCT_CONNECT: Security products not properly connected.

  • SS_KEY_CONFIG: Key feature configuration.

  • SS_PRODUCT_EXPIRE: Products about to expire.

  • SS_AI_RISK: AI application risks.

SS_REINFORCE

Score

integer

No

The deduction threshold for the security score rule type.

Note

The valid range is 0 to the deduction threshold of the security score rule category.

10

SecurityScoreItemList

array<object>

No

The list of deductions for security score rule sub-items.

object

No

The security score rule sub-item data.

SubRuleType

string

No

The security score rule sub-item.

SSI_KEY_CONFIG

Score

integer

No

The deduction value for the individual item.

2

ScoreThreshold

integer

No

The deduction threshold for the individual item.

Note

The valid range is 0 to the deduction threshold of the security score rule type.

5

ResetSecurityScoreRule

boolean

No

Specifies whether to reset to the system default rules. Valid values:

  • true: Yes.

  • false: No.

false

CalType

string

No

Specifies whether to modify the new version or legacy security score rules. If the value is home_security_score, the new version security score rules are modified. Otherwise, the legacy security score rules are modified by default.

home_security_score

ResourceDirectoryAccountId

integer

No

The ID of the Alibaba Cloud account of the member accounts in the resource directory.

Note

Call the DescribeMonitorAccounts operation to obtain this parameter.

127608589417****

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID, which is a unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot issues.

23AD0BD2-8771-5647-819E-6BA51E21****

Examples

Success response

JSON format

{
  "RequestId": "23AD0BD2-8771-5647-819E-6BA51E21****"
}

Error codes

HTTP status code

Error code

Error message

Description

400 RdCheckNoPermission Resource directory account verification has no permission.
500 ServerError ServerError
500 RdCheckInnerError Resource directory account service internal error.
403 NoPermission caller has no permission You are not authorized to do this operation.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.