Back to skill

Security audit

Debugging R Environment And Dependencies

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward R environment troubleshooting guide, but users should review any package or system install commands before running them.

Before installing, understand that this skill may lead the agent to recommend or run commands that change your R libraries or install system packages. Review sudo, dnf, apt, brew, renv restore/update, PATH, and permission changes before approving them, especially on shared or production machines.

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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (6)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill includes system-modifying package installation guidance, including OS-level dependency installation, without any warning that these commands change the host environment and may require elevated privileges. In an agentic context, such instructions can normalize or trigger unsafe modifications to the user's system, especially if applied automatically or without confirmation.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
96% confidence
Finding

The README explicitly recommends a sudo apt install command, which invokes privileged system-level changes. Even though the context is legitimate troubleshooting, embedding root-level commands in a skill without guardrails or warnings increases the risk that an agent or user executes them indiscriminately, potentially altering the system, breaking dependencies, or expanding the blast radius of mistakes.

Content

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

md
Skill actions:
- Detects missing system libraries (GEOS, GDAL, PROJ)
- Provides Ubuntu/Debian: sudo apt install libudunits2-dev libgdal-dev libgeos-dev libproj-dev
- Provides macOS: brew install pkg-config gdal geos proj udunits
- Retries R package installation
- Confirms successful library loading

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The skill explicitly directs actions that can modify the host system and project environment, including installing compilers, development libraries, changing PATH/permissions, and restoring or reinitializing renv libraries, but it does not warn the user that these steps may alter the local machine. In an agent setting, this can lead to unexpected system changes, package breakage, or privilege-requiring operations being suggested or performed without clear user acknowledgment.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The example invocation phrase, "renv restore is broken, please fix it", is broad natural language that could easily match ordinary user requests outside a tightly scoped test context. In a skill-routing system, this increases the chance of unintended activation, causing the agent to enter a troubleshooting workflow and potentially suggest environment-changing actions when the user did not explicitly invoke this skill.

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 · examples/missing-system-deps/README.md (reported line 40)May include surrounding context.

Ubuntu/Debian:

bash
sudo apt install libudunits2-dev libgdal-dev libgeos-dev libproj-dev

macOS:

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 · examples/missing-system-deps/README.md (reported line 50)May include surrounding context.

Ubuntu/Debian:

bash
sudo apt install libudunits2-dev libgdal-dev libgeos-dev libproj-dev

macOS:

Static analysis

No suspicious patterns detected.