Beginner-friendly
![]()
Abuse Azure Logic App Automation
Automation can make an admin's life easier, but without proper validation it can help hackers too!
Overview
We all want to automate tasks, and focus on more enjoyable problems! However, we have to be careful to restrict access to the automation to only those who need it and be wary of user-provided data. This fun lab explores a realistic Azure Logic App that automates tasks across the Microsoft Cloud, and beyond!
Scenario
Our red team has been conducting an open-source intelligence gathering operation focused on our organization. During this process, they uncovered a potentially concerning social media post made by one of our newly appointed managers. The post appears to contain information that could be leveraged by malicious actors. You've been assigned to investigate this discovery further. Your task is to analyze the provided social media post and assess its potential for establishing an initial foothold in our systems. We need you to explore possible attack vectors, evaluate the risk to our organization, and determine how this information might be exploited by potential adversaries.
Lab prerequisites
- Basic Windows and Linux command line knowledge
- Understanding of Microsoft Azure
- Be a member of the Pwned Labs Discord (https://discord.gg/pwnedlabs)
Learning outcomes
- Enumeration and exfiltration of information from M365
- Abuse Azure Logic Apps automation
Real-World Context
Modern organizations face significant security risks from two primary sources: employee oversharing on social media and hastily implemented internal automation processes. Social media platforms often become inadvertent sources of valuable information for threat actors, potentially facilitating initial access to organizational systems.
This risk is compounded by the increasing pressure to streamline operations through automation, leading to the rapid development of internal processes that may lack robust security measures. These internal automation projects, frequently treated as side tasks with limited resources and expertise, often fulfill basic functional requirements but fall short of the security standards applied to external-facing products. The combination of easily accessible information through social media and vulnerable internal automation creates a complex security landscape that malicious actors can exploit.
KEY TAKEAWAY
Automation platforms run with standing permissions and are edited by people who are not security engineers. A Logic App holds connections to the systems it integrates, so modifying a workflow is a way to act with those permissions without ever holding the credentials yourself.
What this lab covers
You begin from information an employee published without realising its value, establish a foothold, and work into the tenant's automation, where a workflow's connections and identity provide the access.
The open source intelligence stage is worth taking seriously. Social media posts routinely contain screenshots, naming conventions, tooling references and occasionally credentials, and reconnaissance from public sources leaves no trace at all.
It is rated intermediate and suits anyone who administers automation, since these platforms are frequently outside the scope of both security review and identity governance.
How automation platforms become attack paths
Logic Apps execute workflows against other services using connections, which hold delegated authorisation, and optionally a managed identity for Azure resources. The permissions are standing, because the workflow must run without a person present.
Editing a workflow is therefore acting with those permissions. An attacker who can modify a Logic App can add a step that reads data, writes to storage, sends mail as the connected account or calls Azure APIs, without ever seeing the underlying credential.
Governance is usually the weak point. Automation is built by operations, finance and business teams as much as by engineers, connections are created with whatever account was convenient, and the resulting workflows are rarely inventoried or reviewed against the access they hold.
How to detect this in your own environment
Alert on workflow modification. Logic App definition changes are control plane events, they are infrequent in stable automation, and adding a step is the action that turns automation into an attack path.
Baseline what each workflow's identity and connections actually do. Automation is repetitive by nature, so a workflow suddenly touching a new service is a strong signal.
Watch for new connections being created, particularly ones authorised with privileged accounts, since that is how automation quietly acquires more access than intended.
How to prevent it
Inventory your automation and the access each workflow holds. Most organizations cannot produce this list, and producing it usually reveals connections authorised by administrators years ago.
Use dedicated, narrowly scoped identities for automation rather than connections authorised with a person's account. A connection tied to an individual inherits everything that individual can do.
Restrict who can edit workflows and treat that permission as equivalent to the access the workflow holds, because it is.
Real-world context
Low-code and automation platforms have become a recognized gap in cloud security. They hold real credentials and real access, they are edited by people outside engineering, and they are frequently absent from the identity governance that covers everything else.
The reconnaissance stage is equally realistic. Publicly posted screenshots and announcements routinely disclose internal tooling, naming conventions and occasionally credentials, and that collection is invisible to the target.
The pattern maps to MITRE ATT&CK T1593 Search Open Websites and Domains, T1078.004 Cloud Accounts and T1648 Serverless Execution.
Applying this at work
- Produce an inventory of your Logic Apps and similar automation, with the connections and identities each one holds.
- Replace connections authorised with individual user accounts with dedicated, scoped identities.
- Restrict and review who can edit workflow definitions.
- Alert on workflow modification and on new connection creation.
- Search your organization's public posts for screenshots and details that disclose internal systems.
Frequently asked questions
Why are automation platforms a security concern?
Because they hold standing permissions to the systems they integrate, and they are frequently edited by people outside engineering. Modifying a workflow is a way to act with those permissions without holding the credentials.
What makes a connection risky?
Connections authorised with an individual's account inherit everything that person can do. A dedicated identity scoped to the workflow's actual needs limits what an abused workflow can reach.
How do I find automation I do not know about?
Inventory it directly through the platform rather than asking teams. Automation is commonly built outside engineering, so the people who own it are frequently not the people security would think to ask.
Do I need my own Azure account to practice this?
No. The lab runs in a live Azure environment that Pwned Labs provisions for you, so there is nothing to set up and no risk to your own tenant.
Which certification covers this in depth?
The Microsoft Cloud Red Team Professional (MCRTP) covers Entra ID, Azure and Microsoft 365 attack paths in full, including token abuse, phishing tradecraft and privilege escalation, and is assessed hands-on in a live tenant.
Watch the walkthrough
Want to see the full attack path first? Watch the complete video walkthrough of this lab: Abuse Azure Logic App Automation. You can also browse all cloud security lab walkthroughs.
Cloud Security Training To Protect Your Business
Pwned Labs for Business gives your team access to dedicated business content, including labs and cyber ranges.
We also offer in-person or remote workshops, and our cloud penetration services are helping businesses become more secure!