Back to skill

Security audit

n8n工作流生成助手 v1.0.0

Security checks for vulnerabilities and agentic risk

Overview

ClawScan’s verdict is benign with medium confidence: the findings are mostly judged consistent with the n8n workflow assistant’s purpose, though some code was only partially inspected and one capability finding was considered unexpected.

The verdict is benign, but it is not a guarantee of safety. Consider the external URL and the undeclared tool scope, and note that static inspection was partial for six components, including several scripts and a binary asset. The scanners did not fully assess those portions.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (22)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The supplied script primarily verifies a skill/plugin installation, rather than generating, configuring, troubleshooting, or validating n8n workflows. Its inputs and checks concern arbitrary packaged files and local installation metadata, with no n8n-specific processing. Although delivery validation is declared, installation integrity auditing is a materially distinct capability not clearly covered by the stated n8n-focused purpose. No repair, network access, or file modification is present.

Content

No source excerpt is available for this finding.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 48)May include surrounding context.

md
node scripts/validate_workflow.mjs demo.json

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 49)May include surrounding context.

md
node scripts/validate_workflow.mjs api.json --parser-root /path/to/runtime --require-expression-parser

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 53)May include surrounding context.

md
node scripts/validate_workflow.mjs final.json --contract contract.json --baseline baseline.json

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 51)May include surrounding context.

md
node scripts/run_data_contract.mjs final.json cases.json

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 52)May include surrounding context.

md
node scripts/run_graph_contract.mjs assets/template-webhook.json assets/graph-contract.example.json

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · assets/config-variant.example.json (reported line 8)May include surrounding context.

json
"node": "Config",
      "name": "apiUrl",
      "expected": "",
      "value": "https://api.example.invalid/query"
    },
    {
      "node": "Config",

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/smoke_test.py (reported line 21)May include surrounding context.

python
if not node:
        raise RuntimeError('Node.js >=18 is required for this JavaScript validation smoke test')
    for script in ['run_data_contract.mjs', 'run_graph_contract.mjs', 'validate_workflow.mjs']:
        subprocess.run([node, str(ROOT / 'scripts' / script), '--help'], check=True, capture_output=True, timeout=20)
    for script in ['verify_install.py','prepare_config_variant.py','check_mutation_evidence.py']:
        subprocess.run([sys.executable, str(ROOT / 'scripts' / script), '--help'], check=True, capture_output=True, timeout=20)
    with tempfile.TemporaryDirectory() as tmp:

Tainted flow: 'node' from os.environ.get (line 17, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/smoke_test.py (reported line 21)May include surrounding context.

python
if not node:
        raise RuntimeError('Node.js >=18 is required for this JavaScript validation smoke test')
    for script in ['run_data_contract.mjs', 'run_graph_contract.mjs', 'validate_workflow.mjs']:
        subprocess.run([node, str(ROOT / 'scripts' / script), '--help'], check=True, capture_output=True, timeout=20)
    for script in ['verify_install.py','prepare_config_variant.py','check_mutation_evidence.py']:
        subprocess.run([sys.executable, str(ROOT / 'scripts' / script), '--help'], check=True, capture_output=True, timeout=20)
    with tempfile.TemporaryDirectory() as tmp:

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/smoke_test.py (reported line 23)May include surrounding context.

python
for script in ['run_data_contract.mjs', 'run_graph_contract.mjs', 'validate_workflow.mjs']:
        subprocess.run([node, str(ROOT / 'scripts' / script), '--help'], check=True, capture_output=True, timeout=20)
    for script in ['verify_install.py','prepare_config_variant.py','check_mutation_evidence.py']:
        subprocess.run([sys.executable, str(ROOT / 'scripts' / script), '--help'], check=True, capture_output=True, timeout=20)
    with tempfile.TemporaryDirectory() as tmp:
        variant=Path(tmp)/'configured-example'
        subprocess.run([sys.executable,str(ROOT/'scripts/prepare_config_variant.py'),str(ROOT/'assets/template-config-test.json'),

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/smoke_test.py (reported line 26)May include surrounding context.

python
subprocess.run([sys.executable, str(ROOT / 'scripts' / script), '--help'], check=True, capture_output=True, timeout=20)
    with tempfile.TemporaryDirectory() as tmp:
        variant=Path(tmp)/'configured-example'
        subprocess.run([sys.executable,str(ROOT/'scripts/prepare_config_variant.py'),str(ROOT/'assets/template-config-test.json'),
                        str(ROOT/'assets/config-variant.example.json'),str(variant)],check=True,capture_output=True,timeout=20)
        configured=subprocess.run([node,str(ROOT/'scripts/run_graph_contract.mjs'),str(variant/'configured-workflow.json'),str(ROOT/'assets/config-graph.example.json')],
                                  check=True,capture_output=True,text=True,encoding='utf-8',timeout=20)

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/smoke_test.py (reported line 28)May include surrounding context.

python
variant=Path(tmp)/'configured-example'
        subprocess.run([sys.executable,str(ROOT/'scripts/prepare_config_variant.py'),str(ROOT/'assets/template-config-test.json'),
                        str(ROOT/'assets/config-variant.example.json'),str(variant)],check=True,capture_output=True,timeout=20)
        configured=subprocess.run([node,str(ROOT/'scripts/run_graph_contract.mjs'),str(variant/'configured-workflow.json'),str(ROOT/'assets/config-graph.example.json')],
                                  check=True,capture_output=True,text=True,encoding='utf-8',timeout=20)
        assert json.loads(configured.stdout)['passed'] is True
        for pattern in ['manual', 'webhook']:

Tainted flow: 'node' from os.environ.get (line 17, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/smoke_test.py (reported line 28)May include surrounding context.

python
variant=Path(tmp)/'configured-example'
        subprocess.run([sys.executable,str(ROOT/'scripts/prepare_config_variant.py'),str(ROOT/'assets/template-config-test.json'),
                        str(ROOT/'assets/config-variant.example.json'),str(variant)],check=True,capture_output=True,timeout=20)
        configured=subprocess.run([node,str(ROOT/'scripts/run_graph_contract.mjs'),str(variant/'configured-workflow.json'),str(ROOT/'assets/config-graph.example.json')],
                                  check=True,capture_output=True,text=True,encoding='utf-8',timeout=20)
        assert json.loads(configured.stdout)['passed'] is True
        for pattern in ['manual', 'webhook']:

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/smoke_test.py (reported line 33)May include surrounding context.

python
assert json.loads(configured.stdout)['passed'] is True
        for pattern in ['manual', 'webhook']:
            workflow = Path(tmp) / (pattern + '.json')
            subprocess.run([sys.executable, str(ROOT / 'scripts/create_workflow.py'), str(workflow), '--pattern', pattern], check=True, capture_output=True, timeout=30)
            result = subprocess.run([node, str(ROOT / 'scripts/validate_workflow.mjs'), str(workflow)], check=True, capture_output=True, text=True, encoding='utf-8', timeout=30)
            report = json.loads(result.stdout)
            assert not [i for i in report['issues'] if i['severity'] == 'error']

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/smoke_test.py (reported line 34)May include surrounding context.

python
for pattern in ['manual', 'webhook']:
            workflow = Path(tmp) / (pattern + '.json')
            subprocess.run([sys.executable, str(ROOT / 'scripts/create_workflow.py'), str(workflow), '--pattern', pattern], check=True, capture_output=True, timeout=30)
            result = subprocess.run([node, str(ROOT / 'scripts/validate_workflow.mjs'), str(workflow)], check=True, capture_output=True, text=True, encoding='utf-8', timeout=30)
            report = json.loads(result.stdout)
            assert not [i for i in report['issues'] if i['severity'] == 'error']
            assert report['live_imported'] is False and report['live_executed'] is False

Tainted flow: 'node' from os.environ.get (line 17, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/smoke_test.py (reported line 34)May include surrounding context.

python
for pattern in ['manual', 'webhook']:
            workflow = Path(tmp) / (pattern + '.json')
            subprocess.run([sys.executable, str(ROOT / 'scripts/create_workflow.py'), str(workflow), '--pattern', pattern], check=True, capture_output=True, timeout=30)
            result = subprocess.run([node, str(ROOT / 'scripts/validate_workflow.mjs'), str(workflow)], check=True, capture_output=True, text=True, encoding='utf-8', timeout=30)
            report = json.loads(result.stdout)
            assert not [i for i in report['issues'] if i['severity'] == 'error']
            assert report['live_imported'] is False and report['live_executed'] is False

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/smoke_test.py (reported line 38)May include surrounding context.

python
report = json.loads(result.stdout)
            assert not [i for i in report['issues'] if i['severity'] == 'error']
            assert report['live_imported'] is False and report['live_executed'] is False
            result = subprocess.run([sys.executable, str(ROOT / 'scripts/compare_workflows.py'), str(workflow), str(workflow)], check=True, capture_output=True, text=True, encoding='utf-8', timeout=30)
            assert json.loads(result.stdout)['changedNodes'] == []
            if pattern == 'webhook':
                contract = Path(tmp) / 'data-cases.json'

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/smoke_test.py (reported line 46)May include surrounding context.

python
'id': 'bound-webhook-response', 'seeds': {'Webhook': [{'json': {'body': {'value': 0, 'enabled': False}}}]},
                    'steps': [{'node': 'Build Response', 'from': 'Webhook'}, {'node': 'Respond', 'from': 'Build Response'}],
                    'expected': {'ok': True, 'received': {'value': 0, 'enabled': False}}}]}), encoding='utf-8')
                bound = subprocess.run([node, str(ROOT / 'scripts/run_data_contract.mjs'), str(workflow), str(contract)],
                                       capture_output=True, text=True, encoding='utf-8', check=True, timeout=20)
                assert json.loads(bound.stdout)['passed'] is True
                for tool, cases_name in [('run_data_contract.mjs','data-contract.example.json'),('run_graph_contract.mjs','graph-contract.example.json')]:

Tainted flow: 'node' from os.environ.get (line 17, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/smoke_test.py (reported line 46)May include surrounding context.

python
'id': 'bound-webhook-response', 'seeds': {'Webhook': [{'json': {'body': {'value': 0, 'enabled': False}}}]},
                    'steps': [{'node': 'Build Response', 'from': 'Webhook'}, {'node': 'Respond', 'from': 'Build Response'}],
                    'expected': {'ok': True, 'received': {'value': 0, 'enabled': False}}}]}), encoding='utf-8')
                bound = subprocess.run([node, str(ROOT / 'scripts/run_data_contract.mjs'), str(workflow), str(contract)],
                                       capture_output=True, text=True, encoding='utf-8', check=True, timeout=20)
                assert json.loads(bound.stdout)['passed'] is True
                for tool, cases_name in [('run_data_contract.mjs','data-contract.example.json'),('run_graph_contract.mjs','graph-contract.example.json')]:

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/smoke_test.py (reported line 50)May include surrounding context.

python
capture_output=True, text=True, encoding='utf-8', check=True, timeout=20)
                assert json.loads(bound.stdout)['passed'] is True
                for tool, cases_name in [('run_data_contract.mjs','data-contract.example.json'),('run_graph_contract.mjs','graph-contract.example.json')]:
                    result = subprocess.run([node, str(ROOT/'scripts'/tool), str(ROOT/'assets/template-webhook.json'), str(ROOT/'assets'/cases_name)],
                                            capture_output=True, text=True, encoding='utf-8', check=True, timeout=20)
                    assert json.loads(result.stdout)['passed'] is True
    print(json.dumps({'skill': version['skill_name'], 'version': version['version'], 'smoke_test': 'passed', 'live_calls': False}))

Tainted flow: 'node' from os.environ.get (line 17, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/smoke_test.py (reported line 50)May include surrounding context.

python
capture_output=True, text=True, encoding='utf-8', check=True, timeout=20)
                assert json.loads(bound.stdout)['passed'] is True
                for tool, cases_name in [('run_data_contract.mjs','data-contract.example.json'),('run_graph_contract.mjs','graph-contract.example.json')]:
                    result = subprocess.run([node, str(ROOT/'scripts'/tool), str(ROOT/'assets/template-webhook.json'), str(ROOT/'assets'/cases_name)],
                                            capture_output=True, text=True, encoding='utf-8', check=True, timeout=20)
                    assert json.loads(result.stdout)['passed'] is True
    print(json.dumps({'skill': version['skill_name'], 'version': version['version'], 'smoke_test': 'passed', 'live_calls': False}))