Back to skill

Security audit

Ralph Mode - Autonomous Development Loops

Security checks for vulnerabilities and agentic risk

Overview

This skill is not malicious, but it should be reviewed because it can drive autonomous code changes and recommends very high sub-agent parallelism that could consume substantial resources.

Install only if you want an agent to run structured autonomous coding loops in a project. Set explicit iteration, time, concurrency, and cost limits before use, avoid the 250-subagent discovery pattern, and review commits or file changes before trusting the result.

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
Findings (1)

other

Warning
Location
references/patterns.md:7
Finding

Excessive Parallel Agent Delegation Can Exhaust Resources

Content
View full analysis

Vulnerability Details

File Location: references/patterns.md:7-10
Vulnerability Type: Uncontrolled resource consumption
Risk Level: Medium

Complete Code Snippet:

markdown
## Discovery

Sub-agents learn patterns during Phase 0c of the loop:

> "Study src/lib/* with up to 250 parallel Sonnet subagents to understand shared utilities & components"

Technical Analysis

The Skill recommends using up to 250 parallel model sub-agents for routine source-code discovery. This concurrency level is disproportionate to the stated task and lacks safeguards such as a conservative default, explicit user approval, account-level budget enforcement, rate limiting, bounded queues, or early cancellation.

If an agent follows this instruction literally, it may create a large burst of model requests. Although this is not evidence of malicious intent and does not grant operating-system privileges, it creates a resource-exhaustion risk affecting API quotas, financial budgets, and service availability.

Attack Path

  1. A user activates the Skill on a project containing a src/lib directory.
  2. The discovery phase reads and follows the quoted recommendation.
  3. The orchestrating agent launches as many as 250 sub-agents concurrently.
  4. Each sub-agent consumes model tokens, request capacity, and session resources.
  5. The burst exhausts quotas, triggers throttling, incurs unexpected charges, or degrades availability.
  6. Repeated activation can reproduce or amplify the impact.

Impact Assessment

No additional system privileges are obtained. The affected scope is resource availability and cost within the user's model account or agent platform. Potential consequences include quota exhaustion, unexpected API charges, rate limiting, delayed legitimate workloads, and temporary denial of service for other sessions.

Remediation
View remediation

Remediation Suggestions

  • Replace the 250-agent recommendation with a conservative default, such as two to four concurrent workers.
  • Require explicit user confirmation before increasing concurrency beyond the default.
  • Enforce hard limits for concurrent sessions, total spawned agents, token consumption, elapsed time, and monetary cost.
  • Use a bounded work queue rather than launching all workers simultaneously.
  • Cancel outstanding workers once adequate discovery coverage has been achieved.
  • Add exponential backoff and handling for rate-limit responses.
  • Record agent count and estimated resource consumption in the progress log.
  • Prefer deterministic local indexing or search tools for initial source discovery and reserve sub-agents for narrowly scoped analysis.
Vulnerability Patterns
  • Memory PoisoningPersistent Context Injection, Context Window Stuffing, Memory Manipulation
  • Rogue AgentSelf-Modification, Session Persistence
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (5)

Memory Manipulation

High
Category
Memory Poisoning
Confidence
90% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

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

md
|--------------|-------------|------------|
| No progress logging | Parent agent cannot determine status | Mandatory PROGRESS.md |
| Silent failure | Work lost, time wasted | Explicit error logging |
| Overlapping sessions | File conflicts, corrupt state | Check/cleanup before spawn |
| Path assumptions | Wrong directory, wrong files | Explicit verification |
| No completion signal | Parent waits indefinitely | Clear COMPLETE status |
| Infinite iteration | Resource waste, no progress | Time limits + blockers |

Self-Modification

High
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

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

md
If cron reports same status repeatedly:
1. Check PROGRESS.md was updated by sub-agent
2. If not updated → sub-agent skipped documentation step
3. Update skill: Add "MANDATORY PROGRESS.md update" to prompt
4. Manual fix: Update PROGRESS.md to reflect actual state

## Summary

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.