Government investigators looking into the cyberattacks on Neiman Marcus Group and Target Corp. believe the malicious software used in the heists was specifically tailored to exploit vulnerabilities in each retailer's checkout systems.

The malware behind the two attacks is different, William Noonan, a top official in the Secret Service's cyber operations division, said Wednesday at a House Energy and Commerce subcommittee hearing in...