Back to skill

Security audit

Rollbar

Security checks for vulnerabilities and agentic risk

Overview

This Rollbar skill is mostly aligned with its stated purpose, but it needs review because its helper script can execute code from a workspace .env file and has unsafe token-management argument handling.

Review or patch this skill before installing. Avoid running it in untrusted workspaces, do not rely on .env loading until it is parsed as data instead of sourced, and use the least-privilege Rollbar token possible. Be especially careful with account-level write tokens, project-token-create, project-token-update, and --save because they can create or persist credentials.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (2)

T09 · Insecure Skill Coding Practices

Error
Location
rollbar.sh:158
Finding

Arbitrary Shell Execution Through Workspace .env File

Content
View full analysis
/dev/null || true ``` ### Technical Analysis The script uses Bash `source` to load `$PWD/.env`. This treats the entire file as executable shell code rather than parsing it as a data file containing only `ROLLBAR_ACCESS_TOKEN`. Consequently, command substitutions, shell functions, external commands, redirections, and other Bash syntax in `.env` execute with the privileges of the user or Agent running `rollbar.sh`. The suppression of standard error does not prevent execution and may conceal evidence that malicious commands ran. The documented functionality only requires reading a single variable, so executing arbitrary contents of the file violates the principle of least privilege. ### Attack Path 1. An attacker gains the ability to add or modify `.env` in the directory from which the Skill is invoked. This may occur through a malicious repository, compromised workspace artifact, or untrusted project contribution. 2. The attacker inserts executable shell syntax into `.env`. 3. A user or Agent invokes any `rollbar.sh` command, including a read-only operation such as `items`. 4. Before the Rollbar request is performed, line 158 sources `.env`. 5. The attacker's shell commands execute under the identity and permissions of the Skill process. No `--yes` confirmation is required because this execution occurs during credential initialization, before command-specific safety checks. ### Impact Assessment Successful exploitation provides arbitrary command execution with the privileges of the user or Agent invoking the Skill. Depending on those privileges, an attacker could: - Read environment variables and local credentials. - Access files available to the Agent. - Modify or delete workspace data. ...[truncated 276 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
rollbar.sh:374
Finding

Python Code Injection Through Token Name and Scope 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
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (26)

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

Option A — .env file (recommended):

bash
# workspace-myagent/.env
ROLLBAR_ACCESS_TOKEN=your-token-here

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

Option A — .env file (recommended):

bash
# workspace-myagent/.env
ROLLBAR_ACCESS_TOKEN=your-token-here

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

Option A — .env file (recommended):

bash
# workspace-myagent/.env
ROLLBAR_ACCESS_TOKEN=your-token-here

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 · rollbar.sh (reported line 107)May include surrounding context.

sh
**Option A — `.env` file (recommended):**

```bash
# workspace-myagent/.env
ROLLBAR_ACCESS_TOKEN=your-token-here
```

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 · rollbar.sh (reported line 181)May include surrounding context.

sh
**Option A — `.env` file (recommended):**

```bash
# workspace-myagent/.env
ROLLBAR_ACCESS_TOKEN=your-token-here
```

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 · rollbar.sh (reported line 195)May include surrounding context.

sh
**Option A — `.env` file (recommended):**

```bash
# workspace-myagent/.env
ROLLBAR_ACCESS_TOKEN=your-token-here
```

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

md
> **⚠️ Security:** Never commit tokens. Use workspace-local files or environment variables only.

**Token types:**
- **Project token** (recommended) — Rollbar → Project → Settings → Project Access Tokens. Use `read` scope; add `write` only if you need to resolve/mute items.
- **Account token** (multi-project) — Rollbar → Account Settings → Account Access Tokens. Use with `--project-id <id>` to target specific projects.

## Usage

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

md
> **⚠️ Security:** Never commit tokens. Use workspace-local files or environment variables only.

**Token types:**
- **Project token** (recommended) — Rollbar → Project → Settings → Project Access Tokens. Use `read` scope; add `write` only if you need to resolve/mute items.
- **Account token** (multi-project) — Rollbar → Account Settings → Account Access Tokens. Use with `--project-id <id>` to target specific projects.

## Usage

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

md
> **⚠️ Security:** Never commit tokens. Use workspace-local files or environment variables only.

**Token types:**
- **Project token** (recommended) — Rollbar → Project → Settings → Project Access Tokens. Use `read` scope; add `write` only if you need to resolve/mute items.
- **Account token** (multi-project) — Rollbar → Account Settings → Account Access Tokens. Use with `--project-id <id>` to target specific projects.

## Usage

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

md
> **⚠️ Security:** Never commit tokens. Use workspace-local files or environment variables only.

**Token types:**
- **Project token** (recommended) — Rollbar → Project → Settings → Project Access Tokens. Use `read` scope; add `write` only if you need to resolve/mute items.
- **Account token** (multi-project) — Rollbar → Account Settings → Account Access Tokens. Use with `--project-id <id>` to target specific projects.

## Usage

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

md
---
name: rollbar
version: 1.5.0
description: "Monitor and manage Rollbar error tracking. List recent items, get item details, resolve/mute issues, track deployments, and manage project access tokens via the Rollbar API."
homepage: https://github.com/vittor1o/rollbar-openclaw-skill
metadata:
  openclaw:

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

md
---
name: rollbar
version: 1.5.0
description: "Monitor and manage Rollbar error tracking. List recent items, get item details, resolve/mute issues, track deployments, and manage project access tokens via the Rollbar API."
homepage: https://github.com/vittor1o/rollbar-openclaw-skill
metadata:
  openclaw:

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 · rollbar.sh (reported line 85)May include surrounding context.

sh
---
name: rollbar
version: 1.5.0
description: "Monitor and manage Rollbar error tracking. List recent items, get item details, resolve/mute issues, track deployments, and manage project access tokens via the Rollbar API."
homepage: https://github.com/vittor1o/rollbar-openclaw-skill
metadata:
  openclaw:

Credential Access

High
Category
Privilege Escalation
Confidence
85% confidence
Finding

The skill explicitly requests access to common secret sources (.env, secrets/rollbar, and config files) that may contain Rollbar tokens. While this is functionally relevant to the skill, reading credentials from broad workspace locations increases the chance of unnecessary secret exposure or abuse if the skill is invoked in an untrusted context.

Content

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

md
read:
          - .rollbar-mcp.json
          - secrets/rollbar
          - .env
        write:
          - .rollbar-mcp.json
    safety:

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

md
---

## Project Access Token Management

These commands require an **account-level token with `write` scope**.

Credential Access

High
Category
Privilege Escalation
Confidence
84% confidence
Finding

The skill supports creating new project access tokens and later notes that full token values are returned on creation. Token minting is a sensitive credential operation; if the skill is misused, manipulated, or over-privileged, it could create fresh secrets that grant persistent API access beyond the immediate session.

Content

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

Token values are truncated in output (first 8 chars + ...) for safety.

Create a project access token

bash
./skills/rollbar/rollbar.sh project-token-create \

Credential Access

High
Category
Privilege Escalation
Confidence
80% confidence
Finding

Updating project access tokens is a credential-management capability that can enable or disable tokens and therefore materially affect access control. In the context of an agent skill, this increases risk because a compromised or manipulated invocation could alter credential state or facilitate unauthorized access management.

Content

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

./rollbar.sh items --project-name linkz-api

text

### Update a project access token

```bash
./skills/rollbar/rollbar.sh project-token-update <token_id> \

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 · rollbar.sh (reported line 86)May include surrounding context.

sh
project                   Get project info
  top                       Top active items by occurrence count
  project-tokens            List access tokens for a project
  project-token-create      Create a project access token (account write token required)
  project-token-update      Update a project access token status/rate-limits

Options:

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 · rollbar.sh (reported line 87)May include surrounding context.

sh
project                   Get project info
  top                       Top active items by occurrence count
  project-tokens            List access tokens for a project
  project-token-create      Create a project access token (account write token required)
  project-token-update      Update a project access token status/rate-limits

Options:

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 · rollbar.sh (reported line 406)May include surrounding context.

sh
project                   Get project info
  top                       Top active items by occurrence count
  project-tokens            List access tokens for a project
  project-token-create      Create a project access token (account write token required)
  project-token-update      Update a project access token status/rate-limits

Options:

Credential Access

High
Category
Privilege Escalation
Confidence
98% confidence
Finding

The script sources $PWD/.env directly as shell code, not as data, from the current workspace. If an attacker can place or influence that file, running the skill executes arbitrary commands in the user's context during token loading, which is a serious code execution risk beyond simple credential access.

Content

Scanner excerpt · rollbar.sh (reported line 166)May include surrounding context.

sh
fi

# --- Token Resolution ---
# Source workspace .env if present
[[ -f "$PWD/.env" ]] && source "$PWD/.env" 2>/dev/null || true

MCP_CONFIG="$(_find_mcp_config)"

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 · rollbar.sh (reported line 167)May include surrounding context.

sh
# --- Token Resolution ---
# Source workspace .env if present
[[ -f "$PWD/.env" ]] && source "$PWD/.env" 2>/dev/null || true

MCP_CONFIG="$(_find_mcp_config)"

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

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 · rollbar.sh (reported line 8)May include surrounding context.

sh
set -euo pipefail

BASE_URL="https://api.rollbar.com/api/1"

# --- MCP Config Helpers ---

External Transmission

Medium
Category
Data Exfiltration
Confidence
70% 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 · rollbar.sh (reported line 203)May include surrounding context.

sh
# --- HTTP Helpers ---
api_get() {
  local endpoint="$1"; shift
  curl -sf -H "X-Rollbar-Access-Token: $TOKEN" "$BASE_URL/$endpoint" "$@"
}

api_post() {

Static analysis

No suspicious patterns detected.