Gaps in Azure Service Fabric’s Security Call for User Vigilance
Default Azure Service Fabric deployments use process isolation and host networking, so a compromised container can read registry credentials and reach the node's SSH service. An attacker who guesses the cluster password could log in as root and access cluster certificates.
Published on trendmicro.com
In this blog post, we discuss different configuration scenarios that may lead to security issues with Azure Service Fabric, a distributed platform for deploying, managing, and scaling microservices and container applications.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the default configuration used process isolation and host networking without restrictive policies, exposing sensitive mounts and the node's SSH service to the container.
Impact
An attacker who compromises a container could read registry credentials, brute-force the node's SSH password, and gain root access to the cluster, though this depends on user roles and permissions in the linked registry.
What the attacker needed
Compromised container; default process isolation; host network mode; password authentication enabled
The fix
Users should apply Service Fabric policies such as removing runtime access, configure key-only SSH authentication, and follow least privilege and Zero Trust practices.
How it was found
- Simulate a user code vulnerability that compromises the container and spawns a reverse shell.
- Observe read-only mounts containing cluster information, including container registry credentials.
- Scan the node's network and find SSH port 22 open with password authentication enabled.
- Log in to the node using the same username and password used for cluster creation, gaining root access.
- Access cluster certificates on the node, allowing control over the whole cluster.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A container is a lightweight box that runs an application. In this setup, the box was not properly separated from the computer hosting it, so someone who broke into the app could read files and reach services on that computer. Because the login password was weak and reused, they could then take full control of the cluster.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.