[{"changelog":"","comfy_node_extract_status":"pending","createdAt":"2026-11-02T02:45:54.336336Z","dependencies":[],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/sepiablue-ai/comfyui-moss-panel-dataset/0.1.0/node.zip","id":"42cc1851-4f11-4374-a079-3f12473ce3c6","node_id":"comfyui-moss-panel-dataset","status":"NodeVersionStatusFlagged","status_reason":"[\n    {\n        \"admin_tags\": [\n            \"any-network-requests\"\n        ],\n        \"code_snippet\": \"24 | \\n25 | def list_layouts():\\n26 |     with closing(sqlite3.connect(f'{DB.as_uri()}?mode=ro', uri=True)) as conn:\\n27 |         return conn.execute('SELECT id,name FROM layouts ORDER BY id').fetchall()\\n28 | \\n29 | \\n30 | def load_layout(identifier):\",\n        \"description\": \"Detects database connections and potential data access patterns\",\n        \"file_path\": \"dataset.py\",\n        \"issue_type\": \"python_database_connections\",\n        \"line_number\": 27,\n        \"line_snippet\": \"return conn.execute('SELECT id,name FROM layouts ORDER BY id').fetchall()\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$sqlite1\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"dataset.py\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$sqlite1\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"        return conn.execute('SELECT id,name FROM layouts ORDER BY id').fetchall()\\n\",\n                                    \"line_number\": 27,\n                                    \"matched_data\": \"sqlite3.connect(\",\n                                    \"matched_length\": 16,\n                                    \"offset\": 40\n                                },\n                                {\n                                    \"line\": \"        row = conn.execute('SELECT specification FROM layouts WHERE id=? OR name=?', (identifier,identifier)).fetchone()\\n\",\n                                    \"line_number\": 32,\n                                    \"matched_data\": \"sqlite3.connect(\",\n                                    \"matched_length\": 16,\n                                    \"offset\": 40\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1005 Data from Local System\",\n                \"attack_id2\": \"T1213 Data from Information Repositories\",\n                \"category\": \"Collection\",\n                \"date\": \"2026-02-20\",\n                \"description\": \"Detects database connections and potential data access patterns\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1005/\",\n                \"severity\": \"2\",\n                \"traceability\": \"Pattern IDs: PDC-001..PDC-025. See docs/PATTERN_TRACEABILITY.md\",\n                \"version\": \"1.1\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-network-requests\"\n        ],\n        \"code_snippet\": \"10 | \\n11 | \\n12 | def connect():\\n13 |     return sqlite3.connect(f'{DB.as_uri()}?mode=ro', uri=True)\\n14 | \\n15 | \\n16 | def catalog_items():\",\n        \"description\": \"Detects database connections and potential data access patterns\",\n        \"file_path\": \"picker_api.py\",\n        \"issue_type\": \"python_database_connections\",\n        \"line_number\": 13,\n        \"line_snippet\": \"return sqlite3.connect(f'{DB.as_uri()}?mode=ro', uri=True)\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$sqlite1\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"picker_api.py\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$sqlite1\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"    return sqlite3.connect(f'{DB.as_uri()}?mode=ro', uri=True)\\n\",\n                                    \"line_number\": 13,\n                                    \"matched_data\": \"sqlite3.connect(\",\n                                    \"matched_length\": 16,\n                                    \"offset\": 11\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1005 Data from Local System\",\n                \"attack_id2\": \"T1213 Data from Information Repositories\",\n                \"category\": \"Collection\",\n                \"date\": \"2026-02-20\",\n                \"description\": \"Detects database connections and potential data access patterns\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1005/\",\n                \"severity\": \"2\",\n                \"traceability\": \"Pattern IDs: PDC-001..PDC-025. See docs/PATTERN_TRACEABILITY.md\",\n                \"version\": \"1.1\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-network-requests\"\n        ],\n        \"code_snippet\": \"148 |                 self.api.preview_path('normal_2_01')\\n149 | \\n150 |     def test_example_custom_nodes_and_connections(self):\\n151 |         for name, order, prompt_source in (('make_manga.json', (11, 12, 13, 14, 15, 1), 1), ('make_manga_edit_prompt.json', (11, 12, 13, 14, 15, 1, 16), 16)):\\n152 |             with self.subTest(workflow=name):\\n153 |                 self.check_example_workflow(name, order, prompt_source)\\n154 | \",\n        \"description\": \"Detects database connections and potential data access patterns\",\n        \"file_path\": \"tests/test_distribution.py\",\n        \"issue_type\": \"python_database_connections\",\n        \"line_number\": 151,\n        \"line_snippet\": \"for name, order, prompt_source in (('make_manga.json', (11, 12, 13, 14, 15, 1), 1), ('make_manga_edit_prompt.json', (11, 12, 13, 14, 15, 1, 16), 16)):\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$sqlite1\",\n                \"$db3\",\n                \"$db5\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"tests/test_distribution.py\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$sqlite1\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"        for name, order, prompt_source in (('make_manga.json', (11, 12, 13, 14, 15, 1), 1), ('make_manga_edit_prompt.json', (11, 12, 13, 14, 15, 1, 16), 16)):\\n\",\n                                    \"line_number\": 151,\n                                    \"matched_data\": \"sqlite3.connect(\",\n                                    \"matched_length\": 16,\n                                    \"offset\": 55\n                                }\n                            ]\n                        },\n                        {\n                            \"identifier\": \"$db3\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"                conn.execute('DELETE FROM layouts')\\n\",\n                                    \"line_number\": 64,\n                                    \"matched_data\": \".execute('DELETE FROM\",\n                                    \"matched_length\": 21,\n                                    \"offset\": 34\n                                }\n                            ]\n                        },\n                        {\n                            \"identifier\": \"$db5\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"        for name, order, prompt_source in (('make_manga.json', (11, 12, 13, 14, 15, 1), 1), ('make_manga_edit_prompt.json', (11, 12, 13, 14, 15, 1, 16), 16)):\\n\",\n                                    \"line_number\": 151,\n                                    \"matched_data\": \".execute('UPDATE previews SET\",\n                                    \"matched_length\": 29,\n                                    \"offset\": 107\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1005 Data from Local System\",\n                \"attack_id2\": \"T1213 Data from Information Repositories\",\n                \"category\": \"Collection\",\n                \"date\": \"2026-02-20\",\n                \"description\": \"Detects database connections and potential data access patterns\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1005/\",\n                \"severity\": \"2\",\n                \"traceability\": \"Pattern IDs: PDC-001..PDC-025. See docs/PATTERN_TRACEABILITY.md\",\n                \"version\": \"1.1\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-network-requests\"\n        ],\n        \"code_snippet\": \"24 | \\n25 | def list_layouts():\\n26 |     with closing(sqlite3.connect(f'{DB.as_uri()}?mode=ro', uri=True)) as conn:\\n27 |         return conn.execute('SELECT id,name FROM layouts ORDER BY id').fetchall()\\n28 | \\n29 | \\n30 | def load_layout(identifier):\",\n        \"description\": \"Detects network operations and potential data exfiltration patterns\",\n        \"file_path\": \"dataset.py\",\n        \"issue_type\": \"python_network_operations\",\n        \"line_number\": 27,\n        \"line_snippet\": \"return conn.execute('SELECT id,name FROM layouts ORDER BY id').fetchall()\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$socket3\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"dataset.py\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$socket3\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"        return conn.execute('SELECT id,name FROM layouts ORDER BY id').fetchall()\\n\",\n                                    \"line_number\": 27,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 47\n                                },\n                                {\n                                    \"line\": \"        row = conn.execute('SELECT specification FROM layouts WHERE id=? OR name=?', (identifier,identifier)).fetchone()\\n\",\n                                    \"line_number\": 32,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 47\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1041 Exfiltration Over C2 Channel\",\n                \"attack_id2\": \"T1048 Exfiltration Over Alternative Protocol\",\n                \"category\": \"Exfiltration\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects network operations and potential data exfiltration patterns\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1041/\",\n                \"severity\": \"3\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-network-requests\"\n        ],\n        \"code_snippet\": \"10 | \\n11 | \\n12 | def connect():\\n13 |     return sqlite3.connect(f'{DB.as_uri()}?mode=ro', uri=True)\\n14 | \\n15 | \\n16 | def catalog_items():\",\n        \"description\": \"Detects network operations and potential data exfiltration patterns\",\n        \"file_path\": \"picker_api.py\",\n        \"issue_type\": \"python_network_operations\",\n        \"line_number\": 13,\n        \"line_snippet\": \"return sqlite3.connect(f'{DB.as_uri()}?mode=ro', uri=True)\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$socket3\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"picker_api.py\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$socket3\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"    return sqlite3.connect(f'{DB.as_uri()}?mode=ro', uri=True)\\n\",\n                                    \"line_number\": 13,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 18\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1041 Exfiltration Over C2 Channel\",\n                \"attack_id2\": \"T1048 Exfiltration Over Alternative Protocol\",\n                \"category\": \"Exfiltration\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects network operations and potential data exfiltration patterns\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1041/\",\n                \"severity\": \"3\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-network-requests\"\n        ],\n        \"code_snippet\": \"54 |     def test_independent_import_and_clean_database(self):\\n55 |         self.assertEqual(self.core.ROOT, self.root)\\n56 |         self.assertEqual(self.api.ROOT, self.root)\\n57 |         with closing(self.api.connect()) as conn:\\n58 |             tables = {r[0] for r in conn.execute(\\\"SELECT name FROM sqlite_master WHERE type='table'\\\")}\\n59 |             self.assertEqual(tables, {'layouts', 'previews'})\\n60 |             self.assertEqual(conn.execute('PRAGMA integrity_check').fetchone()[0], 'ok')\",\n        \"description\": \"Detects network operations and potential data exfiltration patterns\",\n        \"file_path\": \"tests/test_distribution.py\",\n        \"issue_type\": \"python_network_operations\",\n        \"line_number\": 57,\n        \"line_snippet\": \"with closing(self.api.connect()) as conn:\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$socket3\",\n                \"$encoded_stage_temp\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"tests/test_distribution.py\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$socket3\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"        with closing(self.api.connect()) as conn:\\n\",\n                                    \"line_number\": 57,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 43\n                                },\n                                {\n                                    \"line\": \"        with closing(self.api.connect()) as conn:\\n\",\n                                    \"line_number\": 70,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 43\n                                },\n                                {\n                                    \"line\": \"        for name, order, prompt_source in (('make_manga.json', (11, 12, 13, 14, 15, 1), 1), ('make_manga_edit_prompt.json', (11, 12, 13, 14, 15, 1, 16), 16)):\\n\",\n                                    \"line_number\": 151,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 62\n                                }\n                            ]\n                        },\n                        {\n                            \"identifier\": \"$encoded_stage_temp\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"        cls.temp_parent = Path(os.environ.get('MOSS_TEST_TMPDIR', tempfile.gettempdir())).resolve()\\n\",\n                                    \"line_number\": 34,\n                                    \"matched_data\": \"tempfile.gettempdir(\",\n                                    \"matched_length\": 20,\n                                    \"offset\": 66\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1041 Exfiltration Over C2 Channel\",\n                \"attack_id2\": \"T1048 Exfiltration Over Alternative Protocol\",\n                \"category\": \"Exfiltration\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects network operations and potential data exfiltration patterns\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1041/\",\n                \"severity\": \"3\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-network-requests\"\n        ],\n        \"code_snippet\": \"27 | // 他のノードでも使うコマは、コマ数を減らしても削除しない。\\n28 | const shared=graph.getNodeById(selector.getInputLink(6).origin_id),other=make('Consumer');other.inputs=[{name:'入力'}];graph.add(other);shared.connect(0,other,0);\\n29 | applyLayout(selector,layout(2),make);assert.equal(graph.getNodeById(shared.id),shared);\\n30 | applyLayout(selector,layout(6),make);assert.equal(selector.getInputLink(6).origin_id,shared.id);\\n31 | console.log('コマ数変更、入力退避・復元、共有ノード保護、生成設定維持の検査が通りました。');\",\n        \"description\": \"Detects network operations and potential data exfiltration patterns\",\n        \"file_path\": \"tests/test_picker_state.mjs\",\n        \"issue_type\": \"python_network_operations\",\n        \"line_number\": 30,\n        \"line_snippet\": \"applyLayout(selector,layout(6),make);assert.equal(selector.getInputLink(6).origin_id,shared.id);\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$socket3\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"tests/test_picker_state.mjs\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$socket3\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"applyLayout(selector,layout(6),make);assert.equal(selector.getInputLink(6).origin_id,shared.id);\\n\",\n                                    \"line_number\": 30,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 65\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1041 Exfiltration Over C2 Channel\",\n                \"attack_id2\": \"T1048 Exfiltration Over Alternative Protocol\",\n                \"category\": \"Exfiltration\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects network operations and potential data exfiltration patterns\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1041/\",\n                \"severity\": \"3\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-network-requests\"\n        ],\n        \"code_snippet\": \"50 |                 delete stash[i];\\n51 |             }\\n52 |             if(panel.type==='MossMangaPanel'){\\n53 |                 panel.properties.mossDatasetOwner=node.id;\\n54 |                 panel.title=`${i}コマ目（${layout.positions?.[i-1]??`${i}番目`}）`;\\n55 |             }\\n56 |         }\",\n        \"description\": \"Detects network operations and potential data exfiltration patterns\",\n        \"file_path\": \"web/picker_state.mjs\",\n        \"issue_type\": \"python_network_operations\",\n        \"line_number\": 53,\n        \"line_snippet\": \"panel.properties.mossDatasetOwner=node.id;\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$socket3\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"web/picker_state.mjs\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$socket3\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"                panel.properties.mossDatasetOwner=node.id;\\n\",\n                                    \"line_number\": 53,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 49\n                                },\n                                {\n                                    \"line\": \"        node.setDirtyCanvas?.(true,true);graph.setDirtyCanvas?.(true,true);\\n\",\n                                    \"line_number\": 65,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 45\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1041 Exfiltration Over C2 Channel\",\n                \"attack_id2\": \"T1048 Exfiltration Over Alternative Protocol\",\n                \"category\": \"Exfiltration\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects network operations and potential data exfiltration patterns\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1041/\",\n                \"severity\": \"3\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-code-execute\",\n            \"any-folder-access\",\n            \"obfuscated-code\"\n        ],\n        \"code_snippet\": \"41 |             shutil.copytree(SOURCE / name, cls.root / name)\\n42 |         cls.package = import_package(cls.root, '_moss_panel_distribution_test')\\n43 |         cls.core = cls.package.nodes.core\\n44 |         cls.api = importlib.import_module('_moss_panel_distribution_test.picker_api')\\n45 | \\n46 |     @classmethod\\n47 |     def tearDownClass(cls):\",\n        \"description\": \"Detects bytecode manipulation and import evasion techniques\",\n        \"file_path\": \"tests/test_distribution.py\",\n        \"issue_type\": \"python_bytecode_manipulation\",\n        \"line_number\": 44,\n        \"line_snippet\": \"cls.api = importlib.import_module('_moss_panel_distribution_test.picker_api')\",\n        \"metadata\": {\n            \"confidence\": 95,\n            \"matched_patterns\": [\n                \"$importlib_direct\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"tests/test_distribution.py\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$importlib_direct\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"        cls.api = importlib.import_module('_moss_panel_distribution_test.picker_api')\\n\",\n                                    \"line_number\": 44,\n                                    \"matched_data\": \"importlib.import_module('_moss_panel_distribution_test.picker_api')\",\n                                    \"matched_length\": 67,\n                                    \"offset\": 32\n                                },\n                                {\n                                    \"line\": \"            if name.startswith('_moss_panel_distribution_test_http'):\\n\",\n                                    \"line_number\": 216,\n                                    \"matched_data\": \"importlib.import_module('_moss_panel_distribution_test_http.picker_api')\",\n                                    \"matched_length\": 72,\n                                    \"offset\": 26\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1027 Obfuscated Files or Information\",\n                \"attack_id2\": \"T1055.001 Dynamic-link Library Injection\",\n                \"category\": \"Defense Evasion\",\n                \"confidence_note\": \"All patterns in this rule have high confidence (90-100%) as they target specific bytecode/import manipulation APIs.\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects bytecode manipulation and import evasion techniques\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1027/\",\n                \"severity\": \"3\",\n                \"version\": \"1.1\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"system-modification\"\n        ],\n        \"code_snippet\": \"31 | class Distribution(unittest.TestCase):\\n32 |     @classmethod\\n33 |     def setUpClass(cls):\\n34 |         cls.temp_parent = Path(os.environ.get('MOSS_TEST_TMPDIR', tempfile.gettempdir())).resolve()\\n35 |         cls.temp = tempfile.TemporaryDirectory(prefix='moss_panel_', dir=cls.temp_parent)\\n36 |         cls.root = Path(cls.temp.name) / '独立した導入先 with spaces' / 'ComfyUI-MossPanelDataset'\\n37 |         cls.root.mkdir(parents=True)\",\n        \"description\": \"Detects environment variable manipulation and reading\",\n        \"file_path\": \"tests/test_distribution.py\",\n        \"issue_type\": \"python_environment_manipulation\",\n        \"line_number\": 34,\n        \"line_snippet\": \"cls.temp_parent = Path(os.environ.get('MOSS_TEST_TMPDIR', tempfile.gettempdir())).resolve()\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$env_read2\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"tests/test_distribution.py\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$env_read2\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"        cls.temp_parent = Path(os.environ.get('MOSS_TEST_TMPDIR', tempfile.gettempdir())).resolve()\\n\",\n                                    \"line_number\": 34,\n                                    \"matched_data\": \"os.environ.get(\",\n                                    \"matched_length\": 15,\n                                    \"offset\": 31\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1574.007 Environment Variable Hijacking\",\n                \"category\": \"Defense Evasion\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects environment variable manipulation and reading\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1574/007/\",\n                \"severity\": \"3\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-folder-access\",\n            \"credential-access\"\n        ],\n        \"code_snippet\": \"79 |                 counts[n] += 1\\n80 |                 if ident.startswith('normal_'):\\n81 |                     normal_counts[n] += 1\\n82 |                 raw = self.api.preview_path(ident).read_bytes()\\n83 |                 self.assertTrue(raw[:4] == b'RIFF' and raw[8:12] == b'WEBP')\\n84 |                 self.assertEqual(hashlib.sha256(raw).hexdigest(), sha)\\n85 |                 self.assertEqual(path, f'images/{ident}.webp')\",\n        \"description\": \"Detects access to sensitive system files and credential stores\",\n        \"file_path\": \"tests/test_distribution.py\",\n        \"issue_type\": \"python_sensitive_file_access\",\n        \"line_number\": 82,\n        \"line_snippet\": \"raw = self.api.preview_path(ident).read_bytes()\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$pathlib3\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"tests/test_distribution.py\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$pathlib3\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"                raw = self.api.preview_path(ident).read_bytes()\\n\",\n                                    \"line_number\": 82,\n                                    \"matched_data\": \"path(ident).read_bytes()\",\n                                    \"matched_length\": 24,\n                                    \"offset\": 53\n                                },\n                                {\n                                    \"line\": \"\",\n                                    \"line_number\": -1,\n                                    \"matched_data\": \"path(item['id']).read_bytes()\",\n                                    \"matched_length\": 29,\n                                    \"offset\": 195\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1005 Data from Local System\",\n                \"attack_id2\": \"T1552.001 Unsecured Credentials in Files\",\n                \"category\": \"Collection\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects access to sensitive system files and credential stores\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1005/\",\n                \"severity\": \"3\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    }\n]","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"version":"0.1.0"}]
