Back to skill

Security audit

多镜头视觉连续性检查

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because its install instructions use an unpinned CLI and a scanner reports that promotional image generation differs from the declared continuity-review purpose; some analysis is incomplete.

Consider the unpinned installer and the reported mismatch between the declared review task and promotional image generation before installing. Scanner coverage is incomplete: 15 of 17 components were fully inspected, and obfuscated instruction text and a bounded parser limit left some checks partial. The suspicious verdict indicates reported risks and uncertainties, not proof of malicious intent.

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
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (21)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied code has a materially different primary purpose: rendering a marketing asset. It does not accept or inspect shot lists or reference descriptions, identify continuity errors, rank findings, suggest revisions, or report missing source information. Font discovery and local file access support the image renderer and are not independently suspicious, but the rendering task itself is not an implementation of the declared review workflow.

Content

No source excerpt is available for this finding.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
把用户原镜头表保存为JSON,运行 `python3 scripts/check_continuity.py input.json`。`references.character` 可为“姓名:服装”的文本或按人物名分项的对象;身份可用每镜 `character_id` 对齐。明确姓名加常见动作可用于身份对齐;姓名没有对

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 13)May include surrounding context.

python
fallback_source = (ROOT / "scripts/render_promo_fallback.py").read_text(encoding="utf-8")
if "AssetsV2" in fallback_source:
    raise SystemExit("public promo fallback must not contain a machine-specific font path")
NO_BYTECODE_ENV = {**os.environ, "PYTHONDONTWRITEBYTECODE": "1"}
required = ["SKILL.md", "manifest.yaml", "agents/openai.yaml", "icon-512.png", "fixtures/success-input.json", "fixtures/success-output.json", "fixtures/forward-success.json", "fixtures/failure-input.json", "fixtures/failure-output.json"]
absent = [f for f in required if not (ROOT / f).is_file()]
if absent:

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
93% confidence
Finding

The documented installation command can download and execute an unpinned version of the npm skills CLI, making installation susceptible to a compromised future release. This is an installation-time supply-chain weakness, not an MCP-server reference or evidence of malicious behavior in the continuity checker.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
93% confidence
Finding

The installation command uses npx to obtain and execute the skills CLI without selecting a reviewed version. A compromised future package release could therefore execute with the installing user's privileges, although this is a supply-chain risk rather than an MCP-server configuration issue.

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, 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.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/render_promo_fallback.py (reported line 16)May include surrounding context.

python
candidates.append(Path(os.environ["SELF_MEDIA_FONT"]))
    for command in (("fc-match", "-f", "%{file}", "sans:lang=zh"),):
        try:
            matched = subprocess.run(command, capture_output=True, text=True, check=True, timeout=3).stdout.strip()
            if matched:
                candidates.append(Path(matched))
        except (OSError, subprocess.SubprocessError):

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

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

python
promo = (ROOT / "assets/promo-1600x900.png").read_bytes()
if promo[:8] != b"\x89PNG\r\n\x1a\n" or struct.unpack(">II", promo[16:24]) != (1600, 900):
    raise SystemExit("promo must be a 1600x900 PNG")
run = subprocess.run([sys.executable, str(ROOT / "scripts/check_continuity.py"), str(ROOT / "fixtures/success-input.json")], capture_output=True, text=True, check=True, env=NO_BYTECODE_ENV)
result = json.loads(run.stdout)
if result["status"] != "ok" or not any("人物参考要求" in item["evidence"] for item in result["issues"]):
    raise SystemExit("success fixture did not detect a contradiction with the character reference")

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

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

python
raise SystemExit("success fixture output is not a real checker result")
if result != json.loads((ROOT / "fixtures/forward-success.json").read_text(encoding="utf-8")):
    raise SystemExit("forward success fixture must match the current checker output")
run = subprocess.run([sys.executable, str(ROOT / "scripts/check_continuity.py"), str(ROOT / "fixtures/failure-input.json")], capture_output=True, text=True, check=True, env=NO_BYTECODE_ENV)
failure = json.loads(run.stdout)
if failure["status"] != "needs_material" or not any(".id" in item for item in failure["missing"]):
    raise SystemExit("failure fixture did not request missing material")

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

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

python
"references": {"character": {"林岚": "深蓝外套"}, "scene": "书店"},
    "shots": [{"id": "01", "character": "林岚和陈默同框", "space": "书店"}]
}
result = json.loads(subprocess.run(
    [sys.executable, "-c", "import json,sys; from scripts.check_continuity import check; print(json.dumps(check(json.load(sys.stdin))))"],
    input=json.dumps(named_gap), capture_output=True, text=True, cwd=ROOT, check=True, env=NO_BYTECODE_ENV).stdout)
if result["status"] != "needs_material" or "references.character(陈默,shots[1]涉及人物)" not in result["missing"]:

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

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

python
if result["status"] != "needs_material" or "references.character(陈默,shots[1]涉及人物)" not in result["missing"]:
    raise SystemExit("named co-presence did not request 陈默's missing character reference")
for prop in ("相机停在桌上", "杯子拿在左手"):
    result = json.loads(subprocess.run(
        [sys.executable, "-c", "import json,sys; from scripts.check_continuity import check; print(json.dumps(check(json.load(sys.stdin)), ensure_ascii=False))"],
        input=json.dumps({"shots": [{"id": "01", "prop": prop}]}, ensure_ascii=False),
        capture_output=True, text=True, cwd=ROOT, check=True, env=NO_BYTECODE_ENV).stdout)

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

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

python
{"id": "02", "character": "林岚穿深蓝外套", "prop": "放下纸袋后双手空着", "lighting": "开灯后冷光从右侧", "space": "走到咖啡店"}
    ]
}
result = json.loads(subprocess.run(
    [sys.executable, "-c", "import json,sys; from pathlib import Path; from scripts.check_continuity import check; print(json.dumps(check(json.load(sys.stdin))))"],
    input=json.dumps(explained), capture_output=True, text=True, cwd=ROOT, check=True, env=NO_BYTECODE_ENV).stdout)
if result["issues"]:

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

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

python
{"id": "02", "description": "林岚短发、未戴眼镜,黄色纸袋在桌上,昏暗暖光,办公桌右侧"},
    ],
}
result = json.loads(subprocess.run(
    [sys.executable, "-c", "import json,sys; from scripts.check_continuity import check; print(json.dumps(check(json.load(sys.stdin))))"],
    input=json.dumps(regression), capture_output=True, text=True, cwd=ROOT, check=True, env=NO_BYTECODE_ENV).stdout)
required_aspects = {"头发", "眼镜", "纸袋位置", "光线明暗", "办公桌位置"}

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

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

python
{"id": "03", "character": "林岚穿红色外套"},
    ],
}
result = json.loads(subprocess.run(
    [sys.executable, "-c", "import json,sys; from scripts.check_continuity import check; print(json.dumps(check(json.load(sys.stdin))))"],
    input=json.dumps(baseline), capture_output=True, text=True, cwd=ROOT, check=True, env=NO_BYTECODE_ENV).stdout)
if not any(item["category"] == "角色" and item["shots"] == ["01", "03"] and item["aspect"] == "外套" for item in result["issues"]):

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

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

python
"shots": [{"id": "01", "character": "林岚穿深蓝外套", "lighting": "暖光从左侧",
               "description": "林岚穿白色外套,暖光从右侧"}],
}
result = json.loads(subprocess.run(
    [sys.executable, "-c", "import json,sys; from scripts.check_continuity import check; print(json.dumps(check(json.load(sys.stdin)), ensure_ascii=False))"],
    input=json.dumps(intra_shot, ensure_ascii=False), capture_output=True, text=True, cwd=ROOT, check=True, env=NO_BYTECODE_ENV).stdout)
if not {"外套", "来光方向"} <= {item["aspect"] for item in result["issues"]}:

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

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

python
{"id": "02", "character": "林岚穿深蓝外套", "prop": "放下纸袋,手机在桌上"},
    ],
}
result = json.loads(subprocess.run(
    [sys.executable, "-c", "import json,sys; from scripts.check_continuity import check; print(json.dumps(check(json.load(sys.stdin)), ensure_ascii=False))"],
    input=json.dumps(prop_scope, ensure_ascii=False), capture_output=True, text=True, cwd=ROOT, check=True, env=NO_BYTECODE_ENV).stdout)
if not any(item["category"] == "道具" and item["aspect"] == "手机位置" for item in result["issues"]):

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

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

python
{"id": "02", "prop": "右手拿黄色纸袋"},
    ],
}
result = json.loads(subprocess.run(
    [sys.executable, "-c", "import json,sys; from scripts.check_continuity import check; print(json.dumps(check(json.load(sys.stdin)), ensure_ascii=False))"],
    input=json.dumps(forward_prop_gap, ensure_ascii=False), capture_output=True, text=True, cwd=ROOT, check=True, env=NO_BYTECODE_ENV).stdout)
if not any(item["category"] == "道具" and item["aspect"] == "纸袋" for item in result["issues"]):

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

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

python
{"id": "02", "character": "林岚穿白色外套", "prop": "手机在桌上", "lighting": "昏暗暖光从左侧", "space": "办公室"},
    ],
}
result = json.loads(subprocess.run(
    [sys.executable, "-c", "import json,sys; from scripts.check_continuity import check; print(json.dumps(check(json.load(sys.stdin)), ensure_ascii=False))"],
    input=json.dumps(severity_regression, ensure_ascii=False), capture_output=True, text=True, cwd=ROOT, check=True, env=NO_BYTECODE_ENV).stdout)
severity_by_aspect = {item["aspect"]: item["severity"] for item in result["issues"]}

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

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

python
rank = {"high": 0, "medium": 1, "low": 2}
if [rank[item["severity"]] for item in result["issues"]] != sorted(rank[item["severity"]] for item in result["issues"]):
    raise SystemExit("issues were not sorted by severity")
subprocess.run([sys.executable, str(ROOT / "scripts/test_behavior.py")], check=True, env=NO_BYTECODE_ENV)
print("self-test passed: structure, fixtures, identity/scene safety, intra-shot conflicts, item-scoped prop transitions, and carried-baseline regressions")

Scope Creep

Low
Category
Excessive Agency
Confidence
70% confidence
Finding

Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.

Content

Scanner excerpt · LICENSE (reported line 12)May include surrounding context.

text
permit persons to whom the Software is furnished to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE

The script generates and writes a promotional graphic rather than performing the declared continuity-review workflow.

Low
Category
Excessive Agency
Confidence
92% confidence
Finding

The manifest describes reviewing supplied shot lists and references and returning continuity issues with minimal corrections. L33–L46 instead load artwork, draw fixed promotional copy, and save assets/promo-1600x900.png; generating marketing assets is outside that declared workflow.

Content

No source excerpt is available for this finding.