Back to skill

Security audit

司马光综合思维

Security checks for vulnerabilities and agentic risk

Overview

This skill needs review because it weakens user approval, inconsistently retains conversation details, changes future agent behavior, and includes unsafe crisis advice.

Wait for explicit approval controls for background work, persistent memory, and installed-instruction changes before granting write access. Require consistent privacy settings and removal of the unsafe suicide-related framework. Do not rely on this skill for crisis support.

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
  • 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
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
Findings (56)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The declared description concerns a historical reasoning framework, but does not disclose public-figure image collection or a rotating celebrity-analysis automation. The supplied script’s primary function is image retrieval and state management, rather than implementing the stated reasoning framework. These are substantive additional capabilities, not merely internal details of the declared analysis function. The code does not show credential access, global agent-configuration changes, or exfiltration of local file contents.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied script performs skill-routing feedback maintenance rather than Sima Guang-inspired analysis or decision support. Its primary behavior includes reading project learning records and writing a feedback-candidate report, neither of which is disclosed by the description or clearly necessary to implement the declared analytical framework. The script does not itself modify routing rules or transmit data over a network; it prepares candidates for manual review.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied chunk has a materially different primary purpose: repository portability auditing rather than Sima Guang–based reasoning. Although it could serve as package-maintenance tooling, the code is a standalone lint utility, and the declared description does not represent that capability. No historical reasoning, cognitive-context retrieval, or decision-analysis behavior appears in this chunk. The visible code reads files and reports findings; it does not execute its suggested fixes, modify scanned files, or transmit their contents.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The supplied script’s primary function is retrospective log analysis, not applying Sima Guang’s reasoning framework to a problem. Although its topic categories overlap the description’s domains, it does not implement the declared cognitive analysis or consult the described historical context. Its learning-review and skill-routing workflow is a materially different capability not disclosed in the description. The visible code shows local file processing, not network transmission or destructive activity; the behavior of the imported pyboot helper is not supplied.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The supplied script’s primary function is repository maintenance, not Sima Guang-based reasoning or decision support. Although it operates on book-derived skill resources related to the declared knowledge base, it performs a standalone coverage audit rather than loading or applying those resources for the advertised analysis. That maintenance capability and its report-writing behavior are not represented in the description. The visible code does not show network access, exfiltration, or modification of skill-routing files.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

Although feedback archiving could support productivity work, the description only declares a cognitive-analysis skill, not a persistent record-management workflow. This script’s substantive behavior is maintaining a feedback archive, potentially in an external project or at any supplied path. That is an undeclared filesystem capability rather than merely an internal detail of performing the stated analysis. The shown code does not demonstrate network access or exfiltration.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The supplied script primarily performs project-continuity and handoff management, rather than the declared historical reasoning or decision-analysis function. Reading operational logs and generating restart/migration cards constitutes an additional user-facing capability not disclosed in the description, beyond incidental implementation details of cognitive analysis. The script includes instructions in its generated document but does not itself execute those instructions. No network transfer or external command execution is visible; the implementation of the imported project_paths module was not supplied.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
86% confidence
Finding

The description presents a historical reasoning and decision-support skill, but the supplied command invokes a script for fetching current hot topics. This introduces a data-acquisition capability not described or explicitly connected to the declared analysis workflow. The command alone does not establish which sources are accessed, whether network requests occur, or what data is stored.

Content

No source excerpt is available for this finding.

Organizational lifecycle analysis gradually becomes a framework for legitimizing personal suicide.

High
Category
Prompt Injection
Confidence
99% confidence
Finding

The text moves from organizational lifecycle metaphors to personal hopelessness and describes death as potentially preferable after value calculations and procedural checks. In a skill used for personal decisions and psychological support, this can legitimize suicide for a distressed user; cooling periods and outside review do not make that framing safe.

Content

No source excerpt is available for this finding.

Env Variable Harvesting

High
Category
Data Exfiltration
Confidence
60% confidence
Finding

Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.

Content

Scanner excerpt · scripts/self_test.py (reported line 97)May include surrounding context.

python
def run(cmd: list[str], cwd: Path) -> tuple[int, str]:
    import os as _os
    env = dict(_os.environ)
    env["PYTHONIOENCODING"] = "ascii"
    env["PYTHONUTF8"] = "1"
    r = subprocess.run(cmd, cwd=str(cwd), env=env, capture_output=True, text=True)

Everyday greetings and unrestricted default activation can invoke the skill without a domain-specific request.

Medium
Category
Trigger Abuse
Confidence
94% confidence
Finding

The rules impose the skill's identity regardless of what the user requests and label these requirements highest priority. This extends beyond an ordinary persona preference: unrelated conversations can be redirected, and explicit requests to leave the persona can be disregarded.

Content

No source excerpt is available for this finding.

Treats an unanswered background-execution confirmation as user approval.

Medium
Category
Prompt Injection
Confidence
99% confidence
Finding

The instructions explicitly treat an unanswered background-execution question as approval and continue without waiting. This defeats the confirmation boundary and can initiate long-running processing or file changes before the user has authorized the proposed execution mode.

Content

No source excerpt is available for this finding.

Automatic internal learning logs lack a user-facing privacy notice.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

Every book-based analysis automatically creates an internal entry in a persistent learning log without a visible consent or minimization requirement. Because the skill handles personal, business, legal, and investment questions, these entries could retain sensitive context beyond the conversation; external transmission is not established.

Content

No source excerpt is available for this finding.

Generic analysis and writing terms are listed as standalone triggers.

Medium
Category
Trigger Abuse
Confidence
99% confidence
Finding

The trigger list includes “全面分析,” “帮我决策,” “项目策划,” and “论文,” which occur in ordinary requests unrelated to Sima Guang's framework. No activation qualifier or negative examples constrain these generic terms.

Content

No source excerpt is available for this finding.

Broad standalone triggers overlap with routine decision-making, writing, and video-editing requests.

Medium
Category
Trigger Abuse
Confidence
99% confidence
Finding

Triggers such as “全面分析,” “帮我决策,” “论文,” “镜头,” and “剪辑” do not identify a request for this particular cognitive framework. The list provides no exclusion conditions to prevent unrelated tasks from activating the skill.

Content

No source excerpt is available for this finding.

Persistent learning registration is automatic and explicitly withheld from the user.

Medium
Category
Output Handling
Confidence
98% confidence
Finding

This source requires writing a learning log after every book analysis and explicitly withholds the learning-registration output from the user. That combination creates undisclosed persistence of potentially sensitive analytical context, without stated consent, redaction, or retention controls.

Content

No source excerpt is available for this finding.

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, network, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

The activation description includes generic analysis, planning, and writing triggers.

Medium
Category
Trigger Abuse
Confidence
99% confidence
Finding

“全面分析,” “帮我决策,” “产品方案,” and “论文” can all appear in everyday requests that do not seek a Sima Guang perspective. The activation description does not require a framework-specific qualifier or supply exclusions for these cases.

Content

No source excerpt is available for this finding.

The manifest advertises generic task terms as activation triggers without scope constraints.

Medium
Category
Trigger Abuse
Confidence
99% confidence
Finding

The description lists “全面分析,” “帮我决策,” “项目策划,” and “论文” as triggers alongside distinctive Sima Guang phrases. These generic terms can select the skill for unrelated requests because no qualifying context or negative examples are provided.

Content

No source excerpt is available for this finding.

The protocol adds scheduled external learning and persistent skill updates beyond the manifest's analytical and creative purpose.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

The protocol prescribes recurring external retrieval and persistent changes to operational skill instructions without an explicit user authorization or approval gate. Malicious material in a public repository could be promoted into future agent behavior; the proposed validation criteria and conflict checks help but do not establish an instruction-trust boundary.

Content

No source excerpt is available for this finding.

Uses an efficiency exception to bypass confirmation for background tasks.

Medium
Category
Prompt Injection
Confidence
97% confidence
Finding

The instruction to assume agreement after asking about background execution defeats the preceding requirement to obtain confirmation before starting resource-intensive tasks. It can cause processing and associated resource use or file changes before the user has authorized background execution.

Content

No source excerpt is available for this finding.

External-project mode silently persists analysis-derived information after every analysis.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The workflow directs internal persistence of analysis-derived information and user corrections after every analysis without requiring informed consent. Enabling an external project directory does not itself authorize retaining conversational information, which may subsequently be exposed through shared project files, backups, or repository commits.

Content

No source excerpt is available for this finding.

The protocol introduces live camera capture and repeated observation that the manifest does not declare.

Medium
Category
Excessive Agency
Confidence
89% confidence
Finding

L008 supplies a command to capture a camera image, and L009 specifies repeated frame collection every 5–30 seconds. Analyzing user-provided evidence can support the manifest's people-assessment and investigative purposes, but activating a physical sensor and collecting an ongoing observation stream is a distinct capability not obviously required or disclosed. The later consent requirement mitigates misuse but does not establish that this capability belongs within the stated scope.

Content

No source excerpt is available for this finding.

Automatic internal learning records retain user corrections and analysis content without a user-facing privacy notice.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The protocol automatically retains analysis topics, uncertainties, and user corrections in persistent logs and memory cards without an initial consent or privacy-notice requirement. Its safeguards for public release do not prevent unnecessary private retention or exposure through local sharing and backups.

Content

No source excerpt is available for this finding.

The dialogue workflow mandates internal learning-log writes without notifying the user.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

The dialogue workflow mandates an internal learning-log write after analysis without checking whether the user authorized persistent memory. Because the workflow covers medical, legal, financial, and personal conversations, analysis-derived records can contain sensitive information even without verbatim transcripts.

Content

No source excerpt is available for this finding.