← 返回 Skills 市场
anydefai

Backendenc

作者 anydefai · GitHub ↗ · v2.2.0 · MIT-0
cross-platform ✓ 安全检测通过
59
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install backendenc
功能描述
Backend Agent Data Encryption. High-security MK->KEK->DEK hierarchy for backend environments.
使用说明 (SKILL.md)

backendenc: Backend Security Toolkit

This skill provides mandatory encryption for OpenClaw agents running in Node.js/Backend environments. It operates in Local Manual Mode, using the Node.js built-in crypto module.

Context

Unlike the frontend version which uses Web Crypto, this version is designed for server-side execution, CLI tools, or background agents. It stores metadata in a persistent local file (or compatible storage provider).

Key Hierarchy

  1. Master Key (MK): Derived from your passphrase using crypto.pbkdf2.
    • Persistence: A unique "Salt" is stored in your configuration. As long as you remember your passphrase, the same Master Key will be generated across reboots.
  2. Key Encryption Key (KEK): Generated randomly and encrypted by your MK.
  3. Data Encryption Keys (DEKs): Scoped keys (e.g., memory, assets) encrypted by the KEK.

Security Disclosure

  • Zero Network: This skill does NOT perform any external network requests. All operations happen via the Node.js crypto module.
  • No Cleartext Keys: Keys are never stored in cleartext. They are always "wrapped" (encrypted) by a higher-level key using AES-256-GCM.
  • Passphrase Obligation: You must provide your passphrase to "unlock" the vault after هر server reboot.

Multi-User & Channel Isolation

Designed for high-concurrency backend environments:

  • Key Partitioning: All storage keys follow the ${userId}:${channelId}:key format.
  • Security: Ensures that even if the underlying storage file is compromised, keys for different users remain cryptographically separated.

Usage (Backend)

import { EncryptionService } from './encryption-service.js';

// Access context IDs
const { userId, channelId } = agent.context;

// Unlock for context
await EncryptionService.unlock(userId, channelId, 'passphrase');

// Scoped encryption
const encrypted = await EncryptionService.encrypt(userId, channelId, 'history', 'data');
安全使用建议
This skill appears to implement what it says: local, node-native encryption with per-user/channel isolation. Before installing or enabling it in production, review and decide on these operational points: (1) Default storage is process.cwd()/.anydef-vault.json and .anydef-vault — ensure the agent's working directory is a secure location (not a repo root or world-readable directory) and set file permissions appropriately. (2) The vault is unlocked with a passphrase supplied at runtime; losing the passphrase means losing access. Plan passphrase management and recovery. (3) Consider replacing or configuring the storage backend if you prefer an OS secret manager or DB adapter rather than filesystem JSON. (4) Audit concurrency and backup behavior for your deployment (multiple processes writing same file). (5) Source/homepage is missing — if provenance matters for your environment, request the upstream source or signing information from the publisher before trusting in a sensitive environment.
功能分析
Type: OpenClaw Skill Name: backendenc Version: 2.2.0 The skill provides a legitimate hierarchical encryption service (MK->KEK->DEK) for backend environments using the native Node.js crypto module. The implementation in scripts/encryption-service.js correctly uses AES-256-GCM for authenticated encryption and PBKDF2 for key derivation, with no evidence of network exfiltration, unauthorized file access, or malicious prompt injection in SKILL.md.
能力标签
crypto
能力评估
Purpose & Capability
Name/description claim a backend encryption toolkit and the package contains Node.js code using the native crypto and fs modules to implement an MK→KEK→DEK hierarchy and per-user/channel isolation. Requested resources (none) and included files align with the stated purpose.
Instruction Scope
SKILL.md and the code limit operations to local cryptography and local storage (no network calls). However, the service persistently writes a vault file (.anydef-vault.json) and an .anydef-vault directory under process.cwd(), and relies on the agent's context (userId, channelId) and a user-supplied passphrase. This is within the stated scope but operationally significant (see guidance).
Install Mechanism
There is no install spec (instruction-only skill with a bundled JS file). Nothing is downloaded from external URLs and no binaries are added, which is low-risk and consistent with the skill being a Node.js library/module.
Credentials
The skill requests no environment variables or external credentials. It requires filesystem access (fs) and Node crypto, which are proportionate to local encryption and persistent storage responsibilities declared in the README and metadata.
Persistence & Privilege
always is false and the skill does not request elevated platform privileges. It does persist encrypted blobs and separate asset files to the current working directory; this persistent presence is reasonable for a vault service but may require careful placement and file-permission controls in production.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install backendenc
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /backendenc 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.2.0
Version 2.2.0 - Introduces backend agent data encryption using a MK→KEK→DEK key hierarchy for Node.js environments. - Encrypts and partitions all keys; never stores cleartext keys, boosting security. - Implements "Local Manual Mode" with persistent local metadata and no network requests. - Requires a user passphrase to unlock keys after every server reboot. - Ensures multi-user/channel cryptographic separation for secure, concurrent backend operations.
元数据
Slug backendenc
版本 2.2.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Backendenc 是什么?

Backend Agent Data Encryption. High-security MK->KEK->DEK hierarchy for backend environments. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 59 次。

如何安装 Backendenc?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install backendenc」即可一键安装,无需额外配置。

Backendenc 是免费的吗?

是的,Backendenc 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Backendenc 支持哪些平台?

Backendenc 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Backendenc?

由 anydefai(@anydefai)开发并维护,当前版本 v2.2.0。

💬 留言讨论