It is the ultimate bunker portfolio.

Amid the market tumult, a handful of stocks have seen their share prices ratchet up to record highs in recent weeks. And many of them are connected by a curious, if disconcerting, thread: Between them, they provide an investor with essentials for any respectable fallout shelter—makers of bottled water, canned goods, dehydrated broth, gas masks and auxiliary generators.

A...