Hackers are hijacking government software to access sensitive servers, experts have warned.