Back to skill

Security audit

bsession

Security checks for vulnerabilities and agentic risk

Overview

This browser automation skill is not overtly malicious, but it asks for broad file and command authority while advertising login, persistent-session, scraping, and anti-bot features without enough boundaries.

Review this skill carefully before installing. Only use it for sites and accounts you are authorized to automate, avoid entering sensitive credentials unless you have independent controls for session storage and deletion, and prefer a sandbox with limited filesystem, command, and network access.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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 (1)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:18
Finding

Overly Broad Tool Permissions for Browser Session Management

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 18-21
Vulnerability Type: Excessive filesystem and command-execution permissions
Risk Level: Medium

Vulnerable Code

yaml
tools:
  - read
  - exec
  - write

Technical Analysis

The skill requests simultaneous filesystem read, filesystem write, and command-execution capabilities. These permissions are broader than the minimum privileges clearly required for the declared browser-session management and page-retrieval functionality.

The document does not define filesystem path restrictions, a command allowlist, network destination restrictions, credential-handling boundaries, or mandatory user confirmation before privileged operations. Although the documentation claims command execution occurs in a sandbox, it provides no enforceable configuration establishing that boundary.

No concrete command that transmits an API key or other sensitive information was identified. The API key example at line 149 only checks whether an environment variable is defined and does not itself transmit or disclose its value. Therefore, the static pre-scan warning concerning sensitive network transmission is not confirmed. The security issue is the unnecessarily broad capability surface, which could enable unauthorized access if hostile page content, unsafe user input, or future skill instructions influence tool use.

Attack Path

  1. A user invokes the skill to browse or interact with an attacker-controlled website.
  2. The website presents content designed to influence the Agent into performing operations unrelated to the browsing task.
  3. The skill has access to read, write, and exec rather than a narrowly scoped browser-only interface.
  4. If the Agent follows the hostile or unsafe instructions without an independent authorization gate, it could read accessible local files, alter workspace files, or execute operating-system commands.
  5. External API fu ...[truncated 932 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove exec unless system-command execution is indispensable to the documented browser workflow.
  2. Replace generic filesystem access with a browser-specific interface and a dedicated temporary workspace.
  3. Restrict reads and writes to explicitly approved paths; deny access to home directories, credential stores, SSH material, environment files, browser profiles, and system configuration.
  4. If command execution is required, enforce a fixed executable allowlist, validated arguments, a minimal environment, resource limits, and a non-privileged sandbox.
  5. Require explicit user confirmation before reading sensitive files, entering credentials, exporting session data, executing commands, or sending data to external services.
  6. Apply a network destination allowlist and prohibit access to loopback services, private network ranges, and cloud metadata endpoints unless specifically authorized.
  7. Treat all website content as untrusted data and prevent it from authorizing tool calls or changing the Agent's security constraints.
  8. Document retention and protection requirements for login credentials, cookies, screenshots, and persistent browser-session state.
  9. Add automated tests verifying that browsing tasks cannot access files or commands outside the approved sandbox.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (8)

Vague Triggers

High
Category
Not specified by scanner
Confidence
95% confidence
Finding

The activation language is overly broad and overlaps with ordinary productivity, automation, and workflow requests, making accidental invocation more likely. Because the skill has browser automation and exec/write capabilities, vague triggering can cause website access, interaction, or side effects in situations where the user did not intend to authorize such actions.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

Mentioning simulated login and access to post-authentication pages without credential-handling safeguards is dangerous because it invites use with secrets and active sessions while providing no boundaries for storage, masking, reuse, or exfiltration. In a browser-automation skill, authenticated sessions materially raise the sensitivity of accessible data and the impact of misuse.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

Advertising automatic anti-bot bypass goes beyond ordinary browsing automation and signals functionality meant to evade website protections. In an agent skill, this can facilitate unauthorized scraping, violation of site controls, and concealment of automation behavior, making misuse substantially more dangerous than routine page fetching.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The skill describes website navigation, clicks, input, extraction, and returning screenshots/data without a clear warning that these actions may contact external sites and capture potentially sensitive content. Lack of upfront disclosure increases the risk of users unintentionally authorizing data collection or web actions with privacy and compliance consequences.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The manifest frames this as a browser-session tool, but the body expands its scope to generic file processing, external API integration, and system command execution. That mismatch can cause an agent or user to invoke the skill in broader, riskier contexts than expected, increasing the chance of unauthorized command execution, data access, or exfiltration under a misleading description.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

The file presents key metadata and operational text in a mixed Chinese-English form, but it does not tell users they can choose their preferred language or locale. This can amount to a language policy issue when a skill implicitly forces or assumes a language presentation without opt-in.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
80% confidence
Finding

The description emphasizes setting up a browser session, one-shot fetching, and creating persistent sessions. Claims such as multi-tab parallel scraping and bulk structured export introduce a more aggressive large-scale scraping capability that is not clearly justified by the narrower stated purpose.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

L062 explicitly states that the skill returns structured data and screenshots. However, the return format documented at L073-L119 includes only success, data, final_result, execution_log, and error fields, with no screenshot artifact or reference, making the documentation internally inconsistent about actual outputs.

Content

No source excerpt is available for this finding.