Elaborate revenge fantasy or current day terrorism alegory? TOS had Klingons standing in for the Soviets.
Into Darkness has a homegrown terrorist attacking the Federation. I'm sure the terrorists of recent times and their leaders thought they were getting righteous revenge for something or other.