Back to skill

Security audit

go-hubspot

Security checks for vulnerabilities and agentic risk

Overview

The verdict is benign with medium confidence: the scanners found no AIG issues, and the reported credential and delete-endpoint matches were judged expected in context, though one reference was unresolved.

The verdict is benign, but confidence is medium and coverage is incomplete: Skillspector scanned both listed Markdown components, yet could not resolve one local reference. Consider whether you need a HubSpot client that can make changes to live account data, and follow the reported guidance to protect access tokens and use care with record-changing operations.

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
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • 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 (6)

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

md
---
name: go-hubspot
description: Unofficial Go client for the HubSpot API. `hubspot.NewClientWithResponses("https://api.hubapi.com", ...)` from `github.com/psyb0t/go-hubspot` gives a typed method for every path in HubSpot's 2026-03 OpenAPI documents, including CRM objects such as contacts and companies, single-deal reads and updates, associations, properties, search, marketing, CMS, automation, conversations, files and webhooks. Auth is a Bearer private app or OAuth access token set through a request editor. Responses decode into typed `JSON200`/`JSON201` fields. Use when Go code needs to read or write HubSpot data, or already imports go-hubspot.
license: MIT
homepage: https://github.com/psyb0t/go-hubspot
user-invocable: true

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 the access token from an environment variable such as `HUBSPOT_ACCESS_TOKEN`. Never hardcode it, commit it or log it, and never print request headers.
- The client talks only to the base URL you give it. Use `https://api.hubapi.com`; HubSpot data goes nowhere else.
- Create, update, merge, archive, delete and GDPR purge endpoints change a live HubSpot account. Call them only when the user asked for that change, and only on records the task owns.

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

md
- Go 1.26.11 or newer, per the module's `go.mod`.
- Runtime dependency: `github.com/oapi-codegen/runtime`.
- A HubSpot private app access token or OAuth access token with the scopes the endpoints you call need.

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

md
- Go 1.26.11 or newer, per the module's `go.mod`.
- Runtime dependency: `github.com/oapi-codegen/runtime`.
- A HubSpot private app access token or OAuth access token with the scopes the endpoints you call need.

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

md
## Auth

The spec lists OAuth 2, private app keys and a developer API key. Private app and OAuth access tokens both go in a Bearer header:

| Scheme | How |
|---|---|

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · references/setup.md (reported line 54)May include surrounding context.

md
| `Getcrmobjects202603contactsContactIdGetByIdWithResponse` | `GET /crm/objects/2026-03/contacts/{contactId}` |
| `Postcrmobjects202603contactsCreateWithResponse` | `POST /crm/objects/2026-03/contacts` |
| `Patchcrmobjects202603contactsContactIdUpdateWithResponse` | `PATCH /crm/objects/2026-03/contacts/{contactId}` |
| `Deletecrmobjects202603contactsContactIdArchiveWithResponse` | `DELETE /crm/objects/2026-03/contacts/{contactId}` |
| `Postcrmobjects202603contactssearchDoSearchWithResponse` | `POST /crm/objects/2026-03/contacts/search` |
| `Postcrmobjects202603contactsbatchreadReadWithResponse` | `POST /crm/objects/2026-03/contacts/batch/read` |