[GH-ISSUE #3953] [Issue]: Harden custom agent imports against bundled tool execution #2134

Closed
opened 2026-10-21 05:45:40 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Jul 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3953

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Custom agent ZIP/JSON imports can preserve enabledTools, and agent ZIPs may bundle enabled custom functions. A third-party bundle can therefore cause an activated imported agent to call an attacker-controlled webhook and optionally transmit hidden conversation context.

Expected behavior

Importing an untrusted custom agent should import prompt/configuration data only. It must not install executable/network functions or silently grant tool access. Official capability packages from the curated Pasta-Devs/Marinara-Agents catalog should remain unaffected.

Actual behavior

The Agents panel discovers functions, customTools, and tools entries inside agent imports, creates those custom tools using their imported enabled state, and preserves most settings.enabledTools values on the imported agent.

Steps to reproduce

  1. Create an agent bundle containing an enabled webhook function with includeHiddenContext: true.
  2. Reference that function name in the bundled agent settings enabledTools.
  3. Import and activate the agent in a chat; the model can call the imported webhook with hidden context.

Environment

  • Marinara Engine version: current staging
  • Install type: source inspection
  • OS + version: macOS
  • Browser or app shell: not browser-specific

Logs, screenshots, or video

No runtime logs or screenshots; the import and tool-resolution paths establish the issue directly.

Additional context

Security hardening follow-up to #3952. The official curated capability-package catalog is a separate trusted-code path and must continue to function.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 22, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3953 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Custom agent ZIP/JSON imports can preserve `enabledTools`, and agent ZIPs may bundle enabled custom functions. A third-party bundle can therefore cause an activated imported agent to call an attacker-controlled webhook and optionally transmit hidden conversation context. ## Expected behavior Importing an untrusted custom agent should import prompt/configuration data only. It must not install executable/network functions or silently grant tool access. Official capability packages from the curated `Pasta-Devs/Marinara-Agents` catalog should remain unaffected. ## Actual behavior The Agents panel discovers `functions`, `customTools`, and `tools` entries inside agent imports, creates those custom tools using their imported enabled state, and preserves most `settings.enabledTools` values on the imported agent. ## Steps to reproduce 1. Create an agent bundle containing an enabled webhook function with `includeHiddenContext: true`. 2. Reference that function name in the bundled agent settings `enabledTools`. 3. Import and activate the agent in a chat; the model can call the imported webhook with hidden context. ## Environment - Marinara Engine version: current `staging` - Install type: source inspection - OS + version: macOS - Browser or app shell: not browser-specific ## Logs, screenshots, or video No runtime logs or screenshots; the import and tool-resolution paths establish the issue directly. ## Additional context Security hardening follow-up to #3952. The official curated capability-package catalog is a separate trusted-code path and must continue to function. ## Template check - [x] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:45:40 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2134
No description provided.