m365-agents-py
Pass
Audited by Gen Agent Trust Hub on Oct 27, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill implements a chat agent interface that ingests untrusted user data as part of its primary function.
- Ingestion points: User input is received via
context.activity.textin message handlers such ason_message,on_hello, andon_poem_message(interpolated into LLM prompts). - Boundary markers: The provided code snippets do not explicitly show the use of delimiters or 'ignore' instructions when processing user-supplied text.
- Capability inventory: The agent possesses capabilities to call the Microsoft Graph API, access local
MemoryStorage, and return streaming responses to end-users. - Sanitization: No explicit sanitization, filtering, or validation logic is present for incoming user messages before they are processed by the agent or forwarded to external APIs.
- [EXTERNAL_DOWNLOADS]: The skill requires the installation of several external Python packages to function.
- Evidence: Instructions include
pip installformicrosoft-agents-hosting-core,microsoft-agents-hosting-aiohttp,microsoft-agents-activity,microsoft-agents-authentication-msal, andmicrosoft-agents-copilotstudio-client. These are official SDK packages from Microsoft, which is a recognized trusted organization. Other standard dependencies includepython-dotenv,aiohttp,openai, andmsal. - [SAFE]: The skill follows established security patterns for SDK integration.
- Evidence: The implementation uses
load_configuration_from_envand.envfiles for managing credentials likeCLIENTSECRETandAZURE_OPENAI_API_KEY, which is a recommended practice to avoid hardcoding secrets. It also enforces authorization viajwt_authorization_middleware.
Audit Metadata