mayar
Audited by Socket on Aug 9, 2026
11 alerts found:
Anomalyx10SecurityNo clear evidence of intentional malware/backdoor behavior is visible in this fragment. However, there is a meaningful security risk: multiple execSync calls build git commands using template-literal interpolation of branch/ref values, which can lead to command-injection if inputs are not strictly validated/escaped elsewhere. Additionally, the worktree copy routine builds filesystem paths directly from a caller-provided file list without visible sandboxing, which could enable path traversal/out-of-bound writes. Overall, this looks like an automation tool with potentially high impact if input validation is insufficient.
No clear indicators of classic malware (no network exfiltration, backdoor/persistence, or credential theft) are present in this module. However, it contains meaningful security weaknesses that could be exploited in a supply-chain or automation context: (1) potential command injection in getChangedFiles() if beforeSha is not strictly validated, (2) path traversal/out-of-scope filesystem probing in addOutputFile() due to missing projectRoot containment checks, and (3) confidentiality leakage risk by embedding git diffs and potentially full file contents into prompts consumed downstream. Additionally, yaml.load on MANIFEST.yaml increases risk if the manifest is attacker-influenced. Overall: low likelihood of embedded malware, but non-trivial security risk requiring input validation and path confinement review.
No direct malicious code (exfiltration, credential theft, networking, or obfuscated payloads) is evident in this module. However, it installs and enables a high-impact mechanism: it copies .sh hook scripts from a provided install directory, chmods them executable, and generates configuration that triggers `bash` execution of those scripts on specific tool events. This makes the module security-sensitive primarily as a supply-chain/code-execution enabler. The main requirement for safety is strong integrity control (trusted jonggrangInstallDir and hook scripts, and ideally hash/signature verification) and validation/complete review of any truncated plugin-generation logic.
No direct evidence of malware (e.g., stealing secrets, persistence, exfiltration) is visible in this snippet. The primary concern is security engineering: the module executes shell commands via execSync/execFileSync and 'sh -c' while interpolating caller-controlled values (cmd, branch, remote, ctx.root/container). If those inputs are not strictly validated/escaped elsewhere, the code is vulnerable to command injection and potentially unauthorized git push targeting. Additionally, it weakens git safety (safe.directory '*') and relaxes SSH host key checking (accept-new). Overall, this should be treated as a high-risk execution wrapper that requires strict input validation.
No direct malicious behaviors (eval/exec, credential theft, network exfiltration, filesystem tampering beyond writing the intended files) are evident in this snippet. However, it performs a runtime download of unverified instructions from a remote GitHub raw URL and writes them into local AI agent/IDE rule/skill locations (including a Cursor rules file that is likely to be applied). If the upstream content is compromised or altered, this enables a supply-chain/content poisoning scenario that could drive harmful downstream actions in whatever tooling consumes the installed files.
BENIGN. The skill is coherent with its stated purpose of VPS deployment and routes credentials only to the target server via standard SSH tooling, not to third-party services. The main security concern is the explicit use of `StrictHostKeyChecking=no` plus handling raw SSH keys, which makes the skill operationally risky but not malicious or fundamentally inconsistent.
No explicit malware is present in the installer script itself; however, the script is a high-impact supply-chain installer pattern. It downloads an unverified npm tarball from the registry (especially variable 'latest'), extracts it, persists its contents, and then runs npm install—an execution point where package/dependency lifecycle scripts can run. Without tarball integrity verification and version pinning, the primary security concern is compromise of the upstream package or dependency chain leading to malicious install-time behavior.
This code is a sensitive process-execution and logging wrapper. No direct malicious payload behavior is evident in the fragment, but it can spawn external code using caller-provided `args`, `projectPath` (cwd), and a broadly forwarded environment (`process.env` plus `extraEnv`). It also captures and emits stdout/stderr verbatim, which can unintentionally expose secrets that the child prints. Security posture therefore depends heavily on whether upstream callers can influence `args`, `extraEnv`, or `projectPath`, and whether log consumers treat emitted lines as sensitive. Review/limit caller control, minimize environment forwarding, and sanitize/guard log handling.
This JSON is a hook configuration that enables the host to execute a set of local bash scripts from a runtime-resolved directory (JONGGRANG_HOOKS_DIR) at multiple agent lifecycle stages. The fragment itself provides no direct evidence of malware (no embedded payloads, credentials, obfuscation, or network calls), but it creates a powerful, event-driven local code execution pathway. The principal supply-chain risk is that the referenced hook directory and scripts must be fully trusted and protected from tampering; otherwise, arbitrary script execution could occur with high impact. Review the installation step and the contents of all referenced *.sh files to confirm they only perform intended safety/controls.
This module appears to be a legitimate authentication CLI wrapper, not an overt malware dropper. The most significant security concern is that it persistently stores raw authToken and refreshToken to local configuration via config.save with no visible protection/redaction in this module, and it also decodes JWT claims without signature verification before saving derived identity/expiry metadata. It additionally prints an externally provided sign-in URL to the terminal, which could be risky depending on how ui.cyan sanitizes output. Overall: elevated credential-management risk, low evidence of direct malicious functionality in this file.
The wrapper itself shows no explicit malicious payloads, but it contains a strong supply-chain/sabotage red flag: a hardcoded absolute path fallback that can cause initialization-time execution of code from a developer-specific local file when the intended dependency fails to load. This undermines deterministic, reproducible builds and can enable unintended or malicious substitution depending on the runtime environment and what exists at that path.