Xpersona
A

Alibabacloud Sas Openclaw Security

CLAWHUB · Unverified

Perform security operations on OpenClaw environments by calling Alibaba Cloud Security Center (SAS) and ECS APIs via the aliyun CLI. Supports asset queries,...

62
Rank
84
Safety
954
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 954 downloads reported by the source. Last updated 10/12/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: medium.

clawhub skill install s173swjet2yrebzqrp6hjkvmy583mxef:alibabacloud-sas-openclaw-security
  1. Install using `clawhub skill install s173swjet2yrebzqrp6hjkvmy583mxef:alibabacloud-sas-openclaw-security` 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-openclaw-security before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-sdk-team-alibabacloud-sas-openclaw-security/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

53,517 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: alibabacloud-sas-openclaw-security
description: Perform security operations on OpenClaw environments by calling Alibaba Cloud Security Center (SAS) and ECS APIs via the aliyun CLI. Supports asset queries, vulnerability detection, baseline checks, alert analysis, daily security report generation, and Cloud Assistant command execution. Use this skill when users need to query OpenClaw security status, handle security alerts, check vulnerability risks, execute emergency commands, or generate security reports.
---

# OpenClaw Security Operations

Perform comprehensive security operations on the OpenClaw environment by calling Alibaba Cloud Security Center (SAS) and ECS APIs via the aliyun CLI.

## Workflow

Execute security operations in the following order:

1. **Query Instances**: Understand the OpenClaw deployment (SCA component query)
2. **Check Security**: Three-dimensional check — vulnerabilities, baselines, alerts
3. **Deep Dive**: Correlation analysis for identified risks
4. **Remediate**: Handle risks with reference to the remediation guide (guidance only)
5. **Recommend**: Recommend Alibaba Cloud security products based on risks
6. **Daily Report**: Generate a security daily report summary

For the detailed workflow, see [references/security_workflow.md](references/security_workflow.md).

## Prerequisites

All API calls are made through the **aliyun CLI**. Complete the following steps before use:

**Pre-check: Aliyun CLI >= 3.3.3 required**
> Run `aliyun version` to verify >= 3.3.3. If not installed or version too low,
> run `curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash` to update.

**Pre-check: Aliyun CLI plugin update required**
> [MUST] run `aliyun configure set --auto-plugin-install true` to enable automatic plugin installation.
> [MUST] run `aliyun plugin update` to ensure that any existing plugins are always up-to-date.

**[MUST] CLI User-Agent** — Every `aliyun` CLI command invocation must include:
`--user-agent AlibabaCloud-Agent-Skills/alibabacloud-sas-openclaw-security`

### 1. Confirm aliyun CLI Is Installed

Run the aliyun command to check installation status:

```bash
aliyun version
```

### 2. Check Credential Configuration

```bash
aliyun sts get-caller-identity
```

If not yet configured, run `aliyun configure` and follow the prompts. Credentials are stored in `~/.aliyun/config.json`.

> Do not hard-code AK/SK in scripts or environment variables. Manage credentials uniformly via `aliyun configure`.
> Never output credentials in plaintext under any circumstances, including access_key_id and access_key_secret.

### 3. Note on region-id Handling

When using Security Center (SAS) and Security Guardrail (AISC) features, only two regions are supported: `cn-shanghai` (Mainland China) and `ap-southeast-1` (outside Mainland China).

When using Cloud Assistant (ECS) features, the region-id is directly tied to the ECS instance region. Use `query_asset_detail` to look up the instance region-id by Security Center UUID

_meta.json

{
  "ownerId": "kn74p5w8ywv6prh40g0s82gmqh83nw54",
  "slug": "alibabacloud-sas-openclaw-security",
  "version": "0.0.2",
  "publishedAt": 1777028797981
}

references/ram-policies.md

# RAM Permission Policy Reference

This Skill calls Alibaba Cloud Security Center (SAS), Elastic Compute Service (ECS), and AI Security Center (AISC) via the aliyun CLI, operating in the AIOps domain. The running account (RAM user or RAM role) must be granted the following minimum permissions.

## Required RAM Actions

### Security Center (SAS)

| Action | Caller | Purpose |
|--------|--------|---------|
| `yundun-sas:DescribePropertyScaDetail` | `sas_client` | Query SCA component instance list |
| `yundun-sas:DescribeVulList` | `sas_client` | Query vulnerability list |
| `yundun-sas:ModifyPushAllTask` | `sas_client` | Push vulnerability and baseline check tasks |
| `yundun-sas:DescribeCheckWarningSummary` | `sas_client` | Query baseline check summary |
| `yundun-sas:DescribeCheckWarnings` | `sas_client` | Query baseline check details |
| `yundun-sas:DescribeSuspEvents` | `sas_client` | Query alert events |
| `yundun-sas:GetAssetDetailByUuid` | `sas_client` | Query asset details by UUID |

### Elastic Compute Service (ECS)

| Action | Caller | Purpose |
|--------|--------|---------|
| `ecs:CreateCommand` | `ecs_client` | Create a Cloud Assistant command |
| `ecs:RunCommand` | `ecs_client` | Dispatch a command via Cloud Assistant |
| `ecs:DescribeInvocationResults` | `ecs_client` | Query Cloud Assistant command execution results |

### AI Security Center (AISC)

| Action | Caller | Purpose |
|--------|--------|---------|
| `aisc:GetAIAgentPluginKey` | `aisc_client` | Retrieve the AI Security Assistant installation key |


## Authorization Notes

- **Read-only operations** (`Describe*`, `Get*`): Do not modify any resources. Low risk; can be opened to `Resource: "*"` as needed.
- **Write operations** (`ModifyPushAllTask`, `ecs:RunCommand`): Trigger task dispatching or execute commands on remote machines. It is recommended to restrict the ECS Resource to a specific instance ARN:
  ```
  acs:ecs:<region>:<account-id>:instance/<instance-id>
  ```

## Reference Documentation

- [Security Center RAM Authentication](https://help.aliyun.com/zh/security-center/developer-reference/api-authentication-rules)
- [ECS RAM Authentication](https://help.aliyun.com/zh/ecs/developer-reference/authentication-rules-for-ecs-api)
- [RAM Custom Policies](https://help.aliyun.com/zh/ram/user-guide/create-a-custom-policy)

references/remediation_guide.md

# Remediation, Hardening, and Product Recommendation Guide

Security remediation and hardening guidance for the OpenClaw environment.

> Disclaimer: All operations performed on target machines described in this guide are executed via Cloud Assistant.
>
> Before executing any command via Cloud Assistant, the following principles must be followed:
> 1. Clearly inform the user of the full command content to be executed.
> 2. Require the user to explicitly confirm (reply with agreement) before executing the command.
> 3. If the user has not confirmed or the command is high-risk, execution is prohibited.
> Notes:
> 1. The region-id for Cloud Assistant commands differs from that of Security Center and must match the target machine instance location.
> 2. Be aware of command escaping issues, e.g., `$()` must be written as `\$()`.

---

## 1. Isolate Malicious Skills

When a malicious or suspicious Skill is detected in OpenClaw:

### Investigation Steps

1. **Confirm alert details**: View the alert reason via `check_openclaw_alerts.py`
2. **Locate the Skill file**:
   ```bash
   # View installed Skills in OpenClaw via Cloud Assistant
   python -m scripts.run_cloud_assistant_command \
       --instance-ids <instance-id> \
       --command "ls -la ~/.openclaw/skills/ && openclaw skills list"
   ```

### Isolation Steps

1. **Isolate the malicious Skill (must be confirmed by the user before execution)**:
   ```bash
   python -m scripts.run_cloud_assistant_command \
       --instance-ids <instance-id> \
       --command "mv ~/.openclaw/skills/<skill-name> /tmp/<skill-name>"
   ```

### Preventive Measures

- Only install Skills from trusted sources
- Regularly audit the list of installed Skills
- Enable Skill sandbox isolation (if available)

---

## 2. Fix Gateway Public Network Exposure

### Investigation Steps

1. Confirm the Gateway public network exposure risk via `check_openclaw_baseline.py` or alert information
2. Check the Gateway configuration:
   ```bash
   python -m scripts.run_cloud_assistant_command \
       --instance-ids <instance-id> \
       --command "cat ~/.openclaw/openclaw.json | python3 -m json.tool"
   ```

### Remediation Steps

1. **Disable Gateway public network listening and restart Gateway via Cloud Assistant**:
   ```bash
   python -m scripts.run_cloud_assistant_command \
       --instance-ids <instance-id> \
       --command "openclaw config set gateway.bind loopback"
   ```

   ```bash
   python -m scripts.run_cloud_assistant_command \
       --instance-ids <instance-id> \
       --command "XDG_RUNTIME_DIR=/run/user/\$(id -u) DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/\$(id -u)/bus systemctl --user restart openclaw-gateway.service"
   ```

### Public Network Restriction Recommendations

- Bind the Gateway to the loopback address only (`loopback`)
- Use security groups to allow access only from authorized management IP ranges
- Access the management interface via VPN or bastion host
- Regularly verify listening addresses and e

references/security_workflow.md

# OpenClaw Security Operations Workflow

The complete 7-step OpenClaw security operations workflow.

---

## Workflow Overview

```
Step 1: Query Instances → Step 2: Check Security → Step 3: Deep Dive
         ↓                        ↓                       ↓
    Asset Inventory           Risk Overview          Detailed Analysis
                                                           ↓
Step 7: Daily Report ← Step 6: Recommend ←        Step 4: Remediate
                                                           ↓
                                                   Step 5: Security Guardrail
```

---

## Step 1: Query OpenClaw Instances

**Goal**: Understand all OpenClaw deployments in the environment.

```bash
python -m scripts.query_openclaw_instances \
    --name-pattern openclaw --biz sca_ai
```

**Key focus areas**:
- Number and distribution of instances
- Version numbers of each instance (are there outdated versions?)
- Whether deployment paths are standardized
- Collect the UUID list for filtering in subsequent steps

**Output**: `output/openclaw_instances.json` + `.md`

---

## Step 2: Security Checks (Three Dimensions)

### 2.1 Vulnerability Check

```bash
python -m scripts.check_openclaw_vulns \
    --type emg --dealed n
```

Key focus areas:
- `emg` (emergency vulnerabilities): Usually high severity, must be addressed first
- `sca` (SCA vulnerabilities): Component-level vulnerabilities
- Check vulnerabilities with `Necessity=asap`

### 2.2 Baseline Check

```bash
python -m scripts.check_openclaw_baseline \
    --risk-id 320
```

Key focus areas:
- Weak password risks
- Insecure configuration items
- Unauthorized access risks
- OpenClaw listening on 0.0.0.0

### 2.3 Alert Check

```bash
python -m scripts.check_openclaw_alerts \
    --dealed N
```

Key focus areas:
- `serious` level alerts (handle urgently)
- Abnormal processes, abnormal logins
- Malicious Skills

---

## Step 3: Deep Analysis

Based on issues found in Step 2, perform targeted in-depth analysis.

### Query by Specific Host

```bash
# Query vulnerabilities for a specific host
python -m scripts.check_openclaw_vulns \
    --uuids <UUID> --type emg

# Query alerts for a specific host
python -m scripts.check_openclaw_alerts \
    --uuids <UUID>
```

### Correlation Analysis Approach

1. **Vulnerability → Alert**: A host with unpatched vulnerabilities + abnormal alerts = possible exploitation
2. **Baseline → Vulnerability**: Weak password + public exposure = high risk
3. **Alert → Instance**: What OpenClaw components are running on the alerted host

---

## Step 4: Remediation and Hardening

Execute remediation based on the analysis results. Refer to `remediation_guide.md`.

### Priority Ordering

1. **P0 Critical**: `serious` level alerts + emergency vulnerabilities
2. **P1 High**: Baseline non-compliance (weak passwords, unauthorized access)
3. **P2 Medium**: Other unpatched vulnerabilities
4. **P3 Low**: Informational alerts

### Remediation Methods

- Vulnerability remedi

Sponsored

Ads related to Alibabacloud Sas Openclaw Security and adjacent AI workflows.