Back to skill

Security audit

ecosystem-auditor

Security checks for vulnerabilities and agentic risk

Overview

The skill is a local skill-ecosystem auditor with disclosed local scanning and optional learning-state persistence, with no evidence of exfiltration or hidden execution.

Install only if you are comfortable with a Chinese-language local auditor reading your WorkBuddy skills directory and, when the learner helper is used, writing local learned_patterns.json files containing usage notes and preferences. Avoid putting secrets or sensitive user content into learner notes, and call learner.py only with intended skill directories.

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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • 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 (10)

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

A description-behavior mismatch is dangerous because users and orchestrators may grant the skill trust and filesystem access based on the stated purpose, while hidden or extra behaviors such as persistent runtime data collection, preference storage, and self-recommendation logic operate outside that expectation. In a meta-governance skill that scans the local skill ecosystem, undisclosed persistence materially increases the risk of covert data collection, policy bypass, or future manipulation of agent behavior.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The module docstring and commands show functionality for initializing per-skill learning state, recording operations and user preferences, generating insights, and producing self-improvement suggestions. That does not match the manifest's claimed behavior of auditing frontmatter validity, compilability, staleness, near-duplicates, and orphan meta skills to output a structured ecosystem health report.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
82% confidence
Finding

The skill advertises filesystem-oriented auditing behavior over the user's skill ecosystem but does not declare any explicit tool scope such as permissions or allowed-tools. That creates an authorization ambiguity: an agent or reviewer cannot tell what file access is intended, and a broad default runtime could allow unnecessary reads or writes to sensitive paths under the guise of auditing.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

This markdown file contains the skill’s user-facing description and usage instructions entirely in Chinese. The policy requires flagging language or locale constraints when the skill forces a specific language without giving the user an explicit choice or documenting a justified regional limitation.

Content

No source excerpt is available for this finding.

compile() call detected

Medium
Category
Dangerous Code Execution
Confidence
65% confidence
Finding

compile() creates code objects from strings. When combined with exec()/eval(), it enables obfuscated code execution.

Content

Scanner excerpt · scripts/ecosystem_auditor.py (reported line 71)May include surrounding context.

python
if f.endswith(".py"):
                try:
                    src = open(os.path.join(sdir_scripts, f), encoding="utf-8").read()
                    compile(src, f, "exec")
                except SyntaxError as e:
                    issues.append("syntax_error:" + f + ":" + (str(e)[:60]))
    return issues

Tainted flow: 'src' from open (line 70, file read) → compile (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/ecosystem_auditor.py (reported line 71)May include surrounding context.

python
if f.endswith(".py"):
                try:
                    src = open(os.path.join(sdir_scripts, f), encoding="utf-8").read()
                    compile(src, f, "exec")
                except SyntaxError as e:
                    issues.append("syntax_error:" + f + ":" + (str(e)[:60]))
    return issues

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The natural-language documentation and user-facing output in this file are presented only in Chinese, with no opt-in, alternative language, or justification for a locale-specific limitation. This can violate the language/locale policy because it effectively forces a specific language on all users of the skill.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The module accepts an arbitrary skill_dir and later writes learned_patterns.json under that path without constraining it to the intended skill ecosystem. An attacker or confused caller can cause the tool to create or overwrite files in any writable directory, which breaks trust boundaries and can tamper with unrelated project state or user files.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The script persistently stores user activity, error notes, and preferences to disk with no explicit notice, consent flow, retention policy, or sensitivity controls. In this skill context, notes and preferences may contain operational details or personal data, creating privacy leakage and unexpected local data accumulation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
98% confidence
Finding

This Python file contains the module docstring and user-facing descriptions entirely in Chinese, and the CLI argument/help text and printed output are also Chinese. The skill does not offer any language or locale choice, which is a natural-language policy concern when a skill implicitly forces a specific language for all users.

Content

No source excerpt is available for this finding.