Back to skill

Security audit

go-morphik

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent Go API-client guide for Morphik and its sensitive behaviors are disclosed and bounded to user-requested Morphik operations.

Install this only for Go projects that need Morphik access. Treat the Morphik API key as secret, review any code paths that ingest or delete documents, and confirm the base URL before sending private documents or queries to a Morphik service.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (2)

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

md
| `ListDocsDocumentsPostWithResponse` | `POST /documents` |
| `ListDocsDocumentsListDocsPostWithResponse` | `POST /documents/list_docs` (alias) |
| `GetDocumentDocumentsDocumentIdGetWithResponse` | `GET /documents/{document_id}` |
| `DeleteDocumentDocumentsDocumentIdDeleteWithResponse` | `DELETE /documents/{document_id}` |
| `RetrieveChunksRetrieveChunksPostWithResponse` | `POST /retrieve/chunks` |
| `RetrieveDocumentsRetrieveDocsPostWithResponse` | `POST /retrieve/docs` |
| `QueryCompletionQueryPostWithResponse` | `POST /query` |

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

The markdown instructs users to export MORPHIK_API_KEY, which involves handling a sensitive credential. While this is normal setup guidance, the file does not include any warning to keep the key secret or avoid committing/logging it, so the description omits a basic caution about privacy/security impact.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.