According to the U.S. State Department website, Israel and Syria are in a de jure state of war, so technically at least, Israel can attack Syria without fear of legally being considered an aggressor.