Soyuz crafts contain a survival kit that includes a handgun, but it's not easily accessible until landing.
https://spectrum.ieee.org/tech-talk/aerospace/space-flight/h...
Reply on news.ycombinator.com