All Products
Search
Document Center

Security Center:HandleSecurityEvents

Last Updated:Aug 28, 2026

Handles security alert events by performing operations such as blocking IP addresses, terminating malicious processes, or adding events to the whitelist.

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:HandleSecurityEvents

none

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

SourceIp

string

No

The source IP address of the request.

1.2.XX.XX

OperationCode

string

Yes

The operation to perform on the alert events. Valid values:

  • block_ip: blocks the source IP address.

  • advance_mark_mis_info: adds the alert events to the whitelist.

  • ignore: ignores the alert events.

  • manual_handled: marks the alert events as manually handled.

  • kill_process: terminates the malicious process.

  • cleanup: performs in-depth virus detection and removal.

  • kill_and_quara: kills the malicious processes and quarantines the source file.

  • disable_malicious_defense: stops the container on which the alerting files or processes exist.

  • client_problem_check: performs troubleshooting.

  • quara: quarantines the source file of the malicious process.

block_ip

OperationParams

string

No

The configuration of the handling operation.

Note

If you set OperationCode to kill_and_quara or block_ip, you must specify OperationParams. If you set OperationCode to other values, you can leave OperationParams empty.

{\"expireTime\":1719588943551,\"subOperation\":\"killAndQuaraFileByMd5andPath\"}

MarkMissParam

string

No

The whitelist rule in JSON format. Contains the following fields:

  • field: The field by which alert events are matched for whitelisting.

  • operate: The match method for whitelisting alert events. Valid values:

    • notContains: does not contain

    • contains: contains

    • regex: matches by regular expression

    • strEqual: equals

    • strNotEqual: does not equal

  • fieldValue: The value of the field used to match alert events.

  • uuid: The application scope of the whitelist rule. Valid values:

    • part: the current asset

    • ALL: all assets

Note

You can call the DescribeSecurityEventOperations operation to obtain the fields that you can specify for field.

[{"uuid":"part","field":"gmtModified","operate":"contains","fieldValue":"asd"},{"uuid":"part","field":"loginUser","operate":"contains","fieldValue":"vff"}]

MarkBatch

string

No

Whether to add multiple alert events to the whitelist at a time. Valid values:

  • true: yes

  • false: no

true

SecurityEventIds

array

Yes

The IDs of the alert events.

["909361"]

string

Yes

The ID of the alert event.

909361

Remark

string

No

Remarks for the handling operation.

remark test.

ResourceDirectoryAccountId

integer

No

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

Note

You can call the DescribeMonitorAccounts operation to obtain the IDs.

127608589417****

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

FF0020B9-999F-5DE2-985F-DB282BDA5311

HandleSecurityEventsResponse

object

The result of handling the alert events.

TaskId

integer

The ID of the alert handling task.

15411

Examples

Success response

JSON format

{
  "RequestId": "FF0020B9-999F-5DE2-985F-DB282BDA5311",
  "HandleSecurityEventsResponse": {
    "TaskId": 15411
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 NoPermission no permission
400 SecurityEventNotExists Security event not exists.
400 RdCheckNoPermission Resource directory account verification has no permission.
500 RdCheckInnerError Resource directory account service internal error.
500 ServerError ServerError
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.