BlackBerry Ltd. BB, -1.78% shares gained in late trading Monday after the company announced an expansion of its security-software gambit that includes a new partnership with Microsoft Corp. MSFT, -1.81% BlackBerry detailed plans for BlackBerry Secure, a software platform meant to better track and control employees' mobile usage and allow developers to build secure enterprise apps. The updates include a new partnership with Microsoft that will allow that company's cloud-software offerings, such as Office, to run within the BlackBerry framework and provide a unified experience for workers. BlackBerry Secure has also been integrated with Microsoft's Azure cloud platform, the companies announced. BlackBerry stock gained more than 5% in after-hours action following the announcements, after closing with a 1.8% decline at $12.72. Microsoft shares gained about 0.3% in late trading.