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 code | 132 |
|---|---|
| Sites with a match in the last 30 days | 105 |
| Operator hosts our rules matched | 3 |
| 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
| Month | New sites |
|---|---|
| September | 11 |
| October | 82 |
| November so far | 39 |
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,ndsjorndsx- functions named
HttpClient,randandtokenafter 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.