meta-ads
Warn
Audited by Socket on Sep 2, 2026
1 alert found:
AnomalyAnomalyscripts/campaign.mjs
LOWAnomalyLOW
scripts/campaign.mjs
The module appears to be a legitimate Meta Ads management CLI (create/replace paused ads) and does not contain classic malware indicators like eval/Function, shelling out, or covert network exfiltration to attacker domains. The primary security risks are (1) attacker-controlled config can cause local file reading from an arbitrary image_dir and uploading those files to the Meta API (data exfiltration via legitimate endpoint), (2) dynamic RegExp creation from config patterns/flags can lead to ReDoS, and (3) --replace-ads can delete existing ads (destructive impact) if misused. If the config and CLI args are trusted, risk is lower; otherwise, treat as high-impact automation.
Confidence: 68%Severity: 62%
Audit Metadata