For the complete documentation index, see llms.txt. This page is also available as Markdown.

Audit

Operations about security audit

Generate an audit

post

Generate a security audit for your n8n instance.

Authorizations
X-N8N-API-KEYstringRequired
Body
Responses
200

Operation successful.

application/json
Credentials Risk ReportobjectOptionalExample: {"risk":"credentials","sections":[{"title":"Credentials not used in any workflow","description":"These credentials are not used in any workflow. Keeping unused credentials in your instance is an unneeded security risk.","recommendation":"Consider deleting these credentials if you no longer need them.","location":[{"kind":"credential","id":"1","name":"My Test Account"}]}]}
Database Risk ReportobjectOptionalExample: {"risk":"database","sections":[{"title":"Expressions in \"Execute Query\" fields in SQL nodes","description":"This SQL node has an expression in the \"Query\" field of an \"Execute Query\" operation. Building a SQL query with an expression may lead to a SQL injection attack.","recommendation":"Consider using the \"Query Parameters\" field to pass parameters to the query","or validating the input of the expression in the \"Query\" field.":null,"location":[{"kind":"node","workflowId":"1","workflowName":"My Workflow","nodeId":"51eb5852-ce0b-4806-b4ff-e41322a4041a","nodeName":"MySQL","nodeType":"n8n-nodes-base.mySql"}]}]}
Filesystem Risk ReportobjectOptionalExample: {"risk":"filesystem","sections":[{"title":"Nodes that interact with the filesystem","description":"This node reads from and writes to any accessible file in the host filesystem. Sensitive file content may be manipulated through a node operation.","recommendation":"Consider protecting any sensitive files in the host filesystem","or refactoring the workflow so that it does not require host filesystem interaction.":null,"location":[{"kind":"node","workflowId":"1","workflowName":"My Workflow","nodeId":"51eb5852-ce0b-4806-b4ff-e41322a4041a","nodeName":"Ready Binary file","nodeType":"n8n-nodes-base.readBinaryFile"}]}]}
Nodes Risk ReportobjectOptionalExample: {"risk":"nodes","sections":[{"title":"Community nodes","description":"This node is sourced from the community. Community nodes are not vetted by the n8n team and have full access to the host system.","recommendation":"Consider reviewing the source code in any community nodes installed in this n8n instance","and uninstalling any community nodes no longer used.":null,"location":[{"kind":"community","nodeType":"n8n-nodes-test.test","packageUrl":"https://www.npmjs.com/package/n8n-nodes-test"}]}]}
Instance Risk ReportobjectOptionalExample: {"risk":"execution","sections":[{"title":"Unprotected webhooks in instance","description":"These webhook nodes have the \"Authentication\" field set to \"None\" and are not directly connected to a node to validate the payload. Every unprotected webhook allows your workflow to be called by any third party who knows the webhook URL.","recommendation":"Consider setting the \"Authentication\" field to an option other than \"None\"","or validating the payload with one of the following nodes.":null,"location":[{"kind":"community","nodeType":"n8n-nodes-test.test","packageUrl":"https://www.npmjs.com/package/n8n-nodes-test"}]}]}
post/audit

Last updated

Was this helpful?