Cyber Security Engineer
БесплатноЗапускает вложенные скриптыНе проверенSecurity engineering workflow for OpenClaw privilege governance and hardening. Use for least-privilege execution, approval-first privileged actions, idle…
от fletcherfrimpong3 574 установки в других каталогахОб этом скилле
Cyber Security Engineer
Requirements
Required tools:
python3(>= 3.9)openclawCLI (installed vianpmduring bootstrap, or pre-installed)npm(only needed for bootstrap ifopenclawis not already installed)- One of
lsof,ss, ornetstatfor port/egress checks stat,readlink(standard on macOS/Linux, used by the runtime hook installer)
Settings (all optional). Set them in the process environment or, for the ones marked file, as
NAME=value lines in ~/.openclaw/env (mode 600). A protection is on when either place sets it.
OPENCLAW_REQUIRE_POLICY_FILES— file — set to1to block privileged execution when policy files are missingOPENCLAW_REQUIRE_SESSION_ID— file — set to1to require a task session id for each privileged actionOPENCLAW_TASK_SESSION_ID— per-task session id (used whenOPENCLAW_REQUIRE_SESSION_ID=1)OPENCLAW_APPROVAL_TOKEN— file — if set, this token must be typed at the terminal during approvalOPENCLAW_AUDIT_OPTIONAL— file — set to1to let a privileged command run when the audit log cannot be written (default: refuse)OPENCLAW_UNTRUSTED_SOURCE— set to1to flag the current content source as untrustedOPENCLAW_VIOLATION_NOTIFY_CMD— absolute path to a notifier binary (must also be allowlisted)OPENCLAW_VIOLATION_NOTIFY_ALLOWLIST— JSON array of allowed argv arrays, or comma-separated absolute pathsOPENCLAW_PRIV_REASON— human-readable reason passed to the guarded execution wrapperOPENCLAW_VIOLATION_NOTIFY_STATE— override path to the notification state fileOPENCLAW_HOOK_ASSUME_YES— set to1to let the hook installer change OpenClaw's command PATH without asking (for unattended installs; without it and without a terminal, nothing is changed)
Policy files (admin reviewed):
~/.openclaw/security/approved_ports.json~/.openclaw/security/command-policy.json~/.openclaw/security/egress_allowlist.json~/.openclaw/security/prompt-policy.json
Implement these controls in every security-sensitive task:
- Keep default execution in normal (non-root) mode.
- Request explicit user approval before any elevated command. Approval is given by a person at the terminal; never pipe an answer into the guard.
- Scope elevation to the minimum command set required for the active task.
- Drop elevated state immediately after the privileged command completes.
- Expire elevated state after 30 idle minutes and require re-approval.
- Monitor listening network ports and flag insecure or unapproved exposure.
- Monitor OpenClaw's outbound connections and flag destinations not in the egress allowlist.
- If no approved baseline exists, generate one with
python3 scripts/generate_approved_ports.py, then review and prune. - Benchmark controls against ISO 27001 and NIST and report violations with mitigations.
Runtime Hook (sudo shim)
The script scripts/install-openclaw-runtime-hook.sh installs an opt-in sudo
shim at ~/.openclaw/bin/sudo. This shim shadows the system sudo binary by
putting ~/.openclaw/bin first on the PATH of commands OpenClaw runs, through OpenClaw's
tools.exec.pathPrepend setting (or the gateway LaunchAgent's PATH on older releases).
What it does:
- Intercepts
sudoinvocations and routes them throughguarded_privileged_exec.py - Requires approval typed at the controlling terminal before running any privileged command
- Runs the command as
sudo -k -- <command>, so sudo asks for the password every time - Enforces command policy allow/deny rules, audit logging, and a 30-minute idle timeout
- Resolves bare command names (
sudo ls) in the system directories only; sudo options such as-uare not supported - Passes a flag straight to the real sudo only when it is the single argument and runs nothing:
-h,--help,-V,--version,-k,-K. The same flag followed by a command goes through the guard.
What it does NOT do:
- It does not stop a caller that runs
/usr/bin/sudoby its full path; that call still meets sudo's password prompt - It does not replace or modify the system sudo binary
- It does not grant itself any elevated permissions
- It does not read its sudo, python or guard paths from the environment; they are fixed when the shim is installed
Opt-in: The hook is not installed by default. To enable it, run bootstrap with
ENFORCE_PRIVILEGED_EXEC=1. The installer asks for confirmation before changing OpenClaw's
command PATH, and changes nothing if it cannot ask. The shim can be removed at any time
by deleting ~/.openclaw/bin/sudo.
File Writes
This skill writes only to ~/.openclaw/ and the assessments/ directory inside the
skill folder. No files are written outside these two trees.
Under ~/.openclaw/ (user config/state):
~/.openclaw/security/approved_ports.json— generated port baseline (bygenerate_approved_ports.py)~/.openclaw/security/root-session-state.json— signed el
Установить Cyber Security Engineer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Cyber Security Engineer?
Security engineering workflow for OpenClaw privilege governance and hardening. Use for least-privilege execution, approval-first privileged actions, idle timeout controls, port + egress monitoring, and ISO 27001/NIST-aligned compliance reporting with mitigations.
Как установить скилл Cyber Security Engineer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Cyber Security Engineer запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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