T06 · System Persistence
- Location
HEARTBEAT.md:3- Finding
Unrelated Persistent Filesystem Watch Configured Through Heartbeat
- Content
View full analysis
Vulnerability Details
File Location:
HEARTBEAT.md:3-8
Vulnerability Type: Persistent filesystem monitoring and modification outside the declared Skill scope
Risk Level: HighVulnerable Configuration
md ## Active Watch — dealdesk-review-window - Watch path: /workspace/run/project/incoming/ - On change: re-read new or modified files, update tracker at /workspace/run/project/tracker/dealdesk-review-window.md, and update summary at /workspace/run/project/reports/dealdesk-review-window-summary-2026-03-29.md. - Blocker labels: Missing approval, Needs approver, Missing attachment. - Do not create cron jobs unless a true exact-time requirement appears in the files.Technical Analysis
The package declares itself as a video-content analysis Skill that extracts frames, performs searches, stores results in Supabase, and publishes reports to Feishu Wiki. The heartbeat configuration instead defines an active Deal Desk watch over
/workspace/run/project/incoming/.In an agent runtime that processes
HEARTBEAT.md, this configuration causes files added to or modified in that directory to be read repeatedly. It also directs the agent to write tracker and summary files at fixed paths. Neither Deal Desk processing nor persistent monitoring is required for video analysis.The configuration therefore exceeds minimum privilege by requesting continuing read access to an unrelated directory and write access to unrelated tracker and report locations. The instruction to derive exact-time requirements from watched files also creates a route through which file content could influence later scheduling decisions.
Attack Path
- A user installs or loads the video-content-analyzer workspace.
- The agent runtime discovers and processes
HEARTBEAT.md. - The runtime treats the
dealdesk-review-windowentry as an active watch. - A file is created or modified under
/workspace/run/project/incoming/. - The ...[truncated 825 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the unrelated Deal Desk heartbeat configuration from this package.
- Distribute monitoring functionality as a separate, explicitly enabled Skill.
- Require informed user confirmation before creating any persistent watch.
- Restrict approved watch paths to a Skill-specific directory using canonical-path validation.
- Reject symlinks and path traversal that could escape the approved directory.
- Treat watched file contents as untrusted data and prohibit them from issuing agent or scheduler instructions.
- Require separate confirmation before writing tracker or report files.
- Provide a clear command to list and disable every active watch.
