Back to all lessons
Awareness Lessons
last week

APT29 Poisons Web Analytics Script in Watering Hole Attack on Mobile Users

Written by AI from the linked story. Not reviewed by an editor. How this works

APT29 compromised the Plerdy SEO Tracker, a third-party web analytics service, injecting malicious JavaScript that fingerprints and exploits iOS and Android visitors across any site using the script. This is a classic supply chain attack: by targeting one widely-used third-party component, attackers gained a multiplier effect, reaching potentially thousands of end users through trusted websites. The root cause is insufficient vetting, integrity verification, and monitoring of third-party scripts embedded in web properties. This matters because organisations often treat third-party analytics as low-risk, failing to apply the same security scrutiny they would to first-party code, creating a blind spot that sophisticated threat actors deliberately exploit.

Tactical Insight

Immediate actions

  • Audit all third-party JavaScript dependencies currently loaded on your web properties and remove or freeze any non-essential scripts.
  • Implement Subresource Integrity (SRI) hashes for every externally hosted script so browsers reject tampered versions.
  • Deploy a Content Security Policy (CSP) header that explicitly whitelists approved script sources and blocks inline execution.

Long-term improvements

  • Establish a formal third-party vendor risk assessment process that includes periodic security reviews of all analytics, marketing, and tracking scripts.
  • Mirror and self-host critical third-party scripts from your own controlled infrastructure rather than loading them directly from vendor CDNs.
  • Maintain a Software Bill of Materials (SBOM) for all web assets, including third-party dependencies, to enable rapid response when a supplier is compromised.

Detection measures

  • Configure real-time alerting on any unexpected changes to script files or new external domains appearing in Content Security Policy violation reports.
  • Monitor endpoint and mobile device telemetry for anomalous browser-based exploitation patterns, such as unexpected redirects or privilege escalation following web browsing.

Back this up with a control

All controls and vendors

Training helps people spot this. These controls make the attack fail even on the day someone does not.