Back to skill

Security audit

zy-action-platform-en

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent ZY Action Platform client, but it has real review-worthy risks around generic API pass-through controls and command-line credential handling.

Review this before installing. Use a dedicated low-privilege or read-only platform account, avoid giving passwords or bearer tokens as command-line arguments, clear cached tokens with logout when finished, and avoid the generic request pass-through for sensitive or administrative routes until its path canonicalization and URL redaction issues are fixed.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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 (3)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/zy_platform.py:889
Finding

Pass-Through Route Restrictions Can Be Bypassed Using Encoded Path Traversal

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/zy_platform.py:1068
Finding

Passwords and Bearer Tokens Are Accepted Through Process-Visible Command-Line Arguments

Content
View full analysis
--username --password --dry-run python3 scripts/zy_platform.py login --product --username --password ``` ### Technical Analysis Command-line arguments are not an appropriate transport for reusable passwords or bearer tokens. Depending on the operating system and execution environment, arguments may be exposed through: - Process-listing and process-inspection interfaces. - Shell history. - Terminal transcripts and session recording. - Agent tool-call records. - Job runners, wrappers, telemetry, or diagnostic reports. - Error reports containing reconstructed command lines. Although the script protects cached tokens with an OS credential store or a permission-hardened file, those controls do not protect credentials while they are being supplied through `--password` or `--token`. The documented dry-run login command unnecessarily requires the password even though the dry run sends no credentials. This increases exposure without providing a functional security benefit. ### Attack Path 1. A user supplies platform credentials to the Agent. 2. Following the Skill documentation, the Agent launches the script with the password in `--password`, or a bearer token in `--token`. 3. The secret appears in the process argument vector and may also be retained in shell or Agen ...[truncated 964 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Note
Location
scripts/zy_platform.py:966
Finding

Generic Request Audit Records Can Store Sensitive Query Parameters Without Redaction

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (49)

YARA rule 'agent_skill_mcp_tool_poisoning_metadata': MCP/tool metadata poisoning indicators in tool schemas or skill manifests [agent_skills]

High
Category
YARA Match
Confidence
80% confidence
Finding

YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).

Content

Scanner excerpt · SKILL.md (reported line 5)May include surrounding context.

md
---
name: zy-action-platform-en
display_name: ZY Action Platform Assistant
display_name_en: ZY Action Platform Assistant
description: "Connect and operate ZY Action Platform (AI Business Action System): guide verified install & DeepSeek key config, then health-check/login and, across the five products AIP/Foundry/Gotham/Apollo/Swift, run natural-language data queries, list/run automation workflows, query datasets/ontology, search intel, inspect deployments and more. Enforces HTTPS-only remote transport, origin-bound tokens and write confirmations."
description_zh: "连接并操作 ZY Action Platform(AI 商业行动系统):引导本机下载安装与 DeepSeek Key 配置;支持账号登录(令牌与源�

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 32)May include surrounding context.

md
- All platform calls go through the script `scripts/zy_platform.py` (pure Python standard library). Invocation: `python3 scripts/zy_platform.py <command> --prod

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 51)May include surrounding context.

md
- All platform calls go through the script `scripts/zy_platform.py` (pure Python standard library). Invocation: `python3 scripts/zy_platform.py <command> --prod

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 53)May include surrounding context.

md
- All platform calls go through the script `scripts/zy_platform.py` (pure Python standard library). Invocation: `python3 scripts/zy_platform.py <command> --prod

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 76)May include surrounding context.

md
- All platform calls go through the script `scripts/zy_platform.py` (pure Python standard library). Invocation: `python3 scripts/zy_platform.py <command> --prod

Lp1

High
Category
MCP Least Privilege
Confidence
94% confidence
Finding

The client performs outbound HTTP(S) requests to configurable endpoints, yet the static finding indicates network capability is not declared. Undeclared network access is especially sensitive in an agent setting because it can exfiltrate prompts, credentials, or business data to remote systems without matching the permission model.

Content

No source excerpt is available for this finding.

Lp1

High
Category
MCP Least Privilege
Confidence
94% confidence
Finding

The client performs outbound HTTP(S) requests to configurable endpoints, yet the static finding indicates network capability is not declared. Undeclared network access is especially sensitive in an agent setting because it can exfiltrate prompts, credentials, or business data to remote systems without matching the permission model.

Content

No source excerpt is available for this finding.

Lp1

High
Category
MCP Least Privilege
Confidence
94% confidence
Finding

The client performs outbound HTTP(S) requests to configurable endpoints, yet the static finding indicates network capability is not declared. Undeclared network access is especially sensitive in an agent setting because it can exfiltrate prompts, credentials, or business data to remote systems without matching the permission model.

Content

No source excerpt is available for this finding.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/zy_platform.py (reported line 37)May include surrounding context.

python
Authorization, cross-origin never carries it.
  * Before sending credentials: login/--dry-run prints the normalized destination first;
    the real login prints it to stderr as well.
  * Storage: tokens prefer the OS credential store (optional keyring module); otherwise
    fall back to ~/.workbuddy/zy_action_session.json (dir 0700 / file 0600 / atomic
    replacement via temp file / symlinks rejected / ownership verified on POSIX).
    Only the token and binding metadata are stored — no usernames. Expired entries are

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/zy_platform.py (reported line 85)May include surrounding context.

python
Authorization, cross-origin never carries it.
  * Before sending credentials: login/--dry-run prints the normalized destination first;
    the real login prints it to stderr as well.
  * Storage: tokens prefer the OS credential store (optional keyring module); otherwise
    fall back to ~/.workbuddy/zy_action_session.json (dir 0700 / file 0600 / atomic
    replacement via temp file / symlinks rejected / ownership verified on POSIX).
    Only the token and binding metadata are stored — no usernames. Expired entries are

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/zy_platform.py (reported line 87)May include surrounding context.

python
Authorization, cross-origin never carries it.
  * Before sending credentials: login/--dry-run prints the normalized destination first;
    the real login prints it to stderr as well.
  * Storage: tokens prefer the OS credential store (optional keyring module); otherwise
    fall back to ~/.workbuddy/zy_action_session.json (dir 0700 / file 0600 / atomic
    replacement via temp file / symlinks rejected / ownership verified on POSIX).
    Only the token and binding metadata are stored — no usernames. Expired entries are

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/zy_platform.py (reported line 446)May include surrounding context.

python
Authorization, cross-origin never carries it.
  * Before sending credentials: login/--dry-run prints the normalized destination first;
    the real login prints it to stderr as well.
  * Storage: tokens prefer the OS credential store (optional keyring module); otherwise
    fall back to ~/.workbuddy/zy_action_session.json (dir 0700 / file 0600 / atomic
    replacement via temp file / symlinks rejected / ownership verified on POSIX).
    Only the token and binding metadata are stored — no usernames. Expired entries are

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/zy_platform.py (reported line 447)May include surrounding context.

python
Authorization, cross-origin never carries it.
  * Before sending credentials: login/--dry-run prints the normalized destination first;
    the real login prints it to stderr as well.
  * Storage: tokens prefer the OS credential store (optional keyring module); otherwise
    fall back to ~/.workbuddy/zy_action_session.json (dir 0700 / file 0600 / atomic
    replacement via temp file / symlinks rejected / ownership verified on POSIX).
    Only the token and binding metadata are stored — no usernames. Expired entries are

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/zy_platform.py (reported line 450)May include surrounding context.

python
Authorization, cross-origin never carries it.
  * Before sending credentials: login/--dry-run prints the normalized destination first;
    the real login prints it to stderr as well.
  * Storage: tokens prefer the OS credential store (optional keyring module); otherwise
    fall back to ~/.workbuddy/zy_action_session.json (dir 0700 / file 0600 / atomic
    replacement via temp file / symlinks rejected / ownership verified on POSIX).
    Only the token and binding metadata are stored — no usernames. Expired entries are

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/zy_platform.py (reported line 456)May include surrounding context.

python
Authorization, cross-origin never carries it.
  * Before sending credentials: login/--dry-run prints the normalized destination first;
    the real login prints it to stderr as well.
  * Storage: tokens prefer the OS credential store (optional keyring module); otherwise
    fall back to ~/.workbuddy/zy_action_session.json (dir 0700 / file 0600 / atomic
    replacement via temp file / symlinks rejected / ownership verified on POSIX).
    Only the token and binding metadata are stored — no usernames. Expired entries are

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/zy_platform.py (reported line 457)May include surrounding context.

python
Authorization, cross-origin never carries it.
  * Before sending credentials: login/--dry-run prints the normalized destination first;
    the real login prints it to stderr as well.
  * Storage: tokens prefer the OS credential store (optional keyring module); otherwise
    fall back to ~/.workbuddy/zy_action_session.json (dir 0700 / file 0600 / atomic
    replacement via temp file / symlinks rejected / ownership verified on POSIX).
    Only the token and binding metadata are stored — no usernames. Expired entries are

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/zy_platform.py (reported line 460)May include surrounding context.

python
Authorization, cross-origin never carries it.
  * Before sending credentials: login/--dry-run prints the normalized destination first;
    the real login prints it to stderr as well.
  * Storage: tokens prefer the OS credential store (optional keyring module); otherwise
    fall back to ~/.workbuddy/zy_action_session.json (dir 0700 / file 0600 / atomic
    replacement via temp file / symlinks rejected / ownership verified on POSIX).
    Only the token and binding metadata are stored — no usernames. Expired entries are

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/zy_platform.py (reported line 465)May include surrounding context.

python
Authorization, cross-origin never carries it.
  * Before sending credentials: login/--dry-run prints the normalized destination first;
    the real login prints it to stderr as well.
  * Storage: tokens prefer the OS credential store (optional keyring module); otherwise
    fall back to ~/.workbuddy/zy_action_session.json (dir 0700 / file 0600 / atomic
    replacement via temp file / symlinks rejected / ownership verified on POSIX).
    Only the token and binding metadata are stored — no usernames. Expired entries are

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/zy_platform.py (reported line 466)May include surrounding context.

python
Authorization, cross-origin never carries it.
  * Before sending credentials: login/--dry-run prints the normalized destination first;
    the real login prints it to stderr as well.
  * Storage: tokens prefer the OS credential store (optional keyring module); otherwise
    fall back to ~/.workbuddy/zy_action_session.json (dir 0700 / file 0600 / atomic
    replacement via temp file / symlinks rejected / ownership verified on POSIX).
    Only the token and binding metadata are stored — no usernames. Expired entries are

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/zy_platform.py (reported line 469)May include surrounding context.

python
Authorization, cross-origin never carries it.
  * Before sending credentials: login/--dry-run prints the normalized destination first;
    the real login prints it to stderr as well.
  * Storage: tokens prefer the OS credential store (optional keyring module); otherwise
    fall back to ~/.workbuddy/zy_action_session.json (dir 0700 / file 0600 / atomic
    replacement via temp file / symlinks rejected / ownership verified on POSIX).
    Only the token and binding metadata are stored — no usernames. Expired entries are

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/zy_platform.py (reported line 491)May include surrounding context.

python
Authorization, cross-origin never carries it.
  * Before sending credentials: login/--dry-run prints the normalized destination first;
    the real login prints it to stderr as well.
  * Storage: tokens prefer the OS credential store (optional keyring module); otherwise
    fall back to ~/.workbuddy/zy_action_session.json (dir 0700 / file 0600 / atomic
    replacement via temp file / symlinks rejected / ownership verified on POSIX).
    Only the token and binding metadata are stored — no usernames. Expired entries are

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/zy_platform.py (reported line 526)May include surrounding context.

python
Authorization, cross-origin never carries it.
  * Before sending credentials: login/--dry-run prints the normalized destination first;
    the real login prints it to stderr as well.
  * Storage: tokens prefer the OS credential store (optional keyring module); otherwise
    fall back to ~/.workbuddy/zy_action_session.json (dir 0700 / file 0600 / atomic
    replacement via temp file / symlinks rejected / ownership verified on POSIX).
    Only the token and binding metadata are stored — no usernames. Expired entries are

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/zy_platform.py (reported line 531)May include surrounding context.

python
Authorization, cross-origin never carries it.
  * Before sending credentials: login/--dry-run prints the normalized destination first;
    the real login prints it to stderr as well.
  * Storage: tokens prefer the OS credential store (optional keyring module); otherwise
    fall back to ~/.workbuddy/zy_action_session.json (dir 0700 / file 0600 / atomic
    replacement via temp file / symlinks rejected / ownership verified on POSIX).
    Only the token and binding metadata are stored — no usernames. Expired entries are

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/zy_platform.py (reported line 562)May include surrounding context.

python
Authorization, cross-origin never carries it.
  * Before sending credentials: login/--dry-run prints the normalized destination first;
    the real login prints it to stderr as well.
  * Storage: tokens prefer the OS credential store (optional keyring module); otherwise
    fall back to ~/.workbuddy/zy_action_session.json (dir 0700 / file 0600 / atomic
    replacement via temp file / symlinks rejected / ownership verified on POSIX).
    Only the token and binding metadata are stored — no usernames. Expired entries are

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/zy_platform.py (reported line 571)May include surrounding context.

python
Authorization, cross-origin never carries it.
  * Before sending credentials: login/--dry-run prints the normalized destination first;
    the real login prints it to stderr as well.
  * Storage: tokens prefer the OS credential store (optional keyring module); otherwise
    fall back to ~/.workbuddy/zy_action_session.json (dir 0700 / file 0600 / atomic
    replacement via temp file / symlinks rejected / ownership verified on POSIX).
    Only the token and binding metadata are stored — no usernames. Expired entries are