The novel opens in a world reduced to a grim struggle for existence after a plague of madness that afflicted individuals at random. Some two years previously, every government in the world was attacked by its own military machinery, which then self-destructed. All civilian air transport was similarly destroyed, along with major cities like San Francisco. After the initial meltdown, people began claiming to be "possessed". They would commit crimes of violence, but afterward they would claim to have had no control over their actions. This leads to superstitions about demonic possession, as well as a novel legal defense.
Chandler is an electronics engineer who is on trial for rape and murder. He claims to have been possessed while committing the crime, but nobody believes him because it took place in a pharmaceuticals plant. These places, along with hospitals and other vital facilities, are believed to have some kind of immunity to the plague. Saved by an apparent episode of possession of the jury in the trial, he is instead exiled from his community with a letter "H", for "Hoaxer", branded on his forehead.
He encounters a cult who use pain to ward off the possession. The members believe that the "flame spirits" cannot abide pain, but a young woman tells Chandler that she is sure the possessors are other human beings, and that one of them is a man she rejected. Soon afterwards the entire cult is wiped out and Chandler, in a state of almost constant possession, is made to bring their sacred text, a copy of The Prophet by Khalil Gibran to Hawaii. On the way he encounters people who, while not always possessed, do what their "execs" tell them for fear of the consequences of disobeying.
In Hawaii Chandler learns that the possessors are indeed people. They wear silver coronets which give them the power using a new technology. Based on what the novel calls "sub-millimeter microwaves" (now known as terahertz radiation), the technology allows people wearing the coronets to locate and take over the bodies of anyone on Earth. Chandler falls under the influence of Rosalie Pan, a former Broadway star who was kidnapped by her ex-lover and eventually allowed to become one of the execs herself. She tries to seduce him into joining her by giving him a taste of the feeling of power.
At the same time, the execs are building a new transmitter on the island of Kauai. While they can go anywhere on Earth with their power, their physical bodies must remain close to the original equipment. With the new equipment they will be able to leave Hawaii and roam at will. Chandler's expertise is needed and he is proposed for election to the elite. If not, once the job is done he will be eliminated. Chandler for his part is beginning to enjoy the benefits of his situation and is a willing helper on the project.
Matters come to a head when Rosalie's lover, who is also the leader of the execs, attempts revenge on Chandler, only to die of a heart attack due to his age and physical deterioration after years of vicarious living in the bodies of others. Chandler obtains his coronet, as well as another tuned to the new equipment, the only such one in existence. He disables the old equipment and uses the new coronet to wipe out the other execs, except for Rosalie. He causes them to commit suicide, one by one, until he is the only one on Earth who has the secret. He thinks that eventually he will stop using it, but decides to keep it, just for now...

Question: What was every government in the world attacked by?
Answer: its own military machinery
Alternative answer: Its own military machinery