Web threats / Watering holes

Parrot TDS watering-hole kit

Parrot TDS is a traffic direction system that appends a landing script to the JavaScript files of compromised websites. When a visitor arrives from another site, the script asks a payload server for code and runs what comes back. We have matched it on 132 sites since 1 September.

Parrot TDS in numbers

Since 1 September, the first Parrot TDS match in our records, counted on 25 November 2026. How we count.

Sites with Parrot TDS code132
Sites with a match in the last 30 days105
Operator hosts our rules matched3
Sites running WordPress (captured since 25 September)97%

Appended to the site's own files

Parrot TDS lives inside JavaScript the site already serves. We have found it after the last line of a theme's navigation.js and after the end of a theme's own copy of jquery-3.2.1.min.js. Unit 42 describes the same placement: the compromised server adds the landing script to existing JavaScript files, as one line in early samples and as several lines since August 2022 (Unit 42).

The landing script

The script defines three helpers: HttpClient, which makes the request, and rand and token, which build a random token for each request. It asks the payload server for a script only when the visitor followed a link from another site, and runs the reply only when it carries the marker the script expects. Someone moving between pages of the site itself never triggers it.

Older builds name their guard variable ndsw and open with if(ndsw===undefined). Unit 42 groups Parrot TDS landing scripts by the keywords ndsw and ndsj, and payload scripts by ndsx. The newer builds we match give the guard variable a different name in each build and rename the keys of their string table, so the three helpers are what stays the same.

What the payload server sends

Unit 42 found payload scripts that add a script tag loading JavaScript from another address, some only for Windows visitors without a cookie from an earlier payload, and others that hook the page's links. Our captures arrived without a referrer from another site, so the landing script made no request and we hold no payload of our own.

What we see

MonthNew sites
September11
October82
November so far39

97% of the Parrot TDS sites captured since 25 September run WordPress.

Checking a site

Look through the JavaScript files the site serves, theme and plugin files and minified libraries included, for:

  • ndsw, ndsj or ndsx
  • functions named HttpClient, rand and token after the end of a library or theme script
  • a request to an unfamiliar host when you open the site from a link on another site, with the browser's network log recording

Replace every changed file with a clean copy, look for PHP files that are not part of WordPress, the theme or a plugin, and change the WordPress, hosting and database passwords.

Try the feed for 14 days.

Request a trial and we'll send you a live API key, with the same feed, removals and reasons a customer gets.