My neighbor leaves their vehicle hoods open while on their rafting trips... he also uses live traps to catch and relocate the rats around his house. Otherwise pack rats will set up a nest in vehicles' engine area, destroying the wires and filling it with twigs and food.
An Arizona company [1] came up with a sort of poison that only targets rodents' reproductive organs: "ContraPest contains the ovotoxic chemical 4-vinylcyclohexene diepoxide (VCD), which is a known killer of oocytes in immature ovarian follicles. The rat version of ContraPest also contains triptolide, which the company reports has adverse reproductive effects on both males and females. The product has been successfully used to sterilize both male and female mice, rats, and dogs." [2]
As "Mr. Pack Rat" explains, it's better to understand the pack rat than to indiscriminately poison them, as rodent predators fall victim to secondary poisoning with standard city-rat poisons, which makes pack rat problem worse [3].
[0] https://www.mrpackrat.net/packrats.html#six