mirror of
https://github.com/q3alique/codeflow
synced 2026-06-21 14:06:02 +00:00
acc1b4f3e7
Static taint-analysis and visualization tool for source-code security review. Supports deep analysis for Python, JavaScript/TypeScript, Java, Go, and C#, with structural support for all other languages via the generic extractor. Outputs: interactive HTML report, LLM-ready Markdown review document, and optional Burp Suite JSON export. Self-bootstrapping launcher (run.py) requires no virtual environment.
22 lines
461 B
Python
22 lines
461 B
Python
from __future__ import annotations
|
|
from dataclasses import dataclass, field
|
|
from enum import Enum
|
|
from typing import Any
|
|
|
|
|
|
class EdgeType(Enum):
|
|
TAINTED_FLOW = "TAINTED_FLOW"
|
|
CALLS = "CALLS"
|
|
DATA_FLOW = "DATA_FLOW"
|
|
CONTAINS = "CONTAINS"
|
|
IMPORTS = "IMPORTS"
|
|
CLUSTER_MEMBER = "CLUSTER_MEMBER"
|
|
|
|
|
|
@dataclass
|
|
class Edge:
|
|
source_id: str
|
|
target_id: str
|
|
edge_type: EdgeType
|
|
metadata: dict[str, Any] = field(default_factory=dict)
|