The 4th Geneva Convention affords protection to civilians, including in occupied territory.
Article 33: “No protected person may be punished for an offence he or she has not personally committed. Collective penalties and likewise all measures of intimidation or of terrorism are prohibited.
Pillage is prohibited.
Reprisals against protected persons and their property are prohibited."