360 Secure SkillHub
360 安全技能中心

MagBox

核心功能为双向本地文件传输,设有收件箱和发件箱,通过浏览器界面展示文件信息,支持拖拽上传与浏览下载。典型场景:收发非敏感文档、替代长内容复制、需传文件时提供对应页面URL;敏感内容禁用。输入为拖拽文件到指定页面,输出为文件下载URL或接收文件。无认证机制,不可暴露公网,文件无持久记录,需手动清理。

highnoonoffice
highnoonoffice
热度 17.49
最近更新 2026-09-11 01:53:29
分类:协作依赖:读写文件 / 代码执行应用场景:任务管理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add magbox
Metadata
name
magbox
description
Local dropbox between you and your agent. Move files through two aesthetically pleasing local directories with browser views. A drag-and-drop folder that goes to your agent and a viewable library of what your agent sends to you.
license
MIT
metadata
{"version":"0.2.0","envVars":["MAGBOX_BIND","MAGBOX_PORT","MAGBOX_HOSTS","MAGBOX_TO_AGENT","MAGBOX_FROM_AGENT","MAGBOX_MAX_BYTES","MAGBOX_MAX_UPLOADS","MAGBOX_UPLOAD_TIMEOUT_MS"]}

MagBox

MagBox is a two-way file bridge with no account or external service. Drop to Agent uploads into the inbox; Drop from Agent browses and downloads the outbox. Each view shows current files, counts, total bytes, and modification times. It is not a durable handoff record: moving, modifying, or removing a file changes the view. The inbox tray is shared by all clients, not personal history.

When to use it

  • A human needs a non-sensitive document, image, audio file, or export from the agent's machine: write it to the configured outbox and return its download URL.
  • A long handoff or code block would be awkward to copy from chat: place a .txt file in the outbox and return its URL.
  • A human needs to send the agent a file: return the /to page URL.
  • Sensitive content (credentials, private records, or confidential documents): keep it outside both served directories. Use an approved private channel.
  • A short answer: reply inline. An off-network recipient: use an approved alternative; do not promise that a local address will work remotely.

Operating rules

  1. Read README.md for first setup and references/deploy.md for services, limits, and routing. Install only when requested. Run the server as the directory owner, not root.
  2. Check the configured bind and client-reachable address before returning a URL. Start from the displayed URL; encode the filename in /dl/from/<name>. Hostnames work only if the recipient can resolve them and the server allows that name. A localhost link works only on the server machine.
  3. Never overwrite a previous file. HTTP uploads sanitize filenames and create numbered variants. Direct agent writes bypass that protection. Use an exclusive-create operation and retry with -v2, -v3 before the extension when the destination exists. A directory listing followed by an ordinary write does not provide collision protection.
  4. The directories are dedicated to handoffs and controlled by their local owner. Do not use symlinks, nested inbox/outbox paths, or folders other local users can modify. Do not leave sensitive data in either directory.
  5. Cleanup is local only. Preview the exact files and confirm with the human before removal. There is no browser delete route, automatic expiry, or trash managed by MagBox.

Network boundary

The default listener is 127.0.0.1:9900. LAN exposure is an explicit setup choice. Anyone reaching the port can read served files and upload into the inbox. Host and Origin checks reduce browser-driven abuse; they are not authentication. Do not expose the service on public/shared networks or forward its raw port to the internet. 0.0.0.0 listens on all IPv4 interfaces, not just a LAN.

For a VPN, bind to the host's VPN interface address with access restricted by VPN policy, or keep loopback and configure a specific private forwarding arrangement. Loopback binding by itself does not make the service reachable over a VPN. MagBox supplies no authentication, TLS, cloud sync, or per-file permissions.