The world’s largest Internet search company and the world’s most powerful electronic surveillance organization are teaming up in the name of cyber security. Under an agreement that is still being finalized, the National Security Agency would help Google analyze a major corporate espionage attack that the firm said originated in China and targeted its computer networks, according to cyber security experts familiar with the matter. The objective is to better defend Google — and its users — from future attack.