Back to skill

Security audit

huawei-cloud-obs-website-host

Security checks for vulnerabilities and agentic risk

Overview

The website-hosting workflow is coherent, but its suggested permissions are too broad and some setup commands can expose cloud secrets.

Before use, restrict permissions to the intended bucket and grant DNS access only when requested. Keep access keys and certificate private keys out of recorded commands; use protected credential sources and certificate IDs where possible. Expect verification to access local cloud credentials automatically. Publish only intended website files and confirm the bucket, domain, and DNS target before writes. Live account permissions and downloaded third-party code remain outside this static review.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
references/iam-policies.md
Finding

Minimum IAM policy grants write permissions to all applicable resources

Content
View full analysis

Impact

A principal intended to manage one website gains authority to change website configurations and domain bindings on unrelated buckets within the effective grant scope, potentially disrupting their published sites.

Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (5)

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, network.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

The hcloud configuration command passes credentials as command-line arguments without warning about exposure.

Medium
Category
Output Handling
Confidence
98% confidence
Finding

Substituting real AK/SK values into this command exposes cloud credentials through command-line arguments and potentially shell history, process inspection, or agent execution logs. These credentials authorize cloud operations, so disclosure could permit unauthorized access or changes within their IAM scope; the separate interactive initialization option does not make this example safe.

Content

No source excerpt is available for this finding.

Requires public read access without warning about public exposure of website files.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

The validation rule requires enabling public read access but only explains the availability consequence of leaving it disabled. It does not warn that anyone can access the affected files or advise checking for sensitive content before making them public.

Content

No source excerpt is available for this finding.

The documented optional authenticated SDK check is executed unconditionally and required for verification to pass.

Medium
Category
Excessive Agency
Confidence
98% confidence
Finding

Although the argument help describes the authenticated bucket check as optional, execution automatically reads local credentials, attempts authenticated SDK calls, and requires their success for verification to pass. This unnecessarily extends a public endpoint check into credential access and cloud authentication, and can encourage provisioning credentials for a task that needs none; the shown code does not establish credential exfiltration.

Content

No source excerpt is available for this finding.

Excessive Permissions

Low
Category
Privilege Escalation
Confidence
80% confidence
Finding

Skill requests more permissions than appear necessary for its stated functionality. Review if elevated access is justified.

Content

Scanner excerpt · references/cli-installation-guide.md (reported line 106)May include surrounding context.

md
tar -xzvf obsutil_linux_amd64.tar.gz
cd obsutil_linux_amd64_*
# 3. chmod only sets the executable bit on obsutil for your current user;
#    it does NOT elevate privileges or run anything with sudo/root.
chmod 755 obsutil
# 4. Verify the version
./obsutil version