Add Azure technique: Retrieve App Service Publishing Credentials#875
Open
arpitjain099 wants to merge 1 commit into
Open
Add Azure technique: Retrieve App Service Publishing Credentials#875arpitjain099 wants to merge 1 commit into
arpitjain099 wants to merge 1 commit into
Conversation
Adds a new Azure credential-access attack technique that retrieves an App Service publishing profile via the Microsoft.Web/sites/publishxml/action ARM operation. The publishing profile contains FTP and Web Deploy credentials in cleartext, which an attacker with read-or-higher access can use for lateral movement or to deploy code to the application host. The technique warms up a Linux Web App and an App Service plan, then calls WebAppsClient.ListPublishingProfileXMLWithSecrets from the Azure SDK during detonation. Observed in the STORM-2949 intrusion (Microsoft, May 2026). Validated with go build, go vet, go test (pkg registry/loader), and make docs. Not detonated against live Azure. Closes DataDog#871 Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Adds a new Azure attack technique,
azure.credential-access.app-service-publishing-credentials, that retrieves the publishing profile of an Azure App Service (Web App). The publishing profile contains FTP and Web Deploy credentials in cleartext.An attacker with read-or-higher access to an App Service can call the
Microsoft.Web/sites/publishxml/actionARM operation to download these credentials, without needing access to any Key Vault or secret store. The returned XML containsuserNameanduserPWDattributes that grant direct FTP and Web Deploy access to the application host, which can be used for lateral movement or to deploy malicious code to the running application.Closes #871.
Behavior
main.tf).WebAppsClient.ListPublishingProfileXMLWithSecrets(thepublishxmlaction) via the Azure SDK for Go, reads the returned publishing profile.MITRE ATT&CK
References
POST /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Web/sites/{app}/publishxmlImplementation notes
azure.exfiltration.disk-export(helper client constructor,providers.Azure()credential plumbing) andazure.execution.vm-run-command(SDK client construction and detonation shape).github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4(added tov2/go.mod).go:embed main.tf+init()RegisterAttackTechniquemechanism, and added to the imports inv2/internal/attacktechniques/main.go.make docs(new technique page, Azure index, list, coverage matrix,index.yaml).Validation
Validated locally with
go build ./...,go vet ./...,go test ./pkg/...(registry/loader), andmake docs, all passing. This was not detonated against live Azure, since that requires a subscription; the API call shape follows the Azure SDK and the documentedpublishxmloperation.