What about this scenario?
A and B are in an alliance, but no treaty.
A wants to destroy C.
A is to the left of B, while C is to the right of B, putting B right between them.
A sends missiles and jets to omgwtfpwn C.
Does B's defenses attack A as they pass over B?