Cloudflare

Detecting Magecart-Style attacks with Page Shield

Feb 18, 2022Oliver Cookman
Detecting Magecart-Style attacks with Page Shield
SummaryAI, from the source post

This post details the technical implementation of Page Shield for detecting Magecart-style attacks. It explains how the system analyzes JavaScript Abstract Syntax Trees (ASTs) and data flow graphs to identify PII reads and exfiltration attempts. It also describes two ML models: one for 'clean' scripts and another for obfuscated scripts, differentiating between malicious and benign content. The post elaborates on techniques like analyzing data flow properties, identifying connected paths between PII reads and exfiltration calls, normalizing obfuscated content, and detecting arbitrary string transformations.

More from the Website Security & Threat Management trail