Cloaking is a detection-evasion technique that shows different content to security tools than it shows to a real user. A cloaked page may inspect browser fingerprints, IP reputation, language, timezone, JavaScript behavior, or other signals before deciding whether to reveal a malicious payload, a login form, or a harmless decoy.
It matters because many attacks are built to survive scanning. If a scanner, sandbox, or researcher visits the page, cloaking can hide phishing kits, malware downloaders, or fraud workflows and make the site appear benign. That reduces the chance of automated detection and slows analysis.
In practice, cloaking is used in phishing, malvertising, and drive-by download campaigns. Defenders respond with headless-browser analysis, traffic replay, telemetry from multiple locations, and inspection of post-click behavior rather than relying only on URL reputation or static page content.


