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 price tumbling, they have put a rocket under cybersecurity stocks.
But is the HACK ETF still worth buying with a long-term investment horizon in mind?

Image source: Getty Images
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.
Foolish takeaway
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.