Back to skill

Security audit

RDK X5 App Resources

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward RDK X5 hardware resource guide, but users should treat its GPIO, camera, and root-permission examples as real hardware-control actions.

Install only if you intend to use an RDK X5 board's /app demos. Before running GPIO, PWM, camera, ISP tuning, or root-level examples, confirm the board model, pin numbering, wiring, voltage and current limits, and that attached hardware is safe to actuate.

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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (2)

Missing User Warnings

Medium
Confidence
90% confidence
Finding
The skill gives step-by-step instructions for GPIO, I2C/SPI, camera, RTSP, ISP tuning, and other hardware-facing operations without clear safety gating, confirmation requirements, or warnings about physical and system-side effects. In this context, users may directly actuate pins, motors, relays, or tuning tools in ways that can damage connected hardware, disrupt device operation, or create unsafe behavior on a live embedded board.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Content
## Important Notes

1. **⚠️ ALWAYS use system Python** - `/usr/bin/python3.10`, NOT conda
2. **Hardware Access**: Most operations require root privileges or proper hardware permissions
3. **Pin Numbers**: Use BOARD encoding (physical pin numbers) or BCM encoding (Broadcom)
4. **Library**: Uses `Hobot.GPIO` which is D-Robotics' GPIO wrapper
5. **Cleanup**: Always call `GPIO.cleanup()` when done
Confidence
60% confidence
Finding
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Static analysis

No suspicious patterns detected.