Back to skill

Security audit

didit-id-document-verification

Security checks for vulnerabilities and agentic risk

Overview

ClawScan reports a benign verdict with medium confidence: the skill’s reported identity verification purpose aligns with its network requests, while some scanner alerts were judged expected in context.

The scanners report a purpose-aligned verification skill, but installation still involves trusting it with identity document images and an API key for requests to the verification service. Review whether that data sharing and the undeclared tool scope fit your needs. Coverage is incomplete: Skillspector marked reference resolution partial because some local path-like references did not match bundled files, although it reports both bundled components were scanned; the verdict does not establish that the artifact is risk-free.

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
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (8)

Tainted flow: 'api_key' from os.environ.get (line 46, 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/verify_id.py (reported line 66)May include surrounding context.

python
if back_image:
            with open(back_image, "rb") as back_f:
                files["back_image"] = _file_part(back_image, back_f)
                response = requests.post(API_URL, headers={"x-api-key": api_key}, files=files,
                                         data=data, timeout=120)
        else:
            response = requests.post(API_URL, headers={"x-api-key": api_key}, files=files,

Tainted flow: 'api_key' from os.environ.get (line 46, 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/verify_id.py (reported line 69)May include surrounding context.

python
response = requests.post(API_URL, headers={"x-api-key": api_key}, files=files,
                                         data=data, timeout=120)
        else:
            response = requests.post(API_URL, headers={"x-api-key": api_key}, files=files,
                                     data=data, timeout=120)

    if response.status_code != 200:

Anti-Refusal Statement

High
Category
Anti-Refusal
Confidence
80% confidence
Finding

Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.

Content

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

md
| Status | Meaning |
|---|---|
| `"Approved"` | No warning resolved to a decline |
| `"Declined"` | At least one warning has `log_type: "error"` (see `warnings`) |

This endpoint never returns `In Review`. A readable but problematic document still returns HTTP `200` with `Declined`: always check `id_verification.status`, not only the HTTP code.

Anti-Refusal Statement

High
Category
Anti-Refusal
Confidence
80% confidence
Finding

Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.

Content

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

md
| Request parameter (default) | Tags |
|---|---|
| `invalid_mrz_action` (`DECLINE`) | `MRZ_VALIDATION_FAILED` (MRZ check digits or format failed). A missing MRZ raises no warning here |
| `inconsistent_data_action` (`DECLINE`) | `DATA_INCONSISTENT` (front and back disagree), `MRZ_AND_DATA_EXTRACTED_FROM_OCR_NOT_SAME` (visual zone disagrees with the MRZ) |
| `critical_field_occlusion_action` (`DECLINE`) | `CRITICAL_FIELD_OCCLUSION_DETECTED`: an identity number, name, date of birth or expiry date was physically covered. `additional_data.covered_fields` lists them; the matching `*_NOT_DETECTED` warning usually follows |
| `expiration_date_not_detected_action` (`NO_ACTION`) | `EXPIRATION_DATE_NOT_DETECTED` |

Anti-Refusal Statement

High
Category
Anti-Refusal
Confidence
85% confidence
Finding

Skill instructs the agent to never refuse or to always comply. Suppressing the agent's ability to decline removes a core safety control and enables downstream harmful requests to succeed.

Content

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

md
| `expiration_date_not_detected_action` (`NO_ACTION`) | `EXPIRATION_DATE_NOT_DETECTED` |
| `document_or_personal_number_format_mismatch_action` (`NO_ACTION`) | `DOCUMENT_NUMBER_FORMAT_MISMATCH`, `PERSONAL_NUMBER_FORMAT_MISMATCH` (`additional_data` has `expected_format`, `extracted_value`) |

### Informational on this endpoint (never decline)

| Tag | Description |
|---|---|

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, 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
60% 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 · SKILL.md (reported line 110)May include surrounding context.

md
import requests

with open("front.jpg", "rb") as front, open("back.jpg", "rb") as back:
    response = requests.post(
        "https://verification.didit.me/v3/id-verification/",
        headers={"x-api-key": "YOUR_API_KEY"},
        files={

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% 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 · SKILL.md (reported line 138)May include surrounding context.

md
formData.append("vendor_data", "user-123");
formData.append("metadata", JSON.stringify({ flow: "onboarding" }));

const response = await fetch("https://verification.didit.me/v3/id-verification/", {
  method: "POST",
  headers: { "x-api-key": "YOUR_API_KEY" },
  body: formData,