During the post-Kargil War period, Heena Rehman, Azmeri Haque Badhon, a Bangladeshi woman rumored to be working for ISI, is killed by Bangladeshi defence minister Mirza at a party held at his house, after Mirza receives some information over the phone.
In India, Krishna "KM" Mehra, Tabu, an operative at the [RAW] is devastated to learn of Heena's death because she used to be KM's lover for a brief time, and Heena was in fact working for RAW and she attempted to kill Mirza for RAW. KM's boss Jeev, Ashish Vidhyarthi, informs her that there is a mole in RAW who leaked the information leading to Heena's death. KM is assigned to track down this mole selling India's defense secrets. KM establishes that RAW employee Ravi, Ali Fazal, whose lavish lifestyle does not match his income, must be the mole and suspects his wife Charu, Wamiqa Gabbi, to be his partner in delivering secrets. KM and Jeev obtain permission to have Ravi's house electronically bugged. After surveillance, they discover that Ravi is working for the CIA at his money-hungry mother's insistence, and that Charu is innocent.
In the meantime, Jeev discovers that Heena's death was caused not just by Ravi leaking information to the CIA (who in turn leaked it to Mirza), but because the Minister of Home Affairs had to reveal that information to CIA to prevent the USA from cancelling its nuclear deal with India. Despite being appalled that his boss let one of his assets die for keeping the nuclear deal, Jeev decides to keep this a secret to avoid further complications.
Meanwhile Ravi discovers the cameras in his house and tries to flee along with his family. Charu is appalled to discover that Ravi is a double agent and refuses to accompany him and refuses to let him take away her son. Ravi's mother shoots Charu in the process, but Charu survives as KM's team reaches there on time and gets her to the hospital. When Charu recovers, she learns that Ravi has taken their son with him and, along with his mother, has sought refuge in the US. Charu begs KM to get her son back for her. KM trains Charu and sends her to the US. Charu discovers Ravi, his mother, and her son, and starts to blend back into the family and make Ravi and his mother believe that she just wants to be with them.
In the past, KM finds himself getting drawn to Heena but distances himself after discovering her true identity as a double agent, working for ISI while working for RAW. When confronted by KM, Heena says she joined with ISI only to extract information for RAW. KM doesn't believe her and feels she betrayed KM's love and trust. To prove her love, Heena accepts a suicide mission from Jeev to kill Brigadier Mirza, the Bangladeshi defence minister. But Ravi reveals it to the CIA and CIA reveals it to Mirza. Heena gets killed by Mirza after he finds out there was poison in the perfume bottle she gifted him.
Ravi and his family, who are now living poor as refugees in the U.S. state of South Dakota, are given the opportunity by KM to return to India as heroes if they kill Brigadier Mirza. While Mirza is on a friendly visit to Ravi's home, Ravi, Charu, and Ravi's mother attempt to poison and kill him. But he senses a ploy and kills Ravi's mother. An angry Ravi hits Mirza's head against the wall and renders him unconscious. KM coerces the CIA's undercover psychiatric doctor who was acting as Ravi's handler, and Mirza's death is staged as an accidental death from a head injury caused by slipping in the bathtub of his hotel. Ravi and family are deported to India and begin anew. At Charu's advice, KM calls her estranged teenage son to reveal the reason for her divorce from his father – because she is a lesbian.