Bug Description
When trying to install the plugin, the installation fails due to openclaw.hooks not being configured in package.json file.
Note that the installation security block can be bypassed by:
openclaw plugins install @vectorize-io/hindsight-openclaw --dangerously-force-unsafe-install
Steps to Reproduce
- Install OpenClaw
- Attempt installation of hindsight plugin:
openclaw plugins install @vectorize-io/hindsight-openclaw
- Failure.
- Attempt forced installation of hindsight:
openclaw plugins install @vectorize-io/hindsight-openclaw --dangerously-force-unsafe-install
Expected Behavior
The plugin should install.
Actual Behavior
Plugin doesn't install:
OpenClaw 2026.3.31 (213a704) — I can't fix your code taste, but I can fix your build and your backlog. Resolving clawhub:@vectorize-io/hindsight-openclaw… Downloading @vectorize-io/hindsight-openclaw… Extracting /tmp/openclaw-npm-pack-dM7IZc/vectorize-io-hindsight-openclaw-0.5.1.tgz… WARNING: Plugin "hindsight-openclaw" contains dangerous code patterns: Environment variable access combined with network send — possible credential harvesting (/tmp/openclaw-plugin-JjJINk/extract/package/dist/index.js:77); Shell command execution detected (child_process) (/tmp/openclaw-plugin-JjJINk/extract/package/dist/client.js:11); Shell command execution detected (child_process) (/tmp/openclaw-plugin-JjJINk/extract/package/dist/embed-manager.js:72); Environment variable access combined with network send — possible credential harvesting (/tmp/openclaw-plugin-JjJINk/extract/package/dist/embed-manager.js:50) Downloading @vectorize-io/hindsight-openclaw… Extracting /tmp/openclaw-hook-pack-RNPuIi/vectorize-io-hindsight-openclaw-0.5.1.tgz… Plugin "hindsight-openclaw" installation blocked: dangerous code patterns detected: Environment variable access combined with network send — possible credential harvesting (/tmp/openclaw-plugin-JjJINk/extract/package/dist/index.js:77); Shell command execution detected (child_process) (/tmp/openclaw-plugin-JjJINk/extract/package/dist/client.js:11); Shell command execution detected (child_process) (/tmp/openclaw-plugin-JjJINk/extract/package/dist/embed-manager.js:72); Environment variable access combined with network send — possible credential harvesting (/tmp/openclaw-plugin-JjJINk/extract/package/dist/embed-manager.js:50) Also not a valid hook pack: Error: package.json missing openclaw.hooks
Version
No response
LLM Provider
None
Bug Description
When trying to install the plugin, the installation fails due to openclaw.hooks not being configured in package.json file.
Note that the installation security block can be bypassed by:
openclaw plugins install @vectorize-io/hindsight-openclaw --dangerously-force-unsafe-installSteps to Reproduce
openclaw plugins install @vectorize-io/hindsight-openclawopenclaw plugins install @vectorize-io/hindsight-openclaw --dangerously-force-unsafe-installExpected Behavior
The plugin should install.
Actual Behavior
Plugin doesn't install:
OpenClaw 2026.3.31 (213a704) — I can't fix your code taste, but I can fix your build and your backlog. Resolving clawhub:@vectorize-io/hindsight-openclaw… Downloading @vectorize-io/hindsight-openclaw… Extracting /tmp/openclaw-npm-pack-dM7IZc/vectorize-io-hindsight-openclaw-0.5.1.tgz… WARNING: Plugin "hindsight-openclaw" contains dangerous code patterns: Environment variable access combined with network send — possible credential harvesting (/tmp/openclaw-plugin-JjJINk/extract/package/dist/index.js:77); Shell command execution detected (child_process) (/tmp/openclaw-plugin-JjJINk/extract/package/dist/client.js:11); Shell command execution detected (child_process) (/tmp/openclaw-plugin-JjJINk/extract/package/dist/embed-manager.js:72); Environment variable access combined with network send — possible credential harvesting (/tmp/openclaw-plugin-JjJINk/extract/package/dist/embed-manager.js:50) Downloading @vectorize-io/hindsight-openclaw… Extracting /tmp/openclaw-hook-pack-RNPuIi/vectorize-io-hindsight-openclaw-0.5.1.tgz… Plugin "hindsight-openclaw" installation blocked: dangerous code patterns detected: Environment variable access combined with network send — possible credential harvesting (/tmp/openclaw-plugin-JjJINk/extract/package/dist/index.js:77); Shell command execution detected (child_process) (/tmp/openclaw-plugin-JjJINk/extract/package/dist/client.js:11); Shell command execution detected (child_process) (/tmp/openclaw-plugin-JjJINk/extract/package/dist/embed-manager.js:72); Environment variable access combined with network send — possible credential harvesting (/tmp/openclaw-plugin-JjJINk/extract/package/dist/embed-manager.js:50) Also not a valid hook pack: Error: package.json missing openclaw.hooksVersion
No response
LLM Provider
None