SCENARIO 14 / APPLICATIONS

Application credential and ownership backdoors

Find persistence created by changing who can control or authenticate as an application.

M365-14ApplicationsInvestigation playbook

How the scenario unfolds

An adversary with application-management rights can add a credential, owner or federated credential to an existing application. Using an established application may blend into expected activity. The incident can continue after the original user is contained because the new application access has its own authentication path.

Conditions to examine

Over-privileged application administrators or owners, unmanaged secrets, and deployment pipelines whose identities can alter sensitive applications.

Signals to investigate

  • New credentials or owners outside an approved rotation window.
  • A federated credential with an unexpected issuer, subject or audience.
  • App-only sign-ins from new infrastructure shortly after an application change.

Evidence to collect

Collect application and service-principal properties, credential identifiers and validity, ownership, federated-credential configuration, audit changes and workload sign-ins. Existing secret values are not needed for a security inventory and should not be collected.

Open related example Q05

Investigation sequence

  1. Establish which object changed and whether the actor was an administrator, application owner or automation identity.
  2. Validate the change against the owner’s deployment record and inspect the new credential’s use where telemetry supports it.
  3. Determine the application’s permissions and affected resources, then look for related modifications to other applications.

Reduce the exposure

  • Limit application ownership and permissions to change credentials.
  • Use managed identity or workload federation where appropriate, while reviewing the systems trusted to issue those identities.
  • Monitor credential, owner and federation changes independently of ordinary application availability.

Contain and recover

  • Remove unauthorised credentials and owners, or disable the affected service principal when required.
  • Rotate exposed authorized credentials and secure the pipeline or administrator that enabled the change; review app-only resource activity.
VERIFY THE OUTCOME

Test that the removed credential can no longer obtain useful access and the approved integration still functions. Watch for recreation of the backdoor by a surviving identity.

Interpret with care

Credential rotation is common and should have a change record. Removing one secret does not remove other credentials, federated trusts, owners or previously issued tokens.

Technical references

[20] [54]

Selected ATT&CK relationship: T1098.001 ↗. This is a relevant behavior mapping, not a claim of complete technique coverage.