m365-agents-dotnet
Pass
Audited by Gen Agent Trust Hub on Sep 16, 2026
Risk Level: SAFE
Full Analysis
- Managed Package Dependencies: The skill utilizes official .NET packages (Microsoft.Agents.*) downloaded from the standard NuGet registry. These are expected dependencies for the Microsoft 365 Agents SDK and originate from the skill's author.
- Sensitive Information Handling: Authentication settings in the provided
appsettings.jsonand MSAL configuration use placeholders like{{ClientSecret}}and{{TenantId}}. The skill explicitly recommends using secure providers such as Azure Key Vault or environment variables for secret management in production. - Development Environment Configuration: The code includes logic to bypass authentication requirements specifically when the environment is set to 'Development', mapping the agent to
http://localhost:3978. This is a routine development convenience and is scoped to prevent accidental use in production via the!app.Environment.IsDevelopment()check. - Error Handling Consideration: The
OnTurnErrorAsyncmethod is configured to send theexception.Messageback to the user. While this facilitates debugging during development, it is worth noting as a potential information disclosure surface if internal system errors are revealed to end-users in a production environment. - Indirect Prompt Injection Surface: The implementation follows an 'echo' pattern where user input (
turnContext.Activity.Text) is ingested and then reflected back to the user. This is a fundamental characteristic of conversational agents and represents the primary ingestion point for untrusted data that the agent processes.
Audit Metadata