huawei-pentesting

A playbook for penetration testing Huawei Cloud, including its identity, virtual-machine, storage, database, container, function, and logging services.

In plain words
What is it for?
It helps evaluate IAM privilege escalation, ECS takeover, OBS storage, RDS databases, CCE clusters, FunctionGraph, load balancing, logs, and key management through command-line and API tools.
Why use it?
It gives testers a way to assess Huawei Cloud weaknesses such as exposed credentials, accessible instance metadata, excessive permissions, and unsafe storage or container settings.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/wgpsec/aboutsecurity/huawei-pentesting
Any agent
npx skills add wgpsec/AboutSecurity --skill huawei-pentesting
Clone the repo
git clone --depth 1 https://github.com/wgpsec/AboutSecurity

Made for: Claude Code, Codex.

Per session 168 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,360 The whole file, excluding the scripts and references it only reads on demand.
Security scan E 3 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00168 $0.04360
Opus 5 $0.00084 $0.02180
Sonnet 5 $0.00034 $0.00872
Haiku 4.5 $0.00017 $0.00436

Measured 3d ago against content hash d174e57e3b43, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade E, and why

huawei-pentesting scanned grade E with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -s http://169.254.169.254/openstack/latest/meta_data.json | python3 -m json.tool

Cloud metadata endpointhighServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

description: "华为云渗透测试方法论。当目标使用华为云服务、发现 obs.*.myhuaweicloud.com 资产、获取华为云 AK/SK、在 ECS 实例内可访问 169.254.169.254 OpenStack 风格元数据、或需要对华为云 IAM/ECS/OBS/RDS/CCE/FunctionGraph 等服务进行安全评估时使用。覆盖 IAM 提权(OpenStack Keystone)、ECS 接管、OBS 对

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| curl + REST API | RDS / ELB / CCE / FunctionGraph / LTS / KMS | `X-Auth-Token` Header | 系统自带 |
skills/cloud/huawei-pentesting/SKILL.md · 391 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 391 lines · 168 tokens per session scan E d174e57e3b43

Subscribe to this mod's changes

huawei-pentesting is a skill published in the GitHub repository wgpsec/AboutSecurity (1,709 stars, last pushed 3d ago), with no licence file. It adds 168 tokens to every session and 4,360 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it E with 3 findings (downloads and executes remote code, cloud metadata endpoint, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.