A toxic protein secreted by pathogenic bacteria.