cli
Audited by Socket on Jun 22, 2026
10 alerts found:
Anomalyx9Obfuscated FileThis code is largely a standard CLI entrypoint that delegates functionality to other modules. The primary potential supply-chain/security concern within this fragment is the optional dynamic command registration from a user-writable directory (~/.claude), which could enable malicious or tampered local content to influence CLI command registration/execution depending on registerDynamicScriptCommands’ implementation. Otherwise, there is no direct evidence of malware in this specific file; main risk is delegated filesystem operations and token-handling behavior in imported modules.
No explicit malicious payload is visible in this snippet itself (no eval/obvious backdoor logic shown). However, it performs high-impact supply-chain operations: it clones a remote configuration repository at runtime, then copies/merges/render assets into active local configuration directories and may install dependencies and shell shortcuts via helper functions whose safety/integrity checks are not shown. Telemetry is also emitted. Overall, this warrants a focused review of cloneRepository (pinning/verification), the helper functions that install dependencies/render/generate scripts (command execution and trust boundaries), and telemetry contents/transmission behavior.
This code is primarily a remote-to-local synchronization and deployment mechanism: it authenticates to a private GitHub repository, enumerates and downloads remote files, optionally transforms text content, and then writes/updates/deletes/moves them in local project directories. There is no clear in-module malware behavior (no exec/eval/exfiltration signals), but the supply-chain impact is high by design. The most notable security concern is that filesystem targets are constructed from remote-derived paths via path.join without visible sanitization, which could enable path traversal/escape if the upstream repository contents (or GitHub listing responses) are malicious or unexpected. Overall, treat as a high-impact install/sync surface and harden path validation and upstream trust assumptions.
No explicit malicious payload is visible in this fragment (no clear eval/backdoor/reverse-shell/network endpoints). The code is primarily an installer/orchestrator for “premium” features: it activates a token, uses an obtained githubToken to perform installation/update of local configurations/scripts, and modifies shell shortcuts and settings.json—actions that are high-impact supply-chain vectors. Additionally, it logs user email/name and token file path and emits telemetry on success/failure, which may leak sensitive information depending on telemetry destinations/payload minimization. Review the implementations of installProConfigs, checkAndInstallDependencies, installScriptsDependencies, setupShellShortcuts, and updateSettings for integrity verification, safe content handling, and absence of undesired persistence/execution; also verify telemetry payload minimization and destinations.
This module behaves like an installer/setup helper that persistently alters user shell startup/profile files by inserting a managed block of hardcoded aliases/functions for claude/codex. It shows no direct malware indicators such as exfiltration, credential theft, obfuscated execution, or network communication. However, its security-relevant impact is significant: it modifies how future terminal commands behave and includes a permissive `--dangerously-skip-permissions` flag in the inserted shortcuts, which warrants review in the context of the project’s intended security model and the invoked tools’ permission behavior.
SUSPICIOUS. The skill’s main behavior fits its stated purpose, and the load-time commands are benign. Risk comes from autonomous repair behavior, running `bun install` on project-defined dependencies/install scripts, and the unnecessary instruction to inspect `~/.claude/.credentials.json`, which expands scope beyond ordinary test setup.
Likely a legitimate Git worktree removal wrapper, but it has meaningful security risk primarily from trust-boundary issues: unvalidated `worktree_path` from STDIN controls where it writes logs and which directory it `cd`s into before executing the cleanup script, and it performs forceful worktree/branch deletion based on that path. Additionally, it executes local code via dot-sourcing `$HOME/.nvm/nvm.sh` and uses `eval` on `fnm` output, which is a dynamic code execution sink. No direct evidence of exfiltration or malware behavior is present in this snippet.
This configuration itself does not contain an obvious malicious payload, but it creates a meaningful security risk by executing a Node script from a user-writable directory ($HOME/.codex/hooks/command-deny-list.ts) during a pre-tool-use safety hook, while also disabling approvals and requesting full-access sandbox behavior. To determine whether malware exists, the referenced command-deny-list.ts content and the CLI’s hook execution/gating model must be reviewed; absent that, the safest assessment is that the integrity boundary is weak and compromise would have higher impact.
The file itself is not executable malware, but contains permissive release settings that materially increase the risk of accidental or unauthorized publication of malicious or broken artifacts. The most concerning elements are disabled cleanliness/upstream checks and skipped npm checks combined with an executable build hook and public npm publish. Recommend tightening release safeguards, enforcing CI-side verification, and auditing build scripts and credentials used during release.
This fragment is a Git/worktree hook configuration that triggers execution of two local shell scripts on worktree create/remove. No overt malicious behavior or obfuscation is present in the fragment itself, but it establishes a sensitive arbitrary command execution pathway. Security risk is primarily driven by the integrity/provenance of the referenced scripts and trust in "$CLAUDE_PROJECT_DIR"; review the .sh script contents and ensure they cannot be replaced or redirected by an attacker.