Back to skill

Security audit

personal-assistant

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly coherent and disclosed, but it asks users to enable persistent background services and includes a YouTube anti-bot scraping workaround that should be reviewed before installation.

Install only if you are comfortable running a persistent local automation stack. Review the systemd units, cron entries, environment variables, output directories, and Memori database location before enabling them, and consider removing or replacing the YouTube transcript fetcher if you do not want scraping workflows that bypass platform bot checks.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Rogue AgentSelf-Modification, Session Persistence
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
Findings (23)

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The code’s primary behavior is limited to generating market briefs from a watchlist using Yahoo Finance data and Google News RSS, then saving results to local JSON files. While this aligns with one slice of the declared description ('watchlist-driven price/mover briefs from keyless data'), the declared purpose describes a much broader multi-function assistant with several other major capabilities that are absent from this code chunk. Additionally, the code performs news headline fetching via Google News RSS, which is not explicitly described. This is a description-behavior mismatch because the supplied code chunk represents only a narrow subset of the declared skill rather than the described overall assistant behavior.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The declared description presents a broad personal market-and-research assistant for user requests like market briefs, reading digests, site monitoring, and a dashboard. The supplied code does not implement those end-user features directly. Instead, it is an infrastructure/operations watchdog for content health: it checks whether expected digest/output files exist and are fresh, inspects a jobs status JSON, triggers local backfill scripts, maintains alerts, and runs continuously under Temporal. There is some thematic overlap with market briefs and monitoring, but the primary purpose is materially different: internal pipeline health management rather than delivering a personal assistant experience. The code also includes undeclared operational capabilities such as subprocess backfills and memory capture. Therefore the description does not accurately represent the actual behavior.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The declared description focuses on end-user assistant features such as market briefs, research/news digestion, reading inbox summaries, site monitoring, and dashboards. The supplied code does not implement any of those user-facing capabilities directly. Instead, it is an infrastructure component: a local memory subsystem that stores and recalls agent observations using SQLite and embeddings. While such memory could support the broader assistant, this chunk’s actual purpose is materially different from the declared purpose and adds undeclared capabilities around persistent semantic memory. There are no suspicious external/cloud accesses; in fact, the code explicitly keeps data local. The mismatch is therefore due to description-vs-behavior scope and primary function divergence.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The declared description presents a multi-feature personal assistant spanning market briefs, research digestion, reading workflows, website monitoring, and dashboarding. The supplied code does only one limited thing: fetch and process the latest Bloomberg Surveillance transcript from YouTube for local personal use. While this loosely overlaps with the declared 'video-transcript ideas fetcher' concept, the implementation is far narrower and does not support the other major advertised capabilities. This is therefore a material description/behavior mismatch due to substantially different scope and missing primary functions.

Content

No source excerpt is available for this finding.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 155)May include surrounding context.

md
- `SKILL.md` — the workflow documentation you are reading

Undeclared Tool Scope

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.

Session Persistence

Medium
Category
Rogue Agent
Confidence
85% confidence
Finding

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.

Content

Scanner excerpt · SKILL.md (reported line 138)May include surrounding context.

md
Removal is the reverse of setup, in this order:

1. **Stop scheduled jobs.** Delete the cron entries you created from
   `templates/brief-cron.md` (`crontab -e`); stop and disable the
   content-health systemd units from `references/temporal-setup.md`
   (`systemctl --user disable --now <unit>`); terminate any Temporal
   schedules for the watchdog. Verify: `crontab -l | grep -i

Session Persistence

Medium
Category
Rogue Agent
Confidence
85% confidence
Finding

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.

Content

Scanner excerpt · SKILL.md (reported line 141)May include surrounding context.

md
`templates/brief-cron.md` (`crontab -e`); stop and disable the
   content-health systemd units from `references/temporal-setup.md`
   (`systemctl --user disable --now <unit>`); terminate any Temporal
   schedules for the watchdog. Verify: `crontab -l | grep -i
   personal-assistant` prints nothing and `systemctl --user list-units |
   grep -i content-health` prints nothing.
2. **Delete data directories** created during setup: `briefs/`,

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The file documents a long-running Temporal watchdog that continuously monitors feeds, performs backfills, and runs effectively forever. That behavior materially exceeds a typical personal-assistant skill’s expected scope and introduces persistent automation and self-healing infrastructure that could be repurposed for unattended operation beyond the user’s intent.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The documentation instructs users to deploy always-on systemd services and cron-based supervision to keep the Temporal server and worker running across restarts. Persistent service installation increases the blast radius of any bug or misuse, because it creates durable background execution on the host that is not obviously necessary for a personal market/research assistant.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
94% confidence
Finding

The systemctl --user enable --now command explicitly establishes session-persistent background services that auto-start and continue running without further user interaction. In the context of a personal-assistant skill, this persistence is risky because it grants ongoing execution capability and makes unintended monitoring or backfill behavior durable across logins and restarts.

Content

Scanner excerpt · references/temporal-setup.md (reported line 106)May include surrounding context.

bash
systemctl --user daemon-reload
systemctl --user enable --now temporal-dev-server.service temporal-content-worker.service
# start the watchdog workflow once (idempotent; survives worker restarts via event history)
~/venvs/temporal/bin/python scripts/content_health_workflow.py start

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
94% confidence
Finding

This workflow executes a Python script via subprocess, and the script path is configurable through an environment variable. Although shell injection is avoided by passing an argument list, this still creates an arbitrary code execution path if an attacker can influence deployment environment variables or the referenced file on disk.

Content

Scanner excerpt · scripts/content_health_workflow.py (reported line 193)May include surrounding context.

python
if not SURVEILLANCE_FETCH_SCRIPT.exists():
        return {"ok": False, "detail": f"fetch script not found: {SURVEILLANCE_FETCH_SCRIPT}"}
    try:
        p = subprocess.run(
            [sys.executable, str(SURVEILLANCE_FETCH_SCRIPT), "--out-dir", str(SURVEILLANCE_DIR)],
            capture_output=True, text=True, timeout=600,
        )

Tainted flow: 'SURVEILLANCE_FETCH_SCRIPT' from os.environ.get (line 102, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
98% confidence
Finding

The value of SURVEILLANCE_FETCH_SCRIPT flows from os.environ into subprocess.run, so anyone able to influence the runtime environment can redirect the workflow to execute arbitrary Python code. In a long-running automation worker, that can lead to full compromise of the worker account and any data or secrets it can access.

Content

Scanner excerpt · scripts/content_health_workflow.py (reported line 193)May include surrounding context.

python
if not SURVEILLANCE_FETCH_SCRIPT.exists():
        return {"ok": False, "detail": f"fetch script not found: {SURVEILLANCE_FETCH_SCRIPT}"}
    try:
        p = subprocess.run(
            [sys.executable, str(SURVEILLANCE_FETCH_SCRIPT), "--out-dir", str(SURVEILLANCE_DIR)],
            capture_output=True, text=True, timeout=600,
        )

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
94% confidence
Finding

This code launches a second Python script from a path that is environment-controlled, creating another arbitrary code execution primitive. The lack of shell=True reduces command injection risk, but it does not prevent execution of a malicious replacement script or attacker-supplied path.

Content

Scanner excerpt · scripts/content_health_workflow.py (reported line 229)May include surrounding context.

python
if not BRIEF_ENGINE_SCRIPT.exists():
        return {"ok": False, "detail": f"engine not found: {BRIEF_ENGINE_SCRIPT}"}
    try:
        p = subprocess.run(
            [sys.executable, str(BRIEF_ENGINE_SCRIPT), "--market", market],
            capture_output=True, text=True, timeout=900,
        )

Tainted flow: 'BRIEF_ENGINE_SCRIPT' from os.environ.get (line 105, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
98% confidence
Finding

The BRIEF_ENGINE_SCRIPT path is tainted from environment input and is executed directly, enabling arbitrary code execution if the environment or filesystem is compromised. Because this is part of a self-healing workflow, the execution may happen automatically and repeatedly, increasing blast radius and persistence.

Content

Scanner excerpt · scripts/content_health_workflow.py (reported line 229)May include surrounding context.

python
if not BRIEF_ENGINE_SCRIPT.exists():
        return {"ok": False, "detail": f"engine not found: {BRIEF_ENGINE_SCRIPT}"}
    try:
        p = subprocess.run(
            [sys.executable, str(BRIEF_ENGINE_SCRIPT), "--market", market],
            capture_output=True, text=True, timeout=900,
        )

Tainted flow: 'STATUS_FILE' from os.environ.get (line 108, credential/environment) → pathlib.Path.write_text (file write)

Medium
Category
Data Flow
Confidence
80% confidence
Finding

STATUS_FILE is derived from an environment variable and written without validation, so a user who can influence the service environment can redirect writes to unintended filesystem locations. This can overwrite sensitive application files, corrupt state, or place attacker-controlled content in paths consumed by other components.

Content

Scanner excerpt · scripts/content_health_workflow.py (reported line 327)May include surrounding context.

python
"""Persist the health snapshot where dashboards and humans can read it."""
    try:
        STATUS_FILE.parent.mkdir(parents=True, exist_ok=True)
        STATUS_FILE.write_text(json.dumps(status, indent=2))
        return {"ok": True, "path": str(STATUS_FILE)}
    except Exception as e:  # noqa: BLE001
        return {"ok": False, "detail": str(e)}

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The workflow exports operational summaries, feed states, alerts, and action history into an external long-term memory system unrelated to the core watchdog function. This creates a data exfiltration and retention risk because internal health state, filenames, timestamps, and incident details may be copied into another system with different access controls and retention policies.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The function persists raw user_content and assistant_content into a local SQLite-backed memory store without consent gating, minimization, or any visible warning to the end user. Even though the storage is local and not cloud-backed, this can still capture sensitive personal, financial, or operational data used by the personal-assistant skill, increasing privacy and disclosure risk if the host, filesystem, logs, backups, or later application features are compromised.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The script explicitly uses yt-dlp with the android player client to bypass YouTube datacenter anti-bot checks, which is an evasion technique rather than a normal personal-assistant function. In this skill context, that increases legal/compliance and platform-abuse risk and could normalize collection workflows that circumvent service protections, even if the immediate output is only a transcript for personal use.

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

python
def run(*args, check=True):
    p = subprocess.run(YTDLP + BASE_ARGS + list(args),
                       capture_output=True, text=True, timeout=300)
    if check and p.returncode != 0:
        raise RuntimeError(f"yt-dlp failed: {p.stderr.strip()[:300]}")

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

The script sends ticker symbols derived from the user's watchlist or CLI input to Yahoo Finance over the network, but the runtime output does not disclose that this data is being transmitted. Although the module docstring mentions the data source, it does not clearly warn that user-selected tickers are sent to an external service.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

The function builds a Google News search query from each ticker and sends it over the network, which discloses the user's watchlist interests to a third party. There is no explicit user-facing warning or confirmation about this external transmission beyond the technical docstring describing the API source.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
87% confidence
Finding

This code fetches data from Yahoo Finance and Google News over the network, but the runtime behavior provides no user-facing disclosure when those outbound HTTP requests are made. Although the module docstring lists data sources, there is no explicit warning at execution time or clear privacy notice for the external requests.

Content

No source excerpt is available for this finding.