T08 · Insecure Dependencies
- Location
SKILL.md:17- Finding
Unpinned Third-Party Python Dependencies
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This appears to be a real RealSense camera capture tool, but it needs review because it records sensitive sensor data locally and has unsafe FFmpeg path handling.
Install only if you are comfortable with a script that can access a RealSense camera and save RGB, depth, point-cloud, video, and IMU data to disk. Use a virtual environment, avoid administrative privileges, use a simple trusted output path without quotes or newlines, and review or patch the FFmpeg manifest handling before using RGBD recording in shared or untrusted workflows.
SKILL.md:17Unpinned Third-Party Python Dependencies
scripts/realsense_capture.py:174FFmpeg Concat Manifest Injection Through User-Controlled Output Path
The skill documents shell commands and file-writing behavior but does not declare any tool scope such as allowed-tools or permissions. That creates an authorization/expectation gap: an agent or user may invoke shell and write-to-disk behavior without explicit consent boundaries, increasing the chance of unintended command execution or data persistence.
subprocess module calls execute external commands. Without careful input validation, this enables command injection.
print("[PointCloud] Trying rs-pointcloud utility...")
ply_path = out_path("pointcloud", "ply", "pointcloud")
try:
r = subprocess.run(["rs-pointcloud", "--output", ply_path,
"--format", "ply"],
capture_output=True, text=True, timeout=5)
if r.returncode == 0:
The manifest describes a RealSense capture skill for depth photos, point clouds, IMU data, and RGBD recording, which justifies camera access and local file output. However, the implementation also depends on spawning external executables via subprocess, introducing broader host-execution capability not explicitly justified by that stated purpose.
subprocess module calls execute external commands. Without careful input validation, this enables command injection.
with open(rgb_list, "w") as f:
for fp in rgb_frames: f.write(f"file '{fp}'\n")
subprocess.run(["ffmpeg", "-y", "-f", "concat", "-safe", "0", "-i", rgb_list,
"-c:v", "libx264", "-preset", "ultrafast", "-crf", "23", rgb_out],
capture_output=True)
Recording RGBD video is within the manifest's stated purpose, but the manifest does not indicate that the skill will execute system-level encoding tools. This expands the capability surface from device capture and file storage to launching external programs on the host.
subprocess module calls execute external commands. Without careful input validation, this enables command injection.
with open(depth_list, "w") as f:
for fp in depth_frames: f.write(f"file '{fp}'\n")
subprocess.run(["ffmpeg", "-y", "-f", "concat", "-safe", "0", "-i", depth_list,
"-c:v", "libx264", "-preset", "ultrafast", "-crf", "23", depth_out],
capture_output=True)
The manifest description and main body are written in Chinese, with no indication that users may choose another language or that the skill is intentionally restricted to a Chinese-speaking audience. Under the stated policy, forcing a specific language without opt-in is a natural-language policy violation.
The skill captures and stores RGB images, depth data, point clouds, video, and IMU telemetry to disk, but the description does not present a prominent user warning about recording and persistence. This can lead to inadvertent collection of sensitive environmental imagery or motion data, especially in private or regulated spaces.
The file includes user-facing instructional text in Chinese for the default output behavior, while the rest of the script is primarily in English. This imposes a specific language on users without opt-in or a documented locale-specific reason, which matches the language/locale policy concern.