2 Top Cybersecurity Stocks to Buy in January

By Chris Neiger | January 22, 2026, 8:50 AM

Key Points

  • AI-enabled cyberattacks increased 72% in 2025.

  • Palo Alto has a very profitable security business and is expanding its footprint with its Cyberark purchase.

  • Microsoft is the largest cybersecurity company by revenue.

Security threats are constantly rising and getting more sophisticated, thanks to bad actors utilizing artificial intelligence (AI). AI-enabled cyberattacks increased an estimated 72% in 2025 and that's led to a rapid increase in the number of companies using AI to fight threats, with about two-thirds now doing so.

As security complexities increase, cybersecurity companies are more important than ever, driving what will become a $377 billion market by 2028, according to IDC. As companies rise to meet the increasing threats, investors have the potential to benefit from the companies leading the pack. Here's why Palo Alto Networks (NASDAQ: PANW) and Microsoft (NASDAQ: MSFT) are two of the best cybersecurity stocks to buy right now.

Where to invest $1,000 right now? Our analyst team just revealed what they believe are the 10 best stocks to buy right now. Continue »

A person looking at a screen with a lock on it.

Image source: Getty Images.

Palo Alto continues to expand its security footprint

Palo Alto recently made a very significant move to expand its security lead by purchasing Cyberark Software for $25 billion. The move helps the company, which was already a leader in cybersecurity, expand its footprint in identity and access control. The move, while pricey, means Palo Alto can offer a comprehensive cybersecurity solution to its clients, once the deal closes in the next few months.

But it's worth mentioning that Palo Alto would already be a top cybersecurity company even without the purchase. In the fiscal first quarter (which ended Oct. 31), the company's sales rose 16% to $2.5 billion, and its non-GAAP (adjusted) net income rose by 19% to $0.93 per share.

Palo Alto's business is highly profitable, with management reporting another quarter of an approximately 30% operating margin and guiding toward an adjusted free-cash-flow margin of 40% or higher by fiscal 2028. With the company's profitability already high and Palo Alto on the verge of closing its Cyberark deal to expand its security services, shareholders have a lot to look forward to.

Microsoft isn't just an AI and cloud company

Microsoft is best known for its Azure cloud computing business, its growing influence in artificial intelligence with Copilot, and its Microsoft 365 software offerings. That's important to note because the AI cloud market is estimated to reach $2 trillion globally by 2030.

But the company is also an important player in the cybersecurity space, with 1.5 million cybersecurity customers globally. Microsoft has an Azure Security service it offers to its cloud customers, allowing the company to benefit from both hosting clients' cloud networks and their need to secure them.

In 2025, Microsoft earned an estimated $37 billion in cybersecurity sales, which accounted for about 14% of its total sales, making it the largest cybersecurity company by revenue. If it continues to grow at a similar rate, Microsoft could reach $50 billion in security sales by 2030.

Microsoft is already delivering strong results for shareholders. Revenue climbed 18% year over year to $77.7 billion, in its fiscal first quarter of 2026, ended Sept. 30, 2025, while non-GAAP earnings surged 22% to $30.8 billion. By capitalizing on the rapid adoption of AI -- and the growing demand for security services that protect AI-driven cloud infrastructure -- Microsoft is well positioned to continue rewarding shareholders as it evolves into an increasingly key player in cybersecurity.

One quick note about cybersecurity stocks

All tech stocks can be volatile, but cybersecurity stocks sometimes fall on news of security breaches. No cybersecurity system is foolproof, so some breaches are inevitable. But as long as Microsoft and Palo Alto deal with any problems quickly and no lasting damage is done, investors shouldn't panic-sell when cyberattacks occur.

Should you buy stock in Palo Alto Networks right now?

Before you buy stock in Palo Alto Networks, consider this:

The Motley Fool Stock Advisor analyst team just identified what they believe are the 10 best stocks for investors to buy now… and Palo Alto Networks wasn’t one of them. The 10 stocks that made the cut could produce monster returns in the coming years.

Consider when Netflix made this list on December 17, 2004... if you invested $1,000 at the time of our recommendation, you’d have $460,340!* Or when Nvidia made this list on April 15, 2005... if you invested $1,000 at the time of our recommendation, you’d have $1,123,789!*

Now, it’s worth noting Stock Advisor’s total average return is 937% — a market-crushing outperformance compared to 194% for the S&P 500. Don't miss the latest top 10 list, available with Stock Advisor, and join an investing community built by individual investors for individual investors.

See the 10 stocks »

*Stock Advisor returns as of January 22, 2026.

Chris Neiger has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Microsoft. The Motley Fool recommends Palo Alto Networks and recommends the following options: long January 2026 $395 calls on Microsoft and short January 2026 $405 calls on Microsoft. The Motley Fool has a disclosure policy.

Latest News