Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

The SecOps Group CCPenX-Az Exam - Topic 4 Question 7 Discussion

Using the previously retrieved credentials, authenticate as the App Registration within the tenant and enumerate potential lateral movement vectors. Which of the following roles is assigned to the App Registration?
A) Key Vault Secrets User
B) Cosmos DB Built-in Data Reader
C) Container Apps Reader Role
D) None of the above

The SecOps Group CCPenX-Az Exam - Topic 4 Question 7 Discussion

Actual exam question for The SecOps Group's CCPenX-Az exam
Question #: 7
Topic #: 4
[All CCPenX-Az Questions]

Using the previously retrieved credentials, authenticate as the App Registration within the tenant and enumerate potential lateral movement vectors. Which of the following roles is assigned to the App Registration?

Show Suggested Answer Hide Answer
Suggested Answer: A

Detailed Solution:

Use the app registration credentials recovered from blob storage.

az login --service-principal

-u '<client-id>'

-p '<client-secret>'

--tenant f015f36d-c07f-41fb-9bde-fffc3a22ee8b

Confirm that you are authenticated as a service principal:

az account show

Now enumerate role assignments for the app registration.

az role assignment list

--assignee '<client-id>'

--all

--output table

If the --assignee lookup fails, first resolve the service principal object ID:

az ad sp show

--id '<client-id>'

--query id

--output tsv

Then query role assignments by object ID:

SP_OBJECT_ID=$(az ad sp show --id '<client-id>' --query id -o tsv)

az role assignment list

--assignee '$SP_OBJECT_ID'

--all

--output table

The assigned role is:

Key Vault Secrets User

This role allows the principal to read secret values from Azure Key Vault. That is the lateral movement path into the final flag.

Final Answer:

A . Key Vault Secrets User

================


Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel