It is true that the carcasses of whales that wash up on shore are considered dangerous
Whether wildlife officials in a given region consider a dead beached whale a biohazard or not is local decision, but nevertheless experts agree that only trained professionals should go anywhere near a dead wild animal to prevent the spread of bacterial infection alone



