SecMasterBiz
Function Description
This plugin is built into SecMaster and preprocesses alerts and other data.
Each built-in plugin has a corresponding built-in operation connection.
Viewing Details and Operation Connections of the SecMasterBiz Plugin
- Log in to the SecMaster console.
- Click
in the upper left corner of the management console and select a region or project. - In the navigation pane on the left, choose Workspaces > Management. In the workspace list, click the name of the target workspace. Figure 1 Workspace management page
- In the navigation pane on the left, choose . Figure 2 Plugins page
- On the Plugins page, select the SecMasterBiz plugin under the Huawei Cloud catalog. The Details tab is displayed by default. The Details tab displays the login credential information of the operation connection associated with the plugin.
- Click the Operation Connections tab for the SecMasterBiz plugin. On the displayed page, you can view information about the operation connections associated with the SecMasterBiz plugin.
- For details about how to edit or delete an operation connection, see Editing an Operation Connection and Deleting an Operation Connection. For details about how to add an operation connection for a plugin, see Creating an Operation Connection. A plugin can have multiple operation connections.
Plugin Execution Function modifyStatus
- Parameters of the modifyStatus Function: describes the input and output parameters of the function.
- Output Example of the modifyStatus Function: provides an example of the function output.
Parameters of the modifyStatus Function
Function: Generates summary for the built-in alert title in SecMaster.
| Parameter | Parameter Type | Parameter Description | Mandatory |
|---|---|---|---|
| title | String | Alert title. | Yes |
| mainTitle | String | Title summary, which can be obtained from Parameters of the processTitle Function. | Yes |
| eventCount | String | Number of alerts. | Yes |
| Parameter | Parameter Type | Parameter Description |
|---|---|---|
| riskLevel | String | Risk severity level generated based on how many times an alert is repeatedly generated. |
| riskDesc | String | Risk description generated based on how many times an alert is repeatedly generated. |
| riskTag | String | Risk label. |
| riskSubject | string | Alert title with a times label added. |
| handle_status | string | Recommended status of the alert to be handled. |
Output Example of the modifyStatus Function
{
"riskLevel": "low",
"riskDesc": "The same alert has been generated twice (more than three times) in the last month. For details about alert backtracking, see the handling comments marked with 0-2 times in the title.",
"riskTag": "closed",
"riskSubject": "[2 times] [Host] test",
"handle_status": "Closed"
} Plugin Execution Function getDataClassID
- Parameters of the getDataClassID Function: describes the input and output parameters of the function.
- Output Example of the getDataClassID Function: provides an example of the function output.
Parameters of the getDataClassID Function
Function: Generates the ID of the data class type in the SecMaster workspace.
| Parameter | Parameter Type | Parameter Description | Mandatory |
|---|---|---|---|
| projectID | String | Huawei Cloud project ID, which can be viewed on the My Credentials page. | Yes |
| workspaceID | String | SecMaster workspace ID, which can be viewed on the workspace management page. | Yes |
| itemID | String | Built-in raw data class IDs:
| Yes |
| Parameter | Parameter Type | Parameter Description |
|---|---|---|
| dataClassID | string | Target project, target workspace, target data class, and data class ID. |
Plugin Execution Function processTitle
- Parameters of the processTitle Function: describes the input and output parameters of the function.
- Output Example of the processTitle Function: provides an example of the function output.
Parameters of the processTitle Function
Function: Obtains the alert title summary based on the built-in regular expression.
| Parameter | Parameter Type | Parameter Description | Mandatory |
|---|---|---|---|
| title | String | Alert title. | Yes |
| Parameter | Parameter Type | Parameter Description |
|---|---|---|
| mainTitle | string | Title summary after regular expression truncation. |
| allTitle | string | Alert title with special characters escaped. |
Plugin Execution Function judging
- Parameters of the judging Function: describes the input and output parameters of the function.
- Output Example of the judging Function: provides an example of the function output.
Parameters of the judging Function
Function: Checks whether the alert title or comment matches the input regular expression.
| Parameter | Parameter Type | Parameter Description | Mandatory |
|---|---|---|---|
| eventTille | String | Alert title. | No |
| eventComment | String | Alert comment. | No |
| susSubjects | Array | List of regular expression for filtering alerts. | No |
| susComments | Array | List of regular expression for filtering comments. | No |
| Parameter | Parameter Type | Parameter Description |
|---|---|---|
| isMatch | bool |
|
Plugin Execution Function initMessageContent
- Parameters of the initMessageContent Function: describes the input and output parameters of the function.
- Output Example of the initMessageContent Function: provides an example of the function output.
Parameters of the initMessageContent Function
Function: Initializes the alert notification content based on the input.
| Parameter | Parameter Type | Parameter Description | Mandatory |
|---|---|---|---|
| eventTille | String | Alert title. | No |
| eventComment | String | Alert comment. | No |
| eventSeverity | String | Alert threat level. | No |
| judgingResult | Object | The alert title that matches the comment result. It can be obtained through Parameters of the judging Function. | No |
| eventID | String | Alert ID. | No |
| Parameter | Parameter Type | Parameter Description |
|---|---|---|
| notifiedType | bool |
|
| SMSContent | String | Content of the SMS initialization notification. |
| mailContent | String | Content of the email initialization notification. |
| sip | String | Attack source IP address matched the regular expression in the title. |
Output Example of the initMessageContent Function
{
"notifiedType": true,
"SMSContent": "[High-risk vulnerability (ID=11223344)]: test. Please handle it as soon as possible. \\n Matched title: NA \\n Matched comment: NA",
"mailContent": "xxxx",
"sip": ""
} Plugin Execution Function createRMAssetData (Deprecated)
- Parameters of the createRMAssetData Function: describes the input and output parameters of the function.
- Output Example of the createRMAssetData Function: provides an example of the function output.
Parameters of the createRMAssetData Function
Function: Generates the SecMaster asset format based on the return values of APIs of Huawei Cloud services, such as ECS, VPC, EIP, RDS, and WAF. This function has been deprecated.
| Parameter | Parameter Type | Parameter Description | Mandatory |
|---|---|---|---|
| workspaceData | String | SecMaster workspace ID. | Yes |
| resourceData | Object | Return value of the cloud service asset API. | Yes |
| cloudserversData | Object | SecMaster asset format conversion data. | No |
| Parameter | Parameter Type | Parameter Description |
|---|---|---|
| rmAssetData | Object | Asset data in SecMaster format. |
Output Example of the createRMAssetData Function
{
"is_build_in": true,
"create_time": "2026-04-07T09:36:20.779Z+0800",
"sys_key": "CloudServicevpcs936a4cbd-f22a-4dfe-9d7d-f9f973e2bf825de11c5b-3655-4ba1-a80c-937a3b4d190f",
"region_id": "cn-north-7",
"import_time": "2026-04-07T09:36:20.285Z+0800",
"dataclass_id": "63e4e911-2bc2-3a38-bc44-fae3c2fc4c79",
"type": "vpcs",
"tags": [],
"domain_id": "c54198aa774c48eabb0ed1f018f2f2de",
"workspace_id": "5de11c5b-3655-4ba1-a80c-937a3b4d190f",
"environment": {
"domain_id": "c54198aa774c48eabb0ed1f018f2f2de",
"domain_name": "scc_soc_xxx882",
"project_id": "8846a9979e464df3817056a9e8f70e53",
"region_id": "cn-north-7",
"project_name": "cn-north-7",
"ep_id": "0",
"ep_name": "default",
"vendor_type": "CloudService"
},
"protected_status": "CLOSE",
"update_time": "2026-04-07T09:36:20.779Z+0800",
"domain_name": "scc_soc_xxx882",
"is_deleted": false,
"trigger_flag": true,
"provider": "vpc",
"project_id": "8846a9979e464df3817056a9e8f70e53",
"name": "vpc-2cc2",
"resource_id": "936a4cbd-f22a-4dfe-9d7d-f9f973e2bf82",
"region_name": "cn-north-7",
"id": "CloudServicevpcs936a4cbd-f22a-4dfe-9d7d-f9f973e2bf825de11c5b-3655-4ba1-a80c-937a3b4d190f",
"properties": {
"vpc_vpcs": {
"enterprise_project_id": "0",
"updated_at": "2025-04-18T07:55:04Z",
"cloud_resources": [
{
"resource_type": "routetable",
"resource_count": 1
},
{
"resource_type": "virsubnet",
"resource_count": 1
}
],
"project_id": "8846a9979e464df3817056a9e8f70e53",
"name": "vpc-2cc2",
"extend_cidrs": [],
"created_at": "2025-04-18T07:55:04Z",
"description": "",
"cidr": "192.168.0.0/16",
"id": "936a4cbd-f22a-4dfe-9d7d-f9f973e2bf82",
"status": "ACTIVE",
"tags": []
}
}
} Plugin Execution Function setCondition
- Parameters of the setCondition Function: describes the input and output parameters of the function.
- Output Example of the setCondition Function: provides an output example of the function.
Parameters of the setCondition Function
Function: Generates a query condition statement based on the SecMaster data and filter fields.
| Parameter | Parameter Type | Parameter Description | Mandatory |
|---|---|---|---|
| sourcedata | Object | Data in SecMaster format, such as alerts, incidents, assets, and vulnerabilities. | Yes |
| keys | Array | Character array, which is used to set the fields to be queried. By default, the operator for filter criteria is AND. Example: ["origin_id","!id","?>title","alert_type.id"]: Queries the data with the same value of origin_id, different IDs, the same title, and the same value of alert_type.id. | Yes |
| Parameter | Parameter Type | Parameter Description |
|---|---|---|
| condition | Object | SecMaster data filtering and query statement. |
Output Example of the setCondition Function
{
"logics": ["id", "and", "title", "and", "alert_type.id", "and", "severity"],
"conditions": [{
"data": ["id", "!=", "5770fcf6-885a-xxxx-833e-a1233dcbb9a9"],
"name": "id"
}, {
"data": ["title", "contains", "[Application] there is login burst attack, src_ip:xxxxx"],
"name": "title"
}, {
"data": ["alert_type.id", "=", ""],
"name": "alert_type.id"
}, {
"data": ["severity", "=", "High"],
"name": "severity"
}]
} Plugin Execution Function judgeIp
- Parameters of the judgeIp Function: describes the input and output parameters of the function.
- Output Example of the judgeIp Function: provides an output example of the function.
Parameters of the judgeIp Function
Function: Checks whether an IP address is an internal IP address.
| Parameter | Parameter Type | Parameter Description | Mandatory |
|---|---|---|---|
| ip | String | IP address to be checked. | Yes |
| Parameter | Parameter Type | Parameter Description |
|---|---|---|
| isMatch | Bool | Result of check whether the IP address is an internal IP address. |
Plugin Execution Function splitIpType
- Parameters of the splitIpType Function: describes the input and output parameters of the function.
- Output Example of the splitIpType Function: provides an output example of the function.
Parameters of the splitIpType Function
Function: Categorizes IP addresses based on the input IP address list.
| Parameter | Parameter Type | Parameter Description | Mandatory |
|---|---|---|---|
| ip_list | Array | List of IP addresses to be categorized. | Yes |
| Parameter | Parameter Type | Parameter Description |
|---|---|---|
| result | Array | IPv4 and IPv6 address lists. |
Plugin Execution Function changeWebshellAlertName
- Parameters of the changeWebshellAlertName Function: describes the input and output parameters of the function.
- Output Example of the changeWebshellAlertName Function: provides an example of the function output.
Parameters of the changeWebshellAlertName Function
Function: Changes the name of a web shell alert.
| Parameter | Parameter Type | Parameter Description | Mandatory |
|---|---|---|---|
| alertData | Object | List of IP addresses to be categorized. | Yes |
| severity | String | Severity level. The value can be Tips, Low, Medium, High, or Fatal. | No |
| createTime | String | Record time. | No |
| srcIp | String | Attack source IP address. | No |
| sourceCountryCity | String | Country to which the attack source IP address belongs. | No |
| destinationIp | String | Destination IP address. | No |
| destinationCountryCity | String | Country to which the destination IP address belongs. | No |
| Parameter | Parameter Type | Parameter Description |
|---|---|---|
| title | String | Modified alert name. |
Output Example of the changeWebshellAlertName Function
{
"title": "Hackers launched a cyber-attack on tenant service!"
} Plugin Execution Function getCredential (Deprecated)
- Parameters of the getCredential Function: describes the input and output parameters of the function.
- Output Example of the getCredential Function: provides an example of the function output.
Parameters of the getCredential Function
Function: Calls the target API through IAM 5 authentication. This function has been deprecated.
| Parameter | Parameter Type | Parameter Description | Mandatory |
|---|---|---|---|
| key | String | ID of the target API for IAM authentication, which determines the API to be called. | Yes |
| method | String | Methods of calling APIs:
| Yes |
| headers | Object | API request header. Default value: { "Content-type": "application/json;charset=UTF-8" } | Yes |
| body | Object | Body of the API call. | No |
| region_id | String | Region where the resource called by the API is located. | Yes |
| domain_id | String | Account to which the resource called by the API belongs. | Yes |
| project_id | String | ID of the project to which the resource called by the API belongs. | No |
| policy_id | String | IAM API policy name. | No |
| agency_id | String | IAM API agency ID. | No |
| child_id | String | IAM user ID. | No |
| agency_name | String | IAM API agency name. | No |
| Parameter | Parameter Type | Parameter Description |
|---|---|---|
| result | Object | IAM 5 authentication response for the target API. |
Output Example of the getCredential Function
{
"code": 200,
"body": {
"page_info": {
"next_marker": null,
"current_count": 6
},
"accounts": [{
"urn": "organizations::94aee09081cxxxx00ec50:account:o-eveyxxxxxxt2rtrsic5d66p/0ca3xxxxxxx211884fd97",
"joined_at": "2025-05-08T02:33:55.582Z",
"join_method": "created",
"mobile_phone": null,
"name": "lixxxx3350_01",
"description": "",
"intl_number_prefix": null,
"id": "0cxxxxxxx7a2211884fd97",
"email": null,
"status": "pending_closure"
}, {
"urn": "organizations::94aeexxxxxxxx5200ec50:account:o-eveyj9jnbpkiaxxxxxx2rtrsic5d66p/44525d669xxxxx59c028",
"joined_at": "2025-12-25T14:10:36.337Z",
"join_method": "invited",
"mobile_phone": null,
"name": "scc_sa_lxxxxxx8",
"description": null,
"intl_number_prefix": null,
"id": "44525d66xxxxxxxx95413c659c028",
"email": null,
"status": "active"
}, {
"urn": "organizations::94aexxxxxx0ec50:account:o-eveyj9jnbpkiaxxxxxxrsic5d66p/52aba5xxxxxxa7e6644e",
"joined_at": "2026-02-28T03:11:53.727Z",
"join_method": "invited",
"mobile_phone": null,
"name": "scc_cnfw_xxxxxxxx0",
"description": null,
"intl_number_prefix": null,
"id": "52aba5xxxxxxx9d30efa7e6644e",
"email": null,
"status": "active"
}, {
"urn": "organizations::94aee09xxxxxx25200ec50:account:o-eveyj9xxxxxx4uxt2rtrsic5d66p/94aee09081c6xxxxxx5200ec50",
"joined_at": "2024-12-13T01:47:58.641Z",
"join_method": "invited",
"mobile_phone": null,
"name": "scc_sa_xxxxxxx8",
"description": null,
"intl_number_prefix": null,
"id": "94aee09081c649xxxxxxxx00ec50",
"email": null,
"status": "active"
}, {
"urn": "organizations::94axxxxxxx25200ec50:account:o-eveyj9xxxxxxxd66p/bfxxxxxxe3a2208",
"joined_at": "2025-05-06T11:13:18.549Z",
"join_method": "created",
"mobile_phone": null,
"name": "lixxxxxxx73350",
"description": "xxxxxx test account",
"intl_number_prefix": null,
"id": "bf2fefexxxxxxxa2208",
"email": null,
"status": "pending_closure"
}, {
"urn": "organizations::94aee09xxxxxxx200ec50:account:o-eveyj9jnbpxxxxxxxtrsic5d66p/c54198xxxxxxx018f2f2de",
"joined_at": "2025-08-01T07:27:14.306Z",
"join_method": "invited",
"mobile_phone": null,
"name": "scc_soc_xxxxxxxx",
"description": null,
"intl_number_prefix": null,
"id": "c54198aaxxxxxxxxxxe",
"email": null,
"status": "active"
}]
}
} Plugin Execution Function getProductId (Deprecated)
- Parameters of the getProductId Function: describes the input and output parameters of the function.
- Output Example of the getProductId Function: provides an example of the function output.
Parameters of the getProductId Function
Function: Calls the target API to obtain the product ID through IAM 5 authentication. This function has been deprecated.
| Parameter | Parameter Type | Parameter Description | Mandatory |
|---|---|---|---|
| region_id | String | Region where the resource called by the API is located. | Yes |
| Parameter | Parameter Type | Parameter Description |
|---|---|---|
| result | String | Product ID (product_id) obtained based on the region. |
Plugin Execution Function obtainToken
- Parameters of the obtainToken Function: describes the input and output parameters of the function.
- Output Example of the obtainToken Function: provides an example of the function output.
Parameters of the obtainToken Function
Function: Calculates and obtains Huawei Cloud service token.
| Parameter | Parameter Type | Parameter Description | Mandatory |
|---|---|---|---|
| sk | String | Key for calculating the authentication token. | Yes |
| user_name | String | Username for obtaining the token. | Yes |
| user_role | String | Permission level for obtaining the token. | Yes |
| cookie_login_user | String | Login user ID. | Yes |
| attribute_groups | String | Attribute group. | Yes |
| audience | String | The party who gains the authorization. The value is fixed at THIRD. | Yes |
| subject | String | Authentication method for accessing the service. | Yes |
| issuer | String | Service name to be accessed. | Yes |
| Parameter | Parameter Type | Parameter Description |
|---|---|---|
| result | String | Calculated token on the Huawei Cloud platform. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot