Costa Rica's government said on Friday that its official Youtube account had suffered a cyber attack, adding in a statement that it was working to regain access.