More firms are using Slack and Teams for interoffice communication. But these platforms may have some gaps that make them a “gold mine” for hackers and cyberattacks.