disk-cleaner

Warn

Audited by Socket on Sep 4, 2026

2 alerts found:

Anomalyx2
AnomalyLOW
diskcleaner/optimization/delete.py

This module is a destructive filesystem deletion utility (sync/async) that takes a list of `Path` objects and deletes files/directories via `unlink`/`rmtree` (or `send2trash`). There are no clear signs of covert malware (no networking, credential access, persistence, or obfuscation), but it can enable sabotage if untrusted input reaches `files` or if there are insufficient path-safety checks elsewhere. The `DELETE_SMART` strategy appears incomplete in the shown fragment, and async result accounting seems buggy, but the destructive sinks are real.

Confidence: 63%Severity: 68%
AnomalyLOW
diskcleaner/core/process_manager.py

No direct evidence of covert malware (exfiltration, credential theft, persistence, network activity, or obfuscated payload execution) is present in this fragment. The primary security concern is operational risk: when auto_terminate=True, the module can force-kill processes (kill -9 / taskkill /F) associated with file locks determined from caller-supplied paths, using heuristic parsing of external command output. This can cause denial-of-service/disruption if file selection or upstream gating is weak. Confidence is moderate due to snippet truncation and reliance on external tool output/availability.

Confidence: 62%Severity: 52%
Audit Metadata
Analyzed At
Sep 4, 2026, 01:28 PM
Package URL
pkg:socket/skills-sh/open-agent-power%2Foh-my-disk-cleaner%2Fdisk-cleaner%2F@3aef3c326985bb9b7d3104318fd8ab63b541bf05b95528fb4cfcdef4124572be
Security Audit — socket — disk-cleaner