Back to skill

Security audit

Validates email addresses by checking format compliance and active-or-inactive status. Ithelps sales teams, recruiters and marketers confirm email authenticity, lower bounce ratesand boost cold-outreach performance. This indispensable tool delivers CRM data cleansing,candidate screening, supplier verification and email-list scrubbing. It works for pre-sendcleanup before bulk foreign-trade email campaigns, recruitment background checks and buyervalidation.

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because scanners report account and billing functions beyond its stated email-validation purpose, including creating recharge orders, and a credential file that may be written without restrictive permissions.

Consider avoiding installation until the extra account, billing, diagnostics, and update-check functions are explained and the API-key file permissions are addressed. If you do install, check the service's data-sharing terms before submitting contact lists, and verify the resolved `httpx` version.

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
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
Findings (22)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied chunk contains no email validation or contact-list cleaning logic. Credential provisioning and local credential storage could reasonably support an email-validation service and are not independently treated as mismatches. However, the exposed account and billing operations—particularly creating recharge orders—extend beyond the declared email-validation purpose. This assessment is limited to the supplied 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
90% confidence
Finding

The supplied module implements a separate maintenance capability, not email validation or contact-list cleaning. Its remote version lookup and persistent update-tracking state are not described by the declared purpose and do not implement the advertised email-processing functionality. It only suggests an upgrade command; it does not download or execute updates. These behaviors occur when its functions are called, not automatically on import.

Content

No source excerpt is available for this finding.

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
### **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: Guide user to apply at [Open Platform](https://developer.upkuajing.com/)
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 · scripts/auth.py (reported line 20)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/auth.py (reported line 24)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
93% confidence
Finding

The code writes an API secret using ordinary file creation without enforcing restrictive directory or file permissions. With a common permissive umask, other local users may be able to read a newly created credential file and use the key to access account data or consume paid API balance.

Content

Scanner excerpt · scripts/auth.py (reported line 73)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 80)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 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/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)

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'

# 日志开关

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.

The email-validation workflow lacks a privacy warning that submitted email addresses are sent to a third-party service.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The workflow sends submitted email addresses to an external validation provider without an explicit personal-data disclosure notice or a requirement to confirm authorization to share them. Although API use is mentioned, users requesting CRM or contact-list cleaning may not understand that entire lists leave their environment; billing consent does not necessarily establish informed data-sharing consent.

Content

No source excerpt is available for this finding.

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 43)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 43)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 170)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 170)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 financial top-up orders, a capability outside its stated email-validation purpose.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

At L173–L178, new_rec_order() calls /agent/auth/pay/url to create a recharge order and obtain a payment URL; L257–L259 exposes this operation through the CLI. Creating billing orders is a separate account-management action, not an obvious requirement of validating email addresses or cleaning contact lists, and the manifest does not declare it. The code does not demonstrate payment execution or an automatic charge.

Content

No source excerpt is available for this finding.

L27–L31 implement platform diagnostic reporting beyond the declared email-validation scope.

Medium
Category
Excessive Agency
Confidence
91% confidence
Finding

The manifest describes email validation and contact-list cleaning, but this function submits caller-provided diagnostic context, request identifiers, request paths, and skill metadata to '/agent/skill/error/report'. This is a separate platform telemetry operation, not an obvious requirement of verifying email addresses, and it is not disclosed in the manifest.

Content

No source excerpt is available for this finding.

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
90% confidence
Finding

The open-ended dependency constraint permits installation of future, unreviewed httpx versions and does not verify artifact hashes. This introduces a supply-chain hardening gap: a compromised eligible release could execute in an environment that handles API credentials and contact data, although no compromised release is demonstrated here.

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 skill implements an undeclared remote software-version check unrelated to email validation.

Low
Category
Excessive Agency
Confidence
94% confidence
Finding

L095–L103 send the installed skill's name to a software-version endpoint rather than performing email validation or contact-list cleansing. The orchestration at L126–L156 also persists version-check state and advertises an upgrade command, adding a software-maintenance capability not justified by the stated email-validation purpose; it does not itself execute the upgrade.

Content

No source excerpt is available for this finding.