Dreamed that I was watching Star Trek: DIscovery and they had a DARKER, GRITTIER version of The Trouble with Tribbles where the sound the tribbles make acts as an outright dangerous narcotic and that's why the captain kept a sterile one around.
But when non-sterile ones get into the ship and crew and start multiplying everyone gets severe dependence (due to already being stressed from war conditions) and starts violently rebelling against attempts to get rid of them.