Atlas / MCP servers / zhurong2020 / pyobfus

pyobfusBLOCK

mcp/zhurong2020/pyobfus

AST-based Python obfuscator with reverse stack-trace mapping — obfuscate before shipping and keep production tracebacks AI-debuggable. MCP + VS Code.

Verdict
BLOCK
Grade
F
Trust score
35 /100
Exposed tools
—
Transport
stdio
License
Apache-2.0
Stars
11
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

Obfuscate Python before you ship it—and still debug what you shipped.

简体中文 · Product · Documentation · PyPI

[](https://pypi.org/project/pyobfus/) [](https://pypi.org/project/pyobfus/) [](https://pyobfus.readthedocs.io/en/latest/) -blue.svg) [](https://www.python.org/downloads/) [](https://www.bestpractices.dev/projects/12788) [](https://doi.org/10.5281/zenodo.20846053)

pyobfus is a local-first, AST-based Python obfuscator for Python 3.9–3.14. It handles complete projects, keeps generated output portable, and can reverse-map protected production tracebacks for developers and AI coding agents. Community is Apache-2.0, has no file or line limits, and requires no trial.

What's new in v0.6.1: fixes two bugs where the build succeeded but the output failed when run. Directory builds broke from pkg import f as g (NameError), and single-file builds renamed parameters without updating keyword calls (TypeError, or arguments silently bound wrong).
Read from source at commit d13fd24b3087OBSERVED · 2026-10-10
Advertisement
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code (pypi)
claude mcp add pyobfus-mcp -- None pyobfus-mcp==0.3.12
03

Trust audit

BLOCKgrade F · trust 35/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)FAIL
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (3 observation(s))
Network
declared (6 observation(s))
Shell
declared (4 observation(s))
Dependencies
not all pinned
Secrets in source
found

Findings (25)

HIGHCode injection · code.deserialize · CWE-78, CWE-94, CWE-95
pyobfus/core/preflight.py:407
self._add_unsafe_deserialization(node, "pickle.load()")
Why it matters. deserialises untrusted bytes into live objects
Fix. use json or yaml.safe_load
HIGHCode injection · code.deserialize · CWE-78, CWE-94, CWE-95
pyobfus/core/preflight.py:409
self._add_unsafe_deserialization(node, "pickle.loads()")
Why it matters. deserialises untrusted bytes into live objects
Fix. use json or yaml.safe_load
HIGHCode injection · code.deserialize · CWE-78, CWE-94, CWE-95
pyobfus_runtime/pyobfus_runtime/opacity.py:147
code = marshal.loads(plaintext)  # noqa: S302
Why it matters. deserialises untrusted bytes into live objects
Fix. use json or yaml.safe_load
HIGHPrompt injection · prompt.hide_from_user · CWE-94, CWE-1427
skills/pyobfus-protect/SKILL.md:48
- `verified: false` / `status: "warnings"` → **do NOT tell the user it's
Why it matters. asks the agent to act without the user's knowledge
HIGHPrompt injection · prompt.hide_from_user · CWE-94, CWE-1427
skills/pyobfus-review/SKILL.md:118
source at close to their normal accuracy. Do not tell the user this makes
Why it matters. asks the agent to act without the user's knowledge
HIGHPrompt injection · prompt.zero_width · CWE-94, CWE-1427
_drafts/doi-citation-block.md:44
```bibtex
Why it matters. invisible characters in instruction text
Fix. strip non-printing characters
HIGHPrompt injection · prompt.zero_width · CWE-94, CWE-1427
_drafts/doi-citation-block.md:53
```
Why it matters. invisible characters in instruction text
Fix. strip non-printing characters
MEDIUMCode injection · code.dynamic_import · CWE-78, CWE-94, CWE-95
pyobfus_mcp/pyobfus_mcp/tools.py:999
"importlib.import_module(sys.argv[2])"
MEDIUMObfuscation / stealth · obf.anti_debug · CWE-506, CWE-94
pyobfus/config_schema.py:61
"TracerPid, IsDebuggerPresent, timing skew (Pro).",
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
tests/test_vault_runtime.py:24
"DATABASE_URL": "postgres://user:pw@host/db",
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
examples/pro_example.py:48
api_key = "MEDICAL_API_KEY_12345"  # This should be encrypted!
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
pyobfus_mcp/tests/test_protect_project.py:34
SECRET = "abcdefghijklmnopqrstuvwxyz0123456789ABCD"
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
pyobfus_mcp/tests/test_tools.py:572
password = "hunter2_long_enough_to_trigger_the_pattern_match_x"
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
pyobfus_mcp/tests/test_tools.py:714
password = "fake_long_test_password_for_pattern_match_iiii_jjjj_x"
MEDIUMHard-coded secrets · secret.private_key · CWE-798, CWE-321
tests/test_scrub_runtime.py:36
assert priv.startswith(b"-----BEGIN PRIVATE KEY-----")
MEDIUMHard-coded secrets · secret.stripe · CWE-798, CWE-321
benchmarks/llm_resistance/corpus/billing_auth.json:5
{"args": [], "expect": "Bearer sk_live_7f3d9a2b8c1e4f60"},
MEDIUMHard-coded secrets · secret.stripe · CWE-798, CWE-321
benchmarks/llm_resistance/corpus/billing_auth.py:2
"api_token": "sk_live_7f3d9a2b8c1e4f60",
LOWInventory / provenance · inv.hidden_file · CWE-1104
.env.stripe.example
.env.stripe.example
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.readthedocs.yaml
.readthedocs.yaml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
vscode-extension/.vscode-test.mjs
.vscode-test.mjs
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
vscode-extension/.vscodeignore
.vscodeignore
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWCode injection · code.deserialize · CWE-78, CWE-94, CWE-95
integration_tests/test_packaging.py:209
assert "apply_discount" not in _code_names(marshal.loads(archive.extract("app")))
Why it matters. deserialises untrusted bytes into live objects
Fix. use json or yaml.safe_load
LOWCode injection · code.dynamic_import · CWE-78, CWE-94, CWE-95
examples/import_hook/loader.py:43
return __import__(module_name)
LOWCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
examples/import_hook/loader.py:26
exec(compile(source, str(self.path), "exec"), module.__dict__)
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
LOWCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
tests/integration/test_simple_obfuscation.py:65
exec(obfuscated_code, exec_globals)
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table

Gates applied: instruction_override, no_behavioural_pass.

Audited 2026-10-10 · audit v0.4.1 · source sha d13fd24b3087full audit observations/trust-audit/mcp-server/zhurong2020__pyobfus.json · Report an issue / request a re-scan
04

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-10d13fd24b3087BLOCKF35first audit
05

Questions

What is the pyobfus MCP server?

AST-based Python obfuscator with reverse stack-trace mapping — obfuscate before shipping and keep production tracebacks AI-debuggable. MCP + VS Code.

Is pyobfus safe to connect to an agent?

No — not without reading the findings first. The audit graded it F (35/100) and found 7 critical or high issues in the source. Each one is listed on this page with the file and line it is on.

What credentials does pyobfus need?

It reads ANTHROPIC_API_KEY and PYOBFUS_LICENSE_SECRET from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does pyobfus run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as pyobfus at 0.4.3.

How current is this page?

The grade is for one exact copy of the source (d13fd24b3087), read on 2026-10-10. The repository is watched and re-audited when it changes.

Advertisement