Case Library / Phishing / Council on Foreign Relations Watering-Hole Attack (IE Zero-Day, CVE-2012-4792)
Phishing Confirmed

Council on Foreign Relations Watering-Hole Attack (IE Zero-Day, CVE-2012-4792)

In late December 2012, attackers rigged the Council on Foreign Relations website to silently exploit an Internet Explorer zero-day and drop malware on the browsers of its policy-elite visitors.

Share:

Reviewed by the Social Engineering Examples team.

What Happened

Around late December 2012, the website of the Council on Foreign Relations (CFR), a prominent U.S. foreign-policy think tank, was compromised and used as a "watering hole." Instead of attacking targets directly, the intruders booby-trapped a site that CFR's high-value audience of diplomats, officials, and policy experts routinely visited. Malicious JavaScript injected into CFR.org silently exploited a previously unknown (zero-day) use-after-free flaw in Internet Explorer 6-8, tracked as CVE-2012-4792, to install malware on visitors' Windows computers via a drive-by download. Security vendor FireEye first reported the compromise on Dec 28, 2012, noting the malicious content had been live as early as Dec 21. AlienVault (Jaime Blasco) independently corroborated the analysis. Microsoft published Security Advisory 2794220 on Dec 29, 2012 confirming the IE 6-8 flaw, issued a stopgap "Fix it," and later shipped an out-of-band patch (MS13-008) on Jan 14, 2013. Multiple researchers and the Washington Free Beacon linked the operation to China-based espionage actors; that attribution is analytic and was not established in court. The incident is confirmed as real and documented by first-party vendor and Microsoft sources.

How the Attack Worked

The core deception was environmental, not a lure a person had to click. Because a trusted, authoritative site served the malicious code, visitors had no reason to be suspicious and no action was required beyond simply browsing with a vulnerable browser. The injected JavaScript performed selectivity checks before firing: it only served the exploit to browsers whose system language was set to U.S. English, Chinese (China or Taiwan), Japanese, Korean, or Russian, and it used a cookie so each visitor was exploited only once, reducing noise and the chance of detection. When conditions matched, the page loaded a Flash file that performed a heap-spray to reliably exploit the IE memory-corruption flaw, then fetched a disguised payload (an image-named file that was actually an encoded malware dropper) and installed a backdoor that beaconed to command-and-control infrastructure. Targeting a fully patched IE8 with a zero-day meant standard "keep your software updated" defenses offered no protection at the moment of attack.

The Lure & the Tell

The "lure" was the legitimacy of the CFR website itself: a respected institution the target audience trusted and visited routinely. There was no phishing email and nothing for the victim to notice; the exploit ran invisibly in the background. Tells were essentially undetectable to end users at the time, since the site was genuine and the browser was fully patched. Defenders' only signals were technical: unexpected Flash-loaded content, redirect/HTTP requests containing encoded memory addresses, or outbound beacons to unfamiliar command-and-control hosts.

Outcome

CFR removed the malicious code and notified members that the source of the drive-by had been cleaned up while an internal investigation continued. Microsoft released Advisory 2794220 (Dec 29, 2012), a temporary "Fix it" mitigation, and then an out-of-band security update, MS13-008, on Jan 14, 2013 to patch CVE-2012-4792. Security vendors deployed detections. The number of individuals actually compromised was not publicly quantified.

Why It Matters

This is a textbook watering-hole attack and a canonical case for security awareness: it shows that "only visit sites you trust" is not sufficient protection, because attackers deliberately compromise the trusted sites a specific community relies on. It also illustrates strategic target selection: rather than phishing individuals, the actors let a respected institution's own credibility deliver the malware to a curated audience of policy elites. The language-based filtering and once-per-visitor logic show how attackers narrow blast radius to their intended victims and evade detection. For defenders, it underscores the value of defense-in-depth (exploit mitigation like EMET, network egress monitoring, endpoint detection) since patching alone cannot stop a zero-day.

Defenses

Deploy layered browser and endpoint protections rather than relying on patching alone, since zero-days by definition have no patch at first: use exploit-mitigation tooling, keep browsers on supported/current versions (IE9-10 were unaffected here), and disable or sandbox risky plugins like Flash and Java. Monitor outbound network traffic for anomalous beacons and for the encoded/heap-spray patterns researchers described. Segment and least-privilege user endpoints so a compromised browser does not grant broad access. Organizations whose audiences are likely watering-hole targets should treat their own websites as attack surface: harden CMS/supply-chain components, monitor for unauthorized script injection, and enable rapid takedown and member notification. Users should apply vendor mitigations and updates promptly (Microsoft's Fix it, then MS13-008).

Sources
Attack Chain & Defense
The sequence the attacker ran
How it could have been stopped
1
Reconnaissance and target-audience profiling: Attackers likely researched which websites CFR's specific target community (diplomats, officials, policy and foreign-affairs professionals) routinely visited, using open-source methods such as membership rosters, published event calendars, and general audience profiling. This is consistent with how researchers, per Krebs on Security's contemporaneous coverage, framed CFR alongside earlier watering-hole hits on the National Democratic Institute, the Carter Center, and Radio Free Europe: attackers pick a site their intended victims already trust, not a site to trick them into visiting.
Countering Stage 1: Which sites a target community habitually visits is very hard to hide or control at the audience level; the realistic control is not preventing this reconnaissance but hardening the sites it points to, which is where Stage 2's countermeasure applies.
2
Website compromise: The attackers gained unauthorized access to CFR's web infrastructure and injected malicious JavaScript into CFR.org. The exact initial-access technique was not publicly disclosed by FireEye or Microsoft; it is typical in watering-hole operations for attackers to exploit weaknesses in a site's content-management system or third-party web components rather than the visitors themselves.
Countering Stage 2: Organizations whose sites serve a high-value, identifiable audience should treat their own web presence as attack surface: harden CMS and third-party supply-chain components, apply web-application firewalls, and monitor for unauthorized script injection so a compromise like CFR's is caught quickly rather than persisting for days.
3
Zero-day weaponization: The attackers obtained or developed a working exploit for a previously unknown use-after-free flaw in Internet Explorer 6-8 (later cataloged as CVE-2012-4792) and paired it with an Adobe Flash-based heap-spray technique to reliably trigger it on a fully patched IE8, per FireEye's technical writeup.
Countering Stage 3: Zero-days have no patch at the moment of use by definition, so patching alone cannot stop this stage; the practical mitigation is exploit-mitigation tooling (memory-protection technologies of the EMET era and successors) plus running current, supported browser versions, since Internet Explorer 9 and 10 were confirmed unaffected by this flaw.
4
Victim filtering and evasion logic: The injected script checked each visitor's browser system-language setting, serving the exploit only to U.S. English, Chinese (China or Taiwan), Japanese, Korean, or Russian configurations, and used a tracking cookie so each visitor was only ever served the exploit once, narrowing the target set and reducing the chance of detection, per FireEye's documented JavaScript logic.
Countering Stage 4: Language- and cookie-based victim filtering is designed to evade simple signature scanning; detection instead relies on behavioral and network monitoring for anomalous script logic, unusual redirect patterns, and single-use exploit delivery rather than matching known bad files.
5
Drive-by exploitation and payload delivery: For visitors who passed the filters, the page loaded a Flash file that performed the heap-spray to exploit the IE flaw, then downloaded a disguised, encoded payload that was decoded on the victim machine and installed as a backdoor, per FireEye's analysis.
Countering Stage 5: Disable or sandbox high-risk browser plugins such as Flash and Java, and run browsing sessions in a segmented, least-privilege environment so a successful drive-by exploit does not translate into full endpoint compromise.
6
Command-and-control and persistence: The installed backdoor beaconed out to attacker-controlled infrastructure and established persistence mechanisms on the compromised Windows host, per FireEye's malware analysis, giving the attackers a durable foothold beyond the initial drive-by.
Countering Stage 6: Monitor outbound network traffic for beacons to unfamiliar command-and-control domains and for endpoint indicators of unauthorized persistence mechanisms, giving defenders a chance to catch the backdoor even after the initial exploit succeeded.
7
Objective completion, espionage access: With backdoors in place on compromised machines belonging to policy, government, and foreign-affairs professionals, the operation's payout was ongoing intelligence access, consistent with researchers' and Threatpost's framing of watering-hole campaigns as vehicles for state-linked actors to spy on and exfiltrate data from a curated pool of high-value targets rather than for direct financial gain.
Countering Stage 7: Rapid incident response limits how much espionage access the attackers actually realize: CFR's takedown of the malicious code and member notification, combined with Microsoft's Fix it mitigation and the MS13-008 out-of-band patch, closed the window, though the number of individuals actually compromised in that window was never publicly quantified, underscoring that detection and response speed is the last practical control once a zero-day watering hole is live.
Quick Facts
Victim
Visitors to the Council on Foreign Relations (CFR.org) website, primarily policy, government, and foreign-affairs professionals, plus CFR itself as the compromised host.
Location
United States (CFR is headquartered in New York); visitors affected globally
Date
2012-12-21 to 2012-12-29 (malicious content live from ~Dec 21; publicly disclosed Dec 28-29, 2012)
Impact
Not disclosed / not quantified publicly; impact framed as espionage risk rather than direct financial loss.
Status
Confirmed
Case Type
Real-World Incident
Sector
Government & Public Sector, Nonprofit & NGO
Threat Actor
Nation-State / APT
Related

Related Cases

Target's 2013 Data Breach: A Phished HVAC Vendor as the Way In

A mass-phishing malware infection at Target's small HVAC contractor harvested vendor-portal credentials that attackers reused to pivot into Target's network…

Incident 2013Read →

RSA SecurID Breach: The "2011 Recruitment Plan" Spear-Phishing Email (2011)

A single spear-phishing email titled "2011 Recruitment Plan," with a booby-trapped Excel attachment, breached security giant RSA and led to…

Incident 2011Read →

Evaldas Rimasauskas defrauds Google and Facebook of ~$120M with fake "Quanta Computer" vendor invoices

A Lithuanian fraud ring impersonated a real Taiwanese hardware supplier, Quanta Computer, and used spoofed emails and forged invoices to…

Incident 2013Read →