Back to skill

Security audit

Retrieve overseas corporate employee records and internal staff rosters via targeted company ID lookup queries. Pull employee names, job titles, senioritylevels and department profiles from global enterprise databases. Recruiters, sales teams and B2B lead generation specialists streamline contact enrichment andjob position data validation workflows. Streamline talent mapping, competitor organizational chart analysis and decision-maker targeting for lead qualification.Quickly pinpoint procurement and technical core stakeholders to streamline headhunting recruitment and B2B sales lead development.

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because scanners report credential exposure and handling concerns, plus billing and diagnostic-reporting functions beyond its stated employee lookup purpose.

Consider avoiding installation until the credential-printing instruction is removed and credential storage is secured. Also review whether you want a lookup skill to include billing orders, account administration, diagnostic reporting, and update checks. The scan was marked partial because one local reference could not be resolved, so the available evidence is incomplete; it does not establish malicious intent.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (26)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
100% confidence
Finding

Authentication is legitimate, but the documented command prints the entire credential file instead of checking whether the required key exists. Following it can expose the API key and any other stored secrets to agent tool output, transcripts, and logs, enabling unauthorized API use and charges.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied chunk contains no company-ID lookup or employee-profile retrieval. API-key creation and local credential storage can reasonably support the declared service and are not independently treated as mismatches. However, the script also exposes account and billing administration, particularly recharge-order creation, that is not described by the employee-search purpose. The finding is limited to this chunk; it does not establish what other skill files implement.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The supplied chunk implements error-report submission rather than employee-profile retrieval or decision-maker analysis. Although error handling can support the declared functionality, this code exposes a standalone reporting operation that transmits supplied context and request metadata; it is not merely local exception handling within an employee lookup. This reporting capability is absent from the description. The chunk does not establish malicious intent, automatic collection of sensitive information, or the behavior of other skill components.

Content

No source excerpt is available for this finding.

Credential Access

High
Category
Privilege Escalation
Confidence
98% confidence
Finding

The credential-access section explicitly demonstrates printing the complete local environment file. Unlike loading a key internally for authentication, this unnecessarily discloses secrets into the assistant's execution output and potentially retained transcripts.

Content

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

This skill requires an API key. The API key is stored in the ~/.upkuajing/.env file:

bash
cat ~/.upkuajing/.env

Example file content:

text

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

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

md
### **API Key Not Set**
First check if the `~/.upkuajing/.env` file has UPKUAJING_API_KEY;
If UPKUAJING_API_KEY is not set, prompt the user to choose:
1. User has one: User provides it (manually add to ~/.upkuajing/.env file)
2. User doesn't have one: You can apply using the interface (`auth.py --new_key`), the new key will be automatically saved to ~/.upkuajing/.env
Wait for user selection;

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

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

md
First check if the `~/.upkuajing/.env` file has UPKUAJING_API_KEY;
If UPKUAJING_API_KEY is not set, prompt the user to choose:
1. User has one: User provides it (manually add to ~/.upkuajing/.env file)
2. User doesn't have one: You can apply using the interface (`auth.py --new_key`), the new key will be automatically saved to ~/.upkuajing/.env
Wait for user selection;

### **Account Top-up**

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · scripts/auth.py (reported line 21)May include surrounding context.

python
"""
    申请新的 API 密钥。
    """
    # 检查是否已存在 .env 文件和 API key
    env_file = UPKUAJING_ENV_FILE

    if env_file.exists():

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · scripts/common.py (reported line 80)May include surrounding context.

python
def load_env_file() -> Dict[str, str]:
    """
    从 ~/.upkuajing/.env 文件加载环境变量。

    Returns:
        环境变量字典

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · scripts/auth.py (reported line 25)May include surrounding context.

python
env_file = UPKUAJING_ENV_FILE

    if env_file.exists():
        # 读取现有的 .env 文件
        try:
            with open(env_file, 'r', encoding='utf-8') as f:
                content = f.read()

Credential Access

High
Category
Privilege Escalation
Confidence
90% confidence
Finding

Saving this service's key is legitimate, but the file is created with ordinary open() permissions and its parent directory is not explicitly restricted. With a permissive umask and traversable home directory, other local users could read the API credential and consume paid access or access account-associated data.

Content

Scanner excerpt · scripts/auth.py (reported line 74)May include surrounding context.

python
"envFilePath": str(env_file)
        }

    # 保存到 .env 文件
    try:
        with open(env_file, 'w', encoding='utf-8') as f:
            f.write(f"{API_KEY_ENV}={api_key}\n")

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · scripts/auth.py (reported line 81)May include surrounding context.

python
except IOError as e:
        return {
            "success": False,
            "message": f"API密钥申请成功,但保存到 .env 文件失败:{str(e)}。\n请手动设置环境变量 {API_KEY_ENV}。",
            "envFilePath": str(env_file)
        }

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · scripts/common.py (reported line 19)May include surrounding context.

python
API_BASE_URL = "https://openapi.upkuajing.com"
API_KEY_ENV = "UPKUAJING_API_KEY"
UPKUAJING_DIR = Path.home() / '.upkuajing'
UPKUAJING_ENV_FILE = UPKUAJING_DIR / '.env'
UPKUAJING_LOGS_DIR = UPKUAJING_DIR / 'logs'

# 日志开关

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · scripts/common.py (reported line 102)May include surrounding context.

python
def get_api_key() -> str:
    """
    获取API密钥,优先从环境变量,其次从 ~/.upkuajing/.env 文件。
    """
    # 优先从环境变量获取
    api_key = os.environ.get(API_KEY_ENV)

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · scripts/common.py (reported line 107)May include surrounding context.

python
# 优先从环境变量获取
    api_key = os.environ.get(API_KEY_ENV)

    # 如果环境变量没有,尝试从 ~/.upkuajing/.env 读取
    if not api_key:
        env_vars = load_env_file()
        api_key = env_vars.get(API_KEY_ENV)

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, 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.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
80% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

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

md
### Plan Billing and Balance Fallback

Search, customs and map calls are **plan-first**: scripts automatically send `"planMode": 2`.

- **Plan unavailable** (no valid plan, or quota exhausted): the script stops before executing the request, prints a line starting with `PLAN_UNAVAILABLE ` (single-line JSON) on stdout, and exits with **code 3**. Never retry automatically.
- **Ask the user first**: explain the reason in plain language (no plan / quota exhausted, plus the reset time when known), state that continuing will be charged to the API balance (unit price: `python scripts/auth.py --price_info`), then wait for an explicit answer in a separate message.

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.

Content

Scanner excerpt · scripts/auth.py (reported line 44)May include surrounding context.

python
pass  # 如果读取失败,继续执行

    # 不需要认证申请新密钥
    response = make_request('/agent/auth/create', {}, require_auth=False)

    # 检查是否申请成功
    if response.get('code') != 0:

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.

Content

Scanner excerpt · scripts/auth.py (reported line 44)May include surrounding context.

python
pass  # 如果读取失败,继续执行

    # 不需要认证申请新密钥
    response = make_request('/agent/auth/create', {}, require_auth=False)

    # 检查是否申请成功
    if response.get('code') != 0:

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.

Content

Scanner excerpt · scripts/auth.py (reported line 171)May include surrounding context.

python
"""
    查询各套餐档位的额度上限(POST /agent/plan/config,免鉴权)。
    """
    return make_request('/agent/plan/config', {}, require_auth=False)


def new_rec_order() -> dict:

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.

Content

Scanner excerpt · scripts/auth.py (reported line 171)May include surrounding context.

python
"""
    查询各套餐档位的额度上限(POST /agent/plan/config,免鉴权)。
    """
    return make_request('/agent/plan/config', {}, require_auth=False)


def new_rec_order() -> dict:

The skill can create billing recharge orders, a capability outside its stated employee-profile lookup purpose.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

At L174–L179, new_rec_order() calls /agent/auth/pay/url to create a recharge order and return a payment address; L258–L260 expose this through the CLI. Creating billing orders is not required to retrieve employee profiles or identify decision-makers, and the manifest does not declare billing management. This creates an order, but the shown code does not establish that a payment is completed or funds are charged.

Content

No source excerpt is available for this finding.

The skill submits diagnostic context to a platform reporting endpoint, beyond its declared employee-profile retrieval purpose.

Medium
Category
Excessive Agency
Confidence
91% confidence
Finding

The manifest describes retrieving employee profiles and decision-maker details by company ID. L23–L31 instead assemble skill metadata, require request details and context, and submit the supplied parameters to '/agent/skill/error/report'; this diagnostic reporting operation is not an employee lookup or a necessary step in performing one.

Content

No source excerpt is available for this finding.

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
88% confidence
Finding

The open-ended dependency range allows installations to resolve different, unreviewed releases, making the installed dependency set non-reproducible. This is a supply-chain hardening weakness rather than evidence that any particular installed release is malicious or vulnerable.

Content

Scanner excerpt · requirements.txt (reported line 1)May include surrounding context.

text
httpx>=0.23.0

Unverifiable Dependency: httpx has 2 known advisory(ies) (CVE-2021-41945 (Improper Input Validation in httpx); CVE-2021-41945 (Encode OSS httpx <=1.0.0.beta0 is affected by improper input validation in `http)), but the manifest does not pin a version, so it is unknown whether the installed release is affected

Low
Category
Supply Chain
Confidence
40% confidence
Finding

OSV returned advisories for this package, but its resolved version is unknown. A package-name lookup does not establish whether the installed release is affected by those advisories.

Content

No source excerpt is available for this finding.

The version-check wrapper claims to be non-blocking but performs a synchronous network request.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L129 explicitly describes this operation as non-blocking. However, L147 directly calls check_skill_version, which uses a synchronous httpx.Client with a 10-second timeout at L101–L103, so callers wait for the request rather than continuing independently.

Content

No source excerpt is available for this finding.