The Pennsylvania Attorney General's Office has opened an investigation into potential environmental crimes related to the Sunoco pipeline that leaked petroleum into household wells in Upper Makefield.