← 返回 Skills 市场
chenyujie

华为云异常检测技能

作者 chenyujie · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
35
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install cts-anomaly-check
功能描述
智能检测华为云CTS日志中的异常操作,分析账户欠费及权限问题,提供易懂说明和具体整改建议。
使用说明 (SKILL.md)

华为云异常检查技能

智能检查华为云中的异常操作记录,将技术信息转换为用户可理解的说明。

特性

检查账户欠费状态 - 欠费状态下新建按需计费服务会被拒绝 ✅ 智能区域检测 - 自动检测或接受用户指定区域
用户友好输出 - 技术错误转换为易懂说明
智能状态检测 - 自动检测CTS是否启用
详细建议措施 - 针对不同问题给出具体建议
多维度分析 - 按用户、服务、资源类型统计

快速开始

只需告诉技能:

  • "检查账户是否欠费了"
  • "检查华北四的日志"
  • "看看最近有什么异常操作"

或者直接运行:

python3 scripts/check_cts_anomaly.py \
  --region=cn-north-4 \
  --project-id=05a890974a00269c2fd0c01d4ca90eea

用户友好输出示例

发现异常时

============================================================
异常检查报告
============================================================
检查时间: 2026-06-10 03:00:00
检查区域: cn-north-4
时间范围: 最近 24 小时

检查结果:

⚠️  发现 5 个需要关注的问题:

   • 警告级别操作:2 条
     说明:这些操作部分成功,可能存在配置问题
   • 失败的操作:3 条
     说明:这些操作返回错误,需要检查原因

❌ 失败的操作详情:
   这些操作未能成功执行,需要检查原因:

   1. 删除云服务器
      时间:2026-06-09 10:15:23
      操作人:user1
      问题:权限不足,您没有执行此操作的权限
      建议:请联系管理员为您添加相应的操作权限

   2. 创建访问密钥
      时间:2026-06-09 11:20:45
      操作人:user2
      问题:身份验证失败,请检查访问密钥是否正确或是否已过期
      建议:请检查AK/SK配置,或联系管理员确认访问权限

处理建议:

🟡 中优先级:
   • 分析失败操作的具体原因
   • 检查相关用户的权限配置
   • 确认是否存在配置错误

============================================================

无异常时

============================================================
CTS 异常检查报告
============================================================
检查时间: 2026-06-10 03:00:00
检查区域: cn-north-4
时间范围: 最近 24 小时

检查结果:

✅ 未发现异常操作记录
   账号操作状态正常,未检测到警告或失败的操作

处理建议:

✅ 账号状态良好,建议:
   • 定期检查CTS日志(建议每周一次)
   • 关注敏感操作的执行情况

============================================================

文件结构

cts-anomaly-check/
├── SKILL.md                      # 技能说明
├── scripts/
│   └── check_cts_anomaly.py      # 检查脚本
└── references/
    ├── anomaly-types.md          # 异常类型参考
    └── examples.md               # 使用示例

使用场景

  • 🔒 安全审计:检查异常登录、权限提升、资源删除
  • 🔧 故障排查:查找失败的操作记录
  • 合规检查:验证敏感操作是否有授权
  • 📊 日常巡检:定期检查账号安全状态

输出示例

============================================================
异常检查报告
============================================================
检查时间: 2026-06-09 13:30:00
时间范围: 最近 24 小时

追踪器 [system]: ✅ 已启用

异常统计:
- 正常记录: 150 条
- 警告记录: 3 条
- 事故记录: 0 条
- 失败操作: 2 条

⚠️  敏感操作 (5 条):
  - [2026-06-09 10:15:23] user1 - deleteUser (normal)
  - [2026-06-09 11:20:45] admin - attachRoleToUser (normal)
  ...

建议措施:
- 检查警告级别记录,确认是否有配置问题
- 分析失败操作原因,检查权限配置
============================================================

详细文档

权限要求

需要以下权限策略:

  • cts:trace:list

相关链接

安全使用建议
Install only if you are comfortable granting this skill access to Huawei Cloud audit logs, temporary credential creation, and billing balance data. Use a least-privilege test account first, verify the exact IAM/BSS permissions required, and avoid enabling scheduled runs until the billing check is optional or clearly approved.
能力标签
requires-walletrequires-sensitive-credentials
能力评估
Purpose & Capability
The CTS anomaly-review purpose is coherent, and account arrears checking is mentioned in the docs, but the implementation also uses IAM temporary credential creation and BSS billing balance access beyond the stated CTS-only permission requirement.
Instruction Scope
The skill can be triggered by broad phrases and runs billing and credential steps automatically before querying logs, without a separate opt-in flag or confirmation for financial-account access.
Install Mechanism
The artifact is a normal skill package with markdown references and one Python script; no install-time execution, obfuscation, or hidden installer behavior was found.
Credentials
Reading CTS logs is proportionate for audit analysis, but temporary credential issuance and billing balance access are high-sensitivity cloud/account operations and are under-scoped in the permission disclosure.
Persistence & Privilege
No automatic persistence was found in the script, but examples suggest optional cron scheduling and log redirection, which users should treat carefully because CTS output can contain sensitive operational metadata.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cts-anomaly-check
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cts-anomaly-check 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
初始版本
元数据
Slug cts-anomaly-check
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

华为云异常检测技能 是什么?

智能检测华为云CTS日志中的异常操作,分析账户欠费及权限问题,提供易懂说明和具体整改建议。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 35 次。

如何安装 华为云异常检测技能?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cts-anomaly-check」即可一键安装,无需额外配置。

华为云异常检测技能 是免费的吗?

是的,华为云异常检测技能 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

华为云异常检测技能 支持哪些平台?

华为云异常检测技能 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 华为云异常检测技能?

由 chenyujie(@chenyujie)开发并维护,当前版本 v0.1.0。

💬 留言讨论