Listen to this Post

Introduction
Microsoft Teams is a critical collaboration tool for modern workplaces, but its featuresālike Followed Threadsāalso have cybersecurity and efficiency implications. Understanding these functionalities can enhance productivity while maintaining secure communication practices.
Learning Objectives
- Learn how to use Followed Threads to track critical conversations securely.
- Discover PowerShell commands to audit Teams activity for compliance.
- Implement security best practices for Microsoft Teams collaboration.
You Should Know
1. Tracking Followed Threads for Compliance
PowerShell Command:
Get-CsTeamsUserActivity -UserPrincipalName "[email protected]" | Select-Object LastActivityDate, FollowedThreadsCount
Step-by-Step Guide:
This command retrieves a userās Teams activity, including the number of threads theyāre following. Use it to:
1. Audit employee engagement for compliance.
- Identify inactive threads that may contain unresolved security discussions.
3. Export data to CSV for reporting:
Get-CsTeamsUserActivity -UserPrincipalName "[email protected]" | Export-Csv -Path "TeamsActivityReport.csv"
2. Securing Teams Threads with Retention Policies
PowerShell Command:
New-RetentionCompliancePolicy -Name "TeamsThreadPolicy" -TeamsChannelLocation All -RetentionDuration 365
Step-by-Step Guide:
This creates a 1-year retention policy for Teams channel threads. Steps:
1. Ensure threads containing sensitive data are archived or deleted automatically.
2. Apply labels for legal hold:
Set-ComplianceTag -Name "LegalHold" -TeamsChannelLocation All -RetentionAction Keep
3. Monitoring Teams for Data Leaks
Microsoft Defender for Office 365 Query:
DeviceNetworkEvents | where ApplicationName == "Microsoft Teams" | where ActionType == "FileDownload" | summarize DownloadCount = count() by InitiatingProcessAccountName
Step-by-Step Guide:
This KQL query detects file downloads via Teams. Use it to:
1. Identify unusual download patterns.
2. Trigger alerts for exfiltration attempts.
4. Hardening Teams API Access
Azure AD Command:
New-AzureADPolicy -Definition @('{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"01:00:00"}}') -DisplayName "TeamsTokenPolicy"
Step-by-Step Guide:
Restrict API token lifetimes for Teams integrations to 1 hour. Mitigates risks from token theft.
5. Automating Thread Follow-ups with Power Automate
Flow Action:
"actions": {
"Send_reminder": {
"type": "Teams",
"inputs": {
"body": "Follow up on thread: @{triggerOutputs()?['body/threadId']}",
"recipient": "@{triggerOutputs()?['body/userId']}"
}
}
}
Step-by-Step Guide:
Automate reminders for unresolved threads to prevent oversight of security-critical discussions.
What Undercode Say
- Key Takeaway 1: Followed Threads reduces operational risk by ensuring critical discussions arenāt lost.
- Key Takeaway 2: Teams activity logs are a goldmine for detecting insider threats or compliance gaps.
Analysis:
Microsoft Teamsā collaboration features must balance usability with security. The Followed Threads feature, while productivity-focused, can inadvertently expose organizations to risk if threads contain unactioned security items. Combining native features like retention policies with proactive monitoring (e.g., Defender KQL) creates a defense-in-depth approach. As Teams becomes a primary communication hub, integrating its logs into SIEM systems (e.g., via Azure Sentinel) is essential for threat hunting.
Prediction
Expect Microsoft to expand Teamsā built-in security features, such as:
1. AI-driven thread prioritization for security alerts.
2. Automated thread closure policies for stale discussions.
3. Tighter integration with Purview for data classification.
Organizations that leverage these advancements while enforcing granular controls (e.g., token lifetimes) will mitigate risks in hybrid work environments.
IT/Security Reporter URL:
Reported By: Kavya A – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ā


