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.pyandmanager_api_client.py) to execute administrative and diagnostic queries. - The scripts utilize
subprocess.runto call the vendor-providedCryptoAPIbinary 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 -Forkill -2, theSKILL.mdinstructions 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-passwordflow 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_infofrom alarm data which could theoretically be manipulated. - Ingestion points: The
additional_infoparameter defined inSKILL.mdand 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
bashand perform network requests via the Python clients. - Sanitization: The Python clients implement sanitization by using
urllib.parse.quotefor URL path parameters andjson.dumpsfor request bodies, significantly mitigating the risk of parameter pollution or instruction leakage into the API backend.
Audit Metadata