Running the n8n security audit

Running the n8n audit turns a self-hosted instance's risky credentials, nodes and webhooks into a ranked fix list. This page explains what the audit covers, how to act on the report and what to confirm in your environment.

On this page

What the n8n security audit finds and when to run it

A self-hosted n8n instance that holds real credentials needs a baseline configuration review before it serves production work. The n8n security audit is that review. It reports risky configuration: credentials that no workflow uses, SQL expressions open to injection, file system nodes that can read or write the host, community and custom nodes that were installed without review, and webhooks that accept requests without authentication. It does not replace a penetration test, which exercises those weaknesses against the running system, tests authentication and SSRF behavior, and tries to reach credentials. Treat the audit report as the starting list of findings for that test, and as the record of what your team fixed before it.

Run the audit before go-live, when the instance is still small enough that every credential and workflow can be reviewed by hand. Run it again after large workflow growth, such as a new team or a batch of imported workflows, because each new workflow can add a webhook, a file node or a credential that nobody remembers creating. Then run it on a fixed schedule, and after any upgrade or change to nodes that users can install. Confirm with your n8n version and team that the audit command and its output format match the release you run, since the command set changes between releases.

Each finding needs an owner and a decision before the report is closed. For an unused credential, decide whether to delete it or document why it stays. For a risky node or webhook, decide whether a workflow needs it at all, and if so, which project may use it. Record the outcome next to the finding, so an auditor or the next reviewer can see what was accepted and why. Ask whoever runs your n8n instance to confirm where the audit output is stored, who can read it, and whether it contains any credential names or workflow data you would not want widely shared.

Audit categories and the fix each one usually needs

This table maps each main finding category in the n8n audit report to what it shows, the fix it usually needs and the sibling topic that carries that fix out. Read each finding as a question about business need: a flagged item is a candidate for review, and the right answer is sometimes to keep it with added controls.

Audit categoryWhat the report showsUsual fixSibling topic that carries it out
Unused credentialsStored credentials that no active workflow references, often left from tests or departed staffConfirm with the owner, then delete or rotate; keep any credential a scheduled or paused workflow still needsEncryption key management and rotation
SQL expressions open to injectionWorkflow fields that build SQL from expressions or incoming data without parameter bindingRewrite queries with parameters, restrict which users can edit those nodes, and validate inputs upstreamRedacting sensitive execution data and the Code node restrictions are adjacent; confirm query design with the database owner
File system and execute command nodesNodes that read, write or run commands on the host running n8nRemove where unused, or block with a node policy; where needed, scope access to a dedicated runner or directoryBlocking risky n8n nodes with NODES_EXCLUDE and node type policies
Community and custom nodesInstalled packages not from the core node set, with their own code and maintainersReview source and maintenance status, pin versions, remove packages nobody owns, and test updates in stagingPatching n8n vulnerabilities and tracking security advisories
Unprotected webhooksPublic webhook URLs with no authentication, no IP restriction or test URLs left activeAdd Header, Basic or JWT authentication, IP allowlists and rate limits at the proxy; close test URLs when not in useSecuring n8n webhooks with authentication and IP allowlists
Code node and outbound requestsScripts that import modules or call internal addresses from HTTP nodesRestrict modules and environment access, and block requests to metadata and internal ranges where business need allowsRestricting the n8n Code node and Enabling SSRF protection in n8n

How to run the audit and read the report

This sequence confirms the instance and access, runs the n8n security audit against a trustworthy copy of the data, and produces a timestamped report that covers every workflow, project and worker before anyone starts triaging findings.

  1. Confirm the instance version and access

    The person running the audit records the n8n version, the edition (Community, Business or Enterprise), the deployment mode (single instance or queue mode) and the account and host used to run the command. Confirm the version against the current n8n release notes so the report is read against the right rule set. Done when the version, edition and access path are written into the audit record and the operator has shell access to the host or container that holds the n8n configuration.

  2. Choose the data source for the audit

    Decide whether the audit runs against the live production database or a restored staging copy. Running against a staging restore avoids load and accidental changes on production, but the copy must be recent and must include the same workflows and credential records. Confirm the database name and timestamp of the copy with the team that owns the restore. Done when the chosen source is named in the audit record and the database connection points where the team expects.

  3. Confirm the exact audit command and flags

    Check the current n8n documentation for the audit command, its flags and its output options before running anything, because flags can change between releases. Note which categories the command reports on, such as unused credentials, SQL expressions, file system nodes, community and custom nodes and webhooks. Done when the team has a written command line that matches the documented syntax for the installed version and the operator can say which categories it covers.

  4. Run the audit and save the report with a timestamp

    Run the audit command from the host or container with the same environment variables as the running instance, so the report reflects the real configuration. Redirect the output to a file whose name includes the date and time, the instance name and the version, for example in a secure evidence folder with restricted access, because the report names workflows and credentials. Done when the file exists, is not empty and is stored where the security owner can retrieve it.

  5. Check that the report covers every workflow

    Compare the report against an independent count of workflows and projects, using a database query or the n8n interface as a cross-check. Confirm that every project is included, that archived or inactive workflows are not silently dropped, and that the audit reaches the worker and webhook processors in queue mode, since they can run nodes that the main instance does not. Done when the counts match or every gap is recorded with a reason and a follow-up owner.

  6. Record the scope and any gaps

    Write a short scope note listing the instance, data source, edition, command, time of run and the processes included. State any limits, such as a process the operator could not reach or a project the audit account could not see, and assign an owner to close each gap. Done when the scope note is saved with the report and a reviewer has confirmed it. Only then should findings be triaged, because a report with unknown coverage can hide the risks that matter most.

Triaging findings by who owns the workflow

The platform team owns the instance itself: how it is installed, which environment variables are set, where the encryption key is stored and how the database and proxy are configured. Findings in this group rarely belong to one workflow, so they should be fixed once at the instance level and verified again after each upgrade.

  • Environment variables: Compare settings such as N8N_ENCRYPTION_KEY, NODES_EXCLUDE and N8N_SSRF_PROTECTION_ENABLED with the audit output, and record the value each one has in every environment.
  • Queue mode topology: Confirm the encryption key is shared with every worker and webhook processor, since they need it to read stored credentials.
  • Public exposure: List which endpoints face the internet, including the editor and webhook paths, and confirm who can reach the administrative interface.
  • Versions and patches: Compare the running version with the release notes and schedule patches through staging before production.

Check that each instance-level finding has one named engineer and a change record showing when the setting was verified.

Turning the report into fixes in a sensible order

The audit report usually points to five or six separate fixes, and most can run in parallel because they touch different workflows and owners. Start with the changes that remove exposure without breaking production, then handle the fixes that need workflow owners to test and sign off. Each card names the change, what it can break, and the sibling topic that holds the configuration.

Remove unused credentials

Before deleting anything, confirm the owner of each credential the audit lists as unused and check whether a workflow, a scheduled job or a colleague's manual process still depends on it. Ask owners to confirm in writing, then delete or rotate the credential in the external system as well as in n8n. The usual breakage is a workflow that runs rarely, such as a quarterly report, and fails the first time it is needed again. Keep a record of what was removed so the change can be traced.

Parameterize SQL expressions

The audit flags workflows that build SQL statements by concatenating expressions from webhook payloads, form inputs or prior node outputs. Move those values into query parameters so the database driver treats them as data, not as SQL text. Test each changed workflow with malformed and quoted input, because some queries that worked with string concatenation will fail once values are bound. Confirm that the database account used by each workflow has only the privileges that workflow needs.

Restrict file system and command nodes

Execute Command, file access and SSH nodes give a workflow reach into the host, so the audit's findings here carry the most weight on a shared instance. Decide which teams genuinely need these nodes, then block the rest and move the approved work into dedicated, reviewed workflows. Expect breakage in workflows that copy files or run scripts as part of nightly jobs, so schedule those changes with their owners. See the node blocking topic for the policy options and how to re-enable nodes deliberately.

Authenticate or allowlist webhooks

Public webhook URLs found by the audit without authentication can trigger workflows from anywhere on the internet. Add Header or JWT authentication, or restrict source addresses at the proxy, and keep test URLs closed when the workflow is live. Partners and monitoring services that call these URLs will stop working until they send the new credential or come from an approved address, so update their configuration before enforcing the change. Rate limiting at the proxy reduces the impact of anything that gets through.

Review community and custom nodes

Community and custom nodes run code with the same access as the instance, so each one needs an owner, a source and a version you can review. Remove packages nobody uses, pin the versions you keep, and check the source of any node that handles credentials or outbound requests. Removing a node breaks any workflow that uses it, so list affected workflows first. Treat the review as a supply chain decision, not a cleanup chore.

Retest and rerun the audit

After each group of fixes, rerun the audit and compare the new report with the original, then test the affected workflows in a staging instance that has the same node and credential configuration. Record which findings were closed, which were accepted with a stated reason, and who approved each acceptance. Schedule the audit again so new workflows and nodes are checked before they reach production. The retest is what turns a list of changes into evidence that the exposure was reduced.

How audit findings move to verified fixes

The loop starts when the audit runs and the report is exported, then each finding goes to the owner of the workflow or credential it touches. That owner decides whether to fix it or record an accepted risk with a reason. Fixes are applied and checked in staging first, then promoted to production only after the audit is rerun. If the rerun still flags an item, it returns to triage, and every pass should leave evidence that the change was made and verified.

The audit-to-fix loop, with reruns returning unresolved findings to triage.

Security and operational cautions while auditing

The audit report is useful, but it is also a map of your most sensitive configuration. The cards below cover who may read the output, how fixes move through environments, what to back up before touching credentials, when to rerun the audit, and how it fits with logs and patch tracking.

Restrict who reads the report

The report can name credentials, workflows, webhook paths and nodes that expose file system or shell access. Treat it as sensitive operational data, store it in a location with the same access controls as your secrets, and share only the findings each owner needs. Before distribution, check whether workflow names or node parameters contain customer identifiers or internal hostnames, and redact them where your process requires it.

Never fix findings directly in production

Removing a credential, changing a node policy or closing a webhook can break live workflows that other teams depend on. Reproduce each finding in a staging instance restored from a recent copy, apply the fix there, run the affected workflows, and then promote the change through your normal review. Record which production workflows depend on each flagged item before you start.

Back up the encryption key first

Credential cleanup means deleting or re-creating stored credentials, and an incorrect change can leave you unable to decrypt what remains. Before any cleanup, confirm that the N8N_ENCRYPTION_KEY value is stored in your secret manager and that it matches the key used by the database you are auditing. The sibling topic on n8n encryption key management covers the backup and rotation steps in detail.

Rerun after upgrades and new nodes

A finding that was clean last month can reappear after an upgrade changes default node behavior, or after someone installs a community or custom node. Schedule the audit to run after each minor or major upgrade and whenever a new node package is approved. Compare each run with the previous report so that new items stand out rather than blending into a long list.

Pair the audit with logs and advisories

The audit shows configuration at one moment. It does not show who ran a risky node, whether a webhook has been called by unexpected sources, or whether a disclosed vulnerability affects your version. Connect the report to your log retention and review process, and to your patch tracking for n8n advisories, so that a configuration gap and an actual event are reviewed together.

Questions buyers ask before running the audit themselves or hiring help

How long does an n8n security audit and its fixes take?

The duration depends mostly on how much work follows the report, not on the report itself. The main drivers are the number of workflows and credentials, how many community and custom nodes are installed, whether the instance runs in queue mode with separate workers, and how many owners must approve each change. Owner availability often sets the pace, because someone must confirm whether a flagged credential, webhook or node is still needed. Staging capacity and change windows also matter. No duration figure applies to every environment, so ask any provider to state phases (review, fixes, retest) and the time each phase assumes in the written scope.

Can our own team run the n8n security audit without outside help?

Yes, an administrator with access to the instance can run the audit and read the report. The audit checks for unused credentials, SQL expressions open to injection, file system nodes, community and custom nodes, and unprotected webhooks. The harder part is judgment: deciding whether a finding is exploitable in your setup, which workflows are business critical, and how to change them without breaking production. Internal teams usually know their workflows well but may lack time or experience with Code node escapes, SSRF from HTTP nodes and webhook abuse. Many teams run the audit internally, then bring in a partner for review, remediation or a separate penetration test.

What does the n8n audit need from us: access, owners and staging?

The audit needs three things. First, administrator access to the n8n instance and the host, container or Kubernetes namespace it runs in, so the check uses the same configuration as production. Second, a named owner for each project or workflow group who can confirm whether a flagged item is still required. Third, a staging copy that can test fixes before they reach production. For staging, restore the database and keep the encryption key consistent with that database, handling the key as a secret. Also agree on who approves changes, how workflows are backed up before edits, and where the findings report will be stored.

What does an n8n security audit cost, and what recurs?

DeployOpen does not publish a price list, and a quote follows from the written scope. Cost has three parts: internal staff time, the partner's fixed-scope work on review and remediation, and any retest. The initial audit, the first round of fixes and the first retest are one-time costs. Rerunning the audit after upgrades, new community nodes, new public webhooks or staff changes is recurring, as is any retainer for continuous testing. Separately, n8n's own plan costs apply: the pricing page lists a free self-hosted Community edition, so the audit does not require a paid plan. Ask each quote for line items, whether retest is included and the expected rerun cadence.

Does an n8n security audit replace a penetration test?

No. The audit is a configuration and inventory check against specific risk areas, so it shows where exposure exists. A penetration test goes further by attempting to exploit those paths. A test of a self-hosted n8n instance typically covers editor and API authentication, webhook endpoints, SSRF from HTTP nodes, Code node escape attempts and credential exposure. Use the audit report as the starting point and scope for the test, not as its replacement. Neither the audit nor a test produces a compliance attestation. If an auditor or customer asks for one, an independent auditor or certification body issues it.

What does a fixed-scope n8n audit engagement include?

A fixed-scope engagement lists its work in writing before it starts. Expect the agreed scope to name the environments covered, the checks run, how many workflows are reviewed in full or sampled, and the deliverables. A typical package includes a findings report with severity and recommended fixes, remediation support for the items in scope, and a retest of fixed items. Confirm what is excluded. Common exclusions are penetration testing unless it is scoped separately, changes to production without approval, and compliance evidence packages. DeployOpen's security testing covers applications, APIs, cloud and infrastructure, and it prepares evidence for assessments without issuing reports itself.

How often should we rerun the n8n security audit?

Rerun the audit whenever something changes that could add risk. Common triggers are an n8n version upgrade, new community or custom nodes, new public webhooks, new credentials for external systems, and staff changes that affect workflow owners. Many teams also schedule a periodic rerun, but the right interval depends on how fast workflows change and how sensitive the data is. For ongoing work, DeployOpen offers retainers for continuous testing and support, and the rerun cadence should be written into that agreement. Ask any provider how reruns are priced, whether they are included in a retainer, and how new findings are tracked between runs.

Which n8n audit fixes need a paid plan?

Most hardening steps are configuration changes that work on the self-hosted Community edition, such as removing unused credentials, tightening webhook authentication and restricting risky nodes. Some controls depend on the plan. The pricing page lists SSO and LDAP only in the Business and Enterprise plans, and the sibling topic on node restrictions describes Enterprise node type policies as distinct from the environment variable approach. Before committing to a fix, confirm in your own version and plan which features are available, and ask the provider to mark each finding as available on your plan, paid or requiring a workaround.

How DeployOpen scopes and delivers the audit fixes

DeployOpen starts every n8n audit engagement with a written, fixed scope agreed before any work begins. The scope names the n8n instances covered, whether the audit includes queue mode workers and webhook processors, which projects and users are in view, and which finding categories are in play: unused credentials, SQL expressions open to injection, file system and command nodes, community and custom nodes, and unprotected webhooks. It also states the deliverables, which are the audit output, a prioritized findings list, the fix plan and a retest. Before the run, confirm with your team who holds an owner-level account, where the audit will execute, and whether any workflow contains personal or financial data that must stay inside a defined boundary. Those answers shape the quote, because a single instance with a handful of workflows costs far less to review than a multi-project estate with many custom nodes. Ask for the scope, deliverables and assumptions in writing before you approve.

The audit runs inside your own infrastructure, using a service account or a read-only access path that you approve, so credential values and execution data never leave your environment. Findings are then turned into a prioritized fix plan with a named owner for each item, typically a platform engineer, a workflow owner or a security lead. Fixes are applied first in a staging instance restored from a current backup, then promoted to production after the audit is rerun and the specific findings are confirmed closed. Where a fix touches the encryption key, node policies or webhook exposure, the plan should note the change window and rollback step. An optional retainer can cover recurring audit reruns after n8n upgrades, new community nodes or new workflows, which is useful because findings tend to return as the instance grows. Confirm the retainer terms, reporting cadence and retest scope in the written agreement.

How DeployOpen works on n8n security audits

DeployOpen runs the n8n audit as one stage of a fixed-scope engagement on infrastructure you control, then turns its findings into fixes, retests and handover documentation. The work covers the unused credentials, injection-prone expressions, file system nodes, community nodes and webhooks that the audit reports, plus the decisions your team needs to make about them.

How we scope

  • We agree in writing which instances, workflows, projects and users the audit covers before any work starts.
  • We confirm the n8n version, edition and deployment model so findings match the features your instance actually runs.
  • We record which teams own credentials, nodes and webhooks so every finding has a named owner for the fix.

How we build

  • We run the n8n audit against your instance and review each flagged credential, expression, node and webhook by hand.
  • We separate true exposure from false positives by checking whether a workflow is active and what data it reaches.
  • We prepare the fix plan in a staging copy first, so changes to live workflows and credentials are tested before rollout.

How we hand over

  • You receive a findings report with severity, affected workflows, the recommended fix and the owner for each item.
  • We document the changes made, the retest results and any risks you accept, in a form your security team can review.
  • We walk your operators through the audit steps so your team can repeat the review on a schedule.

How we support

  • We retest the agreed items after fixes are applied and report which findings are closed and which remain open.
  • Ongoing support, upgrades and continuous testing are available as a retainer after the initial engagement ends.
  • Ask us to confirm how a future n8n release changes the audit results before you schedule the next review.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.