Skip to main content
Next Defence - Next-Gen AI Cyber Security Firm
Australia & New Zealand[email protected](02) 9064 2614
INSIGHT

A Dormant Service Principal Still Downloads Warehouse Invoices

A distribution company sees invoice-export activity from a service principal whose associated warehouse integration was retired.

A retired integration still downloads invoices

A distribution company sees invoice-export activity from a service principal whose associated warehouse integration was retired. The identity is not a human user; it may have its own certificate, application registration, granted API permissions and scheduled workloads. Removing the former supplier’s staff accounts does not necessarily affect any of those machine grants. The investigation should determine which invoices the principal could retrieve and whether actual downloads continued after the business relationship ended.

An unusual machine login is not automatically malicious. A forgotten retry queue or deferred reconciliation process may still operate against an old schedule. That explanation does not answer whether the access is now authorised. Compare the technical activity with the current finance system architecture and the contract transition. A workload without a responsible sponsor is an exposure even if all observed calls were produced by old automation.

Locate the effective grants and consumers

Collect the application identifier, certificate or secret expiry, OAuth or service-role scopes, owner assignment and downstream storage access. Map the current permitted invoice flow, including which system generates each file, which integration reads it and where the export is delivered. Some applications obtain a second access token or signed object URL after an initial API call; revoking the first registration might not immediately invalidate a previously issued download route.

Obtain request IDs, batch identifiers, source addresses, storage object logs and receiving endpoint details. A token refresh event demonstrates that the application authenticated, but not which invoice files were copied. Conversely, a storage export may occur under a platform worker identity that hides the original caller. Reconcile the two traces before concluding how much commercial information left the finance tenant.

Separate inherited scope from actual data movement

A broad application permission may technically reach all warehouse invoice folders while the old script happened to request only one routine monthly summary. Record both the maximum reachable collection and the objects demonstrably accessed. Check whether invoices contain buyer details, supplier account information or other material that changes the potential business consequence. A dashboard counting “application sign-ins” is not a substitute for a per-export inventory.

Confirm whether the former service provider still controls the receiving endpoint. If the company now owns the destination, the access may be easier to contain but still violate the agreed identity-lifecycle process. If external endpoints or data processing contractors are involved, coordinate evidence preservation and contractual responsibilities without deleting the only logs that could establish what happened.

Retire the principal without breaking the finance close

Ask finance operations which scheduled reconciliation or tax-related processes depend on the old workflow. Stage a replacement under an explicitly named current integration and test a fabricated invoice batch. Confirm expected totals, object names and the final accounting acknowledgement. Then disable the retired principal and remove residual role assignments, consent grants, unused certificates and export triggers. Rotate secrets if they were shared across integrations.

If a critical dependency emerges during shutdown, do not simply re-enable the principal with unlimited scope. Create a short-lived, monitored exception that permits only the identified invoices or process, with finance approval and a specific end date. Track where historical files and queued jobs will land. A controlled cutover should prevent missing invoice batches without recreating unrestricted access for the former integration.

Verification includes the receiving storage path

Use non-sensitive invoice fixtures to attempt a new export with the former registration; it should be refused. Check the current integration can export and reconcile its assigned batch. Repeat after token refresh and after the configured background worker retries. Validate direct object-storage download paths separately; already issued signed links can outlive an application’s apparent revocation, depending on platform behaviour.

The finance controller should receive a comparison of old and new destinations, file counts, successful and denied requests, and unresolved historic logs. Include permissions in backup tenants or copied automation projects if the retired identity was provisioned there. The proof is not merely that the identity no longer appears in a console’s active list, but that its effective access to protected invoice resources has ended.

Escalation and continuing ownership

If the investigation finds unapproved external downloads, suspicious modification of invoices or unexplained persistence, the incident team should assess impact and relevant legal or contractual duties. If only dormant excessive permissions are found, record and remediate them without claiming confirmed exfiltration. Maintain a timeline of when the integration contract ended, when its identity should have ceased and when technical revocation was verified.

Finally, attach machine-identity governance to the procurement and service-change process. Every service principal should have an owner, defined purpose, known consumers, credential renewal process and offboarding trigger. Review additional retired integrations at the distribution business using the same evidence method. The useful lesson is that an application account can remain powerful long after the humans who created it have departed.

Measure the next retirement against the failed one

When the distribution business next replaces a warehouse supplier, include machine identities in the signed exit checklist. Require a sponsor to confirm the export destinations, issue a revocation ticket for every application grant and verify the disabled identity through a negative access test. Retain the result with the procurement record so future finance staff can distinguish an intentionally active historic reconciliation from an integration that should no longer exist.

Sources and context

How Next Defence can assist

For transport, logistics and supply chain, Next Defence can scope the specific identity and session authorization problem in this example: A distribution warehouse discovers API downloads under an integration identity marked retired. An engagement could translate the intended safeguard—revoke the exposed grant and rotate linked secrets after preserving access evidence—into an owner-approved work plan and a reproducible check to call the synthetic invoice endpoint with the retired token and confirm rejection. Any assessment would be limited to the agreed systems and would respect the operational constraint: Nightly settlement jobs may share the identity and require a separate replacement.

Explore Cloud, Identity & Data Security ↗

LET'S TALK

Let’s talk about your security.

Tell us what you are protecting, where you need greater visibility or what you want to achieve. We will help identify the right next step.

Talk to a Security Specialist

Describe your security requirements. Please do not submit passwords, credentials or confidential incident evidence. This form is not an emergency incident-response channel.

Form powered by HubSpot. Review our Privacy Policy. If the form doesn’t load, email [email protected].