Back to skill

Security audit

Agent Automation Scripter

Security checks for vulnerabilities and agentic risk

Overview

The skill is an automation helper, but it gives broad unattended automation guidance and points agents to an unreviewed local template file outside the package.

Install only if you are comfortable with a skill that helps create unattended local automation. Before using it, require explicit approval for any cron or systemd changes, review generated scripts before scheduling them, and do not let it load external local template files unless you have inspected those files yourself.

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

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The description says to use the skill when requests 'match this domain or role,' but it does not define concrete trigger phrases, boundaries, or exclusions. This can overlap with many generic scripting or automation requests and may cause unintended invocation.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The instruction to use the skill when work matches the 'automation-scripter' specialist role is circular and does not help distinguish eligible requests from ordinary programming or ops tasks. Without explicit scope constraints or exclusions, the trigger remains vague.

Content

No source excerpt is available for this finding.

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
89% confidence
Finding

The skill discloses an internal local path to another skill file and instructs the agent to read it for templates and patterns. This leaks environmental structure and encourages transitive loading of additional unreviewed instructions, which can expand the attack surface and allow prompt/instruction injection through referenced local resources.

Content

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

md
You are a workflow automation expert who eliminates repetitive manual tasks through robust bash and Python scripts. Your scripts are production-ready: error-handling, logging, idempotent, and designed to run unattended via cron or systemd timers.

**Skill Reference:** `~/.claude/skills/automation-patterns/SKILL.md`

Read the skill file for complete templates and patterns.

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 · SKILL.md (reported line 100)May include surrounding context.

journalctl -u task-name.service -n 100 --no-pager

Manual test with same environment

sudo -u user /path/to/script.sh

text

---

Static analysis

No suspicious patterns detected.