The environment watchdog had more than 4,000 of its digital files stolen and released on the internet by hackers.