Back to skill

Security audit

AutoSignals

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed research controller, but it can start and stop an indefinite autonomous agent loop through unreviewed local scripts with weak scoping and process-control safeguards.

Install only if you intentionally operate the AutoSignals project at the documented local path and are comfortable with an agent starting a persistent research loop that edits code and consumes compute. Before using start or stop commands, verify the referenced scripts and virtual environment yourself, run the project in an isolated directory under version control, and replace the PID-file kill command with a validated stop script.

Vulnerability Patterns
  • Tool Hijacking and SpoofingModifies or replaces tools so legitimate-looking calls execute attacker logic
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (2)

T07 · Tool Hijacking and Spoofing

Error
Location
SKILL.md:39
Finding

Execution of Unpackaged and Unaudited External Scripts

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:39-47, SKILL.md:66-70, SKILL.md:100-103, and README.md:23-27
Vulnerability Type: Execution of externally maintained local tools without integrity validation
Risk Level: High

Vulnerable Code

SKILL.md:39-47:

bash
bash /Users/clawdiri/Projects/autosignals/status.sh
bash
bash /Users/clawdiri/Projects/autosignals/start.sh

SKILL.md:66-70:

bash
bash /Users/clawdiri/Projects/autosignals/monitor.sh

SKILL.md:100-103:

bash
cd /Users/clawdiri/Projects/autosignals
source .venv/bin/activate
python prepare.py

README.md:23-27:

bash
# Check loop status
bash /Users/clawdiri/Projects/autosignals/status.sh

# Start autonomous loop
bash /Users/clawdiri/Projects/autosignals/start.sh

Technical Analysis

The audited package contains only SKILL.md and README.md; none of the referenced shell scripts, Python programs, or virtual-environment dependencies are included. The Skill nevertheless instructs the Agent to execute these external files as trusted components.

Because /Users/clawdiri/Projects/autosignals/ is outside the reviewed package, its contents can be created, replaced, or modified independently after the Skill has been reviewed. Invoking a script by an absolute path does not establish its ownership, integrity, or provenance. Activating the external .venv also places its executables and packages into the command environment without any dependency lockfile or integrity verification available in the audited artifact.

The start.sh instruction is particularly sensitive because the documentation states that it starts a background autonomous loop that runs indefinitely. Any malicious behavior in that script or the programs it launches could therefore continue beyond the immediate command invocation.

Attack Path

  1. An attacker gains write access to `/Users/clawdiri/Projects ...[truncated 1170 chars]
Remediation
View remediation

Remediation Suggestions

  1. Bundle all required scripts and Python source files inside the Skill package so they can be reviewed together.
  2. Resolve executable paths relative to a trusted, immutable Skill directory rather than a user-specific external directory.
  3. Before execution, verify each component's canonical path, owner, permissions, file type, and cryptographic digest against an approved manifest.
  4. Reject symlinks and files writable by untrusted users or groups.
  5. Use a locked dependency manifest with hashes and construct the virtual environment from reviewed dependencies rather than activating an unverified external environment.
  6. Require explicit user confirmation before launching the permanent background loop.
  7. Run research and backtesting components in a restricted sandbox with minimal filesystem access, constrained network access, resource limits, and no unnecessary credentials.
  8. Record the verified script hashes and execution results in an audit log.

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:52
Finding

Unvalidated PID File Used for Process Termination

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:52-55 and README.md:29-31
Vulnerability Type: Unsafe process control using untrusted PID-file contents
Risk Level: Medium

Vulnerable Code

SKILL.md:52-55:

bash
kill $(cat /Users/clawdiri/Projects/autosignals/autosignals.pid)

README.md:29-31:

bash
# Stop the loop
kill $(cat /Users/clawdiri/Projects/autosignals/autosignals.pid)

Technical Analysis

The command performs unquoted command substitution and passes the contents of autosignals.pid directly as arguments to kill. It does not verify that the file contains exactly one positive decimal process identifier, that the PID file is trustworthy, or that the selected process is the AutoSignals loop.

Shell word splitting allows multiple whitespace-separated values in the file to become multiple kill arguments. Option-like content can also be interpreted as command options or special process-selection values. Even if the file contains a syntactically valid PID, a stale file can refer to an unrelated process after operating-system PID reuse.

The use of a predictable external PID file without documented ownership, permission, locking, or process-identity checks makes process termination dependent on mutable state that is not validated by the command.

Attack Path

  1. An attacker or faulty process modifies autosignals.pid, or the file remains stale after the original AutoSignals process exits.
  2. The file is populated with the PID of another process, multiple process identifiers, or an option-like value accepted by kill.
  3. The Agent follows the documented stop procedure.
  4. Shell expansion converts the file contents into arguments to kill.
  5. One or more unintended processes available to the Agent user are signaled and may terminate.

A separate non-malicious path exists when the recorded PID is reused by the operating system: the command can terminate an unrelat ...[truncated 563 chars]

Remediation
View remediation

Remediation Suggestions

Replace the inline command substitution with a validated shutdown procedure:

bash
pid_file="/Users/clawdiri/Projects/autosignals/autosignals.pid"

[ -f "$pid_file" ] || {
    printf '%s\n' "PID file not found" >&2
    exit 1
}

IFS= read -r pid < "$pid_file"

case "$pid" in
    ''|*[!0-9]*)
        printf '%s\n' "Invalid PID file" >&2
        exit 1
        ;;
esac

[ "$pid" -gt 1 ] || {
    printf '%s\n' "Unsafe PID value" >&2
    exit 1
}

kill -0 "$pid" 2>/dev/null || {
    printf '%s\n' "Process is not running" >&2
    exit 1
}

# Verify the executable, command line, owner, or another process identity
# attribute before sending the termination signal.
kill -- "$pid"

Additional hardening should include:

  1. Create the PID file with restrictive permissions in a directory writable only by the owning user.
  2. Write the PID atomically and remove it when the process exits.
  3. Verify the process executable, start time, owner, or a securely generated instance identifier before termination.
  4. Use a supervised service manager or a dedicated stop script that tracks process identity safely.
  5. Refuse multiple values, negative values, process-group selectors, and stale process records.
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • 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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (3)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The README promotes a continuously running autonomous loop that spawns agents, modifies code, and manages long-lived processes, but it does not provide a prominent safety warning about persistent file mutation, unattended execution, or the operational risks of starting and stopping the loop. In a skill intended for autonomous experimentation, this omission is meaningful because users may launch it without understanding that it can continuously alter signals.py, consume resources, and require manual process control.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill has no trigger patterns and minimal activation constraints, yet it exposes operational commands that start, stop, and monitor a continuously running autonomous trading loop. In an agent ecosystem, vague invocation boundaries increase the chance of accidental or overly broad activation, which could lead to unintended process control or interaction with a sensitive local project path.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The documentation includes commands that can start a perpetual background process and kill it, but it does not clearly warn that these are long-running or state-changing control actions. In context, this is more dangerous because the skill manages an autonomous loop tied to local filesystem paths and trading research infrastructure, so an agent or user could trigger disruptive actions without appreciating their persistence or operational impact.

Content

No source excerpt is available for this finding.