WASHINGTON—The FBI has opened an investigation into who disclosed information about a classified U.S. cyberattack program aimed at Iran's nuclear facilities, according to two people familiar with the probe.

The investigation follows publication last week of details of the cyber-sabotage program, including the use of a computer worm called Stuxnet, which Iran has acknowledged it found in its computers.

The...