NZ Herald
  • Home
  • Latest news
  • Herald NOW
  • Video
  • New Zealand
  • Sport
  • World
  • Business
  • Entertainment
  • Podcasts
  • Quizzes
  • Opinion
  • Lifestyle
  • Travel
  • Viva
  • Weather

Subscriptions

  • Herald Premium
  • Viva Premium
  • The Listener
  • BusinessDesk

Sections

  • Latest news
  • New Zealand
    • All New Zealand
    • Crime
    • Politics
    • Education
    • Open Justice
    • Scam Update
  • Herald NOW
  • On The Up
  • World
    • All World
    • Australia
    • Asia
    • UK
    • United States
    • Middle East
    • Europe
    • Pacific
  • Business
    • All Business
    • MarketsSharesCurrencyCommoditiesStock TakesCrypto
    • Markets with Madison
    • Media Insider
    • Business analysis
    • Personal financeKiwiSaverInterest ratesTaxInvestment
    • EconomyInflationGDPOfficial cash rateEmployment
    • Small business
    • Business reportsMood of the BoardroomProject AucklandSustainable business and financeCapital markets reportAgribusiness reportInfrastructure reportDynamic business
    • Deloitte Top 200 Awards
    • CompaniesAged CareAgribusinessAirlinesBanking and financeConstructionEnergyFreight and logisticsHealthcareManufacturingMedia and MarketingRetailTelecommunicationsTourism
  • Opinion
    • All Opinion
    • Analysis
    • Editorials
    • Business analysis
    • Premium opinion
    • Letters to the editor
  • Politics
  • Sport
    • All Sport
    • OlympicsParalympics
    • RugbySuper RugbyNPCAll BlacksBlack FernsRugby sevensSchool rugby
    • CricketBlack CapsWhite Ferns
    • Racing
    • NetballSilver Ferns
    • LeagueWarriorsNRL
    • FootballWellington PhoenixAuckland FCAll WhitesFootball FernsEnglish Premier League
    • GolfNZ Open
    • MotorsportFormula 1
    • Boxing
    • UFC
    • BasketballNBABreakersTall BlacksTall Ferns
    • Tennis
    • Cycling
    • Athletics
    • SailingAmerica's CupSailGP
    • Rowing
  • Lifestyle
    • All Lifestyle
    • Viva - Food, fashion & beauty
    • Society Insider
    • Royals
    • Sex & relationships
    • Food & drinkRecipesRecipe collectionsRestaurant reviewsRestaurant bookings
    • Health & wellbeing
    • Fashion & beauty
    • Pets & animals
    • The Selection - Shop the trendsShop fashionShop beautyShop entertainmentShop giftsShop home & living
    • Milford's Investing Place
  • Entertainment
    • All Entertainment
    • TV
    • MoviesMovie reviews
    • MusicMusic reviews
    • BooksBook reviews
    • Culture
    • ReviewsBook reviewsMovie reviewsMusic reviewsRestaurant reviews
  • Travel
    • All Travel
    • News
    • New ZealandNorthlandAucklandWellingtonCanterburyOtago / QueenstownNelson-TasmanBest NZ beaches
    • International travelAustraliaPacific IslandsEuropeUKUSAAfricaAsia
    • Rail holidays
    • Cruise holidays
    • Ski holidays
    • Luxury travel
    • Adventure travel
  • Kāhu Māori news
  • Environment
    • All Environment
    • Our Green Future
  • Talanoa Pacific news
  • Property
    • All Property
    • Property Insider
    • Interest rates tracker
    • Residential property listings
    • Commercial property listings
  • Health
  • Technology
    • All Technology
    • AI
    • Social media
  • Rural
    • All Rural
    • Dairy farming
    • Sheep & beef farming
    • Horticulture
    • Animal health
    • Rural business
    • Rural life
    • Rural technology
    • Opinion
    • Audio & podcasts
  • Weather forecasts
    • All Weather forecasts
    • Kaitaia
    • Whangārei
    • Dargaville
    • Auckland
    • Thames
    • Tauranga
    • Hamilton
    • Whakatāne
    • Rotorua
    • Tokoroa
    • Te Kuiti
    • Taumaranui
    • Taupō
    • Gisborne
    • New Plymouth
    • Napier
    • Hastings
    • Dannevirke
    • Whanganui
    • Palmerston North
    • Levin
    • Paraparaumu
    • Masterton
    • Wellington
    • Motueka
    • Nelson
    • Blenheim
    • Westport
    • Reefton
    • Kaikōura
    • Greymouth
    • Hokitika
    • Christchurch
    • Ashburton
    • Timaru
    • Wānaka
    • Oamaru
    • Queenstown
    • Dunedin
    • Gore
    • Invercargill
  • Meet the journalists
  • Promotions & competitions
  • OneRoof property listings
  • Driven car news

Puzzles & Quizzes

  • Puzzles
    • All Puzzles
    • Sudoku
    • Code Cracker
    • Crosswords
    • Cryptic crossword
    • Wordsearch
  • Quizzes
    • All Quizzes
    • Morning quiz
    • Afternoon quiz
    • Sports quiz

Regions

  • Northland
    • All Northland
    • Far North
    • Kaitaia
    • Kerikeri
    • Kaikohe
    • Bay of Islands
    • Whangarei
    • Dargaville
    • Kaipara
    • Mangawhai
  • Auckland
  • Waikato
    • All Waikato
    • Hamilton
    • Coromandel & Hauraki
    • Matamata & Piako
    • Cambridge
    • Te Awamutu
    • Tokoroa & South Waikato
    • Taupō & Tūrangi
  • Bay of Plenty
    • All Bay of Plenty
    • Katikati
    • Tauranga
    • Mount Maunganui
    • Pāpāmoa
    • Te Puke
    • Whakatāne
  • Rotorua
  • Hawke's Bay
    • All Hawke's Bay
    • Napier
    • Hastings
    • Havelock North
    • Central Hawke's Bay
    • Wairoa
  • Taranaki
    • All Taranaki
    • Stratford
    • New Plymouth
    • Hāwera
  • Manawatū - Whanganui
    • All Manawatū - Whanganui
    • Whanganui
    • Palmerston North
    • Manawatū
    • Tararua
    • Horowhenua
  • Wellington
    • All Wellington
    • Kapiti
    • Wairarapa
    • Upper Hutt
    • Lower Hutt
  • Nelson & Tasman
    • All Nelson & Tasman
    • Motueka
    • Nelson
    • Tasman
  • Marlborough
  • West Coast
  • Canterbury
    • All Canterbury
    • Kaikōura
    • Christchurch
    • Ashburton
    • Timaru
  • Otago
    • All Otago
    • Oamaru
    • Dunedin
    • Balclutha
    • Alexandra
    • Queenstown
    • Wanaka
  • Southland
    • All Southland
    • Invercargill
    • Gore
    • Stewart Island
  • Gisborne

Media

  • Video
    • All Video
    • NZ news video
    • Herald NOW
    • Business news video
    • Politics news video
    • Sport video
    • World news video
    • Lifestyle video
    • Entertainment video
    • Travel video
    • Markets with Madison
    • Kea Kids news
  • Podcasts
    • All Podcasts
    • The Front Page
    • On the Tiles
    • Ask me Anything
    • The Little Things
  • Cartoons
  • Photo galleries
  • Today's Paper - E-editions
  • Photo sales
  • Classifieds

NZME Network

  • Advertise with NZME
  • OneRoof
  • Driven Car Guide
  • BusinessDesk
  • Newstalk ZB
  • Sunlive
  • ZM
  • The Hits
  • Coast
  • Radio Hauraki
  • The Alternative Commentary Collective
  • Gold
  • Flava
  • iHeart Radio
  • Hokonui
  • Radio Wanaka
  • iHeartCountry New Zealand
  • Restaurant Hub
  • NZME Events

SubscribeSign In
Advertisement
Advertise with NZME.
Home / New Zealand

Porirua City Council and Whangarei District Council websites cryptojacked in international cyber attack

By Chris Knox & Melissa Nightingale
NZ Herald·
14 Feb, 2018 12:41 AM4 mins to read

Subscribe to listen

Access to Herald Premium articles require a Premium subscription. Subscribe now to listen.
Already a subscriber?  Sign in here

Listening to articles is free for open-access content—explore other articles or learn more about text-to-speech.
‌
Save

    Share this article

Hackers hit more than 4000 websites around the world, injecting a crypto mining code into scripts being used on their sites. Photo / 123RF

Hackers hit more than 4000 websites around the world, injecting a crypto mining code into scripts being used on their sites. Photo / 123RF

At least two council websites fell victim to cryptojackers last weekend without anybody realising, leaving visitors to the sites unwittingly helping hackers mine for cryptocurrency.

The Porirua City Council and Whangarei District Council are among several thousand sites internationally that were caught up in what Netsafe has called a "benign" attack.

Porirua City Council's chief information officer Steve McIntosh said the website itself was not compromised. But anyone visiting the site during the attack downloaded malicious code without realising it.

On Sunday, 4275 websites, including the US Courts site and the UK's Information Commissioner's Office site were running a script that had been altered to add a Coinhive crypto miner to any page it was loaded into.

"People who visited that website over the weekend, they would have seen their CPU, the brains of their computers, spike up to an enormous amount of activity suddenly," said Netsafe's director of technology Sean Lyons.

Advertisement
Advertise with NZME.
Advertisement
Advertise with NZME.

Hey @texthelp you've been compromised, you need to address this ASAP. Their site also has the crypto miner running: pic.twitter.com/fl0U9ssZRr

— Scott Helme (@Scott_Helme) February 11, 2018

"They were being used to mine cryptocurrency without their knowledge, without their host's knowledge."

The practice is called "cryptojacking" and is when hackers use people's computers to "build small parts of cryptocurrency" such as Bitcoin.

The hack was "at the benign end of what could happen".

Advertisement
Advertise with NZME.

"What people are doing is they're using your processing power, they're using your computer, albeit for a short space of time, as part of a giant hive of computers to help them generate money."

Visitors to the Porirua City Council website on Sunday may have noticed their devices were running slower as they mined for cryptocurrency, similar to Bitcoin. Photo / 123RF
Visitors to the Porirua City Council website on Sunday may have noticed their devices were running slower as they mined for cryptocurrency, similar to Bitcoin. Photo / 123RF

Affected people would discover their devices were running "massively slow" while they were on the site.

"Often people wouldn't notice. People would just say 'I wonder why my fans have started running' or 'I wonder why my computer's slowed down'."

In theory if they stayed on the site long enough their CPU could overheat and cause physical damage to the computer, but that was unlikely, he said.

After being contacted by the Herald, a council spokeswoman said on Tuesday that as far as they were aware, the website had not been cryptojacked.

But screenshots show the site was still running the compromised script yesterday, a text-to-speech accessibility script called BrowseAloud by TextHelp.com. Security researcher Scott Helme posted on Twitter, saying it appeared the script was altered between about 3am and 1.20pm on Sunday (GMT).

The script was no longer on the council site this morning.

It seems like the @texthelp script file was modified between Sun, 11 Feb 2018 02:58:04 GMT and Sun, 11 Feb 2018 13:21:56 GMT according to the @internetarchive:https://t.co/jwKLA6mq7Nhttps://t.co/ZHiUJXBpxC

— Scott Helme (@Scott_Helme) February 11, 2018

"Our website was not compromised in any way," McIntosh said in a statement.

"We were using the third party plugin BrowseAloud to enable people with sight impairments to 'read' our site. BrowseAloud converts website text to audio. Customers who used this plugin load it directly from the Browsealoud website not the Porirua City Council website."

The Whangarei District Council, which is still running the script, has been contacted for comment.

Advertisement
Advertise with NZME.

Lyons said this type of hack was sometimes referred to as a "drive-by exploit", when visitors to the site went there for something else but ended up being harmed by something else in the process.

"There are ways to stop these kinds of exploits but it does take time and it does take resource to do that, so sometimes we know when things do slip through ... you find yourself in situations where you put yourselves and the people who use your website potentially in harm's way."

If websites had "holes" and vulnerabilities that allowed such things to happen, then "the world's your oyster as far as the hacker's concerned".

Screenshots show the affected ba.js script still being used on the Porirua City Council website on Tuesday. Image / Chris Knox
Screenshots show the affected ba.js script still being used on the Porirua City Council website on Tuesday. Image / Chris Knox

"They could be at that point trying to put similar software on your computer that causes a chain reaction across the internet."

Hackers could potentially dig for sensitive details including names, passwords, logins, emails, or, on the more serious end, driver's licence details, passport numbers, and bank details.

Anyone using their banking details on the council website was not at risk from the vulnerability, though, as the parts of the site used for payments were hosted elsewhere.

Advertisement
Advertise with NZME.

Lyons said people managing public websites should run firewalls and run systems on the servers, and these would stop 99 per cent of attacks.

In a statement released on Sunday, the third party provider Texthelp confirmed their BrowseAloud script had been compromised in a cyber attack.

"The attacker added malicious code to the file to use the browser CPU in an attempt to illegally generate cryptocurrency. This was a criminal act," said chief technology officer Martin McKay in the statement.

"Texthelp is working with the National Crime Agency and The National Cyber Security Centre to pursue the investigation further."

Save

    Share this article

Latest from New Zealand

New Zealand

Afternoon quiz: What type of star is the sun?

19 Jun 03:00 AM
New Zealand

Sir Peter Jackson seeks consent to create museum in Shelly Bay

19 Jun 02:52 AM
New Zealand|crime

'Serious and violent': Six injured in brawl after burnout confrontation

19 Jun 02:50 AM

Jono and Ben brew up a tea-fuelled adventure in Sri Lanka

sponsored
Advertisement
Advertise with NZME.

Latest from New Zealand

Afternoon quiz: What type of star is the sun?

Afternoon quiz: What type of star is the sun?

19 Jun 03:00 AM

Test your knowledge with the Herald's afternoon quiz.

Sir Peter Jackson seeks consent to create museum in Shelly Bay

Sir Peter Jackson seeks consent to create museum in Shelly Bay

19 Jun 02:52 AM
'Serious and violent': Six injured in brawl after burnout confrontation

'Serious and violent': Six injured in brawl after burnout confrontation

19 Jun 02:50 AM
First responder accused of exporting, possessing child sex abuse material

First responder accused of exporting, possessing child sex abuse material

19 Jun 02:50 AM
Help for those helping hardest-hit
sponsored

Help for those helping hardest-hit

NZ Herald
  • About NZ Herald
  • Meet the journalists
  • Newsletters
  • Classifieds
  • Help & support
  • Contact us
  • House rules
  • Privacy Policy
  • Terms of use
  • Competition terms & conditions
  • Our use of AI
Subscriber Services
  • NZ Herald e-editions
  • Daily puzzles & quizzes
  • Manage your digital subscription
  • Manage your print subscription
  • Subscribe to the NZ Herald newspaper
  • Subscribe to Herald Premium
  • Gift a subscription
  • Subscriber FAQs
  • Subscription terms & conditions
  • Promotions and subscriber benefits
NZME Network
  • The New Zealand Herald
  • The Northland Age
  • The Northern Advocate
  • Waikato Herald
  • Bay of Plenty Times
  • Rotorua Daily Post
  • Hawke's Bay Today
  • Whanganui Chronicle
  • Viva
  • NZ Listener
  • Newstalk ZB
  • BusinessDesk
  • OneRoof
  • Driven Car Guide
  • iHeart Radio
  • Restaurant Hub
NZME
  • About NZME
  • NZME careers
  • Advertise with NZME
  • Digital self-service advertising
  • Book your classified ad
  • Photo sales
  • NZME Events
  • © Copyright 2025 NZME Publishing Limited
TOP