Back to skill

Security audit

translate-book

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because it reports a high-confidence cleanup risk and incomplete inspection of part of the skill, while its overall confidence is medium.

Review the cleanup behavior and ensure important files are not in a directory it may remove. Inspection was partial, and the runtime's network permissions are unknown, so consider those uncertainties before installing.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/calibre_html_publish.py
Finding

Automatic cleanup recursively deletes a pre-existing, unowned directory

Content
View full analysis

Impact

Permanent deletion of unrelated files and subdirectories inside the colliding working directory, subject to the process's filesystem permissions.

Vulnerability Patterns
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (13)

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

md
library (`merge_and_build.py` strips a wrapping `《》` anyway).

Code capability 'network' detected in scripts/convert.py but not covered by declared permissions.

High
Category
MCP Least Privilege
Confidence
75% confidence
Finding

The skill uses 'network' capability that is not covered by the declared 'allowed-tools' preapproval. Review the host runtime's actual enforcement policy; runtime permissions are unknown unless separately verified, and this declaration alone does not establish a permission ceiling.

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

python
for path in possible_paths:
        try:
            result = subprocess.run([path, "--version"], capture_output=True, text=True, timeout=10)
            if result.returncode == 0:
                print(f"Found Calibre ebook-convert: {path}")
                return path

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

python
try:
        print(f"Starting conversion (timeout: {timeout}s)...")
        result = subprocess.run(cmd, capture_output=True, text=True, timeout=timeout)
        
        if result.returncode == 0:
            if os.path.exists(output_file):

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

python
for path in possible_paths:
        try:
            result = subprocess.run([path, "--version"], capture_output=True, text=True, timeout=10)
            if result.returncode == 0:
                print(f"Found Calibre ebook-convert: {path}")
                return path

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

python
try:
        print(f"Converting {input_file} to HTMLZ...")
        cmd = [calibre_path, input_file, htmlz_file]
        result = subprocess.run(cmd, capture_output=True, text=True, timeout=600)

        if result.returncode == 0:
            file_size = os.path.getsize(htmlz_file)

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

python
pypandoc = None
    if pypandoc is not None:
        return pypandoc.convert_file(html_file, 'json')
    result = subprocess.run(
        ['pandoc', html_file, '-f', 'html', '-t', 'json'],
        capture_output=True, text=True, check=True,
    )

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

python
outputfile=md_file, extra_args=extra_args,
        )
        return
    subprocess.run(
        ['pandoc', '-f', 'json', '-t', 'markdown-smart', '-o', md_file, *extra_args],
        input=json_text, capture_output=True, text=True, check=True,
    )

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

python
argv = _parser_argv(parser, executable, input_pdf, parsed)
    print(f"Running {PARSERS[parser]}; this can take many minutes.")
    with tempfile.TemporaryFile() as log:
        result = subprocess.run(argv, stdin=subprocess.DEVNULL, stdout=log,
                                stderr=subprocess.STDOUT, cwd=parsed)
        if result.returncode != 0:
            print(f"Error: {PARSERS[parser]} exited with status {result.returncode}. End of its "

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

python
def check_pandoc_available():
    """Check if pandoc is available"""
    try:
        subprocess.run(['pandoc', '--version'], capture_output=True, check=True)
        return True
    except (subprocess.CalledProcessError, FileNotFoundError):
        return False

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

python
]

    try:
        result = subprocess.run(cmd, capture_output=True, text=True, check=True)
        print("Converted with pandoc")
        unconverted = _TEX_MATH_WARNING_RE.findall(result.stderr)
        if unconverted:

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

python
cmd = ["python3", publish_script, html_file, "-o", output_file, "--lang", lang_attr]
        if cover:
            cmd.extend(["--cover", cover])
        result = subprocess.run(cmd, check=True, capture_output=True, text=True)

        if os.path.exists(output_file):
            file_size = os.path.getsize(output_file)

Gender conflicts are resolved automatically despite the documented requirement that the main agent make all semantic decisions.

Medium
Category
Excessive Agency
Confidence
91% confidence
Finding

L0022-L0025 explicitly assign all semantic decisions, including conflict resolution, to the main agent and state that this script only applies pre-decided choices. However, L0647-L0665 directly apply gender hypotheses and reset conflicting canonical gender values to 'unknown' without consulting the decisions payload, bypassing that documented decision boundary.

Content

No source excerpt is available for this finding.