Xpersona
A

Alibabacloud Sas Incident Manage

CLAWHUB · Unverified

Alibaba Cloud Security Center incident management skill. Query security incidents, threat trends, and incident details. Triggers: "云安全中心", "安全事件", "事件查询", "安...

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s173swjet2yrebzqrp6hjkvmy583mxef:alibabacloud-sas-incident-manage
  1. Install using `clawhub skill install s173swjet2yrebzqrp6hjkvmy583mxef:alibabacloud-sas-incident-manage` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/sdk-team/alibabacloud-sas-incident-manage before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-sdk-team-alibabacloud-sas-incident-manage/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

85,426 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: alibabacloud-sas-incident-manage
description: |
  Alibaba Cloud Security Center incident management skill. Query security incidents, threat trends, and incident details.
  Triggers: "云安全中心", "安全事件", "事件查询", "安全态势", "威胁事件", "cloud-siem", "Agentic-soc".
---

# Alibaba Cloud Security Center - Incident Management

## Scenario Description

Query security incidents, analyze threat trends, and retrieve incident details from Alibaba Cloud Security Center (Cloud SIEM).

**Architecture**: Aliyun CLI + cloud-siem plugin (API versions: 2022-06-16, 2024-12-12)

> **CRITICAL**: Use `cloud-siem` product, NOT `sas` (different API!)
>
> **CRITICAL API Names**:
> | Task | API | Version |
> |------|-----|---------|
> | List incidents | `ListIncidents` | 2024-12-12 |
> | Get incident details | `GetIncident` | 2024-12-12 |
> | Event trend | `DescribeEventCountByThreatLevel` | 2022-06-16 |
>
> **⚠️ DO NOT use**: `DescribeCloudSiemEvents` (different API, will fail evaluation)

> **FORBIDDEN BEHAVIORS**:
> - ❌ Creating mock/fake API responses
> - ❌ Using `aliyun sas` commands (wrong product)
> - ❌ Using `DescribeCloudSiemEvents` instead of `ListIncidents`
> - ❌ Falling back to any alternative API when a command times out
>
> **TIMEOUT HANDLING** (CRITICAL):
> - If `list-incidents` times out → **RETRY with longer timeout** (`--read-timeout 120`), DO NOT switch to `DescribeCloudSiemEvents`
> - If retry still fails → Report the timeout error to user, DO NOT use alternative APIs
> - **NEVER** use `DescribeCloudSiemEvents` under ANY circumstances (wrong API, will fail evaluation)

## Installation

```bash
# Install cloud-siem CLI plugin
aliyun plugin install --names cloud-siem

# Verify installation
aliyun cloud-siem --api-version 2024-12-12 --help
```

> **Pre-check**: Aliyun CLI >= 3.3.1 required. See [references/cli-installation-guide.md](references/cli-installation-guide.md).

## Pre-Check (read before running ANY command)

> **`--region`** — Defaults to `cn-shanghai`; always include it.
> - cloud-siem has no global endpoint; every command MUST carry `--region` (plugin mode; `--region` sets the endpoint for all commands including `describe-event-count-by-threat-level`).
> - Supported regions: `cn-shanghai` (default), `ap-southeast-1` (Singapore). Use `ap-southeast-1` only when Singapore is explicitly requested.
>
> **`--lang`** — Defaults to `zh`; include it for `list-incidents` / `get-incident`.
> - Override with `--lang en` only when English output is explicitly requested.
> - `describe-event-count-by-threat-level` has no `--lang` parameter; do not add it.
>
> **`--api-version`** — Per-API; must match the table below.
> - Omitting it falls back to `2022-06-16`, which breaks `list-incidents` / `get-incident`.
>
> | API | Command | `--api-version` |
> |-----|---------|-----------------|
> | List incidents | `list-incidents` | `2024-12-12` |
> | Get incident details | `get-incident` | `2024-12-12` |
> | Event trend | `describe-event-count-by-threat-level` | `202

_meta.json

{
  "ownerId": "kn74p5w8ywv6prh40g0s82gmqh83nw54",
  "slug": "alibabacloud-sas-incident-manage",
  "version": "0.0.2",
  "publishedAt": 1782801907242
}

references/acceptance-criteria.md

# Acceptance Criteria: alibabacloud-sas-incident-manage

**Scenario**: Cloud Security Center incident query, trend analysis, and detail retrieval
**Purpose**: Skill testing acceptance criteria

> **CRITICAL**: Use `cloud-siem` product, NOT `sas` (different API!)

> **FORBIDDEN BEHAVIORS** (will cause evaluation failure):
> - ❌ Creating mock/fake API responses when real calls fail
> - ❌ Using `aliyun sas` commands (wrong product)
> - ❌ Generating synthetic incident data
> - ❌ Reporting success without actual API responses

> **REQUIRED Flags**: All commands MUST include:
> - `--user-agent AlibabaCloud-Agent-Skills/alibabacloud-sas-incident-manage/{session-id}` (substitute a per-session 32-char hex; see SKILL.md Observability)
> - `--read-timeout 60`
> - `--connect-timeout 10`

---

## Correct CLI Command Patterns

### 1. list-incidents (API: ListIncidents, Version: 2024-12-12)

#### ✅ CORRECT
```bash
# Basic query
aliyun cloud-siem list-incidents --api-version 2024-12-12 --region cn-shanghai --page-number 1 --page-size 10 --lang zh --user-agent AlibabaCloud-Agent-Skills/alibabacloud-sas-incident-manage/{session-id} --read-timeout 60 --connect-timeout 10

# Filter by threat level
aliyun cloud-siem list-incidents --api-version 2024-12-12 --region cn-shanghai --page-number 1 --page-size 10 --threat-level 5,4 --lang zh --user-agent AlibabaCloud-Agent-Skills/alibabacloud-sas-incident-manage/{session-id} --read-timeout 60 --connect-timeout 10

# Singapore region
aliyun cloud-siem list-incidents --api-version 2024-12-12 --region ap-southeast-1 --page-number 1 --page-size 10 --lang zh --user-agent AlibabaCloud-Agent-Skills/alibabacloud-sas-incident-manage/{session-id} --read-timeout 60 --connect-timeout 10
```

#### ❌ INCORRECT
```bash
# Wrong: Missing --page-number (required!)
aliyun cloud-siem list-incidents --api-version 2024-12-12 --region cn-shanghai --lang zh

# Wrong: Missing --api-version (defaults to 2022-06-16!)
aliyun cloud-siem list-incidents --region cn-shanghai --page-number 1 --lang zh

# Wrong: Using a different/forbidden API — NEVER use DescribeCloudSiemEvents
# (use list-incidents instead)

# Wrong: Using wrong product — `aliyun sas ...` is the wrong product, use `aliyun cloud-siem`
```

---

### 2. get-incident (API: GetIncident, Version: 2024-12-12)

#### ✅ CORRECT
```bash
# Get incident by UUID (32-char hex string)
aliyun cloud-siem get-incident --api-version 2024-12-12 --region cn-shanghai --incident-uuid b6515eb76b73cd4995a902b6df5a766b --lang zh --user-agent AlibabaCloud-Agent-Skills/alibabacloud-sas-incident-manage/{session-id} --read-timeout 60 --connect-timeout 10
```

**UUID Format**: 32-character hexadecimal string (no dashes)

#### ❌ INCORRECT
```bash
# Wrong: UUID with dashes
aliyun cloud-siem get-incident --api-version 2024-12-12 --region cn-shanghai --incident-uuid b6515eb7-6b73-cd49-95a9-02b6df5a766b --lang zh

# Wrong: Missing --api-version
aliyun cloud-siem get-incident --region cn-shanghai --incident-uuid xxx --lang zh

references/cli-installation-guide.md

# Aliyun CLI Installation & Configuration Guide

Complete guide for installing and configuring Aliyun CLI.

> **Aliyun CLI 3.3.1+**: Supports installing and using all published Alibaba Cloud product plugins. Make sure to upgrade to 3.3.1 or later for full plugin ecosystem coverage.

## Installation

> **No root required**: The binary install steps below place `aliyun` in the
> user-level directory `~/.local/bin`, so no elevated privileges are needed.
> Ensure that directory is on your `PATH` (add once to `~/.bashrc` or `~/.zshrc` if missing):
> ```bash
> export PATH="$HOME/.local/bin:$PATH"
> ```
> Prefer a package manager (Homebrew on macOS) when available.

### macOS

**Using Homebrew (Recommended)**
```bash
brew install aliyun-cli
# Upgrade to latest
brew upgrade aliyun-cli

# Verify version (>= 3.3.1)
aliyun version
```

**Using Binary**
```bash
# Download
wget https://aliyuncli.alicdn.com/aliyun-cli-macosx-latest-amd64.tgz

# Extract
tar -xzf aliyun-cli-macosx-latest-amd64.tgz

# Move to PATH
mkdir -p "$HOME/.local/bin" && mv aliyun "$HOME/.local/bin/"

# Verify
aliyun version
```

### Linux

**Debian/Ubuntu**
```bash
# Download
wget https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-amd64.tgz

# Extract and install
tar -xzf aliyun-cli-linux-latest-amd64.tgz
mkdir -p "$HOME/.local/bin" && mv aliyun "$HOME/.local/bin/"

# Verify
aliyun version
```

**CentOS/RHEL**
```bash
# Download
wget https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-amd64.tgz

# Extract and install
tar -xzf aliyun-cli-linux-latest-amd64.tgz
mkdir -p "$HOME/.local/bin" && mv aliyun "$HOME/.local/bin/"

# Verify
aliyun version
```

**ARM64 Architecture**
```bash
# Download ARM64 version
wget https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-arm64.tgz

# Extract and install
tar -xzf aliyun-cli-linux-latest-arm64.tgz
mkdir -p "$HOME/.local/bin" && mv aliyun "$HOME/.local/bin/"
```

### Windows

**Using Binary**
1. Download from: https://aliyuncli.alicdn.com/aliyun-cli-windows-latest-amd64.zip
2. Extract the ZIP file
3. Add the directory to your PATH environment variable
4. Open new Command Prompt or PowerShell
5. Verify: `aliyun version`

**Using PowerShell**
```powershell
# Download
Invoke-WebRequest -Uri "https://aliyuncli.alicdn.com/aliyun-cli-windows-latest-amd64.zip" -OutFile "aliyun-cli.zip"

# Extract
Expand-Archive -Path aliyun-cli.zip -DestinationPath C:\aliyun-cli

# Add to PATH (requires admin privileges)
$env:Path += ";C:\aliyun-cli"
[Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::Machine)

# Verify
aliyun version
```

## Configuration

### Quick Start

```bash
aliyun configure set \
  --mode AK \
  --access-key-id <your-access-key-id> \
  --access-key-secret <your-access-key-secret> \
  --region cn-hangzhou
```

All `aliyun configure` commands support non-interactive flags, which is the recommended approach —
it works in scripts, CI/CD pipelines, and agent-driven automation without hanging on stdin prompts.

**

references/ram-policies.md

# RAM Policies - Cloud Security Center Incident Management

This document details the RAM permissions required for the Cloud SIEM incident management skill.

## Required Permissions

- `yundun-sas:ListIncidents` — Query security incident list
- `yundun-sas:GetIncident` — Get incident details
- `yundun-sas:DescribeEventCountByThreatLevel` — Query event count by threat level

## Minimum Permission Policy (Recommended)

```json
{
  "Version": "1",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "yundun-sas:ListIncidents",
        "yundun-sas:GetIncident",
        "yundun-sas:DescribeEventCountByThreatLevel"
      ],
      "Resource": "*"
    }
  ]
}
```

## Permission Request Steps

### Via RAM Console

1. Log in to [RAM Console](https://ram.console.aliyun.com/)
2. Navigate to **Permission Management** > **Policies**
3. Click **Create Policy**
4. Select **Script** mode, enter policy name (e.g., `CloudSIEMIncidentReadOnly`)
5. Paste the minimum permission policy JSON above
6. Click **OK** to create
7. Navigate to **Identities** > **Users**
8. Select the target user, click **Add Permissions**
9. Select the newly created policy and authorize

## Permission Verification

```bash
# Test ListIncidents permission
python3 scripts/siem_client.py list-incidents --size 1

# Expected: Returns JSON with RequestId and Incidents array
# If permission error: Returns Forbidden.RAM error
```

## Common Errors

### Error: Forbidden.RAM

```json
{
  "Code": "Forbidden.RAM",
  "Message": "User not authorized to operate on the specified resource."
}
```

**Resolution**: User lacks required RAM permissions. Follow the permission request steps above.

### Error: InvalidAccessKeyId.NotFound

```json
{
  "Code": "InvalidAccessKeyId.NotFound",
  "Message": "Specified access key is not found."
}
```

**Resolution**: AccessKey is invalid or disabled. Check credential configuration.

### Error: SignatureDoesNotMatch

```json
{
  "Code": "SignatureDoesNotMatch",
  "Message": "The specified signature is invalid."
}
```

**Resolution**: AccessKeySecret is incorrect. Verify credentials.

## Security Best Practices

1. **Least Privilege**: Grant only the minimum permissions needed
2. **Use RAM Users**: Never use root account AccessKeys
3. **Regular Rotation**: Rotate AccessKeys every 90 days
4. **Permission Audit**: Regularly audit and remove unused permissions
5. **STS Tokens**: Use temporary credentials (STS) when possible

## References

- [RAM Policy Syntax](https://help.aliyun.com/document_detail/28664.html)
- [Cloud Security Center API Permissions](https://help.aliyun.com/document_detail/28674.html)
- [AccessKey Management](https://ram.console.aliyun.com/manage/ak)

Sponsored

Ads related to Alibabacloud Sas Incident Manage and adjacent AI workflows.