Pentagon lawyers believe that online whistleblower group WikiLeaks acted illegally in disclosing thousands of classified Afghanistan war reports and other material, and federal prosecutors are exploring possible criminal charges, officials familiar with the matter said.