What Sectors Are Not Getting Hit by the Market Sell-Off?

Understand this faster with AI
By Matthew Benjamin – Mar 23, 2026 at 8:15AM ESTKey PointsEnergy stocks are up as rising oil and gas prices will boost revenue and profits.The AI build-out continues to power computer hardware and memory manufacturing stocks.Demand for cybersecurity products is rising as a result of geopolitical tensions.The S&P 500 index has fallen about 4.5% since the Middle East war started. And it continues to drop. As a result, most sectors of the S&P 500 are deep in the red for March (March 2 was the first trading day after the war began). But not all sectors are down. A few are solidly in the green this month. That begins with energy stocks. With the Strait of Hormuz effectively closed, prices of both crude oil and natural gas have spiked on world markets. The average price of a gallon of gasoline has soared by almost $1. That's all great news for energy companies and their shareholders. ExxonMobil (XOM +0.95%) is up 3.3% this month, and Chevron has climbed almost 8%. ConocoPhillips is up 11% for the month. Large refiners like Phillips 66, Valero Energy, and Marathon Petroleum are also up by double digits. The AI build-out is bolstering computer hardware and storage stocks But gains since the war broke out aren't limited to energy stocks. Several stocks in the computer hardware subsector have also posted strong gains in March. Sandisk (SNDK 8.11%) was the best-performing stock in the S&P 500 index last year, with an incredible 559% return. It's doing it again in 2026, up more than 210% year to date and 17% since the war started. The company makes flash storage devices that can retain data without a power source. ExpandNASDAQ: SNDKSandiskToday's Change(-8.11%) $-62.60Current Price$709.49Key Data PointsMarket Cap$105BDay's Range$698.60 - $777.0052wk Range$27.89 - $777.60Volume29KAvg Vol18MGross Margin34.81% Western Digital also makes data storage products, though it's focused on hard drives rather than flash memory. That stock soared last year, up a whopping 282%, and is also putting in a repeat performance in 2026, up 78% this year and 11% in March.
International Business Machines and Dell Technologies are also having a very good March. Add to that list Micron Technology, which has climbed more than 7% this month, also driven by soaring memory demand. It seems computer hardware stocks haven't been dragged down by the war and soaring oil prices because AI-driven demand for servers, storage, and peripheral equipment continues to outpace supply. For the moment, at least, that tailwind remains more powerful for this group of stocks than the headwinds of war-driven inflation and energy concerns. Cybersecurity stocks are gaining from ongoing geopolitical hostilities Finally, several stocks in the software infrastructure group have put in banner performances in March. Palantir Technologies, Palo Alto Networks, and CrowdStrike Holdings are each up more than 10% since the beginning of the Middle East conflict. It's no wonder, as the three companies are leaders in AI-driven security and data analytics, including cybersecurity. Sophisticated modern warfare is obviously going to drive demand for the products those companies offer. Image source: Getty Images. Oracle (ORCL 3.93%), also in that group, is up nearly 7% in March. Its stock is being rewarded by the company's big AI contract wins and a huge surge in cloud infrastructure revenue. If you look at a market heatmap like Finviz, those three sectors -- energy, computer hardware, and cybersecurity -- are basically the only real pockets of green in a giant sea of red since the war began, as soaring oil prices continue to weigh heavily on most other sectors and will probably continue to do so until crude retreats back to under $100 a barrel. ExpandNYSE: ORCLOracleToday's Change(-3.93%) $-6.11Current Price$149.41Key Data PointsMarket Cap$430BDay's Range$147.96 - $153.2552wk Range$118.86 - $345.72Volume18KAvg Vol27MGross Margin64.30%Dividend Yield1.34% Whether you should consider an investment in energy stocks depends, at least in part, on how long you expect the war to continue and oil prices to remain elevated. Demand for AI-infrastructure stocks looks to continue through 2026. And cybersecurity stocks could see ongoing demand as cyber warfare doesn't look to decrease any time soon.Read NextMar 21, 2026 •By Adam LevyCould Buying $10,000 of Sandisk Make You a Millionaire?Mar 19, 2026 •By David Jagielski, CPAUp Around 1,200% in the Past Year, How Much Higher Can Sandisk Stock Go?Mar 18, 2026 •By Harsh ChauhanCan Sandisk Become the Next Trillion-Dollar Stock?Mar 13, 2026 •By Adam SpataccoPrediction: This Under-the-Radar Artificial Intelligence (AI) Stock Could Be a Multibagger by the End of 2026Mar 4, 2026 •By Harsh ChauhanHow Buying Sandisk Today Could 10x Your Net WorthMar 2, 2026 •By Jeremy BowmanWhy Sandisk Stock Gained 10% in FebruaryAbout the AuthorMatthew Benjamin is a contributing Motley Fool stock market and investing analyst covering publicly-traded companies across all sectors. Prior to The Motley Fool, Matt was a senior markets expert at an investing newsletter in Baltimore, an editorial consultant to the World Bank and the International Monetary Fund (IMF), and an economics correspondent at Bloomberg News. He holds a B.A. from Bucknell University and an M.A. from New York University. Fun fact: Matt has met every Federal Reserve Chair from Paul Volcker through Jerome Powell.TMFMbenjamin68Stocks MentionedSandiskNASDAQ: SNDK$709.49(-8.11%)-$62.60OracleNYSE: ORCL$149.68(-3.75%)-$5.84ExxonMobilNYSE: XOM$159.66(+0.95%)+$1.50Micron TechnologyNASDAQ: MU$422.53(-4.89%)-$21.74*Average returns of all recommendations since inception. Cost basis and return based on previous market day close.
Tags
Source Information
Discussion
0 professional contributions
Sign in to join this professional discussion.
Be the first to add a constructive contribution.
