Cross‑Device Encrypted Script Authorization
БесплатноБез исполняемых скриптовНе проверенZero‑exposure cross‑device script authorization using MGC Blackbox. Scripts are sealed with the target node's RSA public key, delivered as ciphertext, and…
от zkeviny944 установки в других каталогахОб этом скилле
Overview
Cross‑Device Encrypted Script Authorization is a documentation skill that teaches how to authorize script execution across devices without exposing plaintext.
This skill enables:
- Seal scripts using the target node's RSA public key and deliver them as ciphertext
- Also support a key‑exchange‑free free mode for public distribution
- Run sealed scripts on the authorized node via blackbox execution
- Verify the origin of an artifact through link authorization
This skill contains no executable code and is safe for automatic approval.
What This Skill Enables
After reading this documentation, the caller will understand how to:
- Fetch the target node's RSA public key (
__NODE_PUB__) - Seal scripts via
mgc_seal(with auto-extracted default arguments), producing a deliverable capsule file - Choose the authorization mode: p2p (bound to a specific node) or free mode (runnable on any 1.5.4+ node)
- Import the capsule on the target node with a single call (all fields parsed automatically)
- Execute the sealed script in blackbox mode via
mgc_run - Verify artifact origin integrity (tamper detection on
ext07/ext09) - Handle dependency consistency (credentials, files, environment variables)
Prerequisites
- Install MGC Blackbox:
pip install mgc-blackbox>=1.5.4 - Start MGC service:
mgc(runs at http://127.0.0.1:57219, WebUI at 57218) - MCP tools available:
mgc_save,mgc_save_file,mgc_get,mgc_run,mgc_seal,mgc_find,mgc_list,mgc_delete,mgc_open_webui,mgc_skill - Two MGC nodes: One owner node and one authorized node; a single node can self-verify the flow
- Token file:
~/.mgc/database/mgc_black_box/.mgc_token
Version requirement: the receiver must run MGC 1.5.4+. Earlier versions cannot unseal artifacts carrying link authorization. Sandbox mode (1.4.9+): When running inside a sandbox Agent (Trae Work / Workbuddy), install MGC in the system environment; otherwise MCP tool calls may be intercepted — in that case, call FastAPI directly.
Core Concept
Why Cross‑Device Authorization?
Traditional: Script Owner → Send Script (plaintext) → Authorized Node
MGC Way: Script Owner → Seal → Ciphertext Capsule → Authorized Node
↓
Always encrypted, never exposed
The script remains encrypted throughout:
- After sealing on the owner node
- During network transfer
- During storage on the authorized node
- Decrypted only briefly in memory during blackbox execution
The 1.5.4 Dual‑Layer Encryption Structure
Since 1.5.4 every seal goes through the dual-layer path:
Layer 1: content = AES-256-CBC(script body, one-time AES_KEY_4)
Layer 2: AES_KEY_4 = RSA-2048 encryption (p2p: target node public key / free mode: shared default public key)
Layer 3: ext03 = AES-256-GCM(layer 2 result, key = SHA256(ext07)[:32], AAD = ext09)
The layer-3 key is derived from ext07 (owner node public key) and the AAD binds ext09 (seal mode) — this is exactly where link authorization comes from.
The layer-1 AES_KEY_4 is freshly randomized on every seal and never reused across artifacts.
Two Sealing Modes
Whether ext04 is supplied decides the seal mode:
| p2p mode (default) | Free mode | |
|---|---|---|
| How to seal | Supply ext04=<target node multi-line PEM> |
Omit ext04 |
ext09 value in the artifact |
p2p mode |
free mode |
| Who can unseal and run it | Only the node holding the matching private key | Any MGC 1.5.4+ node |
| Can the source script be read | No | No (it is still only decrypted in memory) |
| Public key exchange needed | Yes | No |
| Best for | Single-customer authorization, confidential delivery | Public distribution, skill marketplaces, generic installers |
Free mode wraps the content with MGC's shared default public key, so any machine running MGC 1.5.4+ can import and run it, while the source script still never lands on disk in plaintext at the receiving side.
Free mode fits "hand everyone a runnable trial build". It is not suitable when authorization must be limited per customer.
Sealed Capsule Structure (measured on 1.5.4)
{
"info_type": "script",
"info_owner": "my_script",
"ext01": "python", // startup command
"ext02": '["--name", "World"]', // default args (argparse auto-parsed at seal time)
"ext03": "<dual-layer wrapped ciphertext>", // sealing key
"ext05": "[]", // third-party dependency list (auto-detected)
"ext06": '["windows","macos","linux"]',// compatible platform list (statically inferred)
"ext07": "<owner node RSA public key>", // origin identity, participates in key derivation
"ext09": "p2p mode", // seal mode
"content": "<AES-encrypted script body>"
}
Key points:
- Field keys carry no underscore (`
Установить Cross‑Device Encrypted Script Authorization в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Cross‑Device Encrypted Script Authorization?
Zero‑exposure cross‑device script authorization using MGC Blackbox. Scripts are sealed with the target node's RSA public key, delivered as ciphertext, and decrypted only in memory on the authorized node; also supports key‑exchange‑free free mode for public distribution. Adapted to MGC 1.5.4 — dual‑layer encryption, link authorization, and self‑describing capsule delivery.
Как установить скилл Cross‑Device Encrypted Script Authorization?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Cross‑Device Encrypted Script Authorization запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic