← 返回
未分类 中文

portable-deployment-audit

Read-only security auditing for OpenClaw deployments, repositories, and local project directories. Scan an explicit target directory for exposed credentials,...
对OpenClaw部署、代码仓库和本地项目目录进行只读安全审计。扫描指定目标目录中的暴露凭据...
otweihan otweihan 来源
未分类 clawhub v1.0.2 1 版本 100000 Key: 无需
★ 0
Stars
📥 402
下载
💾 0
安装
1
版本
#latest

概述

Portable Deployment Audit

Run a read-only security review against a chosen directory.

Rules

  • Treat this skill as read-only.
  • Do not use it to modify files automatically.
  • Pass --target when auditing something other than the current directory.
  • Use --format json for machine-readable output; stdout will contain pure JSON only.
  • Use --strict when you want a non-zero exit on HIGH findings in CI.
  • Use --exclude-dir to skip bulky or irrelevant directories in mixed repos.
  • Use --allow-port to suppress expected configured/published ports in local or staged environments.
  • This version uses file inspection only and does not invoke external binaries such as git, ss, or netstat.
  • Expect limited permission analysis on Windows; Unix mode-bit checks only run on Unix-like systems.

Commands

Quick audit of current directory

node skills/portable-deployment-audit/scripts/audit.cjs --target .

Audit another directory

node skills/portable-deployment-audit/scripts/audit.cjs --target /path/to/project

JSON report

node skills/portable-deployment-audit/scripts/audit.cjs --target . --format json > audit-report.json

CI-style run

node skills/portable-deployment-audit/scripts/audit.cjs --target . --format json --strict

Ignore expected noise

node skills/portable-deployment-audit/scripts/audit.cjs --target . --exclude-dir vendor,tmp --allow-port 3000,8080

Specific checks only

node skills/portable-deployment-audit/scripts/audit.cjs --target . --check credentials,configs
node skills/portable-deployment-audit/scripts/audit.cjs --target . --ports
node skills/portable-deployment-audit/scripts/audit.cjs --target . --docker

Checks

  • credentials: scan env/config/code files for likely secrets and hardcoded credentials
  • ports: inspect explicit port exposure hints from config and compose files, respect --allow-port, and warn more strongly on commonly exposed service ports
  • configs: flag risky debug logging, wildcard CORS, and obvious placeholder/default secrets
  • permissions: inspect Unix mode bits on sensitive files; Windows reports limitations instead of guessing
  • docker: inspect Dockerfile and compose files for root/privileged runtime, host networking, published ports, missing HEALTHCHECK, and floating tags
  • git: flag repository exposure indicators such as exposed .git directories and missing .gitignore

Notes

  • --fix is intentionally disabled in this version.
  • Findings are advisory and should be reviewed before making changes.
  • Text output includes short remediation recommendations derived from the findings.
  • The script performs file inspection only; no shell commands or external binaries are executed.
  • For automation, prefer --format json and parse the structured report.

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-31 03:47 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Knowledge-Base

otweihan
结构化 Markdown 知识库管理协议。在知识库中新增、整理、搜索笔记和项目。匹配:在知识库中记笔记/归档/整理/搜索/创建项目/写日报/写周报/记录外部来源/沉淀概念或问题模型/知识库体检。当用户提到知识库操作、笔记管理、知识库健康检查
★ 0 📥 455

skill-retrieval-gate

otweihan
决定是否在执行其他技能或工作流前运行 `memory_search`,以便智能体减少 token 使用量,同时避免每个任务都强制检索。
★ 0 📥 386

openclaw-siliconflow-memory

otweihan
配置OpenClaw语义记忆使用SiliconFlow嵌入,通过OpenAI兼容API调用BAAI/bge-m3模型。用于启用或修复时。
★ 0 📥 363