Is Graphify-Labs/graphify safe?
What Graphify-Labs/graphify does
Graphify is a Python CLI and agent skill that turns a project's code, docs and media into a queryable knowledge graph. It is published by Graphify Labs, installs from PyPI as graphifyy with uv or pipx, and needs Python 3.10 or later; graphify install registers the /graphify skill with your AI assistant. Code is parsed locally with tree-sitter, while docs, PDFs, images and video go through your assistant's model or a configured API key. Results are written to a graphify-out folder as graph.html, GRAPH_REPORT.md and graph.json. Before installing, check the package name: the README says other graphify packages on PyPI are not affiliated with this project.
- Unsafe deserialization
- Python shell/command execution
- Node.js shell/command execution
What to do: Nothing here argues against installing it. Grant the capabilities it lists only if you expect the tool to need them.
Graphify-Labs/graphify is a GitHub repository analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators, though 1 risky construct is reported for review. It can: filesystem read, filesystem write, mcp tools detected, network egress and shell execution — capabilities are what the code can do, not a verdict on intent. Risk score 20/100 (low).
graphifyy 0.9.115
Get notified when this component changes
Change alerts aren't live yet. Leave your email and we'll let you know when they launch. We use it only for this and delete it on request.
Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of Graphify-Labs/graphify's authors. Report a false positive.
Behavioral traits
How this component maps to the CSA agentic threat model. Descriptive — it never affects the risk score.
Findings (8)
It loads data with a format that can rebuild arbitrary objects (e.g. pickle, or unsafe YAML).
docs = list(yaml.load_all(text, Loader=_permissive_loader()))
Why it matters: Feeding such a loader untrusted data can execute code hidden inside that data.
Fix: Deserialize untrusted data with a safe format/loader: JSON, or yaml.safe_load / Loader=SafeLoader. Reserve pickle/marshal for data you fully control.
An MCP server entry launches a command on your host.
"command": "graphify-mcp"
Why it matters: Trusting the manifest means running that binary — verify what it is and where it comes from.
Fix: Verify the launched command and its source before trusting this MCP server configuration.
The component can run operating-system commands or spawn processes.
import { execFile } from "node:child_process";Why it matters: Powerful and often legitimate — confirm the commands aren't built from untrusted input.
Fix: Confirm the command and its arguments are fully controlled and not derived from untrusted input; prefer execFile with an argument array.
The component can run operating-system commands or spawn processes.
out = subprocess.run([exe, "--version"], capture_output=True, text=True, timeout=10).stdout
raise SystemExit(subprocess.run(argv, env=env).returncode)
os.execvpe(argv[0], argv, env)
result = _sp.run(cmd, capture_output=True, text=True)
result = _sp.run(cmd, capture_output=True, text=True)
proc = subprocess.run(
["git", "-C", str(vcs_root), "ls-files", "-z", "--cached"],
stdin=subprocess.DEVNULL,
stdout=subprocess.PIPE,
stderr=subprocess.DEVNULL,
check=False, …proc = subprocess.run(
["git", "-C", str(vcs_root), "config", "--path", "--get", "core.excludesFile"],
stdin=subprocess.DEVNULL,
stdout=subprocess.PIPE,
stderr=subprocess.DEVNULL, …r = _sp.run(
["git", "rev-parse", "HEAD"], stdin=_sp.DEVNULL,
capture_output=True, text=True, timeout=3,
cwd=str(cwd) if cwd is not None else None,
)result = subprocess.run(
["cpp", "-w", "-P", "-nostdinc", "-I", "/dev/null"],
input=safe,
capture_output=True,
timeout=30,
)result = subprocess.run(
[exe, "drive", "files", "export", "--params", json.dumps(params), "-o", output.name],
capture_output=True,
cwd=output.parent,
text=True,
timeout=timeout,
)res = _sp.run(
["git", "-C", str(root), "rev-parse", flag],
capture_output=True, text=True, encoding="utf-8",
)res = _sp.run(
["git", "-C", str(root), "rev-parse", "--git-path", "hooks"],
capture_output=True, text=True, encoding="utf-8",
)_sp.run(
["git", "-C", str(root), "config", key, value],
check=True, capture_output=True, text=True,
)_sp.run(
["git", "-C", str(root), "config", "--unset", key],
capture_output=True, text=True,
)res = _sp.run(
["git", "-C", str(root), "config", "--get", "merge.graphify.driver"],
capture_output=True, text=True,
)result = subprocess.run([pi, verb, str(package_path)], check=False)
proc = subprocess.run(
[claude_cmd, "--help"],
capture_output=True,
text=True,
encoding="utf-8",
errors="replace",
timeout=30,
check=False,
**_n …proc = subprocess.run(
cli_args,
input=combined_message,
capture_output=True,
text=True,
encoding="utf-8", # Force UTF-8 — prevents UnicodeEncodeError on Windows cp1252
errors="replace", # T …proc = subprocess.run(
cli_args,
input=prompt,
capture_output=True,
text=True,
encoding="utf-8", # Force UTF-8 — prevents UnicodeEncodeError on Windows cp1252
errors=" …result = subprocess.run(
["gh", *args],
stdin=subprocess.DEVNULL,
# Decode gh's output as UTF-8, not the Windows cp1252 locale codec: gh
# emits UTF-8 JSON with non-Latin1 titles/logins (emoji …result = subprocess.run(
["git", "symbolic-ref", "refs/remotes/origin/HEAD"],
stdin=subprocess.DEVNULL,
capture_output=True, text=True, encoding="utf-8", errors="replace", timeout=5 …result = subprocess.run(
["gh", *args],
stdin=subprocess.DEVNULL,
capture_output=True, text=True, encoding="utf-8", errors="replace", timeout=30
)result = subprocess.run(
["git", "worktree", "list", "--porcelain"],
stdin=subprocess.DEVNULL,
capture_output=True, text=True, encoding="utf-8", errors="replace", timeout=10
)proc = _sp.run(
[_claude, "-p", "--no-session-persistence"],
input=prompt, capture_output=True, text=True,
encoding="utf-8", errors="replace", timeout=120,
)r = _sp.run(
["git", "rev-parse", "HEAD"], stdin=_sp.DEVNULL,
capture_output=True, text=True, timeout=3,
cwd=str(cwd) if cwd is not None else None,
)Why it matters: Powerful and often legitimate — confirm the commands aren't built from untrusted input.
Fix: Confirm the command and its arguments are fully controlled and not derived from untrusted input; avoid shell=True.
The component reads files from disk.
body = skill_dst.read_text(encoding="utf-8")
installed = version_file.read_text(encoding="utf-8").strip()
installed = version_file.read_text(encoding="utf-8").strip()
body = plugin_file.read_text(encoding="utf-8")
recorded = marker.read_text(encoding="utf-8-sig").strip()
text = (Path(graph_path).parent / ".graphify_root").read_text(
encoding="utf-8-sig"
).strip()data = json.loads(graph_path.read_text(encoding="utf-8"))
text = prompt.read_text(encoding="utf-8", errors="replace")
raw = json.loads(p.read_text(encoding="utf-8"))
raw = src.read_bytes()
_stash_preread_bytes(raw_path, raw)
result = json.loads(entry.read_text(encoding="utf-8"))
payload = json.loads(io_entry.read_text(encoding="utf-8"))
c: json.loads(c.read_text(encoding="utf-8"))
dispatched = [line for line in dispatched_file.read_text(encoding="utf-8").splitlines() if line]
payload = json.loads((out_dir / other).read_text(encoding="utf-8"))
return json.loads(path.read_text(encoding="utf-8"))
return Path(path).read_text(encoding="utf-8")
text = manifest.read_text(encoding="utf-8", errors="replace")
count = int(marker.read_text(encoding="utf-8").strip()) if marker.exists() else 0
nodes = json.loads(p.read_text(encoding="utf-8")).get("nodes")data = json.loads(graph_path.read_text(encoding="utf-8"))
data = json.loads(graph_path.read_text(encoding="utf-8"))
data = json.loads(graph_path.read_text(encoding="utf-8"))
cost = json.loads(cost_path.read_text(encoding="utf-8"))
Why it matters: Usually legitimate, but worth confirming it can't be steered into reading sensitive files.
Fix: Confirm which files are read and that paths cannot be influenced by untrusted input to reach sensitive locations.
The component writes or deletes files on disk.
shutil.rmtree(child, ignore_errors=True)
os.unlink(tmp)
os.unlink(tmp_path)
os.unlink(tmp_path)
path.write_text(json.dumps(d, ensure_ascii=False), encoding="utf-8")
output_path.write_text(output, encoding="utf-8")
marker.write_text(str(count), encoding="utf-8")
os.unlink(entry.path)
os.unlink(entry.path)
global_path.write_text(_json.dumps(existing, indent=2) + "\n", encoding="utf-8")
global_path.write_text(_json.dumps(existing, indent=2) + "\n", encoding="utf-8")
(out / "GRAPH_REPORT.md").write_text(report, encoding="utf-8")
(out / ".graphify_analysis.json").write_text(
json.dumps(analysis, indent=2, ensure_ascii=False),
encoding="utf-8",
)(graphify_out / ".graphify_root").write_text(
str(Path(target).resolve()), encoding="utf-8"
)(graphify_out / ".graphify_root").write_text(
str(Path(target).resolve()), encoding="utf-8"
)(graphify_out / ".graphify_semantic_marker").write_text(
json.dumps({"output_tokens": merged["output_tokens"]}), encoding="utf-8"
)(out / ".graphify_cached.json").write_text(
json.dumps({"nodes": cached_nodes, "edges": cached_edges, "hyperedges": cached_hyperedges},
ensure_ascii=False),
encoding="utf-8", …(out / ".graphify_uncached.txt").write_text("\n".join(uncached), encoding="utf-8")out_path.write_text(
f"<!-- converted from {path.name} -->\n\n{text}",
encoding="utf-8",
)shutil.copy2(src, backup_dir / name)
with open(output_path, "w", encoding="utf-8") as f: # nosec
_manifest_path.write_text(json.dumps({"files": sorted(set(_written))}, indent=2), encoding="utf-8")out_path.write_text(_with_frontmatter(path, shortcut, body, "text/markdown"), encoding="utf-8")
out_path.write_text(_with_frontmatter(path, shortcut, body, "text/plain"), encoding="utf-8")
out_path.write_text(
_with_frontmatter(
path,
shortcut,
body,
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
),
encodi …Why it matters: Usually legitimate, but worth confirming the paths can't be controlled by untrusted input.
Fix: Confirm which files are written/deleted and that paths cannot be influenced by untrusted input.
The component makes outbound network requests.
import urllib.request
parsed = urllib.parse.urlparse(url)
return urllib.request.build_opener(
_SSRFGuardedHTTPHandler,
_SSRFGuardedHTTPSHandler,
_NoFileRedirectHandler,
)req = urllib.request.Request(url, headers={"User-Agent": "Mozilla/5.0 graphify/1.0"})raise urllib.error.HTTPError(url, status, f"HTTP {status}", {}, None)Why it matters: Usually legitimate, but confirm the destinations are expected and no sensitive data leaves.
Fix: Confirm the destination hosts are expected and that no sensitive data is sent off-host.
An MCP tool surface (manifest or tool definitions) was found.
"mcpServers": {types.Tool(
name="query_graph",Why it matters: Just context — review which tools it offers and their permissions.
Fix: Review the declared MCP tools and their permissions.
How attackers abuse these capabilities
Interactive labs on the attack class behind the rules above. They show the technique, not anything found in Graphify-Labs/graphify.
Maintain Graphify-Labs/graphify?
The free Claude Code plugin scans each npm, PyPI or MCP package with this report's open-source engine before the install command runs. It runs on your machine and needs no account.
Check your own component
Run the same evidence-backed scan on any MCP server, agent skill, or package.
Scan your own componentHow we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →