Back to skill

Security audit

yan-learning-engine

Security checks for vulnerabilities and agentic risk

Overview

This skill is a self-learning scheduler, but its instructions repeatedly tell the agent to publish, submit, modify repositories, and post externally without asking first.

Install only if you are comfortable auditing and rewriting the instructions first. Before use, remove the no-confirmation language, disable or avoid the cron entry, and require explicit approval before any publishing, repository changes, pull requests, issue filing, comments, or public posts.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • System PersistenceInstalls backdoors, hooks, services, or scheduled tasks that survive the run
  • 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 (3)

T01 · Skill Instruction Hijacking

Error
Location
SKILL.md:18
Finding

Approval-Flow Hijacking Enables Unattended Consequential Actions

Content
View full analysis
Remediation
View remediation

T06 · System Persistence

Error
Location
SKILL.md:204
Finding

Hourly Cron Registration Creates Cross-Session Persistence

Content
View full analysis
Remediation
View remediation

T01 · Skill Instruction Hijacking

Warning
Location
next-hour-plan.json:37
Finding

Persistent Plan Directs External Publication Without Approval

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Rogue AgentSelf-Modification, Session Persistence
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (19)

Intent-Code Divergence

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

This section explicitly instructs the agent to take externally impactful actions such as publishing work before obtaining confirmation. That undermines authorization boundaries and can cause unauthorized repository, platform, or communication side effects if the skill is followed literally.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
95% confidence
Finding

This portion instructs the agent to act immediately when it believes the action is appropriate, without requiring a user-facing warning or confirmation. That suppresses an important safety checkpoint and increases the chance of silent, unauthorized actions with real-world impact.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The decision formula delegates approval to the agent's own judgment of capability, value, and controllable risk rather than to the user or a trusted policy gate. This creates a broad permission model that can justify unauthorized actions whenever the agent believes they are beneficial.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The checklist mandates immediate execution of repository-affecting and public-facing actions, including publishing, updating repositories, opening PRs, fixing bugs, commenting, and posting content. In a skill context, this is especially dangerous because it operationalizes unauthorized side effects as default behavior rather than exceptional behavior.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The execution checklist normalizes immediate external action while omitting any warning about consequences, reversibility, or need for authorization. Because it spans publication, repository modification, PR creation, and public interaction, exploitation could lead to widespread unintended changes and reputational damage.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill promotes automatic publishing/submission while omitting safety warnings about irreversible or externally visible actions. Users are not alerted that the skill may act without approval, increasing the chance of accidental misuse, unauthorized changes, and policy violations.

Content

No source excerpt is available for this finding.

Ssd 1

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The text semantically overrides normal approval behavior by insisting on unconditional execution and immediate action without asking. Even if presented as productivity guidance, this functions like a jailbreak pattern because it directly instructs the agent to bypass human-in-the-loop safeguards.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The skill explicitly instructs autonomous publishing and immediate external actions despite being framed as a learning engine. That scope expansion is dangerous because it can cause unauthorized commits, releases, PRs, or public posts without human review, turning a tracking/planning skill into an external-action agent.

Content

No source excerpt is available for this finding.

Ssd 4

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The document builds a self-planning, self-executing, self-adjusting loop that normalizes autonomous action over time. In context, this is dangerous because it systematically encourages escalation from internal planning to external execution without meaningful oversight, increasing cumulative risk.

Content

No source excerpt is available for this finding.

Ssd 1

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The execution flow explicitly says not to wait, not to ask, and not to check status before acting. This suppresses normal verification steps that prevent unintended or unauthorized operations, making harmful actions more likely and harder to stop.

Content

No source excerpt is available for this finding.

Ssd 1

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The manifesto and correction sections reinforce an act-first, review-later model and explicitly call for removing checks and waiting logic. This is a direct semantic attempt to defeat safeguards and is especially risky because it reframes unsafe behavior as a core operating principle.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The execution standard authorizes immediate publish/submit/share behavior and explicitly rejects prior approval. In context, this is a strong indicator of unsafe autonomy because it encourages the agent to perform potentially impactful external actions before oversight can intervene.

Content

No source excerpt is available for this finding.

Ssd 4

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The document repeatedly reinforces a 'do first, report later' norm, which conditions the agent to bypass confirmation across many scenarios. Even where individual lines may seem motivational, the cumulative effect is to weaken safety boundaries and normalize unauthorized actions as standard operating procedure.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The documentation describes scheduled hourly autonomous operation, including file updates and likely external interactions, but does not warn users about persistence, frequency, or impact. This makes the skill more dangerous because it can repeatedly perform actions over time without users appreciating the operational risk.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The documented actions include posting to communities, filing GitHub issues, and interacting with external projects, which are not inherently required for learning-progress management. This creates a risk of spam, reputational harm, and unintended disclosure because the skill normalizes outbound activity without clear authorization boundaries.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
85% confidence
Finding

The crontab instruction establishes persistent scheduled execution, which increases risk by allowing the skill to run repeatedly without fresh user intent. In combination with the document's unsafe autonomy language, persistence amplifies the chance of recurring unauthorized file changes or external interactions.

Content

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

配置定时任务

bash
# 添加到crontab
crontab -e

# 添加行:
0 * * * * cd ~/.openclaw/workspace && openclaw run-skill yan-learning-engine

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This shell script presents its user-facing title, status messages, and operational descriptions exclusively in Chinese. The file does not indicate that the skill is region-specific or provide any opt-in or fallback language choice, which conflicts with the language/locale policy criteria.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

This JSON hard-codes user-facing theme and level names in Chinese, such as the current theme and progression labels, without indicating that the skill is China-specific or that users can choose their preferred language. That creates a natural-language locale policy concern because the skill appears to impose a language on users without opt-in.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

This JSON report embeds multiple natural-language fields in Chinese, such as the step name, target, actions, notes, and lessons learned, but provides no indication that language selection is configurable or user-chosen. Under the policy rule for language/locale constraints, hard-coding a specific language without opt-in can be a natural-language policy violation.

Content

No source excerpt is available for this finding.