Back to skill

Security audit

go-polar

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill benign with medium confidence: the reported token references appear consistent with its documented Polar API use, though a credential-access rule was raised.

The verdict is benign, but medium confidence means it is not a guarantee of safety. Before installing, consider whether you need this Polar integration and review its setup guidance; it expects you to provide an access token, so keep that token private and use only the permissions needed. Dependency inspection was not requested, and two local references were unresolved, so those parts of the evidence are incomplete.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (5)

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

md
## Security & safety

- Read a bearer access token from `POLAR_ACCESS_TOKEN`. Never hardcode, commit or log it, and never print a request with its `Authorization` header.
- Use `https://api.polar.sh` for production or `https://sandbox-api.polar.sh` for sandbox. Select the environment the user requested.
- Create, update, delete, refund and revoke operations change account data. Call them only when the user requested that action.
- Use the token type and scopes the operation requires. Customer portal and member operations use their corresponding session tokens.

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

md
## Usage

Create a client with `polar.NewClientWithResponses` and a `polar.WithRequestEditorFn` option that sets `Authorization` to `Bearer ` followed by the access token. Use the host URL without a `/v1` suffix.

`ProductsListWithResponse(ctx, &polar.ProductsListParams{})` lists products. `CustomersListWithResponse(ctx, &polar.CustomersListParams{})` lists customers. `CustomersCreateWithResponse` accepts a generated customer-create union; construct a branch using the generated `FromCustomerIndividualCreate` or `FromCustomerTeamCreate` helper. Decode a customer union with `AsCustomerIndividual` or `AsCustomerTeam`.

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 · references/setup.md (reported line 8)May include surrounding context.

md
## Requirements

- Go 1.26.11 or newer, per the module's `go.mod`.
- A Polar organization access token, personal access token or OAuth access token with the operation's required scopes, exported as `POLAR_ACCESS_TOKEN`.

## Install

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 · references/setup.md (reported line 8)May include surrounding context.

md
## Requirements

- Go 1.26.11 or newer, per the module's `go.mod`.
- A Polar organization access token, personal access token or OAuth access token with the operation's required scopes, exported as `POLAR_ACCESS_TOKEN`.

## Install

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 · references/setup.md (reported line 8)May include surrounding context.

md
## Requirements

- Go 1.26.11 or newer, per the module's `go.mod`.
- A Polar organization access token, personal access token or OAuth access token with the operation's required scopes, exported as `POLAR_ACCESS_TOKEN`.

## Install