Back to skill

Security audit

eKYC Suite AI Guardian

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed, purpose-aligned KYC liveness client that uploads user-supplied face media to a configured HTTPS backend, with no evidence of hidden execution, persistence, or unrelated data access.

Install only if you operate or trust the configured EKYC_CLOUD_ENDPOINT, have a valid EKYC_CLOUD_API_KEY, and have user authorization and a retention policy for biometric media. Treat outputs as review signals for a human workflow, not as final identity decisions.

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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • 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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (5)

Tainted flow: 'headers' from os.environ.get (line 47, 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/ai_guardian.py (reported line 65)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/{tool}",
        json={"file": media_input(file_input)},
        headers=headers,

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · CHANGELOG.md (reported line 1)May include surrounding context.

md
# Changelog

## 1.0.17 - 2026-08-17

Undeclared Tool Scope

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/ai_guardian.py (reported line 65)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/{tool}",
        json={"file": media_input(file_input)},
        headers=headers,

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

This client transmits biometric media and optional environment-derived identifiers to a remote cloud service, but the code provides no explicit user-facing notice, consent checkpoint, or minimization control at the point of transmission. In a KYC liveness context, the data is highly sensitive, so undisclosed outbound transfer materially increases privacy, compliance, and misuse risk even if the transfer is intentional.

Content

No source excerpt is available for this finding.

Static analysis

Detected: suspicious.potential_exfiltration

Python code base64-encodes a local file and sends it over the network.

Critical
Code
suspicious.potential_exfiltration
Location
scripts/ai_guardian.py:39