Back to skill

Security audit

datetime-convert

Security checks for vulnerabilities and agentic risk

Overview

This skill is a focused date and time conversion helper with no hidden persistence, data collection, or unrelated authority.

This skill is reasonable to install for date/time conversion. Prefer Python 3.9+ so it runs with the standard library; if you follow its optional pip advice for timezone data, use a trusted package index and preferably a virtual environment. Be explicit about input and output timezones when results matter.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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)

T08 · Insecure Dependencies

Note
Location
SKILL.md:18
Finding

Unpinned Third-Party Package Installation Guidance

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:18-23; duplicated in scripts/dtconv.py:33-38
Vulnerability Type: Unpinned third-party dependency installation
Risk Level: Low

Vulnerable Code

SKILL.md:18-23:

markdown
Standard library only. Python 3.9+ gets everything; on 3.7/3.8 the single casualty is IANA
zone names (`Asia/Shanghai`), because `zoneinfo` does not exist there — the script says so
and points at `UTC` / `local` / `+08:00`, and every other feature keeps working. Same story
if `zoneinfo` exists but the tz database is missing (minimal containers, Windows): the error
names the fix (`pip install tzdata`).

scripts/dtconv.py:33-38:

python
NO_ZONEINFO_HINT = ("this Python has no zoneinfo module (needs 3.9+, or "
                    "'pip install backports.zoneinfo tzdata'). Everything else still "
                    "works — use UTC, local, or a fixed offset such as +08:00")

NO_TZDATA_HINT = ("the IANA timezone database is not installed — 'pip install tzdata', "
                  "or use a fixed offset such as +08:00")

Technical Analysis

The skill recommends installing backports.zoneinfo and tzdata without version pins, hash verification, an isolated environment, or an explicitly trusted package index. The script does not install these packages automatically, so exploitation requires a user or agent to follow the displayed recommendation.

An unqualified pip install resolves the latest matching packages from the configured Python package index. Consequently, installation security depends on that index, local pip configuration, network integrity, and the continued integrity of future package releases. A compromised upstream release, malicious configured mirror, or poisoned private index could cause attacker-controlled package installation. Python packages may execute build-system code during installation and package code when imported.

Attack Path

...[truncated 1601 chars]

Remediation
View remediation

Remediation Suggestions

  • Avoid directing users to an unconstrained global installation. Prefer the fixed-offset fallback already supported by the script when timezone database installation is unnecessary.
  • If installation is required, document use of a dedicated virtual environment and a trusted, explicitly configured package index.
  • Publish reviewed dependency constraints with exact versions, for example in a constraints or lock file.
  • Supply hashes generated from verified artifacts and recommend installation with pip install --require-hashes -r requirements.txt.
  • Review and update pinned versions through a controlled dependency-update process with provenance and vulnerability checks.
  • Warn users not to run pip with administrative privileges and to inspect existing pip index configuration before installation.
  • Keep the guidance in SKILL.md and the runtime error constants synchronized so hardened installation instructions appear in both locations.
Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

Vague Triggers

Low
Category
Not specified by scanner
Confidence
82% confidence
Finding

This is a JSON manifest-like file, so SQP-1 applies. The eval prompts demonstrate broad natural-language requests such as asking what a timestamp is or asking to convert times, but the file does not define explicit trigger boundaries, exclusion conditions, or negative examples to distinguish when the skill should or should not activate.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

The prompts are written in Chinese and the expected behavior centers on locale-specific outputs such as Beijing time, but the file provides no indication that language or locale selection is optional or user-configurable. Under the policy rule, forcing a specific language or locale without opt-in can be a natural-language policy concern.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
80% confidence
Finding

This code explicitly supports and surfaces Chinese-specific date formats in natural-language handling, but there is no visible indication that language behavior is optional or scoped to a locale-specific use case. Under the policy rule, forcing or assuming a specific language/locale without user opt-in can be a natural-language policy concern.

Content

No source excerpt is available for this finding.