Back to skill

Security audit

n8n API

Security checks for vulnerabilities and agentic risk

Overview

This is a coherent n8n API helper skill, but users should treat its workflow, webhook, retry, credential, role, and delete examples as live administrative actions.

Install only if you want your agent to help administer n8n through the public API. Use a least-privileged n8n API key where possible, confirm the target instance before any create/update/delete/activate/deactivate/retry/webhook action, and prefer test workflows or a test instance for experiments.

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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (7)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill description is broad enough to invite use for generic 'automation tasks' rather than clearly constraining operations to n8n administration. In an agent setting, that can cause over-invocation and lead the model to perform workflow creation, publishing, or triggering actions on a live n8n instance when the user's request was ambiguous.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% 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 47)May include surrounding context.

Workflows: details

bash
curl -s -H "X-N8N-API-KEY: $N8N_API_KEY" "$N8N_API_BASE_URL/workflows/{id}"

Workflows: activate or deactivate

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The activate/deactivate examples document live state changes without warning that they can immediately enable or disable production automations. In an agentic context, this increases the chance of unintended service disruption or unreviewed publication of workflows to live environments.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The webhook trigger examples directly invoke workflow logic and can execute arbitrary downstream actions configured in n8n, potentially affecting external services or data. Because the examples lack a warning, an agent may trigger production or test webhooks casually, causing real-world side effects on live systems.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% 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 84)May include surrounding context.

| jq '.data[] | {id, workflowId, status, startedAt}'

Failed only

curl -s -H "X-N8N-API-KEY: $N8N_API_KEY"
"$N8N_API_BASE_URL/executions?status=error&limit=5"

text

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

Retrying an execution can replay workflow steps that send emails, write records, call third-party APIs, or perform other irreversible side effects. Without an explicit warning, an agent may treat retry as a harmless troubleshooting action and unintentionally duplicate actions against live systems.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

This markdown file documents actions such as deleting users, workflows, credentials, variables, projects, execution records, and rows, as well as role changes, transfers, activation/deactivation, and source-control pulls. Under the markdown-specific SQP-2 criteria, the file should warn that these operations can affect user data, access, or system state, but it provides no cautionary language beyond endpoint descriptions.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.