Back to skill

Security audit

Auto Demo Recording

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because scanners report concerns about browser isolation, recording existing services, and handling saved credentials, while several files were only partially analyzed.

Consider the suspicious verdict and incomplete analysis before installing. The clearest reported risks are reduced browser containment, the possibility of recording a live service, and unreliable protection of saved API keys. Review the remaining partially analyzed material before relying on the scan as a complete assessment.

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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
Findings (56)

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · README.en.md (reported line 403)May include surrounding context.

md
path in `timeline.json`. The bundled `.gitignore` excludes common output paths.
- **Local engines upload nothing.** Qwen and Kokoro run on your machine; so do the verification models.
- **A remote engine receives the caption text of every line** for synthesis. Keys stay local (environment or
  `secrets.json`, mode 600). Use a local engine or no narration if that matters.
- **Check before publishing.** Watch the final file once; the numeric checks cannot tell you that a customer
  name should not have been on screen.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · README.zh-CN.md (reported line 363)May include surrounding context.

md
- **用临时实例和示例数据录制。** 画面帧就是真实截图,屏幕上出现什么,视频里就有什么。
- **不要提交 work 目录**:里面有页面截图、数据片段,`timeline.json` 还记录了 story 文件的绝对路径。仓库自带的 `.gitignore` 已排除常见输出路径。
- **本地引擎不上传任何东西。** Qwen 与 Kokoro、核验模型都在本机运行。
- **远程引擎会把每句字幕发到服务商**(用于合成语音);密钥只存在本机(环境变量或 `secrets.json`,0600)。介意的话用本地引擎或不要旁白。
- **发布前亲自看一遍。** 数字检查无法判断画面上是否出现了不该出现的客户名称。

## 常见疑问

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/environment.md (reported line 176)May include surrounding context.

md
| Whisper | `DEMO_WHISPER` | `$HOME/models/whisper-large-v3` |
| CAM++ | `DEMO_VOICEPRINT` | `$HOME/models/campplus_zh.onnx` |
| Hugging Face cache | `HF_HUB_CACHE` / `HF_HOME` | `~/.cache/huggingface` |
| remote keys | `DEMO_TTS_API_KEY`, `OPENAI_API_KEY`, `ELEVENLABS_API_KEY`, `DASHSCOPE_API_KEY` | `secrets.json` |

`$HOME` above means the skill home, not the user's home. If you set `AUTO_DEMO_HOME`, use the same value for every
command. The script also finds models already downloaded in the Hugging Face cache.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/demo_env.py (reported line 239)May include surrounding context.

python
if unknown:
                raise SystemExit(f'能记密钥的只有:{", ".join(KEYS)}')
            remember_key(**pairs)
            print(f'记下了 {len(pairs)} 个密钥({HOME / "secrets.json"},只有你能读)')
    rows = look()
    if options.json:
        print(json.dumps({'home': str(HOME), 'settings': settings(), 'keys': {name: bool(key(name)) for name in KEYS}, 'rows': rows}, ensure_ascii=False, indent=1))

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

md
scripts/demo_record.py drive the app and record frames + timeline

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

md
The skill's own files live in `~/.cache/auto-demo-recording` (override with `AUTO_DEMO_HOME`). `references/environment.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 211)May include surrounding context.

md
`DEMO_FONT_*` (see `references/environment.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 190)May include surrounding context.

md
choose/fit/mix → verify. Read `references/narration.md` for settings, pronunciation fixes and tight lines, and

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/engines.md (reported line 92)May include surrounding context.

text

Keys are looked up in this order: `VOICE['api_key']` (discouraged), `DEMO_TTS_API_KEY`, the provider's own variable
(`OPENAI_API_KEY`, `ELEVENLABS_API_KEY`, `DASHSCOPE_API_KEY`), then `secrets.json` under the skill home, written by:

```bash
python3 scripts/demo_env.py key openai=sk-…     # mode 600; `key --list` shows which are set, masked

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/demo_common.py (reported line 117)May include surrounding context.

python
# ---------- the keys of remote services ----------
def secrets():
    try:
        return json.loads((HOME / 'secrets.json').read_text(encoding='utf-8'))
    except (OSError, ValueError):
        return {}

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/environment.md (reported line 155)May include surrounding context.

python3 scripts/demo_env.py key --list # which are set, masked

text

The key is written to `~/.cache/auto-demo-recording/secrets.json` readable by the owner only (on Windows it stays
under the user's profile). A key can also be set with `VOICE['api_key']` for a throwaway run, but prefer the
environment or the secrets file: story files are shared.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/demo_common.py (reported line 123)May include surrounding context.

python
def key(provider):
    """The key of a remote speech service: the environment variable first, then secrets.json. None when there is none."""
    for variable in KEYS.get(provider, ('DEMO_TTS_API_KEY',)):
        if os.environ.get(variable):
            return os.environ[variable]

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/demo_env.py (reported line 8)May include surrounding context.

python
python3 demo_env.py setup --models   # also fetches the two checking models (about 3 GB; public, from Hugging Face and GitHub)
    python3 demo_env.py setup --kokoro   # also fetches Kokoro, the CPU voice for Chinese and English (about 400 MB)
    python3 demo_env.py set chromium=/snap/bin/chromium tts_python=/path/to/python   # where things are on this machine
    python3 demo_env.py key openai=sk-…  # remember the key of a remote speech service (secrets.json, owner only)
    python3 demo_env.py key --list       # which services have a key

Any Python 3.10 or later runs this script; everything else of the skill is run with the Python it makes. Nothing is

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/demo_common.py (reported line 10)May include surrounding context.

python
models/          whisper-large-v3 and campplus_zh.onnx for checking; the speech models and Kokoro, if put here
    tts-venv/        a Python with the speech model's packages, if one was made here
    settings.json    where things are on this machine when they are somewhere else
    secrets.json     the keys of remote speech services (written by demo_env.py key, mode 600)

Each thing is looked for in this order: its environment variable, settings.json, the folder above, the usual
download places. The first that exists is taken.

Credential Access

High
Category
Privilege Escalation
Confidence
97% confidence
Finding

The function writes plaintext API keys before applying owner-only permissions, so a newly created file can temporarily be readable by other local users under a permissive umask and traversable cache directory. Permission-setting errors are silently ignored, potentially leaving the exposure persistent; on Windows, the code does not establish the owner-only ACL it implies.

Content

Scanner excerpt · scripts/demo_common.py (reported line 135)May include surrounding context.

python
kept = {**secrets(), provider: value}
    kept = {name: secret for name, secret in kept.items() if secret}
    HOME.mkdir(parents=True, exist_ok=True)
    path = HOME / 'secrets.json'
    path.write_text(json.dumps(kept, ensure_ascii=False, indent=1) + '\n', encoding='utf-8')
    try:
        path.chmod(stat.S_IRUSR | stat.S_IWUSR)

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

python
raise SystemExit(f'端口 {port} 上已经有服务在跑,它不是这次录制启动的。换一个端口(故事文件里的 PORT),不要去停别人的服务')
            with open(work / 'server.log', 'w', encoding='utf-8', errors='replace') as log:
                server = subprocess.Popen([str(part) for part in plan['command']], cwd=plan.get('cwd'), stdout=log, stderr=subprocess.STDOUT,
                                          env={**os.environ, **{key: str(value) for key, value in (plan.get('env') or {}).items()}},
                                          **({'creationflags': subprocess.CREATE_NEW_PROCESS_GROUP | subprocess.CREATE_NO_WINDOW} if WINDOWS else {'start_new_session': True}))
        if served:
            await answering(api, plan.get('ready') or url, plan.get('timeout', 60), server)

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

python
# ---------- the steps in order ----------
def run(step, *arguments, python):
    """One step of this script as a program of its own: the speech model may have its own Python, and what a step loads onto the graphics card is gone when it ends."""
    quiet = {**os.environ, 'PYTHONDONTWRITEBYTECODE': '1', 'HF_HUB_OFFLINE': '1', 'TRANSFORMERS_OFFLINE': '1', 'TOKENIZERS_PARALLELISM': 'false'}
    command = [str(python), __file__, step, *(str(argument) for argument in arguments), '--work', str(cfg.work)]
    command += (['--video', str(cfg.video)] if cfg.video else []) + (['--out', str(cfg.out)] if cfg.out else [])
    if subprocess.run(command, env=quiet).returncode:

os.system() or os exec-family call

High
Category
Dangerous Code Execution
Confidence
85% confidence
Finding

os.system() and os exec-family calls run shell commands with the process's full privileges, enabling arbitrary command execution.

Content

Scanner excerpt · scripts/demo_voice.py (reported line 969)May include surrounding context.

python
own = where('python')  # started with some other Python: go on with the skill's own
        if not own or Path(sys.prefix).resolve() == Path(own).parent.parent.resolve():
            raise SystemExit(f'缺混音和听写用的包。{HOW}')
        os.execv(str(own), [str(own), __file__, *sys.argv[1:]])
    configure(options.work.resolve(), options.video.resolve() if options.video else None, options.out.resolve() if options.out else None)
    cfg.folder.mkdir(parents=True, exist_ok=True)
    speaks = lambda: need('tts_python', HOW)

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.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · references/environment.md (reported line 56)May include surrounding context.

md
- **Windows**: `winget install Gyan.FFmpeg` (or `choco install ffmpeg`), then open a new terminal so `PATH` has it.
- **macOS**: `brew install ffmpeg`.
- **Debian/Ubuntu**: `sudo apt install ffmpeg`. Some minimal or snap builds omit `libx264`; use a full build.

### Chromium

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · references/environment.md (reported line 80)May include surrounding context.

md
- **Windows**: Microsoft YaHei (`msyh.ttc`, `msyhbd.ttc`) — built in.
- **macOS**: PingFang SC (`PingFang.ttc`), Hiragino — built in.
- **Debian/Ubuntu**: `sudo apt install fonts-noto-cjk`.

The renderer searches the usual folders and falls back to `fc-match` where fontconfig exists. If it still cannot find
a face, point at a file (use `file#index` for a face inside a `.ttc`):

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · scripts/demo_env.py (reported line 102)May include surrounding context.

python
add('录制与渲染', '本技能的 Python', 'missing', f'{HOME / "venv"} 还没有', setup)
    for tool in ('ffmpeg', 'ffprobe'):
        add('录制与渲染', tool, 'ok' if shutil.which(tool) else 'missing', shutil.which(tool) or '不在 PATH 里',
            '装系统的 ffmpeg(要带 libx264):Windows 用 winget install Gyan.FFmpeg,macOS 用 brew install ffmpeg,Debian/Ubuntu 用 sudo apt install ffmpeg')
    if shutil.which('ffmpeg'):
        encoders, filters = answer(['ffmpeg', '-hide_banner', '-encoders'])[1], answer(['ffmpeg', '-hide_banner', '-filters'])[1]
        gone = [name for name in ('libx264', 'aac') if f' {name} ' not in encoders] + [name for name in ('atempo', 'ebur128') if f' {name} ' not in filters]

The recorder disables Chromium's sandbox without warning about the security implications.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The documentation states that the recorder runs Chromium with --no-sandbox, removing an important containment boundary for browser exploitation. A malicious or compromised application page or embedded resource could exploit a browser vulnerability with substantially less containment, potentially exposing files and credentials accessible to the recording process; using sample data does not provide operating-system isolation.

Content

No source excerpt is available for this finding.

Remote narration lacks an explicit disclosure that caption text is sent to the selected service.

Medium
Category
Output Handling
Confidence
87% confidence
Finding

The document provides a narration workflow that speaks every caption and supports third-party remote engines, but does not explicitly warn that those engines receive the caption text. Naming remote providers and discussing keys and costs does not explain the privacy implications for potentially sensitive captions.

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

python
def answer(command, **more):
    try:
        done = subprocess.run([str(part) for part in command], capture_output=True, text=True, timeout=120, **more)
    except (OSError, subprocess.TimeoutExpired) as error:
        return 1, str(error)
    return done.returncode, (done.stdout + done.stderr).strip()