microsoft-agent-framework
Warn
Audited by Gen Agent Trust Hub on Nov 2, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [DYNAMIC_EXECUTION]: The skill's core instructions and example scripts demonstrate the use of the
eval()function to implement calculation tools. Specifically,SKILL.mdprovides an example of acalculatetool that directly executes user-supplied strings, andexamples/02-tool-integration.pyuseseval()with limited protections. Executing arbitrary strings viaeval()is a high-risk pattern that can lead to remote code execution. - [DYNAMIC_EXECUTION]: The C# example in
examples/05-tool-integration.csemploysDataTable.Compute()to evaluate expressions. As noted in the code's own comments, this method can be leveraged to execute arbitrary expressions if input is not properly sanitized. - [COMMAND_EXECUTION]: The reference documentation in
reference/04-tools-functions.mdincludes arun_shell_commandtool example usingsubprocess.run()withshell=True. Providing agents with shell access, especially with the potential for command injection via unsanitized arguments, poses a significant security risk. - [INDIRECT_PROMPT_INJECTION]: The skill documents how to build agents that ingest data from external sources (such as RAG providers or database tools) and use that data to drive high-privilege operations (file writes, command execution). The examples provided do not demonstrate the use of boundary markers or input validation, which creates a vulnerability to indirect prompt injection where instructions embedded in external data could hijack agent control flow.
- [EXTERNAL_DOWNLOADS]: The skill recommends installing the
agent-framework-corePython package andMicrosoft.Agents.AI.NET package. These appear to be legitimate packages from a well-known organization and are documented neutrally.
Audit Metadata