n8n_run_audit
Run a security audit on your n8n instance to identify risks in credentials, database expressions, nodes, filesystem access, and instance settings. Returns categorized reports with recommendations.
Instructions
Generate n8n's built-in security audit via POST /audit. Returns one risk report per requested category: credentials (unused/abandoned), database (SQL injection-prone expressions), nodes (community/unofficial nodes), filesystem (host fs access), instance (insecure server settings). Each report has risk, sections (with title/description/recommendation/location). Read-only — n8n only inspects, never mutates. Requires the API user to be an instance admin or owner.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| categories | No | Restrict the audit to specific risk categories. Omit for all five. | |
| daysAbandonedWorkflow | No | Days a workflow must go unexecuted to count as abandoned in the credentials report. n8n default is 90. | |
| includeDetails | No | Return full per-finding `location` arrays (credential ids/names, node ids). Default false: locations stripped from audit body, only counts surfaced. |