War crimes also included deliberate attacks on citizens and property of neutral states, such as the Japanese attack on Pearl Harbor. As the attack on Pearl Harbor happened while the U.S. and Japan were at peace and without a just cause for self-defense, the attack was declared by the Tokyo Trials to go beyond justification of military necessity and therefore constituted a war crime.
Also before anyone claims it’s not a war crime.