How can I make some attributes of the File resource private?

Maybe you can make use of privateAttributes? API calls configuration | Strapi Documentation