Back to skill

Security audit

视频剪辑Video Cut

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious with high confidence because scanners report that it can send an OpenAI credential and recording audio to a third-party transcription service without clear provider selection or approval.

Consider avoiding installation unless you are comfortable with recording audio being sent to a third party and can ensure the correct provider credential is used. The scan reports a credible risk that an OpenAI key could be sent to tokenra.io. Coverage was partial, so unresolved references leave some evidence incomplete.

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

Error
Location
scripts/find_fillers.py
Finding

OpenAI environment credential is automatically forwarded to a third-party endpoint

Content
View full analysis

Impact

The third-party recipient obtains the OpenAI API key. If valid and sufficiently privileged, that key can permit unauthorized OpenAI API use and associated charges, subject to its restrictions.

Vulnerability Patterns
  • 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
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
Findings (14)

Tainted flow: 'req' from os.environ.get (line 125, credential/environment) → urllib.request.urlopen (network output)

Critical
Category
Data Flow
Confidence
99% confidence
Finding

Sending a provider-specific credential for authentication is normally legitimate, but this request can transmit an ambient OPENAI_API_KEY to the default tokenra.io endpoint. It also sends recording audio and transcription prompts, so incorrect endpoint selection exposes both secrets and potentially sensitive content.

Content

Scanner excerpt · scripts/find_fillers.py (reported line 130)May include surrounding context.

python
headers={'Authorization': f'Bearer {api_key}',
                 'Content-Type': f'multipart/form-data; boundary={boundary.decode()}'})
    try:
        with urllib.request.urlopen(req, timeout=180) as resp:
            result = json.loads(resp.read())
    except Exception as exc:
        print(f'chunk {index}: API error — {exc}')

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The instructions disclose an external transcription service, so remote processing is not entirely concealed. However, the documented fallback to OPENAI_API_KEY combined with a default tokenra.io endpoint can send a credential intended for another provider to that third party; video-editing authorization does not imply authorization for that credential disclosure.

Content

No source excerpt is available for this finding.

An existing OpenAI API key can be forwarded to tokenra.io without explicit provider selection.

High
Category
Excessive Agency
Confidence
100% confidence
Finding

When no endpoint override or TOKENRA_API_KEY is present, an existing OPENAI_API_KEY is selected while the endpoint remains https://tokenra.io/v1. This concrete default combination discloses an OpenAI credential to another provider without explicit provider selection.

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 transcription workflow forces Chinese without a user language choice.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The instructed transcription command hard-codes --language zh without asking the user or checking the recording’s language. The skill accepts narrated videos generally and later requires captions in the speaker’s language, so this imposes a language constraint beyond its stated scope.

Content

No source excerpt is available for this finding.

The default prompt specifies Chinese subtitles without offering a language choice.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The instruction “并加同步中文字幕” explicitly requires synchronized Chinese subtitles. The manifest provides neither a subtitle-language choice nor a documented justification for restricting subtitles to Chinese.

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

python
image = Image.open(value)
    except UnidentifiedImageError:
        # Pillow cannot read HEIC, the format of the macOS wallpapers.
        converted = shutil.which('sips') and subprocess.run(
            ['sips', '-s', 'format', 'png', str(value), '--out', str(work/'wallpaper.png')],
            capture_output=True).returncode == 0
        if not converted:

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

python
def probe(path):
    raw = subprocess.check_output(['ffprobe', '-v', 'error', '-show_streams', '-of', 'json', str(path)])
    return json.loads(raw)['streams']

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

python
def decode_lead(path, fps):
    """Frames by which a part's first decode timestamp precedes its first picture."""
    raw = subprocess.check_output(['ffprobe', '-v', 'error', '-select_streams', 'v:0',
                                   '-read_intervals', '%+#1', '-show_entries',
                                   'packet=pts_time,dts_time', '-of', 'json', str(path)])
    packet = json.loads(raw)['packets'][0]

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

python
def ff(work, *args):
    subprocess.run(['ffmpeg', '-nostdin', '-hide_banner', '-loglevel', 'error', '-n',
                    *map(str, args)], cwd=work, 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/cut_video.py (reported line 55)May include surrounding context.

python
def count_frames(path, index, fps):
    """Frames of a stream on the plan's constant-rate grid, as the render graph numbers them."""
    out = subprocess.run(['ffmpeg', '-nostdin', '-v', 'error', '-i', str(path), '-map', f'0:{index}',
                          '-vf', f'fps={fps}:start_time=0', '-progress', 'pipe:1', '-f', 'null', '-'],
                         capture_output=True, text=True, check=True).stdout
    return int(re.findall(r'^frame=(\d+)$', out, re.M)[-1])

The module describes local transcription, but ambient credentials can select remote audio uploads.

Medium
Category
Excessive Agency
Confidence
98% confidence
Finding

The module and generated CLI description advertise local transcription, but the presence of an environment credential automatically selects remote processing. Although other documentation describes API mode and the script prints the endpoint, neither requires affirmative approval before recording audio leaves the machine.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/find_fillers.py (reported line 98)May include surrounding context.

python
Defaults to tokenra.io, which serves whisper-1 over the standard endpoint:
    register at https://tokenra.io to get a key, then pass --api-key or set
    TOKENRA_API_KEY.  Any other OpenAI-compatible base URL works too
    (https://api.openai.com/v1, a self-hosted gateway, ...).
    No extra dependencies: uses only stdlib urllib and wave."""
    buf = io.BytesIO()
    with wave.open(buf, 'wb') as wf:

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

python
if args.output.exists():
        p.error(f'Output already exists: {args.output}')

    raw = subprocess.check_output(['ffmpeg', '-v', 'error', '-i', str(args.source),
                                   '-map', '0:a:0', '-af', 'aresample=16000:async=1:first_pts=0',
                                   '-ac', '1', '-f', 's16le', '-'])
    audio = np.frombuffer(raw, '<i2').astype('float32') / 32768