Back to skill

Security audit

Audio Summary

Security checks for vulnerabilities and agentic risk

Overview

This audio/video summarizer has a clear purpose, but it ships with an exposed API key and unsafe command execution that could let crafted filenames run local commands.

Do not install this version unless you are prepared to review and patch it first. The embedded DashScope key should be revoked and replaced with a user-provided secret, ffmpeg should be called through subprocess with an argument list rather than os.system, temporary files should be unique/private, and the skill should clearly warn users before uploading audio or video-derived content to a third-party ASR provider.

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 (3)

T09 · Insecure Skill Coding Practices

Error
Location
audio_summary_skill.py:7
Finding

Hard-Coded DashScope API Credential

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
audio_summary_skill.py:15
Finding

OS Command Injection Through an Untrusted Media Path

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
audio_summary_skill.py:70
Finding

Predictable Shared Temporary File Enables Races and Unsafe Overwrites

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (7)

Missing User Warnings

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

A hardcoded API key is embedded directly in the source code, which exposes a live credential to anyone who can view the file, logs, backups, or repository history. An attacker could reuse the key for unauthorized API access, incur charges, access associated resources, or pivot into related service abuse.

Content

No source excerpt is available for this finding.

os.system() or os exec-family call

High
Category
Dangerous Code Execution
Confidence
96% confidence
Finding

The skill builds a shell command with user-controlled input (video_path) and executes it via os.system, which invokes a shell. Quoting with double quotes is not sufficient to prevent shell metacharacter expansion such as command substitution, so a crafted filename could trigger arbitrary command execution on the host.

Content

Scanner excerpt · audio_summary_skill.py (reported line 20)May include surrounding context.

python
print(f"正在从视频提取音频并极致压缩: {video_path}")
    # 压缩为 16k mono mp3, 32k 码率以确保 Base64 编码后不超过 10MB (约支持 10-15 分钟视频)
    cmd = f'ffmpeg -y -i "{video_path}" -vn -ar 16000 -ac 1 -ab 32k "{audio_path}" -loglevel error'
    os.system(cmd)
    return os.path.exists(audio_path)

def transcribe_with_data_uri(audio_path):

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The natural-language instructions throughout the skill file are Chinese-only, which can impose a language constraint on users without opt-in. The file does not state that the skill is intended only for Chinese-speaking users or provide an alternative language option.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill sends user-provided audio/video content to an external ASR provider, but the description does not warn about this data transfer or its privacy implications. Users may unknowingly submit sensitive conversations, meetings, or recordings to a third-party service, creating confidentiality, compliance, and consent risks.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

In this skill context, shell execution is directly tied to processing attacker-influenced media paths, so the command-execution capability is not merely incidental. Because the feature is exposed in a summarization utility, users may supply untrusted filenames or files from shared locations, increasing the chance of command injection or unsafe execution flows.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The script's user-visible messages and the transcription instruction are written only in Chinese, and the model prompt directs output in that language context without any opt-in or locale selection. This can violate language/locale policy when users are not given a choice.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill base64-encodes local audio and transmits it to a third-party ASR endpoint without explicit user consent, warning, or data-handling notice. This can leak sensitive spoken content, personal data, or confidential business information, especially because summarization tools are often used on meetings or private recordings.

Content

No source excerpt is available for this finding.