Back to skill

Security audit

Frihet ERP

Security checks for vulnerabilities and agentic risk

Overview

The skill’s business-data access fits its purpose, with read-first settings and explicit user approval required before changes.

Prefer the remote read-only connection and verify that your host enforces its tool allowlist. Enable writes only when needed and review each proposed change; the local option runs an external npm package with your configured API key.

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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 27)May include surrounding context.

md
description: Optional Frihet API key (fri_...) for local stdio transport via @frihet/mcp-server. Not required when connecting to https://mcp.frihet.io/mcp with OAuth 2.1 PKCE.
      - name: FRIHET_API_URL
        required: false
        description: Optional API base URL override for self-hosted or staging environments (defaults to https://api.frihet.io/v1).
---

# Frihet ERP — Official OpenClaw Skill (`@frihet-io/frihet-erp`)

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 162)May include surrounding context.

md
lose`, `period_reopen`, `face_submit`, `ticketbai_submit`, `ksef_submit`, `verifactu_resubmit`), present the exact target record and payload summary to the user and **wait for explicit human confirmation in the current conversation turn**.
   - Never persist autonomous background schedules or cross-session state mutations from inside a tool workflow.
4. **Strict Credential & Exfiltration Boundary (`[E1]` Guardrail):**
   - `FRIHET_API_KEY` and OAuth Bearer tokens may be transmitted **only** to `https://api.frihet.io/v1` (via `@frihet/mcp-server`) or `https://mcp.frihet.io/mcp` (Streamable HTTP).
   - Never echo `FRIHET_API_KEY`, Bearer tokens, or raw secrets in chat responses, logs, or URL query strings, and never forward ERP financial records or PII (NIF/CIF, IBAN, tax records) to third-party endpoints.
5. **Authentication Error Recovery (Never Ask for Keys in Chat):**
   - If a tool call returns `401 Unauthorized`, `403 Forbidden`, or a missing-credentials error, stop and give the us

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
80% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · SKILL.md (reported line 168)May include surrounding context.

md
- If a tool call returns `401 Unauthorized`, `403 Forbidden`, or a missing-credentials error, stop and give the user clear remediation steps:
     - For `https://mcp.frihet.io/mcp`: re-authenticate via the host's OAuth sign-in flow and verify the granted scope (`frihet:read` or `frihet:write`).
     - For `@frihet/mcp-server`: generate or rotate the key in `https://app.frihet.io/settings/api` and set `FRIHET_API_KEY` in the host's environment configuration.
   - **Never ask the user to paste an API key (`fri_...`), password, or token into the chat.**

---