Jim Cramer says buying Cisco (CSCO) is a good long-term way to play a cybersecurity sector that's gotten Wall Street's renewed attention in the wake of this month's WannaCry ransomware incident.

"Cisco is offering a soup-to-nuts approach that is not what the other guys are offering," Cramer said in his exclusive monthly conference call with members of his Action Alerts PLUS club for investors. "This is really taking dead aim at Palo Alto Networks  (PANW) ."

Cramer said that in addition to serving as a key cybersecurity player, Cisco boasts a "huge" amount of overseas cash that it will one day manage to repatriate to America. He added that the stock also currently offers about a 3.4% dividend yield, handily beating 10-year U.S. Treasury returns.

However, Cramer sees Cisco as a longer-term play, especially given that the stock recently traded near 52-week highs.

"I think that [CEO] Chuck Robbins is doing it and succeeding -- but it's not going to happen overnight," Cramer said. "I don't like to buy things after they just were at like a 52-week high, but I think Cisco is great longer term."

Want to join in on Jim's monthly conference calls? Click here for a free 14-day trial subscription to Action Alerts PLUS and hear all of this month's call, plus get e-mails before Jim makes any trade and enjoy lots of other exclusive material.

Editors' pick: Originally published May 19.

More from Stocks

Dow Futures Tank as Trade War Fears Grip Wall Street

Dow Futures Tank as Trade War Fears Grip Wall Street

Why GE's Stock Has Fallen 9% in the Last 30 Days

Why GE's Stock Has Fallen 9% in the Last 30 Days

5 Stock Picks Under $10 for Millennials

5 Stock Picks Under $10 for Millennials

3 Complicated Investing Strategies Millennials Love

3 Complicated Investing Strategies Millennials Love

Tyson Foods CEO: We Aren't Done Making Deals

Tyson Foods CEO: We Aren't Done Making Deals