← 返回
开发者工具 中文

Safe Cron Runner

Executes background tasks safely by dropping privileges and enforcing timeouts. Includes ISNAD signed manifest.
安全执行后台任务,支持降权和超时保护,包含ISNAD签名清单。
horn111
开发者工具 clawhub v1.0.2 1 版本 99859.7 Key: 无需
★ 0
Stars
📥 712
下载
💾 21
安装
1
版本
#latest

概述

Safe Cron Runner 🛡️

A secure background task executor for AI Agents.

Overview

This skill wraps background task execution to ensure that autonomous agents don't accidentally (or maliciously) execute long-running or privileged commands.

Key Protections

  1. Privilege Dropping: Automatically drops root privileges (switches to nobody) before executing the subprocess.
  2. Strict Timeouts: Enforces hard timeouts to prevent infinite loops or resource exhaustion.
  3. Shell Injection Protection: Uses list-based command execution (subprocess without shell) to prevent common command injection attacks.
  4. Transparent Logging: Separates and logs stdout, stderr, and execution status for auditability.

ISNAD Signed

This skill includes an ISNAD manifest (isnad_manifest.json) verifying the integrity of the release.

Usage

from safe_cron import SafeCronRunner

runner = SafeCronRunner(safe_user="nobody", timeout_sec=60)

# Execute command as a list for safety
result = runner.run_task(["ls", "-la", "/tmp"])
print(result)

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-30 02:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,181
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,162
security-compliance

Safe Memory Manager

horn111
{"answer":"构建读取不可信文本的 OpenClaw 智能体时,使用此技能可防止提示注入和记忆投毒。安全记忆的标准实用工具……"}
★ 0 📥 919