Back to skill

Security audit

TestDino — Test Memory for Agents

Security checks for vulnerabilities and agentic risk

Overview

The skill mostly matches its TestDino CI-monitoring purpose, but it asks users to grant broad shell execution and persist credentials in ways that create avoidable security risk.

Review this before installing. Use a narrowly scoped or read-only TestDino token if possible, avoid duplicating it across config files, protect any token-bearing files, and be cautious about enabling broad exec approval. Prefer pinned, reviewed package versions and avoid pasting real gateway tokens directly into shell commands.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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 (4)

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:44
Finding

Shell Command Injection Through Unescaped User-Controlled Test and Branch Names

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Error
Location
scripts/install-check.sh:55
Finding

Unpinned npm Package Is Downloaded and Automatically Executed

Content
View full analysis
/dev/null 2>&1; then # Some versions may not support --version, try a different check if ! npm show testdino-mcp version &>/dev/null 2>&1; then echo "WARN: Could not verify testdino-mcp package. Check your internet connection." echo " The package should be available at: https://www.npmjs.com/package/testdino-mcp" else MCP_VERSION=$(npm show testdino-mcp version 2>/dev/null) echo " OK: testdino-mcp@${MCP_VERSION} available on npm" fi else echo " OK: testdino-mcp reachable via npx" fi ``` The README also instructs users to install unpinned global packages: ```bash npm install -g mcporter npm install -g testdino-mcp ``` The Skill metadata similarly names both packages without exact reviewed versions: ```text "package": "mcporter" "package": "testdino-mcp" ``` ### Technical Analysis `npx --yes testdino-mcp --version` may retrieve the currently published package from the configured npm registry and execute it immediately without interactive approval. No exact version, lockfile, package integrity value, or reviewed artifact digest is specified. The global installation instructions have the same version-selection issue. Consequently, the code that eventually executes can change after this Skill has been reviewed. A compromised maintainer account, malicious replacement release, registry compromise, or unexpected upstream release could introduce arbitrary code. This is especially sensitive because the script is intended to run while `TESTDINO_PAT` is present in the environment. A malicious pac ...[truncated 1337 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
README.md:42
Finding

Personal Access Token Is Duplicated Across Plaintext Configuration Files

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
README.md:223
Finding

Gateway Authentication Token Is Exposed Through Command-Line Arguments

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Rogue AgentSelf-Modification, Session Persistence
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (17)

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · README.md (reported line 18)May include surrounding context.

md
## Requirements

- [OpenClaw](https://openclaw.dev) installed and running
- [TestDino account](https://app.testdino.com) with a Personal Access Token
- Node.js 18+
- [mcporter](https://www.npmjs.com/package/mcporter) (CLI tool for running MCP servers)

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · README.md (reported line 29)May include surrounding context.

md
### Step 1: Get your TestDino PAT

1. Log in to [app.testdino.com](https://app.testdino.com)
2. Go to **Settings → Personal Access Tokens**
3. Generate a new token and copy it

---

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/install-check.sh (reported line 48)May include surrounding context.

sh
### Step 1: Get your TestDino PAT

1. Log in to [app.testdino.com](https://app.testdino.com)
2. Go to **Settings → Personal Access Tokens**
3. Generate a new token and copy it

---

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/install-check.sh (reported line 80)May include surrounding context.

sh
### Step 1: Get your TestDino PAT

1. Log in to [app.testdino.com](https://app.testdino.com)
2. Go to **Settings → Personal Access Tokens**
3. Generate a new token and copy it

---

Session Persistence

Medium
Category
Rogue Agent
Confidence
89% confidence
Finding

Persisting the PAT in a long-lived local config file creates durable credential exposure beyond a single session. If the host is compromised, backed up to cloud storage, or accessed by other local processes or users, the token can be recovered and reused to access TestDino data.

Content

Scanner excerpt · README.md (reported line 45)May include surrounding context.

Step 3: Configure mcporter

Create or edit ~/.mcporter/mcporter.json:

json
{

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The README instructs users to place a personal access token directly into ~/.mcporter/mcporter.json in plaintext, with no warning about filesystem exposure, backups, screenshots, or accidental commits. Storing long-lived credentials unencrypted in config files increases the chance of credential theft and downstream account compromise.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The README repeats the unsafe pattern by directing users to store the same personal access token in openclaw.json plaintext entries, expanding the number of locations where the secret resides. Duplicating secrets across configs increases exposure surface and makes revocation, auditing, and safe handling harder.

Content

No source excerpt is available for this finding.

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · README.md (reported line 111)May include surrounding context.

Copy SKILL.md from this repo into your OpenClaw workspace skills folder:

text
~/.openclaw/workspace/skills/testdino/SKILL.md

Create the folder if it doesn't exist.

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · README.md (reported line 360)May include surrounding context.

Copy SKILL.md from this repo into your OpenClaw workspace skills folder:

text
~/.openclaw/workspace/skills/testdino/SKILL.md

Create the folder if it doesn't exist.

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% 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 · README.md (reported line 260)May include surrounding context.

Method 2 — Direct JSON (~/.openclaw/cron/jobs.json)

Write directly to the cron store. Create or edit ~/.openclaw/cron/jobs.json:

json
{

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The README markets the skill as read-only CI intelligence, but the documented tool surface includes state-changing operations such as creating and updating manual test cases and suites. This capability mismatch can cause users to grant broader trust and permissions than intended, increasing the risk of unauthorized or accidental modifications in TestDino.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
94% confidence
Finding

The skill instructs use of the exec tool to run shell commands (mcporter call ...) but does not declare any explicit tool scope such as permissions or allowed-tools. That increases the attack surface because a host may expose broader shell capability than intended, and the skill text includes parameter substitution from user input into command lines, making unrestricted execution more risky in practice.

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.

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
93% confidence
Finding

The script executes 'npx --yes testdino-mcp --version' without pinning an exact package version. That causes retrieval and execution of the latest package version from npm, which introduces supply-chain risk if the package is compromised, typosquatted, or unexpectedly changed.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/install-check.sh (reported line 74)May include surrounding context.

sh
echo "Validating PAT with TestDino API..."
HTTP_STATUS=$(curl -s -o /dev/null -w "%{http_code}" \
  -H "Authorization: Bearer $TESTDINO_PAT" \
  "https://api.testdino.com/api/mcp/hello" 2>/dev/null || echo "000")

if [ "$HTTP_STATUS" = "200" ]; then
  echo "  OK: PAT is valid — TestDino API responded successfully"