A tool made for tracking criminals and terrorists has potentially been used against politicians, dissidents and journalists