Back to skill

Security audit

eKYC Suite Face Compare

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this face comparison skill benign because the reported photo and environment data flows are treated as aligned with its purpose, though external transmission and undeclared capabilities merit care.

The verdict is benign with medium confidence, not a guarantee of zero risk. Before installing, consider whether you are comfortable sending the selected photos and an environment value to an external service, and note that the skill's tool scope is not declared. The AIG scan completed with no findings, but Skillspector reported an exit status error alongside its findings, so its output warrants caution.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (4)

Tainted flow: 'headers' from os.environ.get (line 48, credential/environment) → requests.post (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/face_compare.py (reported line 66)May include surrounding context.

python
"x-ekyc-install-id": os.environ.get("EKYC_INSTALL_ID"),
    }
    headers.update({key: value for key, value in optional.items() if value})
    response = requests.post(
        f"{endpoint}/api/v1/tools/face_compare",
        json={
            "photo1": media_input(photo1),

Tainted flow: 'media_input()' from pathlib.Path.read_bytes (line 40, file read) → requests.post (network output)

High
Category
Data Flow
Confidence
80% confidence
Finding

File contents flow to a network sink. This may indicate data exfiltration of sensitive files.

Content

Scanner excerpt · scripts/face_compare.py (reported line 66)May include surrounding context.

python
"x-ekyc-install-id": os.environ.get("EKYC_INSTALL_ID"),
    }
    headers.update({key: value for key, value in optional.items() if value})
    response = requests.post(
        f"{endpoint}/api/v1/tools/face_compare",
        json={
            "photo1": media_input(photo1),

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

External Transmission

Medium
Category
Data Exfiltration
Confidence
80% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/face_compare.py (reported line 66)May include surrounding context.

python
"x-ekyc-install-id": os.environ.get("EKYC_INSTALL_ID"),
    }
    headers.update({key: value for key, value in optional.items() if value})
    response = requests.post(
        f"{endpoint}/api/v1/tools/face_compare",
        json={
            "photo1": media_input(photo1),