copilot-studio-agent
Warn
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPRIVILEGE_ESCALATIONCREDENTIALS_UNSAFEDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The skill provides numerous PowerShell recipes that execute commands using the Power Platform CLI (
pac) and Azure CLI (az) to scaffold, sync, and publish agents. It also utilizesInvoke-RestMethodto perform REST API operations against Dataverse endpoints. - [PRIVILEGE_ESCALATION]: The instructions include steps to create Entra ID (Azure AD) applications and grant them administrative consent using
az ad app permission admin-consent. These actions allow for the creation of high-privilege identities within the tenant to facilitate authenticated agent invocations. - [CREDENTIALS_UNSAFE]: The recipes demonstrate how to harvest and store access tokens in PowerShell variables (
$tok,$dvTok,$ppTok) by callingaz account get-access-tokenfor resources such ascrm.dynamics.com,service.powerapps.com, andapi.powerplatform.com. While no secrets are hardcoded, the skill provides a framework for programmatic token management. - [DATA_EXFILTRATION]: The skill accesses
.mcs\conn.json, which stores organization URLs, environment IDs, and agent IDs. It also contains instructions to query Dataverse for user details, team memberships, and bot configurations to verify access control policies. - [INDIRECT_PROMPT_INJECTION]: The skill ingests user-provided text for agent instructions and interpolates it into the
pac copilot init --instructionscommand. This content defines the core behavior of the created agent, and the skill lacks specific boundary markers or sanitization logic to handle potentially malicious instructions in this field. - [EXTERNAL_DOWNLOADS]: The documentation references the use of the
@microsoft/agents-copilotstudio-clientNode package. This is an official Microsoft library used for programmatically testing Copilot Studio agent conversations.
Audit Metadata