Back to skill

Security audit

FreshBooks CLI

Security checks for vulnerabilities and agentic risk

Overview

This FreshBooks skill is purpose-aligned, but it needs review because it globally installs an unpinned third-party CLI that handles FreshBooks credentials and billing data.

Install only if you trust the @haseebuchiha/freshbooks-cli publisher and are comfortable giving that CLI access to FreshBooks credentials, tokens, clients, and invoices. Prefer a pinned, reviewed version or an isolated environment, and confirm every create, update, archive, or share-link action before it runs.

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

T08 · Insecure Dependencies

Warning
Location
SKILL.md:5
Finding

Unverified Third-Party CLI Installed Globally from a Custom Registry

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • 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 (3)

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

npm install -g @haseebuchiha/freshbooks-cli

text

Requires `.npmrc` with `@haseebuchiha:registry=https://npm.pkg.github.com` for GitHub Package Registry.

## Setup (once)

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

md
- `freshbooks auth login --client-id <id> --client-secret <secret> --manual` -- authenticate via OAuth2 OOB flow
- `freshbooks auth logout` -- clear stored tokens and credentials
- `freshbooks auth status` -- show account ID, token expiry, and auth state
- `freshbooks auth refresh` -- manually refresh the access token

## Clients commands

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The description says to use the skill when the user mentions "freshbooks, invoicing, billing, clients, or accounting." While "freshbooks" is specific, terms like "billing," "clients," and especially "accounting" are broad and common across many contexts, which can cause the skill to activate outside the intended FreshBooks-specific workflow. The file does not provide narrowing constraints or negative examples to limit invocation scope.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.