October 7th happened entirely on post-1967 occupied territory. The same territory the entire international community calls upon Israel to withdraw from every year since.
Under the Laws of Belligerent Occupation, every time the IDF fought back on that day, it was a war crime.