Located in Tokyo Bay, the newly built integrated resort and convention center “Edge of Ocean” is going to host an upcoming Summit Meeting. Prior to the Summit, an explosion went off at one of the building, killing and injuring many Public Security Bureau personnel performing inspection there, including Amuro Tōru and Kazami Yūya. A preliminary investigation found the fingerprint which matches the Mori Kogoro’s, and with other evidence purportedly located inside Kogoro’s computer, Kogoro is arrested. After a hopeless search for a lawyer who is willing to represent Kogoro in the trial, Ran, Kisaki Eri, and Conan encountered a freelance lawyer, Tachibana Kyōko, who offered to represent Kogoro in the case.
Meanwhile, the Office of the Attorney-General believes that the evidence incriminating Kogoro is sufficient to build the case, and Iwai Sayoko, the Attorney-General, instructed Kusakabe Makoto to prosecute Kogoro. At the same time, the police investigation of the case is ongoing, and it was discovered that the gas valve and pressurized cooker can be connected to the internet (Internet of Things (IoT)) and that the two was remotely accessed via Nor (resembling Tor) through Kogoro’s device to cause the explosion. On the day of the conference, people are experiencing strange cases of IoT devices malfunctioning, causing electrical short circuit and fire around Tokyo. At that time, Kogoro was being held in Tokyo Penitentiary, which means Kogoro could not have been the culprit in the bombing and the IoT attack, and the case against him was dropped.
On the date the unmanned Martian mission craft called “Hakuchō” is scheduled to land, Conan deducted the identity of the culprit of the bombing and IoT attack, the prosecutor Makoto Kusakabe. Kusakabe employed an assistant named Haba Fumikazu, who previously worked with and fall in love with Tachibana. During the investigation by Kusakabe, Haba discovered that the culprit that hacks into the system of NAZU (resembling NASA) are working in a game company. Haba was arrested for breaking into the game company and was presumed dead after the interrogation by Amuro, causing Kusakabe to exact revenge on the Public Security Bureau. Amuro then revealed that Haba’s death was faked to ensure that the public prosecutor will not employ the help of the assistant in the same manner as he did to Haba again.
However, Kusakabe already hacked into the system to change the projectile of the capsule launched from Hakuchō to crash to the Tokyo Metropolitan Police building, but he causes blackout at the building and initiates the IoT attack at the nearby vicinity to allow police personnel and other residents to be evacuated to the Edge of Ocean. Although Kusakabe relented and gave up the access code, it was almost too late, and Conan and Amuro employed help from Dr. Agasa, Haibara and the Detective Boys to detonate the bomb using a drone built by Dr. Agasa near the capsule in order for the capsule to fall into the harmless spot. With the point of impact being the casino tower at the Edge of Ocean, Amuro and Conan race against time and traffic to allow Conan to shoot the ball to deflect the capsule, and the capsule falls harmlessly into the water.