n8n-security-testing

Scan n8n workflows for credential exposure and security flaws.

6|3|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/pacphi/ampel --skill n8n-security-testing-pacphi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n8n-security-testing
Source: https://github.com/pacphi/ampel/tree/main/.claude/skills/n8n-security-testing
Command: npx skills add https://github.com/pacphi/ampel --skill n8n-security-testing-pacphi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Focused security testing for n8n workflows, including credential exposure checks and OAuth/token handling.

Core Features & Use Cases

  • Credential Scanning: Detect credentials in workflow definitions
  • Encryption Verification: Ensure sensitive data is encrypted at rest
  • OAuth & Tokens: Validate token handling and rotation
  • Input Sanitization: Guard against injection and data leakage

Quick Start

n8n-security-testing run --check credentials --rotate-tokens

Frequently Asked Questions about n8n-security-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect exposed credentials in n8n workflows?

Credential scanning detects secrets embedded in workflow definitions by analyzing workflow JSON and execution logs. Run the scan to identify API keys, tokens, and passwords that may be exposed at rest or in transit, then rotate or encrypt them.

Can I verify encryption and secure token handling in n8n?

Encryption verification ensures sensitive data is encrypted at rest and validates OAuth token handling and rotation. The scan confirms credentials are properly encrypted and checks that tokens are managed securely within your n8n workflows.

What security flaws should I test for in n8n workflows?

Security testing covers credential exposure, encryption gaps, insecure OAuth flows, weak API key handling, and input sanitization failures. The scan identifies injection vectors and data leakage risks across workflow definitions and execution logs.

How do I check if my n8n workflow inputs are properly sanitized?

Input sanitization validation scans workflow nodes and authentication flows to detect injection vulnerabilities and data leakage. The test confirms that user inputs are validated and escaped before use in API calls or credential handling.

Does this work for OAuth and API key workflows in n8n?

Yes. OAuth and token testing validates OAuth token rotation, secure transmission, and API key encryption within n8n workflows. The scan verifies that authentication flows follow security best practices and tokens are handled safely.