A development environment in Azure needed a database, and someone opened it to the internet to get started quickly. The result was an exposed database that anyone could find. Our external reconnaissance flagged it. This is how we investigated it, and how we make sure it does not happen again.
Database open to the internet
Development project in Azure
Closed and verified
Why is an exposed database a problem?
A database that can be reached from the internet is often found within hours by automated scanners. Then the login attempts begin. With a weak or reused password, the step to a data breach is short. Even without a breach, the service becomes a target that needs monitoring, and it is a risk nobody actively decided to take.
How did we go from alert to action?
We followed the same process we use for every external finding in our SOC:
Verify
Is the finding real, and who owns the resource? We confirmed the exposure and linked it to the right project and owner.
Assess
Was the exposure intentional? Was there a business need for public access? The answer was no.
Contain
We closed public access and restricted network access to the internal networks that actually need it.
Investigate
In parallel, we went through the logs to see whether any outsider had tried, or succeeded, to get in.
The order matters. First you close the door, then you find out whether anyone got in.
How did we know nobody had got in?
We analysed the connection and authentication logs for the period the service was exposed. We saw attempts from unknown addresses, which is expected, but no successful logins apart from the project’s own accounts. To be safe, we still rotated all credentials and reviewed which accounts had access.
What did we change so it does not happen again?
Closing an open port solves today’s problem. Preventing the next one means closing the way in.
Public access open. Anyone on the internet could reach the database, and nobody had actively decided that.
Firewall closed to all public access. Only the internal networks that need the database are let in, and every new opening requires an active decision and a named owner.
How did we confirm everything was secure again?
We ran a new external scan and checked that the service no longer responded to the internet. The finding was only closed once both security and functionality had been verified.
What can you learn from this?
Most things exposed to the internet do not get there through attacks, but through shortcuts that were never cleaned up. Development environments are especially vulnerable because they are built quickly and rarely have the same controls as production. That is why you cannot rely on everyone remembering to close up after themselves. You need:
Continuous external scanning, so you see what an attacker sees.
A clear process from alert to action, where someone owns every finding.
Policies that make the secure choice the default, not an afterthought.
Do you know what your environment shows to the internet?
We help companies monitor their external attack surface, handle alerts in a managed SOC and build governance into Azure and Microsoft 365, so shortcuts do not become security holes.


