Back to skill

Security audit

FastGPT工作流生成助手 v3.0.2

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill benign with medium confidence; most reported code patterns appear in workflow checks, test code, or examples, but inspection was partial and one referenced JavaScript snippet could not be fully interpreted.

The benign verdict means the scanners found the reported behavior broadly consistent with the skill's purpose, not that it is risk-free. Consider that inspection covered 89 of 93 components fully, four only partially, and the tool-misuse analyzer was degraded; in particular, one JavaScript snippet was not fully interpreted. If you install it, review whether the skill needs the detected environment, file, network, and shell capabilities, and use only the access your tasks require.

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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • 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 (34)

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 97)May include surrounding context.

md
卫/兜底设计参考,强调 `{{$nodeId.var$}}` 语法)、`assets/code-snippets/ip-mac-validation.js`、`assets/code-snippets/answer-guard-template.js` 和 `assets/功能画像示例.json`。使用前按目标工作流替

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, network, 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.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · assets/workflow-templates/fastgpt-v481-minimal.json (reported line 84)May include surrounding context.

json
"welcomeText": "{{WELCOME_TEXT}}",
    "variables": [],
    "scheduledTriggerConfig": {"cronString": "", "timezone": "Asia/Shanghai", "defaultPrompt": ""},
    "autoExecute": {"open": false, "defaultPrompt": ""},
    "_id": "000000000000000000000000"
  }
}

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · references/同类技能工程参考.md (reported line 8)May include surrounding context.

md
## n8n 官方 Skills

- [n8n 官方 Skills 仓库](https://github.com/n8n-io/skills)
- [工作流生命周期 Skill](https://github.com/n8n-io/skills/blob/main/skills/n8n-workflow-lifecycle-official/SKILL.md)
- [Agent Skill](https://github.com/n8n-io/skills/blob/main/skills/n8n-agents-official/SKILL.md)
- [调试 Skill](https://github.com/n8n-io/skills/blob/main/skills/n8n-debugging-official/SKILL.md)

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · references/同类技能工程参考.md (reported line 9)May include surrounding context.

md
- [n8n 官方 Skills 仓库](https://github.com/n8n-io/skills)
- [工作流生命周期 Skill](https://github.com/n8n-io/skills/blob/main/skills/n8n-workflow-lifecycle-official/SKILL.md)
- [Agent Skill](https://github.com/n8n-io/skills/blob/main/skills/n8n-agents-official/SKILL.md)
- [调试 Skill](https://github.com/n8n-io/skills/blob/main/skills/n8n-debugging-official/SKILL.md)

吸收:PLAN/BUILD/VALIDATE/TEST/PUBLISH/HANDOFF 阶段门禁;写入后回读;先选正确实现方式;副作用工具人工确认;按低成本顺序调试。

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · references/同类技能工程参考.md (reported line 10)May include surrounding context.

md
- [n8n 官方 Skills 仓库](https://github.com/n8n-io/skills)
- [工作流生命周期 Skill](https://github.com/n8n-io/skills/blob/main/skills/n8n-workflow-lifecycle-official/SKILL.md)
- [Agent Skill](https://github.com/n8n-io/skills/blob/main/skills/n8n-agents-official/SKILL.md)
- [调试 Skill](https://github.com/n8n-io/skills/blob/main/skills/n8n-debugging-official/SKILL.md)

吸收:PLAN/BUILD/VALIDATE/TEST/PUBLISH/HANDOFF 阶段门禁;写入后回读;先选正确实现方式;副作用工具人工确认;按低成本顺序调试。

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · references/桌面Agent分发.md (reported line 72)May include surrounding context.

fastgpt-workflow-assistant/SKILL.md

text

解压后应得到 `.agents/skills/fastgpt-workflow-assistant/SKILL.md`,不要产生双重目录。Trae 支持启用项目 `.agents/skills/`;若同名技能同时存在于 `.trae/skills/`,Trae 优先使用后者。

## 5. Hermes Agent

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/run_share_url_regression.py (reported line 85)May include surrounding context.

python
if args.results.exists(): raise FileExistsError('Preserve existing test results; choose a new path')
        args.results.parent.mkdir(parents=True,exist_ok=True)
        # The existing runner owns SSE parsing, single-concurrency, isolation, evidence and assertions.
        result=subprocess.run(p['command'])
        return result.returncode
    except (ValueError,TypeError,KeyError,OSError) as exc:
        print(json.dumps({'status':'error','error_type':type(exc).__name__}));return 1

Tainted flow: 'p' from os.environ.get (line 74, 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/run_share_url_regression.py (reported line 85)May include surrounding context.

python
if args.results.exists(): raise FileExistsError('Preserve existing test results; choose a new path')
        args.results.parent.mkdir(parents=True,exist_ok=True)
        # The existing runner owns SSE parsing, single-concurrency, isolation, evidence and assertions.
        result=subprocess.run(p['command'])
        return result.returncode
    except (ValueError,TypeError,KeyError,OSError) as exc:
        print(json.dumps({'status':'error','error_type':type(exc).__name__}));return 1

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_skill.py (reported line 20)May include surrounding context.

python
def run(*arguments: str) -> subprocess.CompletedProcess[str]:
    result = subprocess.run(
        [sys.executable, *arguments], capture_output=True, text=True,
        encoding="utf-8", errors="replace", timeout=30,
    )

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_skill.py (reported line 90)May include surrounding context.

python
bound_contract.write_text(json.dumps({"cases": [{"name": "extracted bound smoke", "mode": "bound", "node_id": "echo", "seeds": {"start": {"userChatInput": "bound-ok"}}, "required_inputs": {"echo": ["input"]}, "expected": {"text": "bound-ok"}}]}), encoding="utf-8")
        node = shutil.which("node")
        assert node, "Node.js required for bound smoke"
        executed = subprocess.run([node, str(ROOT / "scripts" / "run_code_contract.js"), str(bound_workflow), str(bound_contract)], capture_output=True, text=True, encoding="utf-8", timeout=20)
        assert executed.returncode == 0, executed.stdout + executed.stderr
        assert json.loads(executed.stdout)["passed"]
        # Also exercise imports of shared compatibility helpers in extracted packages.

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/test_skill.py (reported line 21)May include surrounding context.

python
def run(*arguments: str, expected: int = 0) -> subprocess.CompletedProcess[str]:
    process = subprocess.run([sys.executable, *arguments], capture_output=True, text=True, encoding="utf-8", errors="replace", timeout=120)
    if process.returncode != expected:
        raise AssertionError(f"命令返回 {process.returncode},期望 {expected}: {arguments}\nSTDOUT:\n{process.stdout}\nSTDERR:\n{process.stderr}")
    return process

Dynamic import via __import__()

Medium
Category
Dangerous Code Execution
Confidence
75% confidence
Finding

Dynamic import() can load arbitrary modules at runtime, bypassing static analysis and potentially importing malicious code.

Content

Scanner excerpt · scripts/test_skill.py (reported line 260)May include surrounding context.

python
assertions_path = ROOT / "regression_assertions.py"
        assertions_spec = importlib.util.spec_from_file_location("regression_assertions_selftest", assertions_path)
        assert assertions_spec and assertions_spec.loader
        assertions_module = importlib.util.module_from_spec(assertions_spec)
        assertions_spec.loader.exec_module(assertions_module)
        assert assertions_module.normalize_text("## **格式化标题**") == "格式化标题"
        fallback_mismatch = assertions_module.evaluate_assertions(

Dynamic import via __import__()

Medium
Category
Dangerous Code Execution
Confidence
75% confidence
Finding

Dynamic import() can load arbitrary modules at runtime, bypassing static analysis and potentially importing malicious code.

Content

Scanner excerpt · scripts/test_skill.py (reported line 261)May include surrounding context.

python
assertions_spec = importlib.util.spec_from_file_location("regression_assertions_selftest", assertions_path)
        assert assertions_spec and assertions_spec.loader
        assertions_module = importlib.util.module_from_spec(assertions_spec)
        assertions_spec.loader.exec_module(assertions_module)
        assert assertions_module.normalize_text("## **格式化标题**") == "格式化标题"
        fallback_mismatch = assertions_module.evaluate_assertions(
            {

Dynamic import via __import__()

Medium
Category
Dangerous Code Execution
Confidence
75% confidence
Finding

Dynamic import() can load arbitrary modules at runtime, bypassing static analysis and potentially importing malicious code.

Content

Scanner excerpt · scripts/test_skill.py (reported line 328)May include surrounding context.

python
validator_path = ROOT / "validate_fastgpt_workflow.py"
        validator_spec = importlib.util.spec_from_file_location("validator_selftest", validator_path)
        assert validator_spec and validator_spec.loader
        validator_module = importlib.util.module_from_spec(validator_spec)
        validator_spec.loader.exec_module(validator_module)
        ref_context = (0, 0, "consumer", {"source", "consumer"}, {"source": {"answer"}})
        assert not validator_module._check_single_ref("{{$source.answer$}}", *ref_context)

Dynamic import via __import__()

Medium
Category
Dangerous Code Execution
Confidence
75% confidence
Finding

Dynamic import() can load arbitrary modules at runtime, bypassing static analysis and potentially importing malicious code.

Content

Scanner excerpt · scripts/test_skill.py (reported line 329)May include surrounding context.

python
validator_spec = importlib.util.spec_from_file_location("validator_selftest", validator_path)
        assert validator_spec and validator_spec.loader
        validator_module = importlib.util.module_from_spec(validator_spec)
        validator_spec.loader.exec_module(validator_module)
        ref_context = (0, 0, "consumer", {"source", "consumer"}, {"source": {"answer"}})
        assert not validator_module._check_single_ref("{{$source.answer$}}", *ref_context)
        assert {item["code"] for item in validator_module._check_single_ref("{{source.answer}}", *ref_context)} == {"FG080"}

Dynamic import via __import__()

Medium
Category
Dangerous Code Execution
Confidence
75% confidence
Finding

Dynamic import() can load arbitrary modules at runtime, bypassing static analysis and potentially importing malicious code.

Content

Scanner excerpt · scripts/test_skill.py (reported line 476)May include surrounding context.

python
assert "author:" in workbuddy_skill
            spec = importlib.util.spec_from_file_location("desktop_packager", ROOT / "package_desktop_agents.py")
            assert spec and spec.loader
            desktop_module = importlib.util.module_from_spec(spec)
            spec.loader.exec_module(desktop_module)
            desktop_module.validate_workbuddy_paths(archive.namelist())
            desktop_module.validate_workbuddy_resources(archive)

Dynamic import via __import__()

Medium
Category
Dangerous Code Execution
Confidence
75% confidence
Finding

Dynamic import() can load arbitrary modules at runtime, bypassing static analysis and potentially importing malicious code.

Content

Scanner excerpt · scripts/tests/test_chat_export.py (reported line 3)May include surrounding context.

python
import csv,io,json,pathlib,tempfile,unittest,zipfile,importlib.util
spec=importlib.util.spec_from_file_location('parser',pathlib.Path(__file__).resolve().parent.parent/'summarize_chat_export.py')
m=importlib.util.module_from_spec(spec);spec.loader.exec_module(m)
class ExportTests(unittest.TestCase):
 def test_nested_quotes_and_malformed_tail(self):
  with tempfile.TemporaryDirectory() as d:

Dynamic import via __import__()

Medium
Category
Dangerous Code Execution
Confidence
75% confidence
Finding

Dynamic import() can load arbitrary modules at runtime, bypassing static analysis and potentially importing malicious code.

Content

Scanner excerpt · scripts/test_skill.py (reported line 477)May include surrounding context.

python
spec = importlib.util.spec_from_file_location("desktop_packager", ROOT / "package_desktop_agents.py")
            assert spec and spec.loader
            desktop_module = importlib.util.module_from_spec(spec)
            spec.loader.exec_module(desktop_module)
            desktop_module.validate_workbuddy_paths(archive.namelist())
            desktop_module.validate_workbuddy_resources(archive)
            assert "使用其专用技能" not in archive.read("references/对话资料与n8n执行契约.md").decode("utf-8")

Dynamic import via __import__()

Medium
Category
Dangerous Code Execution
Confidence
75% confidence
Finding

Dynamic import() can load arbitrary modules at runtime, bypassing static analysis and potentially importing malicious code.

Content

Scanner excerpt · scripts/test_skill.py (reported line 572)May include surrounding context.

python
runner_path = ROOT / "run_share_api_regression.py"
        runner_spec = importlib.util.spec_from_file_location("run_share_api_regression", runner_path)
        assert runner_spec and runner_spec.loader
        runner = importlib.util.module_from_spec(runner_spec)
        runner_spec.loader.exec_module(runner)

        captured_request: dict[str, object] = {}

Dynamic import via __import__()

Medium
Category
Dangerous Code Execution
Confidence
75% confidence
Finding

Dynamic import() can load arbitrary modules at runtime, bypassing static analysis and potentially importing malicious code.

Content

Scanner excerpt · scripts/test_skill.py (reported line 573)May include surrounding context.

python
runner_spec = importlib.util.spec_from_file_location("run_share_api_regression", runner_path)
        assert runner_spec and runner_spec.loader
        runner = importlib.util.module_from_spec(runner_spec)
        runner_spec.loader.exec_module(runner)

        captured_request: dict[str, object] = {}
        original_urlopen = runner.urllib.request.urlopen

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/tests/test_binding_contracts.py (reported line 104)May include surrounding context.

python
root = Path(td)
            (root / 'w.json').write_text(json.dumps(self.workflow), encoding='utf-8')
            (root / 'c.json').write_text(json.dumps({'cases': [case or self.case]}), encoding='utf-8')
            p = subprocess.run([shutil.which('node'), str(SCRIPTS / 'run_code_contract.js'), str(root/'w.json'), str(root/'c.json')], capture_output=True, text=True, encoding='utf-8', timeout=10)
            return p.returncode, json.loads(p.stdout)

    def error(self, expected):

Dynamic import via __import__()

Medium
Category
Dangerous Code Execution
Confidence
75% confidence
Finding

Dynamic import() can load arbitrary modules at runtime, bypassing static analysis and potentially importing malicious code.

Content

Scanner excerpt · scripts/tests/test_chat_export.py (reported line 3)May include surrounding context.

python
import csv,io,json,pathlib,tempfile,unittest,zipfile,importlib.util
spec=importlib.util.spec_from_file_location('parser',pathlib.Path(__file__).resolve().parent.parent/'summarize_chat_export.py')
m=importlib.util.module_from_spec(spec);spec.loader.exec_module(m)
class ExportTests(unittest.TestCase):
 def test_nested_quotes_and_malformed_tail(self):
  with tempfile.TemporaryDirectory() as d:

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · scripts/tests/test_expert_evidence.py (reported line 76)May include surrounding context.

python
skill = root / 'skills/example/assets/skill-version.json'
            skill.parent.mkdir(parents=True)
            skill.write_text(json.dumps({'skill_name': 'example', 'version': '2.9.3'}), encoding='utf-8')
            (root / 'skills/example/SKILL.md').write_text('example', encoding='utf-8')
            result = inspect(root)
            self.assertEqual(result['experts'][0]['expert_version'], '1.0.0')
            self.assertEqual(result['skills'][0]['skill_version'], '2.9.3')

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · scripts/tests/test_expert_evidence.py (reported line 83)May include surrounding context.

python
self.assertEqual(result['warnings'], [])
            archive = root / 'example.zip'
            with zipfile.ZipFile(archive, 'w') as z:
                for file in (plugin, skill, root / 'skills/example/SKILL.md'):
                    z.write(file, 'outer/' + file.relative_to(root).as_posix())
            zipped = inspect(archive)
            self.assertEqual(zipped['experts'][0]['expert_version'], '1.0.0')