Back to skill

Security audit

python-tutor

Security checks for vulnerabilities and agentic risk

Overview

The scanners report a Python tutoring skill with no AIG findings and a few flagged documentation or instruction concerns; the verdict is benign because these concerns appear limited and purpose-related, with medium overall confidence.

The verdict is benign, not a guarantee of zero risk. Consider whether the broad activation phrases and fixed Chinese wording suit your use; the scan inspected all nine listed components, with caveats because several referenced learner-state paths were missing from the bundle.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • 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
Findings (4)

Agent Config Directory Access

High
Category
Agent Snooping
Confidence
90% confidence
Finding

Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.

Content

Scanner excerpt · README.md (reported line 40)May include surrounding context.

md
## 安装与使用

### 1. 在支持标准 Agent Skills 的工具中使用(Codex / Antigravity / WorkBuddy 等)
- **全局安装**:将本目录复制或软链到你的全局 skills 目录(例如 `~/.codex/skills/python-tutor` 或 `~/.gemini/config/skills/python-tutor`)。
- **项目级使用**:将本目录放到任意工作区的 `.agents/skills/python-tutor/` 下即可自动发现。

### 2. 在百度搭子 / OpenClaw / ClawHub 中使用

The daily-lesson trigger “继续” (“continue”) is overly broad and lacks an explicit active-lesson constraint.

Medium
Category
Trigger Abuse
Confidence
94% confidence
Finding

“继续” is common conversational language that can refer to any ongoing task, not specifically Python tutoring. Although the skill describes a tutoring domain, it does not explicitly restrict this trigger to an active tutoring session or provide exclusions, creating a risk of unintended lesson activation.

Content

No source excerpt is available for this finding.

Generic phrases trigger material generation without an explicit Python-tutoring context restriction.

Low
Category
Trigger Abuse
Confidence
90% confidence
Finding

The skill states that saying “还要学 / 做资料 / 出题目” (“learn more / make materials / create questions”) triggers generation of study materials and exercises. These phrases also occur in unrelated learning and document-preparation requests, and no explicit activation restriction or exclusion examples distinguish those requests from Python Tutor invocations.

Content

No source excerpt is available for this finding.

The workflow prescribes a Chinese-language question without checking the user's language preference.

Low
Category
Output Handling
Confidence
94% confidence
Finding

The instruction to ask one question supplies fixed Chinese wording, without offering a language choice or directing the tutor to adapt it to the user's language. No locale-specific justification is provided for requiring Chinese in this interaction.

Content

No source excerpt is available for this finding.