The skill generates Azure CLI and Bicep for role assignment, risking privilege escalation if
Claims to do
Prerequisites for Granting Roles: To assign RBAC roles to identities, you need a role that includes the `Microsoft.Authorization/roleAssignments/write` permission. The most common roles with this permission are:
Actually does
The skill uses the `azure__documentation` tool to find Azure RBAC role definitions, `azure__extension_cli_generate` to create custom roles and generate Azure CLI commands for role assignment, and `azure__bicepschema` and `azure__get_azure_bestpractices` to generate Bicep code snippets for role assignments. It also provides static guidance on the permissions required to grant roles.
npx skills add https://github.com/microsoft/github-copilot-for-azureThe skill generates Azure CLI commands for role assignment, a powerful capability that can alter access control and potentially lead to privilege escalation if the generated commands are executed without proper validation or if the agent is compromised.
generate CLI commands needed to assign that role to the identity.
The skill generates Bicep code snippets for role assignment, enabling declarative modification of Azure resources and access controls, which could be abused if deployed without sufficient review.
provide a Bicep code snippet for adding the role assignment.
[](https://mondoo.com/ai-agent-security/skills/github/microsoft/github-copilot-for-azure/azure-rbac)<a href="https://mondoo.com/ai-agent-security/skills/github/microsoft/github-copilot-for-azure/azure-rbac"><img src="https://mondoo.com/ai-agent-security/api/badge/github/microsoft/github-copilot-for-azure/azure-rbac.svg" alt="Mondoo Skill Check" /></a>https://mondoo.com/ai-agent-security/api/badge/github/microsoft/github-copilot-for-azure/azure-rbac.svgSkills can read files, run commands, and access credentials. Mondoo helps organizations manage the security risks of AI agent skills across their entire fleet.