The source implements an unprompted global self-update chain that re-enters its own postinstall downloader. The behavior is concrete and risky, but the inspected JavaScript contains no direct evidence of malicious collection, exfiltration, or foreign control-surface mutation.
Static reason
One or more suspicious static signals were detected.
Trigger
A user runs the ocr CLI while update checks are enabled.
Impact
A registry-selected newer release can execute its install hook and replace the globally installed command without an interactive confirmation.
Mechanism
Detached registry check followed by automatic global self-update and lifecycle binary download.
Evidence
package.jsonbin/ocr.jsscripts/update.jsscripts/install.js~/.opencodereview/last-update-check~/.opencodereview/update.lock~/.opencodereview/update-availablebin/opencodereview
Network endpoints3
registry.npmjs.org/alibaba/open-code-review/releases/download/v{version}/opencodereview-{os}-{arch}