T03 · Remote Payload Retrieval and Execution
- Location
scripts/extractor_ppt.py:160- Finding
Unverified Remote Executable Retrieval and Execution
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This PPT conversion skill performs broad automatic dependency setup, including unverified executable downloads and possible privileged system package installation, which is too risky for normal document processing.
Review carefully before installing. Use this only in a disposable or locked-down environment with LibreOffice and Poppler already installed, and avoid letting it run with sudo or administrator rights. The skill should be changed to remove automatic package-manager use, verify downloaded artifacts, avoid global symlinks, and preserve outputs without overwriting by default.
scripts/extractor_ppt.py:160Unverified Remote Executable Retrieval and Execution
scripts/extractor_ppt.py:431Automatic Privileged Installation of Downloaded Packages
scripts/extractor_ppt.py:172Unsafe Extraction of Externally Downloaded Archives
SKILL.md:19Unpinned and Unverified Python Dependency Installation
scripts/extractor_ppt.py:542Declared Markdown Output Is Never Written
This block uses package managers and sudo-elevated subprocesses to install software automatically during document processing. In context, that is far beyond the least privilege needed for a PPT utility and can lead to unauthorized privileged system changes or make a compromised dependency path much more damaging.
This section installs LibreOffice packages on Linux and attempts to create a global symlink in /usr/local/bin, directly modifying host system state. Such persistent privileged changes are inappropriate for a document-processing skill and substantially increase risk if the workflow or downloaded artifacts are tampered with.
The skill’s stated purpose is PPT-to-speech conversion, but the instructions also authorize network downloads, dependency installation, and possible system package-manager use. That materially expands its capabilities beyond document processing and creates supply-chain and host-modification risk that a user would not reasonably expect from the description alone.
The script performs network downloads of external binaries and packages but this capability is not covered by declared permissions. Undeclared network access is especially risky here because it fetches executable content that is later used to modify the host.
The script performs network downloads of external binaries and packages but this capability is not covered by declared permissions. Undeclared network access is especially risky here because it fetches executable content that is later used to modify the host.
The module docstring claims AI-based speech generation, but the code never performs AI generation or writes the promised script. This deceptive or inaccurate description increases security risk because reviewers and users may approve capabilities based on a misleading stated purpose while missing the real host-modifying behavior.
The use of --noconfirm removes an interaction barrier for package installation, making it easier for the skill to alter the system without user awareness. That is especially dangerous here because package management is not central to the skill's advertised purpose.
update_cmd = None
elif shutil.which("pacman"):
pkg_manager = "pacman"
install_cmd = ["pacman", "-S", "--noconfirm", "poppler"]
update_cmd = None
elif shutil.which("zypper"):
pkg_manager = "zypper"
The code automatically downloads Poppler from the network for a document-conversion workflow without prior consent or strict integrity controls. Fetching executable tooling at runtime materially increases supply-chain and remote-content risk beyond what users would expect from local PPT processing.
The skill proceeds toward automatic Poppler setup and installation behavior without explicit user confirmation or a clear warning that host changes may occur. Silent dependency installation violates user expectations for a simple file-processing tool and makes accidental privileged modification more likely.
The code automatically downloads and prepares LibreOffice when it is not present, without prominent prior warning about network activity and possible installation/system changes. In this context, hidden setup of large external software is unjustified and raises both trust and supply-chain concerns.
This section installs DEB packages via dpkg, optionally with sudo, without a clear up-front warning that the script will perform privileged host package installation. That creates a dangerous gap between the declared document-processing purpose and the actual system-level side effects.
This code installs RPM packages through yum or dnf, potentially with sudo, without explicit warning about the privileged changes being made to the host. For a PPT-processing skill, this is excessive and could surprise users or administrators with persistent system modifications.
The skill advertises generation of a speech script or Markdown output, but the implementation only extracts slide content and creates thumbnails before printing completion. This mismatch is dangerous because users may authorize broader capabilities under false expectations, obscuring unjustified downloads and installations.
The trigger phrases are broad enough that the skill may activate for generic requests about analyzing slides or generating writing, causing unintended execution of Bash and file-write behavior. In this skill, accidental invocation is more dangerous because activation can lead to downloads, installation attempts, and overwriting outputs.
文件整体以中文规定技能行为,且 L003/L008-L089 对输出形式和写作要求均默认采用中文语境,没有说明可根据用户偏好切换语言。若组织政策要求不强制特定语言或需用户选择语言,这种默认单一语言行为可能构成自然语言/地区策略问题。
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
name: ppt-to-speech
description: 将 PPT/PPTX 文件转换为结构化演讲稿。当用户说"帮我整理这份PPT"、"把这个PPT转成演讲稿/文章"、"提取PPT内容"、"生成演讲稿"、"PPT转markdown"、"分析这份幻灯片",或提供了 .pptx 文件路径并要求处理时,立即使用此 skill。无需用户配置任何 API Key,由 Agent 自身完成演讲稿撰写。
version: 3.1.0
allowed-tools: Bash, Read, Write
---
将 PPTX 文件的每页标题、正文、演讲者备注提取为结构化数据,生成每页缩略图,最终由你(Agent)结合文字内容与缩略图,撰写一篇连贯、有感染力的 Markdown 演讲稿。
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
name: ppt-to-speech
description: 将 PPT/PPTX 文件转换为结构化演讲稿。当用户说"帮我整理这份PPT"、"把这个PPT转成演讲稿/文章"、"提取PPT内容"、"生成演讲稿"、"PPT转markdown"、"分析这份幻灯片",或提供了 .pptx 文件路径并要求处理时,立即使用此 skill。无需用户配置任何 API Key,由 Agent 自身完成演讲稿撰写。
version: 3.1.0
allowed-tools: Bash, Read, Write
---
将 PPTX 文件的每页标题、正文、演讲者备注提取为结构化数据,生成每页缩略图,最终由你(Agent)结合文字内容与缩略图,撰写一篇连贯、有感染力的 Markdown 演讲稿。
The skill instructs automatic downloading of LibreOffice and Poppler and may invoke OS package managers, which introduces untrusted external code into the environment for a task that should primarily be local document parsing. Even if the sources are intended to be legitimate, silent fetching and installation increases supply-chain, integrity, and environment-tampering risk.
The skill contemplates using sudo and system package managers to install dependencies, which elevates a document-conversion workflow into privileged system administration. If triggered inappropriately or if package sources are compromised, this could modify the host broadly and violate least-privilege expectations.
**权限要求**:
- Windows:无需管理员权限(使用便携式提取)
- Linux:若系统中未安装 poppler-utils,脚本会尝试通过 `apt`/`yum` 等包管理器安装,可能需要 sudo 权限;若无法获取 sudo,会提示手动安装。
如您不希望自动下载,可提前手动安装 LibreOffice 和 poppler-utils,并确保 `soffice` 和 `pdfinfo` 命令在 PATH 中。
---
The skill directs the agent to overwrite the generated .md file without a warning or a safer save-as flow. Destructive writes can erase intermediate extracted content and surprise users, especially if they expected the original extraction artifacts to be preserved for verification or reuse.
The sample speech explicitly describes an AI agent logging into a supermarket account, retrieving secrets from 1Password, obtaining SMS codes, and placing orders automatically. Even though this is presented as marketing/example content rather than executable logic, it normalizes high-risk account actions without any warning about consent, credential handling, privacy, or step-up confirmation, which could encourage unsafe agent behavior or user expectations in a skill designed to process user files into structured output.
The natural-language description and user-facing messaging indicate a fixed Chinese-language experience, but there is no opt-in, language selection, or justification for a locale-specific restriction. That can violate language/locale policy when a skill implicitly forces one language for all users.
Using pacman with --noconfirm suppresses user review and enables unattended package installation decisions. In combination with a document-processing skill, this autonomy makes unauthorized host changes easier and removes a safety checkpoint.
update_cmd = None
elif shutil.which("pacman"):
pkg_manager = "pacman"
install_cmd = ["pacman", "-S", "--noconfirm", "poppler"]
update_cmd = None
elif shutil.which("zypper"):
pkg_manager = "zypper"
The presence of sudo orchestration in a PPT skill indicates preparation for privileged operations beyond the tool's stated purpose. Even before execution, this design choice materially increases risk because it enables host-level changes from a low-trust document-processing path.
print("无法识别的包管理器,请手动安装 poppler-utils")
return False
# 判断是否需要 sudo
sudo = []
if os.geteuid() != 0:
# 检查 sudo 是否可以无密码运行
This code path sets up privileged execution flow for later package installation. Within the context of a conversion skill, building in root-capable behavior is unnecessary and broadens the potential damage from misuse or compromise.
return False
# 判断是否需要 sudo
sudo = []
if os.geteuid() != 0:
# 检查 sudo 是否可以无密码运行
try: