huawei-cloud-ecs-vulnerability-auditor
БесплатноЗапускает вложенные скриптыНе проверенAudit Huawei Cloud ECS instances for security vulnerabilities across host OS packages, running services, application dependencies (Java, Python, Node.js, PHP…
от huaweicloudskill353 установки в других каталогахОб этом скилле
Huawei Cloud ECS Vulnerability Auditor & Remediation
Overview
Audit Huawei Cloud ECS instances across host operating systems, active network services, application language runtimes, and container workloads for known and actively exploited vulnerabilities, then execute a confirmation-gated semi-automated remediation chain:
- IAM Authorization — Verify or initialize the
ServiceAgencyForCOCcross-service agency trustingop_svc_coc. - Asset Collection via COC — Remotely execute a safe, read-only Python-based inventory collector on the target ECS instance using Huawei Cloud Cloud Operations Center (COC).
- Multi-Tier Asset Extraction — Symmetrically collect host and container assets focusing on running processes and
$PATHdirectory drill-down:- Host Level: Host OS packages (
dpkg/rpm/apk), listening network services (ss/netstat), active running processes (/procenumeration), full$PATHdirectory drill-down, and application libraries (Java.jarmanifests,pip,npm,php). - Container Level: For running containers (
docker,podman), enters container namespaces viaexecand/proc/<pid>/rootto inspect the internal OS distribution (/etc/os-release), package manager inventories (apk,dpkg,rpm), active running processes (top), container$PATHdirectory drill-down, and embedded Java libraries.
- Host Level: Host OS packages (
- Result Retrieval from COC Logs — Fetch execution output via
COC GetScriptJobBatchand extract the structured inventory between demarcated boundary markers (===ECS_ASSET_INVENTORY_START===/===END===). - Vulnerability & KEV Matching — Cross-reference identified assets against
https://db.gcve.eu/api/(/vulnerability/?product={product}for product CVEs,/kevfor confirmed in-the-wild exploitation, and/epssfor exploit prediction scoring). - Automatic Version Range Matching & CVSS Fallback — Automatically evaluate whether the installed version falls within the CVE's affected version range, extract CVSS scores with graceful fallback policies, and extract official vulnerability disclosure dates.
- Remediation Report Generation — Output prioritized remediation guidance (P0 KEV criticals, package upgrade commands, container base image updates, network security group rules).
- Semi-Automated Remediation — Build a confirmation-gated remediation plan (
build_remediation_plan.py) and drive its execution: pre-remediation EVS snapshot/CBR backup (auto), package upgrade via COC (remediate_packages.sh), container base-image update & recreate (remediate_containers.sh), security-group deny rules for exposed KEV ports (VPC CreateSecurityGroupRule/v3, original rules recorded for rollback), and post-remediation re-scan verification against the baseline (rescan_verify.py). - Security Cleanup — Automatically remove temporary COC scripts and remote scan artifacts.
Tool chain: Huawei Cloud KooCLI (hcloud) + Python 3 + https://db.gcve.eu/api/.
[!IMPORTANT] Safety model — no blind full-auto. Every mutating remediation action (package upgrade, container recreate, security-group rule change) is
confirm_required: truein the generated plan and is executed only after explicit user/agent confirmation (per-action or "confirm all"). Snapshot/backup (FP-4) runs automatically before the first write; re-scan verification (FP-5) is read-only.
Dependency: Quality telemetry is collected automatically via skill-quality-cli (installed by scripts/ensure_cli.sh if absent).
Prerequisites
- KooCLI (
hcloud) authenticated with AK/SK — see CLI Installation Guide - IAM permissions to operate COC, ECS, EVS (snapshots), and VPC (security-group rules) — see IAM Policies
- Target ECS instance ID or Elastic IP (
ACTIVEstate) - Network access to
https://db.gcve.eu/apifrom the auditing environment — see GCVE API Reference - Python 3.8+ for
build_remediation_plan.py/rescan_verify.pylocal analysis - Docker/podman available on the target ECS when container remediation is needed (executed remotely via COC)
skill-quality-cli— ensured bybash scripts/ensure_cli.sh(idempotent, skips if present)- Upgrade: run
skill-quality-cli upgrademanually (no auto-upgrade) - Disable telemetry report: set
SKILL_QUALITY_REPORT=0
- Upgrade: run
Workflow
1. IAM Authorization & Target Resolution
One-time per-account setup. Authorize COC to operate on ECS instances:
- Get domain ID — Call
KeystoneListAuthDomainsand extract the domainid. - Create agency — Call
CreateAgencywith nameServiceAgencyForCOCand trust domainop_svc_coc.- HTTP 200 — New agency created. Record
agency.id. Proceed to step 3. - HTTP 409 — Agency already exists. Skip the entire agency creation and role binding (steps 3–4) and proceed to Step 5 (Target Resolution).
- HTTP 200 — New agency created. Record
Установить huawei-cloud-ecs-vulnerability-auditor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл huawei-cloud-ecs-vulnerability-auditor?
Audit Huawei Cloud ECS instances for security vulnerabilities across host OS packages, running services, application dependencies (Java, Python, Node.js, PHP, Go), and container environments (Docker, containerd, Podman). Collects asset inventories remotely via Cloud Operations Center (COC), matches components against Known Exploited Vulnerabilities (KEVs) via the public db.gcve.eu API, outputs an actionable remediation report, and executes a confirmation-gated semi-automated remediation chain: pre-remediation snapshot/backup, package upgrade, container base-image update & recreate, security-group port blocking, and post-remediation re-scan verification. Triggers include: ECS漏洞扫描, ECS漏洞发现, 主机漏洞扫描, 容器漏洞发现, ECS资产收集, KEV漏洞检测, ecs vulnerability audit, ecs vuln scan, gcve vulnerability auditor, 漏洞自动修复, 一键修复漏洞, 漏洞修复执行, 修复验证复扫, vulnerability remediation, auto fix vulnerability, apply remediation, rescan verification
Как установить скилл huawei-cloud-ecs-vulnerability-auditor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-ecs-vulnerability-auditor запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic