Granted you can build certain improvements to help your defense, but really there should be an option to allow me to spend cash during an invation to help boost my defenses, even if it is a tradeoff where some buildings might be destroyed etc just like the invasion techs.
Right now I feel like the attacker has a huge advantage.