JavaScript analysis inspects JavaScript code found in email messages, HTML attachments, and linked web pages to identify potential malicious behavior or suspicious patterns. It uses specialized techniques to spot obfuscated scripts, malicious functions, and known attack strategies.
JavaScript analysis can help you detect:
Obfuscated code designed to hide malicious intent
DOM manipulation attempts that lead to phishing or data theft
Event handlers that trigger actions when content is viewed
Suspicious API calls like document.write() or eval() that generate malicious content
Encoded strings that decode to payloads during runtime
For example, attackers often use obfuscated JavaScript to redirect you to phishing sites or to download malware. JavaScript analysis can uncover these threats even when the code is intentionally hidden.