Back to skill

Security audit

long-running-harness

Security checks for vulnerabilities and agentic risk

Overview

This skill is a coherent long-running project workflow helper, but it normalizes automatic script execution, background services, subagent work, and recurring scheduled agent turns without enough user control.

Install only if you want a Chinese-language long-running project harness and are comfortable reviewing each project before use. Before letting it run init.sh, inspect dependency manifests, init_db.sh, npm scripts, and any generated cron job; require explicit approval for installs, database changes, background services, and recurring scheduled agent turns.

Vulnerability Patterns
  • System PersistenceInstalls backdoors, hooks, services, or scheduled tasks that survive the run
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (3)

T06 · System Persistence

Error
Location
SKILL.md:169
Finding

Recurring Agent Cron Job Creates Cross-Session Persistence

Content
View full analysis
/progress.md and features.json, and check whether any feature has remained blocked for more than three sessions. If so, output a brief report." ``` The displayed text is an English rendering of the source instructions; the cron expression and configuration fields are unchanged. ### Technical Analysis The Skill instructs the Agent to configure a recurring `agentTurn` cron job that runs every four hours. This scheduled activity can continue after the initiating Skill invocation and conversation have ended. No expiration date, maximum execution count, automatic cleanup procedure, ownership tracking, or mandatory user-confirmation step is specified. Consequently, the scheduled task may continue indefinitely and repeatedly access project files. Although the stated purpose is project monitoring rather than malicious access, the behavior matches system persistence because it installs cross-session scheduled execution. ### Attack Path 1. A user invokes the Skill for an important or long-running project. 2. The Agent follows the optional monitoring guidance and creates the specified cron job. 3. The scheduled job remains registered after the original Agent session ends. 4. Every four hours, the platform starts another Agent turn. 5. Each new turn reads `progress.md` and `features.json` and performs additional processing. 6. Without explicit expiration or removal, execution and project-file access continue indefinitely. ### Impact Assessment The scheduled task obtains the ability to initiate repeated Agent activity across sessions and read the named project-state ...[truncated 421 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Error
Location
references/init-template.md:17
Finding

Project-Controlled Dependencies Are Installed Without Supply-Chain Verification

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
references/init-template.md:28
Finding

Startup Routine Blindly Executes Project-Controlled Scripts and Background Services

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (6)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

The manifest and operational instructions are predominantly written in Chinese and present trigger phrases and outputs in Chinese as the default behavior. There is no statement offering bilingual operation or user opt-in for language/locale, which can violate organizational language-choice policy.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The trigger phrases are broad enough to match common user requests like '继续开发' or '分配任务' without requiring explicit project-management context. That can cause the skill to activate unexpectedly and steer the agent into filesystem, git, or task-orchestration actions the user did not intend, increasing the risk of overbroad automation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

This markdown template forces a specific language/locale for all field descriptions, examples, and instructions. Under the stated policy, a skill should not impose a language without user opt-in unless the locale constraint is explicitly documented and justified.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The template explicitly says the agent should run init.sh at every session, while the provided examples perform side-effecting actions such as package installation, database initialization, starting background services, and network smoke tests. In an agent skill context, normalizing automatic execution of such scripts increases the risk of unintended code execution, environment tampering, persistence, or costly/destructive actions in untrusted repositories.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

All user-facing instructional content in the file is presented only in Chinese, and there is no indication that the skill supports other languages or that Chinese is a required locale for a specific reason. This can violate language-choice policy when no opt-in or justification is provided.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The file’s headings, field labels, and writing guidance are entirely in Chinese, and there is no indication that the user may choose another language or that the template is intentionally limited to a Chinese-only context. Under the stated policy, forcing a specific language without opt-in is a natural-language policy concern.

Content

No source excerpt is available for this finding.