Thailand on Friday defended a controversial cybersecurity law approved this week, following an outcry from rights groups and internet users over privacy and surveillance concerns.