Back to skill

Security audit

Academic Figures — Publication-Ready Research Figures from a Single Command

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rated this skill suspicious because scanners reported a mismatch between its stated limits and diagram features, unsafe shell use in tests, and advice that could expose research data; analysis was partial.

The verdict is suspicious, so review the reported issues before installing. In particular, consider whether you are comfortable with the broader diagram features, the unpinned Git-based MCP setup, and the risk of exposing original research data if you share a reproduction bundle. Scanner coverage was 97.4%: four components were partially inspected, so the evidence is incomplete.

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
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (349)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The mismatch is demonstrated by gen_diagram and gen_flow, both registered in _RAW_GENERATORS. gen_diagram accepts labeled blocks and arrows, while gen_flow accepts semantic nodes and edges and delegates automatic layout and rendering to af_flow. Neither requires scientific measurements or record counts, unlike the separately implemented and declared PRISMA renderer. These capabilities contradict the stated exclusion of diagrams without data. The remaining visible functionality supports scientific figure production. No network transmission is visible in this chunk, although the complete local-only claim cannot be verified from this excerpt and its unseen dependencies.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
91% confidence
Finding

Tests invoke the generator with '-t flow' and '-t diagram' and directly call diagram-rendering functions using textual nodes, edges, shapes, and layout settings rather than scientific measurements. They also verify bundled workflow and decision-diagram templates. This demonstrates a capability outside the stated scope and contrary to an explicit exclusion. Local subprocess execution, file reads, temporary-file writes, and rendering checks are ordinary supporting implementation details, not separate mismatches. No network transmission is visible, although this test chunk alone cannot establish the behavior of every invoked module.

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

md
background + verifier pipeline: `references/pitfalls.md`. Regression: `python3 tests/run_tests.py`.

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

md
(incl. `realworld/`), `tests/run_tests.py` (full suite). Remaining references:

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

md
| Copy-paste scenario cards (13 complete workflows) | `references/scenario-cards.md` |

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

md
| Version history | `references/changelog.md` (version index + last-3 details; full archive in `references/changelog-full.md`) |

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

md
gual history: `references/changelog.md` (index + recent details; full archive: `references/changelog-full.md`). Recent: **v8.0.4** role palette + snake layout +

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

md
`clinical-lab-trends.md`, `reverse-engineering-colors.md`, `v1.5-upgrade-analysis.md` (archive).

Instructions to submit the entire reproduction package omit a warning about disclosing raw research data.

High
Category
Output Handling
Confidence
98% confidence
Finding

The documentation recommends submitting the entire reproduction directory while explicitly stating that it includes a byte-for-byte copy of the original input data. In clinical research workflows, following that advice can disclose patient identifiers, sensitive subject-level records, or restricted research data; local rendering does not protect a subsequently shared bundle.

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/af_resilience.py (reported line 46)May include surrounding context.

python
return None
    if gen >= allowed:
        return None
    env = dict(os.environ)
    env["AF_RETRY_N"] = str(gen + 1)
    env["AF_WD_BUDGET_SCALE"] = f"{1.5 ** (gen + 1):.6f}"
    print(f"WARNING: 瞬时失败(exit {code})——自动重试第 {gen + 1}/{allowed} 次"

The documented Egger intercept test returns the slope's p-value instead.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The function documents an Egger intercept significance test but returns linregress.pvalue, which tests the slope. This silently misrepresents evidence of funnel asymmetry and can contaminate publication-ready meta-analysis figures without any execution compromise.

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 · tests/run_tests.py (reported line 2521)May include surrounding context.

python
self.assertIn("-t", r.stdout)

    def test_wizard_interactive_pipe_generates_command(self):
        env = dict(os.environ, AF_WIZARD_FORCE="1")
        r = subprocess.run([sys.executable, GEN, "--wizard"],
                           capture_output=True, text=True, timeout=60,
                           input="1\n1\n1\n\n", env=env)

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 · tests/run_tests.py (reported line 2531)May include surrounding context.

python
self.assertIn("-o figure.png", r.stdout)

    def test_wizard_eof_falls_back_to_defaults(self):
        env = dict(os.environ, AF_WIZARD_FORCE="1")
        r = subprocess.run([sys.executable, GEN, "--wizard"],
                           capture_output=True, text=True, timeout=60,
                           input="", env=env)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
98% confidence
Finding

This is the same shell-execution issue reported by AST4 at lines 4054–4055, not an independent exploit. Modified example JSON can introduce arbitrary shell commands into _command, and output-path replacement does not neutralize them.

Content

Scanner excerpt · tests/run_tests.py (reported line 4054)May include surrounding context.

python
e in ("realworld_rct_response.json", "realworld_omics_volcano.json",
                     "realworld_survival_km.json", "realworld_oncology_waterfall.json"):
            fp = os.path.join(base, "examples", "realworld", name)
            d = json.load(io.open(fp, encoding="utf-8"))
            cmd = d["_command"]
            # 相对路径以仓库根为工作目录执行;-o 落到临时目录
            with tempfile.TemporaryDirectory() as td:
                cmd = cmd.rsplit("-o ", 1)[0] + "-o " + os.path.join(td, "out.png")
                r = subprocess.run(cmd, shell=True, cwd=base,
                                   capture_output=True, text=True, timeout=240)
                self.assertEqual(r.returncode, 0, f"{name}: {r.stderr[-250:]}")
                self.assertTrue(os.path.exists(os.path.join(td, "out.png")), name)


    def test_v470_scenario_docs_and_realworld(self):
        """场景化指导文档(color-guide/combo-guide)与真实科研场景示例在包内。"""
        base = os.path.join(SCRIPT_DIR, "..")
        for rel in ("references/color-guide.md", "references/combo

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
98% confidence
Finding

This duplicates the AST4 shell-execution finding at lines 4509–4510. A tampered swimmer template or example can execute commands with the test runner's permissions; temporary output placement is not a sandbox.

Content

Scanner excerpt · tests/run_tests.py (reported line 4509)May include surrounding context.

python
n (os.path.join("templates", "swimmer.json"),
                     os.path.join("examples", "realworld",
                                  "realworld_csle_swimmer.json")):
            with io.open(os.path.join(base, name), encoding="utf-8") as fh:
                cmd = json.load(fh)["_command"]
            # -o 重定向到临时目录:逐字执行但产物不落 trunk(v5.6 哨兵泄漏教训机制化)
            with tempfile.TemporaryDirectory() as td:
                cmd = cmd.rsplit("-o ", 1)[0] + "-o " + os.path.join(td, "out.png")
                r = subprocess.run(cmd, shell=True, cwd=base,
                                   capture_output=True, text=True, timeout=240)
                self.assertEqual(r.returncode, 0, f"{name}: {r.stderr[-250:]}")
                self.assertNotIn("未知字段", r.stderr, name)

    def test_swimmer_realworld_self_consistency(self):
        """realworld 数据程序化自洽断言(v4.8 RECIST 断言器同纪律)。"""
        base = os.path.normpath(os.path.join(SCRIPT_DIR, ".."))
        with io.open(os.path.join(base, "examples", "realworld",

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
98% confidence
Finding

This duplicates the AST4 finding for the ridgeline template command. Unvalidated JSON metadata is treated as a shell program, enabling arbitrary execution if that data file is compromised.

Content

Scanner excerpt · tests/run_tests.py (reported line 4638)May include surrounding context.

python
2], "B": [3, 4]}})
        self.assertTrue(any(t == "ridgeline" for _, t, _ in recs), recs)

    def test_ridgeline_template_command(self):
        base = os.path.normpath(os.path.join(SCRIPT_DIR, ".."))
        with io.open(os.path.join(base, "templates", "ridgeline.json"), encoding="utf-8") as fh:
            cmd = json.load(fh)["_command"]
        with tempfile.TemporaryDirectory() as td:  # 产物不落 trunk(哨兵纪律)
            cmd = cmd.rsplit("-o ", 1)[0] + "-o " + os.path.join(td, "out.png")
            r = subprocess.run(cmd, shell=True, cwd=base, capture_output=True, text=True, timeout=240)
        self.assertEqual(r.returncode, 0, r.stderr[-250:])

    def test_audit_sidecar_deterministic(self):
        with tempfile.TemporaryDirectory() as td:
            f = os.path.join(td, "a.json")
            io.open(f, "w", encoding="utf-8").write(json.dumps(
                {"labels": ["A", "B", "C"], "series": {"组1": [10, 20, 30], "组2": [5, 15, 25]}}))
            outs = []
            for i in range(2):

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
98% confidence
Finding

This duplicates the AST4 finding for the dumbbell template command. Shell evaluation of unvalidated _command metadata permits additional commands or substitutions despite replacement of the final output path.

Content

Scanner excerpt · tests/run_tests.py (reported line 4748)May include surrounding context.

python
[1, 2], "to": [3, 4]})
        self.assertTrue(any(t == "dumbbell" for _, t, _ in recs), recs)

    def test_dumbbell_template_command(self):
        base = os.path.normpath(os.path.join(SCRIPT_DIR, ".."))
        with io.open(os.path.join(base, "templates", "dumbbell.json"), encoding="utf-8") as fh:
            cmd = json.load(fh)["_command"]
        with tempfile.TemporaryDirectory() as td:  # 产物不落 trunk(哨兵纪律)
            cmd = cmd.rsplit("-o ", 1)[0] + "-o " + os.path.join(td, "out.png")
            r = subprocess.run(cmd, shell=True, cwd=base, capture_output=True, text=True, timeout=240)
        self.assertEqual(r.returncode, 0, r.stderr[-250:])
        self.assertNotIn("未知字段", r.stderr)

    def test_repro_bundle(self):
        """--repro 复跑交付包:五件齐+数据副本逐字节一致+命令逐字+幂等。"""
        with tempfile.TemporaryDirectory() as td:
            f = os.path.join(td, "r.json")
            io.open(f, "w", encoding="utf-8").write(json.dumps(
                {"labels": ["A", "B", "C"], "series": {"组1": [10, 20, 30], "组2":

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 · tests/run_tests.py (reported line 6282)May include surrounding context.

python
(AF_TEST_RENDER_DELAY=0.6:代 0-2 预算 0.2/0.3/0.45 均 <0.6 必超时,代 3 预算 0.675>0.6 成功——
        任何机器确定性;此前的绝对秒数预算在快机(GitHub runner)上不触发=CI flaky 根因。)"""
        import os as _os
        _env = {**_os.environ, "AF_TEST_RENDER_DELAY": "0.6"}
        p = os.path.join(self.tmp, "retry_ok.png")
        r = subprocess.run([sys.executable, GEN, "-t", "bar", "-d", self.data,
                            "-o", p, "--timeout", "0.2", "--retries", "5"],

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 · tests/run_tests.py (reported line 6307)May include surrounding context.

python
def test_retries_zero_disables(self):
        """--retries 0:超时单代失败 exit 5,无重试。"""
        import os as _os
        _env = {**_os.environ, "AF_TEST_RENDER_DELAY": "0.6"}
        p = os.path.join(self.tmp, "r0.png")
        r = subprocess.run([sys.executable, GEN, "-t", "bar", "-d", self.data,
                            "-o", p, "--timeout", "0.1", "--retries", "0"],

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 · tests/run_tests.py (reported line 6320)May include surrounding context.

python
def test_retries_exhausted_exact_count(self):
        """重试用尽:仍 exit 5,重试次数恰为 --retries 值。"""
        import os as _os
        _env = {**_os.environ, "AF_TEST_RENDER_DELAY": "0.6"}
        p = os.path.join(self.tmp, "r1.png")
        r = subprocess.run([sys.executable, GEN, "-t", "bar", "-d", self.data,
                            "-o", p, "--timeout", "0.1", "--retries", "1"],

Error diagnostics are fixed to Chinese without a user language choice.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

L46–L47 specify Chinese diagnostics for every error, rather than optional Chinese-language support. No user opt-in or region-specific justification is provided for imposing this language on all users of the general-purpose figure generator.

Content

No source excerpt is available for this finding.

Ae4

Medium
Category
analysis-evasion
Confidence
80% confidence
Finding

Suspicious Unicode normalization or mixed-script content

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.

Validation and exception diagnostics require Chinese regardless of user language.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

L267–L269 prescribe Chinese reasons and Chinese three-part diagnoses for fatal errors and unknown exceptions; L84–L85 likewise specify Chinese over-limit errors. The skill serves general academic visualization, and it provides neither a diagnostic-language choice nor a justification for this unconditional language constraint.

Content

No source excerpt is available for this finding.

Ae4

Medium
Category
analysis-evasion
Confidence
80% confidence
Finding

Suspicious Unicode normalization or mixed-script content

Content

No source excerpt is available for this finding.