In ShStudio there is an option to change this, as seen in the image below.
If you want to know how to do it manually yourself in csv, to find the column just look at monsters that are attackable only by one faction. A few examples would be KI Elemental Mobs or Relic Altars.