macos-cleaner
Audited by Socket on Oct 16, 2026
6 alerts found:
Anomalyx5Security该片段揭示了一个真实的安全策略缺陷:`docker rmi $(docker images -q)` 可通过表面上的逐对象参数形式绕过 category-wide 排除规则,导致潜在的全量 Docker 镜像删除操作被错误放行。应对命令替换和参数展开进行语义分析,并在无法证明对象集合受限时按 category-wide 处理。未发现恶意软件行为;由于未提供检查器实现代码,具体可利用性和修复位置仍需进一步确认。
该内容是一个计划删除全部本地 Docker 镜像的清理命令。它具有较高的操作性数据丢失风险,可能破坏本地构建缓存和开发环境,但没有证据表明存在恶意行为、数据窃取或供应链攻击。
The fragment is a readable, purpose-specific macOS cleanup command with no evident malware or data-exfiltration behavior. Its main risk is intentional destructive deletion of a hardcoded application container, combined with potentially incorrect tilde handling and lack of input validation or confirmation. It should be reviewed and tested with a non-destructive listing before execution.
No malware or supply-chain attack is evident because the input contains no executable implementation and no network, credential, persistence, or code-injection behavior. If executed, the proposed commands are destructive maintenance operations and should require explicit authorization, backups, and confirmation of targets.
The fragment is not executable code, but it documents a highly dangerous command that would delete the user's macOS Keychains directory and stored credentials if run. The behavior is destructive rather than demonstrably malware, but it should not be executed without a verified recovery procedure and explicit authorization.
The content documents an explicitly destructive cleanup command targeting an npm cache directory. It presents a security and operational risk because execution may delete the target and the quoting may cause the command to address the wrong path or fail. No malware indicators are present in the supplied text; the main concern is irreversible or unintended filesystem deletion and an unverified size claim.