@lowwattlabs

PortKeep

Port management and security auditing for self-hosted infrastructure. Discover, claim, and audit every listening port across local and remote nodes. Detect drift, score attack surface, and cross-reference against live threat intelligence.

当前版本
v1.1.1
code-plugin社区source-linked

PortKeep — OpenClaw Plugin

Port management and security auditing for self-hosted infrastructure.

Discover, claim, and audit every listening port across local and remote nodes. Detect drift, score attack surface, and cross-reference against live threat intelligence.

Tools

ToolDescription
portkeep_scanDiscover all listening ports (local or remote nodes via SSH)
portkeep_auditFull security audit — exposure score, risk flags, C2/KEV matches
portkeep_driftCompare declared vs actual ports, report rogue/ghost/mismatch
portkeep_claimRegister a port as expected/owned
portkeep_listList claimed ports with filters (node, state, bind, service)
portkeep_syncPull threat intel from CISA KEV, Feodo, EPSS, etc.

Requirements

  • PortKeep binary must be installed and on PATH. Download from GitHub Releases.
# Linux amd64
curl -sL https://github.com/lowwattlabs/portkeep/releases/latest/download/portkeep_linux_amd64 -o portkeep
chmod +x portkeep && sudo mv portkeep /usr/local/bin/

# macOS Apple Silicon
curl -sL https://github.com/lowwattlabs/portkeep/releases/latest/download/portkeep_darwin_arm64 -o portkeep
chmod +x portkeep && sudo mv portkeep /usr/local/bin/

Install

openclaw plugins install clawhub:portkeep

Configuration

Set binaryPath in plugin config to pin the exact binary location. If unset, the plugin uses $PORTKEEP_BIN or falls back to /usr/local/bin/portkeepnot bare PATH resolution, to prevent PATH hijacking.

Remote operations are blocked by default. To enable SSH scanning of remote nodes and external threat intel sync, set allowRemote: true:

{
  "portkeep": {
    "binaryPath": "/usr/local/bin/portkeep",
    "allowRemote": true
  }
}

Without allowRemote, any tool call that would access a remote node (--node, --all) or external feeds (sync) throws an error instead of executing. Local-only operations (scanning the host machine, claiming ports, listing claims) work without this flag.

⚠️ Network & Privacy Disclosures

  • Remote node scanning (scan --node, audit --node, drift --node) connects to remote hosts via SSH key auth. Only scan hosts you own and are authorized to access.
  • Threat intel sync (sync) connects to external feeds (CISA KEV, Feodo, EPSS, etc.) over the internet. Review the source list in your portkeep config before running.
  • Binary execution — the plugin runs a portkeep binary resolved from config.binaryPath$PORTKEEP_BIN/usr/local/bin/portkeep. Verify the binary integrity if you install from an untrusted source.

Multi-node support

PortKeep scans remote nodes via SSH key auth. No agent needed on remotes.

portkeep node add myserver 10.0.0.50 --user admin
portkeep scan --node myserver
portkeep audit --all

Links

License

MIT

源码与版本

源码仓库

lowwattlabs/portkeep

打开仓库

源码提交

4ea44dd

查看提交

安装命令

openclaw plugins install clawhub:@lowwattlabs/portkeep

元数据

  • 包名: @lowwattlabs/portkeep
  • 创建时间: 2026/06/08
  • 更新时间: 2026/06/09
  • 执行代码:
  • 源码标签: 4ea44dd

兼容性

  • 构建于 OpenClaw: 2026.6.1
  • 插件 API 范围: >=2026.5.0
  • 标签: latest
  • 文件数: 13