We’re not “at war.”
If we’re “at war,” in a legally-recognized, international sense, then it is legal and proper for the other side to attack us on our home soil.
So far, all we’re doing is sending troops overseas, to fulfill a constantly re-defined invasion and occupation. Nobody we’ve invaded has attacked us.
“War” means it goes both ways.