Logo von N8n Security Governance

N8n Security Governance

Community
MorrisLu-Taipei
n8n-security-governance

Review an AI-coded application or n8n workflow for production security and change-control readiness. Use for security audits, production readiness, enterprise governance, auth/SQL/secret review, SECURITY-CAVEATS.md, version control, rollback, release tagging, CI/CD, or before declaring a Code2n8n port deployable.

Add to TypingMind

Übersicht

HerausgeberMorrisLu-Taipei
RepositoryTigerAI-A2A-Code2n8n-Skill-Pack
Skill-Namen8n-security-governance
Sterne
86
Forks
26
Mitgelieferte Dateien
Nur Anweisungen
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von MorrisLu-Taipei auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill N8n Security Governance in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/MorrisLu-Taipei/TigerAI-A2A-Code2n8n-Skill-Pack/tree/main/skills/tigerai/n8n-security-governance
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MorrisLu-Taipei/TigerAI-A2A-Code2n8n-Skill-Pack.git /tmp/TigerAI-A2A-Code2n8n-Skill-Pack
mkdir -p .claude/skills
cp -r /tmp/TigerAI-A2A-Code2n8n-Skill-Pack/skills/tigerai/n8n-security-governance .claude/skills/n8n-security-governance
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie N8n Security Governance in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt N8n Security Governance automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist N8n Security Governance nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

n8n Security Governance

Use this skill as the production gate for AI Coding and Code2n8n work. A working demo is not automatically safe, traceable, or reversible.

Required outputs

Produce all applicable artifacts:

  1. SECURITY-REVIEW.md: scope, trust boundaries, checks, evidence, findings, and decision.
  2. SECURITY-CAVEATS.md: unresolved findings that block or limit deployment.
  3. CHANGELOG.md entry: user-visible security or workflow behavior changes.
  4. Workflow change-history sticky note: internal version, date, and plain-language change.
  5. Release traceability: source commit SHA, workflow version/tag, validation result, and rollback target.

Never include real secrets, tokens, passwords, credential values, or sensitive customer data.

Security review

1. Establish scope and trust boundaries

Inventory:

  • Public and internal entry points: webhook, REST, form, queue, schedule, CLI.
  • Identities: user, admin, service account, n8n credential, worker.
  • Sensitive data: secrets, PII, files, prompts, database records, logs.
  • Side effects: writes, deletes, notifications, external calls, privileged actions.
  • Trust transitions: internet to webhook, workflow to worker, worker to database, AI agent to tool.

2. Run mandatory checks

AreaMinimum checks
AuthenticationReal session/JWT/OAuth validation; no constant-success stubs; login rate limiting
AuthorizationRoute/node-level permission checks; least privilege; tenant/resource ownership
InjectionParameterized SQL values; allowlisted identifiers; command/path/template injection
WebhooksSignature/token verification; replay protection; timestamp tolerance; fast response
Secretsn8n Credentials or approved secret manager; no source/env/log/UI disclosure
Input/filesSchema validation; size/MIME limits; filename sanitization; isolated storage
Browser/APICSRF, CORS, secure cookies, security headers, safe error responses
AI/agentsUntrusted tool/retrieval content; prompt-injection boundaries; tool allowlists
DataRetention, deletion, encryption, log redaction, backup access
OperationsAudit logs, alerts, retry/idempotency, incident owner, credential rotation
n8nAuthenticated production webhooks; credential references; restricted Code node/env access
DependenciesLockfiles, vulnerability scan, pinned images/actions, license review

Use deterministic scanners when supported: dependency audit, secret scan, SAST, container scan, and n8n instance audit. Record tool versions and commands. Scanner results never replace manual auth and trust-boundary review.

3. Record findings

Each finding must contain:

markdown
## SEC-001: Short title
- Severity: Critical | High | Medium | Low | Informational
- Status: Open | Mitigated | Accepted | False positive
- Evidence: file:line, workflow/node, request/response, or reproducible command
- Impact:
- Reproduction:
- Required fix:
- Validation:
- Owner:
- Target version:

Do not call an issue fixed without a regression test or repeatable validation.

4. Make a deployment decision

  • PASS: no unresolved Critical/High findings; validation and rollback evidence exist.
  • CONDITIONAL: only documented Medium/Low risks remain with owner and due date.
  • BLOCKED: unresolved Critical/High finding, fake/missing auth, exposed secret, injection, or no rollback path.

If the decision is not PASS, publish SECURITY-CAVEATS.md and remove "production-ready" or "enterprise-ready" claims.

Version control and change governance

Security without traceability is incomplete. Apply these controls to source, workflow JSON, and operational configuration.

Source control

  • Work from a named branch; protect the release branch with review and CI.
  • Commit workflow JSON, SDD, field mapping, security review, tests, and migration notes together.
  • Keep credentials, .env, execution data, and local backups out of Git.
  • Add a security-impact note when auth, permissions, credentials, data access, or webhook behavior changes.
  • Tag approved releases using the repository convention and record the commit SHA.

Workflow versioning

  • Maintain SemVer in the first sticky note: v<major.minor.patch> YYYY-MM-DD: summary.
  • Major: breaking contract or behavior change.
  • Minor: backward-compatible capability or node path.
  • Patch: fix, hardening, documentation, or non-breaking refactor.
  • Export the exact reviewed workflow JSON after validation.
  • Apply an n8n tag containing the release/version identifier; keep import separate from production activation.

CI/CD gate

Require:

  1. JSON/static lint.
  2. Secret scan.
  3. Dependency/container scan when applicable.
  4. n8n REST import/schema validation.
  5. Security regression tests for changed trust boundaries.
  6. Artifact hash or commit SHA in release evidence.
  7. Explicit approval before production activation.

Rollback

Document:

  • Previous known-good Git tag/commit.
  • Previous exported workflow JSON and n8n workflow ID.
  • Database/config migration reversibility.
  • Credential compatibility and rotation impact.
  • Owner and rollback command/procedure.

Do not claim production readiness when the change cannot be traced to a commit or rolled back.

Observability minimum

Security review without runtime visibility is incomplete: an undetected silent failure is functionally equivalent to a missing control. Every production workflow must expose at least the following.

Required runtime signals

SignalWhere it livesWhy it matters
Workflow execution success / error / canceled countn8n Executions DB or executions/list APIDetect regression after a deploy
Error rate per workflow (5-minute window)derived from the aboveAlert when > 2x baseline
Latency p50 / p95 / p99 per workflown8n execution startedAt → stoppedAtDetect upstream slow-downs
Webhook 4xx / 5xx response ratereverse proxy / n8n metricsCatch auth or signature failures
Credential usage frequency per credential IDexecution logsDetect rotation lag or unauthorized lateral use
Queue depth (if running queue mode)Redis LLEN on the n8n queueCatch worker starvation
Disk usage on n8n + worker volumeshost monitoringPre-empt OOM and outage
Code node / HTTP node exception classesn8n execution data error.messageTop-N for triage

Required alert routes

At minimum, three escalation channels with documented owners:

  1. High-volume soft signal (latency, queue depth) → a chat channel; reviewed daily.
  2. Single-event hard signal (auth failure spike, credential rotation lag, repeated 5xx) → on-call paging.
  3. Security incident (signature failure, identifier-injection attempt, secret exfil pattern in logs) → security on-call; auto-create incident ticket.

Dashboard targets

Pack-agnostic. Pick one and document the link in the workflow's sticky note:

  • n8n Insights (Cloud and self-hosted Pro feature)
  • Grafana + Prometheus, scraping the n8n metrics endpoint and Postgres execution data
  • Datadog / New Relic / Honeycomb if already adopted

A dashboard does not exist until a link is in the sticky note. "Available via Grafana" is not enough.

Honesty rule

Workflows whose risk profile demands monitoring but ship without it must publish that absence in SECURITY-CAVEATS.md exactly as auth/injection findings would. Lack of observability is itself a finding.


Code2n8n integration

  1. Run this skill after source inventory and before partition/design.
  2. Carry findings into the SDD and partition decision.
  3. Re-run affected checks after workflow generation.
  4. Include the final security decision and release traceability in validation results.

§10 — V&V two-layer gate (added v0.28.0 after the einvoice-n8n incident)

📜 Why this exists: in Pack v0.27.0 the first external-SDK case study (examples/einvoice-n8n/) shipped with claims of "validated" backed only by scripts/security-scan.mjs (regex pass on workflow JSON) and scripts/live-roundtrip.mjs (n8n import/export round-trip). An adversarial review by a second AI immediately found 5 blocking-severity runtime bugs (broken HTTP status check, orphan dead-letter nodes, wrong resume URL variable name, timezone off-by-one for daily/monthly schedulers, missing CSV binary conversion) plus a package.json with non-existent dependency versions. Root cause: equating Layer 1 (structural / import-time) with validation. This section enforces both layers from now on.

Rule: before any text in a commit, release note, README, or sticky note may say "validated" / "tested" / "verified", the case MUST pass both layers below. Layer 1 alone is necessary but never sufficient.

Layer 1 — Structural / import-time (must pass, does not count as validation)

  • scripts/security-scan.mjs — 0 errors on workflow JSON.
  • scripts/live-roundtrip.mjs — every workflow JSON imports / GET / DELETE round-trips cleanly.
  • Workflow JSON parses; manifest consistency holds.

Layer 2 — Compile / runtime / cross-document (required for the "validated" claim)

  • Dependency reality: npm install (or equivalent) succeeds without --force; npm audit --omit=dev reports 0 high+ CVEs.
  • Compile: tsc --noEmit (or equivalent) exits 0.
  • Service starts: /healthz returns 200; authn enforced on protected paths (curl /protected/* without bearer → 401).
  • Negative tests: oversized body → 413; prototype-pollution payload to dynamic dispatch endpoints → 400; unknown enum → 400.
  • Workflow runtime contract (each of these is a Pack v0.27.0 failure):
    • HTTP nodes branching on status MUST set options.response.response.fullResponse = true. Otherwise $json.statusCode is undefined and || 200 defaults true → silent failures with corrupted audit log.
    • Wait + resume uses $execution.resumeUrl (NOT $resumeUrl — that is a hallucination).
    • Every node a sticky note or README promises is actually graph-connected (open the canvas and trace each dead-letter / notification edge).
    • Webhook responseMode = responseNode with a fixed-schema respondToWebhook node (NOT lastNode, which leaks whatever the final node returned).
    • Schedule triggers MUST have settings.timezone set; Code-node date math MUST use Intl.DateTimeFormat({ timeZone }) instead of UTC toISOString().slice(0,10).
    • Email / file attachments preceded by Convert to File node when the source is a string.
  • Cross-document parity: every README claim points at the file/line that implements it; sticky notes do not promise behavior the JSON omits.
  • At least one end-to-end smoke per pattern (real svc + real workflow + real Sheet row).

Required output

  • AI agents: follow docs/code2n8n-vv-a2a.md — the A2A directive with exact tool invocations, mandatory evidence schema, forbidden phrases, and skip behavior.
  • Human reviewers: tick every box in docs/code2n8n-vv-checklist.md explicitly. No aggregated "all good".
  • Release notes / READMEs must distinguish ✅ what was tested · ❌ what was NOT tested · 🟡 what is known-partial (with target version).
  • Forbidden phrases unless backed by Layer 2 evidence: "Tested", "X/X ok", "Validated", "Production-ready". Use the substitutes in the A2A directive / checklist.

Worked example

examples/einvoice-n8n/SECURITY-REVIEW.md is the retroactive application of this gate to the v0.27.0 case. 13 structured SEC-### findings (SEC-001 … SEC-013) — SEC-011 / SEC-012 / SEC-013 are the exact failure modes this gate exists to catch (broken status check, orphan dead-letter, timezone trap). The gate would have blocked v0.27.0.

Completion checklist

  • Trust boundaries and sensitive data are documented.
  • Auth, authorization, injection, webhook, secret, file, AI-agent, and audit controls were reviewed.
  • Findings have evidence, severity, status, owner, and target version.
  • Unresolved risks are disclosed in SECURITY-CAVEATS.md.
  • Workflow sticky-note version and repository changelog were updated.
  • Reviewed JSON maps to a Git commit SHA and n8n release tag.
  • CI validation and rollback evidence exist.
  • Deployment decision is PASS, CONDITIONAL, or BLOCKED.
  • §10 V&V two-layer gate: Layer 1 + Layer 2 both pass per docs/code2n8n-vv-checklist.md. Every checklist box ticked explicitly, not aggregated.

Häufig gestellte Fragen

Was macht der KI-Skill N8n Security Governance?

Review an AI-coded application or n8n workflow for production security and change-control readiness. Use for security audits, production readiness, enterprise governance, auth/SQL/secret review, SECURITY-CAVEATS.md, version control, rollback, release tagging, CI/CD, or before declaring a Code2n8n port deployable.

Warum N8n Security Governance in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. N8n Security Governance besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich N8n Security Governance in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/MorrisLu-Taipei/TigerAI-A2A-Code2n8n-Skill-Pack/tree/main/skills/tigerai/n8n-security-governance ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können N8n Security Governance nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit N8n Security Governance verwenden?

So viele Sie möchten. In TypingMind können Sie N8n Security Governance mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill N8n Security Governance kostenlos?

Ja. Der Skill wird von MorrisLu-Taipei auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇