huawei-cloud-mrs-host-alarm-diagnose

Pass

Audited by Gen Agent Trust Hub on Nov 18, 2026

Risk Level: SAFECOMMAND_EXECUTIONCREDENTIALS_UNSAFEINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill uses custom Python scripts (lakewatch_api_client.py and manager_api_client.py) to execute administrative and diagnostic queries.
  • The scripts utilize subprocess.run to call the vendor-provided CryptoAPI binary for password encryption/decryption, which is standard practice in the target EulerOS environment.
  • The diagnostic knowledge base (e.g., alarm_manager/12001.md) contains shell commands for port testing and service status checks (e.g., systemctl status, nc -zv).
  • While the documentation includes 'Repair Suggestions' with commands like iptables -F or kill -2, the SKILL.md instructions explicitly restrict the agent from executing these without user confirmation, ensuring human-in-the-loop oversight for state-changing operations.
  • [CREDENTIALS_UNSAFE]: The skill handles authentication for LakeWatch and MRS Manager APIs using a secure approach.
  • It utilizes an interactive --encrypt-password flow to prevent plaintext passwords from appearing in command history or process logs.
  • Encrypted credentials are stored in YAML configurations and decrypted at runtime using a local .aes_key (Windows) or the system's security component (Linux).
  • Local tokens are cached in temporary directories (/tmp/lakewatch_token) with owner-only permissions enforced on Linux (chmod 700).
  • [INDIRECT_PROMPT_INJECTION]: The skill exhibits a potential surface for indirect prompt injection as it ingests additional_info from alarm data which could theoretically be manipulated.
  • Ingestion points: The additional_info parameter defined in SKILL.md and processed by the diagnostic workflow.
  • Boundary markers: Explicit delimiters for untrusted input are absent in the markdown templates.
  • Capability inventory: The agent has the capability to run bash and perform network requests via the Python clients.
  • Sanitization: The Python clients implement sanitization by using urllib.parse.quote for URL path parameters and json.dumps for request bodies, significantly mitigating the risk of parameter pollution or instruction leakage into the API backend.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 18, 2026, 04:04 AM