返回顶部
s

safe-cron-runner

Executes background tasks safely by dropping privileges and enforcing timeouts. Includes ISNAD signed manifest.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.2
安全检测
已通过
326
下载量
0
收藏
概述
安装方式
版本历史

safe-cron-runner

# 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 ```python 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) ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 safe-cron-runner-1776280649 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 safe-cron-runner-1776280649 技能

通过命令行安装

skillhub install safe-cron-runner-1776280649

下载 Zip 包

⬇ 下载 safe-cron-runner v1.0.2

文件大小: 3.68 KB | 发布时间: 2026-4-16 17:49

v1.0.2 最新 2026-4-16 17:49
Fixed technical mismatches: aligned code with documentation claims and removed unverified features.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部