The Betashares Global Cybersecurity ETF ( ASX: HACK ) is having a strong finish to the week.

While concerns over the security of existing encryption technology have sent the Bitcoin ( CRYPTO: BTC ) price tumbling, they have put a rocket under cybersecurity stocks.

But is the HACK ETF still worth buying for a long-term investment horizon?

Why are cybersecurity shares surging?

The latest rally follows a warning from US security agencies that recent advances in artificial intelligence (AI) could threaten some of the encryption technology currently in use.

Although authorities do not believe these developments pose an immediate and widespread threat, they are calling for an accelerated transition to encryption standards designed to withstand attacks from quantum computers.

I think this highlights how technological advances can create additional demand for cybersecurity services.

Businesses that have spent years investing in their digital infrastructure could now face another major investment cycle to ensure that infrastructure remains secure.

And several of the HACK ETF's largest holdings look well placed to benefit.

Investing in the industry's leaders

One company that stands out to me is Cloudflare Inc ( NYSE: NET ), which accounted for 4.4% of the fund's portfolio on 3 December.

Cloudflare has been investing in post-quantum encryption for years and revealed this week that 73% of human connections to its network already use this technology.

It has also brought forward its target for making its entire product suite quantum-resistant from 2029 to 2027.

While Cloudflare is making these encryption upgrades available without additional charges, I believe its early investment could give it a competitive advantage when businesses are deciding which providers to trust with their digital infrastructure.

Another holding I am positive on is CrowdStrike Holdings Inc ( NASDAQ: CRWD ).

The cybersecurity giant recently revealed that its annual recurring revenue (ARR) increased by 27% to US$6.26 billion during the third quarter of FY27.

Even if growth slows to 15% annually over the next three years, CrowdStrike could be approaching US$9.5 billion in annual recurring revenue before factoring in its proposed acquisition of Zscaler Inc ( NASDAQ: ZS ).

Should I buy the HACK ETF?

I continue to rate the HACK ETF as a strong buy-and-hold investment.

What I like about owning a portfolio of cybersecurity companies is that I don't need to identify which business will ultimately develop the best technology to address emerging threats.

However, many of these companies command premium valuations, and this week's gains will have made them more expensive. The fund also has relatively high annual management costs of 0.67%.

For these reasons, I would be more inclined to build a position gradually than chase the rally.

I suspect businesses will be spending a much greater proportion of their technology budgets on cybersecurity a decade from now.

And with new technologies creating new security challenges, I believe the growth opportunities available to the companies held by the HACK ETF could continue expanding for many years.

I would be happy to buy its units and hold them for the next decade.

Wondering where to invest $1,000 right now?

When investing expert Scott Phillips has a stock tip, it can pay to listen. After all, the flagship Motley Fool Share Advisor newsletter he has run for over ten years has provided thousands of paying members with stock picks that have doubled, tripled or even more.*

Scott just revealed what he believes could be the 'five best ASX stocks' for investors to buy right now. We believe these stocks are trading at attractive prices and Scott thinks they could be great buys right now…

* Returns as of 6 March 2025

Down 19% in a month: Why Monash IVF's bad month just got worse

5 ASX ETFs to buy and hold for 5 years

Stop what you're doing and buy these ASX ETFs

Why experts should be buying these ASX ETFs

5 excellent ASX ETFs for beginner investors in 2027

Motley Fool contributor Grace Alvino has no position in any of the stocks mentioned. The Motley Fool Australia’s parent company Motley Fool Holdings Inc. has positions in and has recommended Bitcoin, Cloudflare, CrowdStrike, and Zscaler. The Motley Fool Australia has positions in and has recommended Bitcoin. The Motley Fool Australia has recommended CrowdStrike. The Motley Fool has a disclosure policy . This article contains general investment advice only (under AFSL 400691).