Foiled terror plots linked to al Qaeda