ios-chaos-monkey
Warn
Audited by Socket on Feb 19, 2026
1 alert found:
AnomalyAnomalyreferences/mem-timer-retain-cycle.md
LOWAnomalyLOW
references/mem-timer-retain-cycle.md
The code contains a critical memory-leak bug (retain cycle) but no signs of malicious behavior. The unsafe pattern is the target-based Timer API combined with storing the timer on the same object; it prevents deallocation and causes repeated leaks. Use the block-based timer with a weak capture or ensure deterministic invalidation (e.g., invalidate in viewWillDisappear/viewDidDisappear) to fix. This is a security/stability issue (high impact on memory) rather than malware.
Confidence: 90%Severity: 60%
Audit Metadata