What is it called to hold information from those who aren't supposed to know

The act of holding information from those who aren't supposed to know is commonly referred to as "keeping a secret" or "maintaining confidentiality".

It is called keeping a secret or maintaining confidentiality.