alibabacloud-ecs-account-and-service-process

Pass

Audited by Gen Agent Trust Hub on Nov 17, 2026

Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONPROMPT_INJECTION
Full Analysis
  • [PROMPT_INJECTION]: The skill contains logic designed to identify prompt injection markers within untrusted data for triage purposes.
  • The file scripts/axes/invalid_ticket_triage/_constants.py defines PAYLOAD_PATTERNS that search for common jailbreak and injection phrases such as "ignore previous instructions", "system prompt", and "you are now".
  • These regex patterns are used defensively to categorize support tickets and do not function as instructions to the AI agent itself.
  • [INDIRECT_PROMPT_INJECTION]: The invalid-ticket-triage axis represents a theoretical attack surface as it processes untrusted text from customer support tickets.
  • Ingestion points: Ticket titles, content, and dialogues are processed in scripts/axes/invalid_ticket_triage/triage_invalid_ticket.py.
  • Boundary markers: The triage reports use specific labels to clearly differentiate between customer-supplied text and the skill's own findings.
  • Capability inventory: The skill can perform read-only ECS operations, such as querying instance details via DescribeInstances, using identifiers extracted from the ticket data.
  • Sanitization: The script includes a snippet generator that strips non-printable control characters from ticket text to prevent terminal or prompt manipulation attacks.
  • [DYNAMIC_EXECUTION]: The main dispatcher contains internal diagnostic logic that executes Python code dynamically for self-verification.
  • The selftest() function in scripts/account-and-service-process.py executes a hardcoded Python script string (_AXIS_PROBE) using subprocess.run to verify that axis modules are correctly configured.
  • This execution is limited to internal diagnostic data and does not accept or process untrusted user input.
  • [COMMAND_EXECUTION]: The skill extensively uses the subprocess module to interact with the environment via the aliyun CLI.
  • All axes route cloud API calls through a shared transport layer that constructs command arguments as lists, avoiding the risks associated with shell interpolation.
  • A centralized guardrail in scripts/_guardrails.py proactively blocks the execution of any command containing sensitive tokens, such as credential file paths (e.g., ~/.aliyun/config.json) or Alibaba Cloud authentication environment variables.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 17, 2026, 02:02 AM