BlackBerry reported a surprise quarterly profit due to a resilient demand for cyber security services amid rising online threats. Despite a decline in IT spending, cyber security-related expenditure remains stable as businesses and governments combat hackers. Large data breaches by casino giants like MGM Resorts and Caesars Entertainment have prompted businesses to prioritize cyber security.