Back to skill

Security audit

Cron Doctor by Clawra

Security checks for vulnerabilities and agentic risk

Overview

Cron Doctor is a coherent cron troubleshooting skill, but its default workflow asks the agent to inspect system-wide cron files and logs with elevated access before clear user approval.

Review this skill before installing. If used, keep diagnostics user-scoped first with `crontab -l`, do not grant sudo or broad log access unless you specifically need a system-wide cron audit, and review or redact sensitive paths, usernames, command arguments, and secrets before saving the generated report.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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
Findings (1)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:26
Finding

Default Diagnostic Workflow Requests Excessive Privileged System Access

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Rogue AgentSelf-Modification, Session Persistence
  • 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 (4)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The trigger list includes broad natural-language phrases such as 'job not running' and 'backup failed', which can cause the skill to activate in contexts broader than intended. Overbroad activation increases the chance the agent will run diagnostic commands or recommend actions on the wrong task or host context without clear user intent.

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 29)May include surrounding context.

bash
# List user's crontab
crontab -l

# List system crontabs
sudo cat /etc/crontab

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
91% confidence
Finding

The skill explicitly instructs use of 'sudo cat /etc/crontab', which encourages privileged command execution. In an agent setting, unnecessary escalation expands the blast radius of mistakes and can normalize prompting for or using elevated access even when user-level diagnostics would suffice.

Content

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

crontab -l

List system crontabs

sudo cat /etc/crontab ls -la /etc/cron.d/

text

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill instructs the agent to write a report to ~/workspace/reports/cron-health-YYYY-MM-DD.md without warning the user that local files will be created or modified. Even though the write target is limited, silent filesystem modification violates least surprise and can overwrite or create artifacts the user did not explicitly authorize.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.