Back to skill

Security audit

minutes-task

Security checks for vulnerabilities and agentic risk

Overview

This skill does what it claims, but it automatically creates long-lived Windows scheduled tasks that can repeatedly run generated code without a clear approval checkpoint.

Install only if you intentionally want an agent to create Windows Task Scheduler entries. Before using it, require the agent to show the full script, task name, interval, expiration, account context, and affected files or services, and avoid using -Force unless you explicitly want to replace an existing task.

Vulnerability Patterns
  • System PersistenceInstalls backdoors, hooks, services, or scheduled tasks that survive the run
  • 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)

T06 · System Persistence

Error
Location
SKILL.md:79
Finding

Long-Lived Scheduled Task Enables Persistent Arbitrary Script Execution

Content
View full analysis
' $script = '<脚本绝对路径>' $workDir = '<脚本所在目录>' $action = New-ScheduledTaskAction -Execute $python -Argument ('"{0}"' -f $script) -WorkingDirectory $workDir $trigger = New-ScheduledTaskTrigger -Once -At (Get-Date).AddMinutes(1) -RepetitionInterval (New-TimeSpan -Minutes <间隔分钟>) -RepetitionDuration (New-TimeSpan -Days 365) $settings = New-ScheduledTaskSettingsSet -StartWhenAvailable -ExecutionTimeLimit (New-TimeSpan -Minutes 5) -MultipleInstances IgnoreNew Register-ScheduledTask -TaskName "<任务名>-<间隔分钟>min" -Action $action -Trigger $trigger -Settings $settings -Description '<任务描述>' -Force ``` Supporting instructions state that the Agent should complete the process automatically, provide commands for managing the persistent task, and use `Register-ScheduledTask` when `schtasks` is blocked: ```text ## 执行流程(Agent 全自动完成,用户无需动手) ``` ```text - **修改间隔**:删除后重建(`Unregister-ScheduledTask -TaskName X -Confirm:$false`,再走 Step 4) - **暂停**:`Disable-ScheduledTask -TaskName X`(保留定义,可恢复) - **恢复**:`Enable-ScheduledTask -TaskName X` - **彻底删除**:`Unregister-ScheduledTask -TaskName X -Confirm:$false` ``` ```text - `schtasks` 等系统工具被安全策略禁用 → 用 `Register-ScheduledTask`(本方案不依赖 schtasks) ``` ### Technical Analysis The Skill instructs the Agent to generate a Python script containing task-specific logic and register that script with Windows Task Scheduler. The resulting task executes every N minutes for 365 days and survives the Agent session, application restarts, and user logon boundaries supported by the task's execution context. Scheduled execution is related to the Skill's declared minute-level scheduling function. However, the implementation creates a significant persistence boundary without requiring explicit, informed ...[truncated 2918 chars]
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (5)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill explicitly instructs the agent to fully automate creation of Windows scheduled tasks and later lifecycle actions such as disable, enable, and deletion, but it does not require a clear user-facing warning or confirmation before making persistent system changes. Because scheduled tasks create long-lived execution on the host, this can surprise users, alter system behavior, and be abused to establish persistence for unintended code execution.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill tells the agent to generate and run an arbitrary Python script whose business logic may fetch data, send messages, process files, or call external tools, yet it provides no explicit warning that these actions may affect local data, network resources, or third-party services. In context, the omission is risky because the task is intended to run repeatedly and automatically, so any harmful action can recur without further user awareness.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The trigger phrase "定时推送" is broad and can match many generic user requests that are not specifically asking for a Windows minute-level scheduled task implementation. In this skill, overbroad matching is more concerning because the skill explicitly routes users toward a workaround using Windows Task Scheduler and standalone scripts, which can cause unintended activation of an automation-capable skill in contexts where a simpler or safer solution was intended.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

The description is written as an instruction in Chinese and does not indicate that language should follow user preference or that the skill is intentionally limited to Chinese-speaking users. Under the policy, forcing a specific language without opt-in is a natural-language locale violation unless documented and justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

The manifest description and trigger phrases are entirely in Chinese, which imposes a language-specific interface without indicating user opt-in or that the skill is intentionally restricted to Chinese-speaking users. This can violate language or locale policy when no choice or justification is provided.

Content

No source excerpt is available for this finding.