Back to skill

Security audit

research-pro

Security checks for vulnerabilities and agentic risk

Overview

This research skill is broadly purpose-aligned, but its installer and credential-handling helpers create more risk than a normal research workflow needs.

Review before installing. Prefer installing from a pinned, reviewed commit instead of the one-shot mutable clone command; avoid putting Reddit session cookies into this skill unless you really need them; set `RESEARCH_PRO_TRUST_HOST_ENV=0` if you do not want it reading host agent env files; and do not use `run-with-creds.mjs` with arbitrary shell commands or untrusted CLIs.

Vulnerability Patterns
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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
Findings (5)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/lib/print-key.mjs:13
Finding

Arbitrary Environment Variable Disclosure Through Deprecated Key Printer

Content
View full analysis
"); console.error("DEPRECATED: prefer scripts that call resolveKey() in-process."); process.exit(2); } const r = resolveKey(name); if (!r.value) { console.error(`Missing ${r.name}`); process.exit(1); } process.stdout.write(r.value); ``` The called resolver accepts the supplied name and checks the corresponding process environment variable: ```js export function resolveKey(name) { const canonical = ALIASES[name] || name; // 1) process.env canonical if (nonEmpty(process.env[canonical])) { return { name: canonical, value: process.env[canonical], source: "process.env" }; } ``` ### Technical Analysis Although the utility is marked deprecated, it remains executable and is distributed with the Skill. The user-controlled environment-variable name is not restricted to the research credential allowlist. Consequently, `resolveKey()` can return any non-empty variable inherited by the Node.js process, and `print-key.mjs` writes that value verbatim to standard output. The allowlist applied when reading credential files does not protect secrets already present in `process.env`. ### Attack Path 1. The agent or an attacker-influenced workflow requests a variable outside the research credential set. 2. It invokes, for example: ```bash node scripts/lib/print-key.mjs AWS_SECRET_ACCESS_KEY ``` 3. `resolveKey()` reads `process.env.AWS_SECRET_ACCESS_KEY`. 4. The utility emits the secret without masking. 5. The value may be captured in an agent transcript, shell history, CI log, or tool output. ### Impact Assessment Any environment variable available to the Skill process can be disclosed, including cloud c ...[truncated 221 chars]
Remediation
View remediation

T05 · Unauthorized Access and Privilege Escalation

Error
Location
scripts/run-with-creds.mjs:31
Finding

All Available Credentials Are Exposed to Arbitrary Child Commands

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
scripts/lib/trace.mjs:65
Finding

Path Traversal Through Unvalidated Trace Run Identifier

Content
View full analysis
Remediation
View remediation

T03 · Remote Payload Retrieval and Execution

Error
Location
README.md:29
Finding

Mutable Remote Repository Is Downloaded and Immediately Executed

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/search_with_trace.sh:43
Finding

Predictable Shared Temporary Error File Allows Symlink Clobbering

Content
View full analysis
"$TMP" 2>/tmp/research-pro-search.err EC=$? set -e cat "$TMP" ``` ### Technical Analysis Standard output is safely written to a `mktemp` file, but standard error is redirected to the fixed path `/tmp/research-pro-search.err`. The shell opens this path with truncation and follows symbolic links. A process capable of creating or replacing that path can redirect the write to another file writable by the Skill user. On systems with hardened temporary-directory symlink protections, cross-user exploitation may be reduced, but same-user processes and less-hardened environments remain exposed. The fixed error file is also not removed by the cleanup handler, allowing output from searches to persist and be read by other local processes according to the resulting permissions and system configuration. ### Attack Path 1. An attacker creates `/tmp/research-pro-search.err` as a symbolic link to a file writable by the Skill user. 2. The user runs `search_with_trace.sh`. 3. Shell redirection follows the link and opens the target with truncation. 4. Existing target content is destroyed and smart-search error output is written into it. ### Impact Assessment Successful exploitation can truncate or overwrite writable files owned by the current user. It may also expose search errors or contextual information through a shared, persistent temporary path. The issue does not independently grant higher OS privileges but can corrupt user data or application configuration. ]]>
Remediation
View remediation
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (146)

Credential Access

High
Category
Privilege Escalation
Confidence
82% confidence
Finding

The instructions direct the agent/user to create and populate a '.env' file containing an API key. Storing credentials in plaintext local files is common, but it is still a credential-handling risk in an agent workflow because the secret may be copied, logged, synced, exposed by permissive tooling, or later read by unrelated processes.

Content

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

md
2. Set up the API key:
   mkdir -p ~/.config/research-pro
   cp /tmp/research-pro/env.example ~/.config/research-pro/.env
   Then edit ~/.config/research-pro/.env and set: TAVILY_API_KEY=tvly-YOUR_KEY_HERE
   chmod 600 ~/.config/research-pro/.env

Credential Access

High
Category
Privilege Escalation
Confidence
84% confidence
Finding

The step 'edit ~/.config/research-pro/.env and set: TAVILY_API_KEY=...' explicitly places a live credential into a plaintext configuration file. In the context of an AI agent installation guide, this is dangerous because users may follow the instruction by pasting the secret into agent-visible workflows, terminal history, screenshots, logs, or shared environments.

Content

Scanner excerpt · SETUP_PROMPT.md (reported line 27)May include surrounding context.

md
2. Set up the API key:
   mkdir -p ~/.config/research-pro
   cp /tmp/research-pro/env.example ~/.config/research-pro/.env
   Then edit ~/.config/research-pro/.env and set: TAVILY_API_KEY=tvly-YOUR_KEY_HERE
   chmod 600 ~/.config/research-pro/.env

3. Verify:

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The file describes generic multi-source research, but the detected behavior includes direct Reddit access, session-token use, and browsing utilities unrelated to the stated gated workflow. That discrepancy can cause sensitive session-backed retrieval to occur under the guise of ordinary research, which is riskier than the declared purpose suggests.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The file describes generic multi-source research, but the detected behavior includes direct Reddit access, session-token use, and browsing utilities unrelated to the stated gated workflow. That discrepancy can cause sensitive session-backed retrieval to occur under the guise of ordinary research, which is riskier than the declared purpose suggests.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The file describes generic multi-source research, but the detected behavior includes direct Reddit access, session-token use, and browsing utilities unrelated to the stated gated workflow. That discrepancy can cause sensitive session-backed retrieval to occur under the guise of ordinary research, which is riskier than the declared purpose suggests.

Content

No source excerpt is available for this finding.

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

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

md
# research-pro env example
# Copy to ~/.config/research-pro/.env and fill values.
# chmod 600 ~/.config/research-pro/.env
#
# Minimum: set ANY ONE of TAVILY_API_KEY / XAI_API_KEY / OPENROUTER_API_KEY

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · SETUP.md (reported line 46)May include surrounding context.

md
# research-pro env example
# Copy to ~/.config/research-pro/.env and fill values.
# chmod 600 ~/.config/research-pro/.env
#
# Minimum: set ANY ONE of TAVILY_API_KEY / XAI_API_KEY / OPENROUTER_API_KEY

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · SETUP.md (reported line 51)May include surrounding context.

md
# research-pro env example
# Copy to ~/.config/research-pro/.env and fill values.
# chmod 600 ~/.config/research-pro/.env
#
# Minimum: set ANY ONE of TAVILY_API_KEY / XAI_API_KEY / OPENROUTER_API_KEY

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · SETUP_PROMPT.md (reported line 28)May include surrounding context.

md
# research-pro env example
# Copy to ~/.config/research-pro/.env and fill values.
# chmod 600 ~/.config/research-pro/.env
#
# Minimum: set ANY ONE of TAVILY_API_KEY / XAI_API_KEY / OPENROUTER_API_KEY

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

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

md
# research-pro env example
# Copy to ~/.config/research-pro/.env and fill values.
# chmod 600 ~/.config/research-pro/.env
#
# Minimum: set ANY ONE of TAVILY_API_KEY / XAI_API_KEY / OPENROUTER_API_KEY

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

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

md
# research-pro env example
# Copy to ~/.config/research-pro/.env and fill values.
# chmod 600 ~/.config/research-pro/.env
#
# Minimum: set ANY ONE of TAVILY_API_KEY / XAI_API_KEY / OPENROUTER_API_KEY

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

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

md
# research-pro env example
# Copy to ~/.config/research-pro/.env and fill values.
# chmod 600 ~/.config/research-pro/.env
#
# Minimum: set ANY ONE of TAVILY_API_KEY / XAI_API_KEY / OPENROUTER_API_KEY

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · env.example (reported line 2)May include surrounding context.

text
# research-pro env example
# Copy to ~/.config/research-pro/.env and fill values.
# chmod 600 ~/.config/research-pro/.env
#
# Minimum: set ANY ONE of TAVILY_API_KEY / XAI_API_KEY / OPENROUTER_API_KEY

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · env.example (reported line 3)May include surrounding context.

text
# research-pro env example
# Copy to ~/.config/research-pro/.env and fill values.
# chmod 600 ~/.config/research-pro/.env
#
# Minimum: set ANY ONE of TAVILY_API_KEY / XAI_API_KEY / OPENROUTER_API_KEY

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · references/runtimes.md (reported line 15)May include surrounding context.

md
# research-pro env example
# Copy to ~/.config/research-pro/.env and fill values.
# chmod 600 ~/.config/research-pro/.env
#
# Minimum: set ANY ONE of TAVILY_API_KEY / XAI_API_KEY / OPENROUTER_API_KEY

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · references/security.md (reported line 30)May include surrounding context.

md
# research-pro env example
# Copy to ~/.config/research-pro/.env and fill values.
# chmod 600 ~/.config/research-pro/.env
#
# Minimum: set ANY ONE of TAVILY_API_KEY / XAI_API_KEY / OPENROUTER_API_KEY

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · references/security.md (reported line 31)May include surrounding context.

md
# research-pro env example
# Copy to ~/.config/research-pro/.env and fill values.
# chmod 600 ~/.config/research-pro/.env
#
# Minimum: set ANY ONE of TAVILY_API_KEY / XAI_API_KEY / OPENROUTER_API_KEY

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · references/security.md (reported line 65)May include surrounding context.

md
# research-pro env example
# Copy to ~/.config/research-pro/.env and fill values.
# chmod 600 ~/.config/research-pro/.env
#
# Minimum: set ANY ONE of TAVILY_API_KEY / XAI_API_KEY / OPENROUTER_API_KEY

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · scripts/doctor.mjs (reported line 65)May include surrounding context.

js
# research-pro env example
# Copy to ~/.config/research-pro/.env and fill values.
# chmod 600 ~/.config/research-pro/.env
#
# Minimum: set ANY ONE of TAVILY_API_KEY / XAI_API_KEY / OPENROUTER_API_KEY

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · scripts/doctor.mjs (reported line 76)May include surrounding context.

js
# research-pro env example
# Copy to ~/.config/research-pro/.env and fill values.
# chmod 600 ~/.config/research-pro/.env
#
# Minimum: set ANY ONE of TAVILY_API_KEY / XAI_API_KEY / OPENROUTER_API_KEY

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

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

sh
# research-pro env example
# Copy to ~/.config/research-pro/.env and fill values.
# chmod 600 ~/.config/research-pro/.env
#
# Minimum: set ANY ONE of TAVILY_API_KEY / XAI_API_KEY / OPENROUTER_API_KEY

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

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

sh
# research-pro env example
# Copy to ~/.config/research-pro/.env and fill values.
# chmod 600 ~/.config/research-pro/.env
#
# Minimum: set ANY ONE of TAVILY_API_KEY / XAI_API_KEY / OPENROUTER_API_KEY

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

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

sh
# research-pro env example
# Copy to ~/.config/research-pro/.env and fill values.
# chmod 600 ~/.config/research-pro/.env
#
# Minimum: set ANY ONE of TAVILY_API_KEY / XAI_API_KEY / OPENROUTER_API_KEY

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

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

sh
# research-pro env example
# Copy to ~/.config/research-pro/.env and fill values.
# chmod 600 ~/.config/research-pro/.env
#
# Minimum: set ANY ONE of TAVILY_API_KEY / XAI_API_KEY / OPENROUTER_API_KEY

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · scripts/lib/credentials.mjs (reported line 13)May include surrounding context.

js
# research-pro env example
# Copy to ~/.config/research-pro/.env and fill values.
# chmod 600 ~/.config/research-pro/.env
#
# Minimum: set ANY ONE of TAVILY_API_KEY / XAI_API_KEY / OPENROUTER_API_KEY