Back to skill

Security audit

Dialog Discovery

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because it reports unencrypted transmission of credentials and dialogue content, privacy risks in handling conversations, and configuration that accepts plaintext API keys.

Consider the suspicious verdict before installing. The reported concerns include unencrypted transmission of credentials and dialogue content, raw conversation handling without clear privacy safeguards, and plaintext API-key configuration. The scan covered all 17 listed components but was marked partial because a referenced local path was missing, so the evidence is incomplete.

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 (1)

T09 · Insecure Skill Coding Practices

Warning
Location
config/llm.yaml
Finding

Default LLM endpoints transmit credentials and dialogue content without transport encryption

Content
View full analysis

Impact

A network-path attacker can obtain a reusable service credential, read submitted dialogue content, and alter requests or responses. Any sensitive information present in the sampled dialogues is exposed along with the request.

Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (9)

Tainted flow: 'url' from os.environ.get (line 55, credential/environment) → requests.get (network output)

Critical
Category
Data Flow
Confidence
90% confidence
Finding

Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.

Content

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

python
# 优先使用 job_id 查询指定任务(GET请求)
    if job_id:
        resp = requests.get(url, params={"jobId": job_id}, timeout=30)
    else:
        # 无 job_id 时,GET请求获取最新结果
        resp = requests.get(url, timeout=30)

Tainted flow: 'url' from os.environ.get (line 55, credential/environment) → requests.get (network output)

Critical
Category
Data Flow
Confidence
90% confidence
Finding

Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.

Content

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

python
resp = requests.get(url, params={"jobId": job_id}, timeout=30)
    else:
        # 无 job_id 时,GET请求获取最新结果
        resp = requests.get(url, timeout=30)
    
    return resp.json()

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/llm_client.py (reported line 35)May include surrounding context.

python
CONFIG_PATH = SKILL_DIR / "config" / "llm.yaml"
DEFAULT_MODEL_ENV = "PE_LLM_DEFAULT_MODEL"

# ── 自动加载 .env ──
def _load_dotenv():
    """从项目根目录的 .env 文件加载环境变量(不覆盖已有值)"""
    dotenv_path = SKILL_DIR / ".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/llm_client.py (reported line 37)May include surrounding context.

python
# ── 自动加载 .env ──
def _load_dotenv():
    """从项目根目录的 .env 文件加载环境变量(不覆盖已有值)"""
    dotenv_path = SKILL_DIR / ".env"
    if not dotenv_path.exists():
        return

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/llm_client.py (reported line 38)May include surrounding context.

python
# ── 自动加载 .env ──
def _load_dotenv():
    """从项目根目录的 .env 文件加载环境变量(不覆盖已有值)"""
    dotenv_path = SKILL_DIR / ".env"
    if not dotenv_path.exists():
        return
    for line in dotenv_path.read_text().splitlines():

Raw conversation evidence is persisted in a shared learning library without a privacy warning.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The documented workflow persists original conversation evidence in a learning library reused by another skill without specifying redaction, retention, or access restrictions. Loan and collection conversations can contain sensitive personal and financial information, so this creates a privacy exposure through subsequent reuse or access; the text does not establish actual unauthorized disclosure.

Content

No source excerpt is available for this finding.

Default LLM extraction processes raw customer conversations without a privacy warning.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

The playbook defaults to LLM extraction from original customer conversations without requiring redaction or approval of the processing destination. Financial-call transcripts may contain sensitive information, making default processing a privacy risk if the selected model service is not authorized for that data; this source alone does not establish where the model is hosted.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/discover_dialogs.py (reported line 33)May include surrounding context.

python
print("\n" + "=" * 60)
    print(step_name)
    print("=" * 60)
    result = subprocess.run(cmd, capture_output=False)
    if result.returncode != 0:
        raise RuntimeError(f"步骤失败: {step_name}")

The module prohibits hardcoded API keys, but configuration loading explicitly accepts them.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

Despite declaring that API keys must not be hardcoded, the loader accepts plaintext keys from the YAML configuration and the error message recommends that approach. This enables credentials to enter ordinary project configuration and potentially version control or shared artifacts, although no actual embedded key is shown.

Content

No source excerpt is available for this finding.