This skill is vulnerable to prompt injection, allowing
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 `azure__documentation` to find minimal built-in RBAC roles. It uses `azure__extension_cli_generate` to create custom role definitions and generate CLI commands for role assignment. It also leverages `azure__bicepschema` and `azure__get_azure_bestpractices` to provide Bicep code snippets for role assignments.
The skill's ability to generate CLI commands and Bicep code for Azure RBAC role assignments, including custom roles, makes it a high-value target for prompt injection. A malicious prompt could trick the agent into generating commands that grant unauthorized privileges or deploy harmful resources, which could then be executed in an Azure environment.
Use the 'azure__extension_cli_generate' tool to create a custom role definition... generate the CLI commands... provide a Bicep code snippet for adding the role assignment.
The skill generates complex CLI commands and Bicep code for role assignments. The volume or intricacy of these outputs could lead to human overseers approving them without thorough review, potentially allowing malicious or unintended privilege grants to proceed.
generate CLI commands and Bicep code to assign it.
[](https://mondoo.com/ai-agent-security/skills/github/microsoft/azure-skills/azure-rbac)<a href="https://mondoo.com/ai-agent-security/skills/github/microsoft/azure-skills/azure-rbac"><img src="https://mondoo.com/ai-agent-security/api/badge/github/microsoft/azure-skills/azure-rbac.svg" alt="Mondoo Skill Check" /></a>https://mondoo.com/ai-agent-security/api/badge/github/microsoft/azure-skills/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.