Gunnar Andrews discusses how ethical hackers can look to EASM techniques to help increase their ethical hacking skills. For organizations, this article gives insight into the methods and types of information that ethical hackers or even malicious attackers will collect to increase knowledge about an organization’s assets.
What is EASM?
External Attack Surface Management (EASM) is the discovery and assessment of an organization’s publicly facing IT assets. Effective EASM continuously monitors your assets for availability, vulnerabilities, and updates. As your attack surface grows, monitoring your organization’s external assets becomes more important.
Why is EASM important?
Persistent bugs, such as a cross-site scripting vulnerability, can be present in an organization’s attack surface for an extended period and will remain until the asset is removed or an update is pushed to remove the vulnerability. On the other hand, ephemeral bugs are bugs that only exist for a short time and then disappear.
As an example, let’s say that a subdomain is vulnerable to a subdomain takeover for a total of 1 hour. During that hour, 10,000 people visit the subdomain. If a malicious attacker has control of the subdomain at that time, the risk of subdomain takeover is very high. An effective EASM program that continuously monitors assets will likely catch these short-lived, high-risk vulnerabilities before malicious attackers do.
Shadow IT assets
Shadow IT assets are assets that get deployed unknowingly. Unknown assets are dangerous as they do not receive regular vulnerability testing, updates, or upgrades and may not be removed when they are no longer used. It is not unusual, especially in larger organizations, to uncover assets on your attack surface that the security department is not aware of. Discovering these assets and monitoring them is a critical factor of EASM.
When one organization acquires another, they are also acquiring its attack surface. Even if the parent organization has iron-clad security, the organization they recently acquired could be a whole different story. These assets can take a while to be discovered, scanned, and remediated. Acquisitions present a perfect opportunity for ethical hackers to expand their knowledge of an organization’s attack surface, but worst of all, potential opportunities for malicious attackers to exploit. If your organization recently acquired another company, be sure to add those digital assets to your EASM pipeline.
Read more: How attack surface management helps during an M&A process
A well-documented attack surface will include detailed information about each available asset. The types and depth of information will differ and may include:
- DNS records
- Certificate information
EASM for ethical hackers
Just as an organization needs EASM to defend its attack surface, an ethical hacker may use EASM techniques as part of its bug bounty efforts. Let’s take a look at some types of information that may be extremely valuable to an ethical hacker, which in the hands of a malicious attacker, could prove to be exploitable attack vectors.
Domains and subdomains
The process of gathering domains and subdomains usually starts with a list of root domains to enumerate subdomains from using a variety of methods, including:
- Passive recon APIs
Hackers will look for open ports, running services, DNS records, and endpoints, and may keep a current list of domains so that they don’t miss any or waste time trying to attack one that is offline.
IPs, IP ranges, and ASNs
IP addresses are another asset identifier. Knowing the IP ranges and autonomous system numbers (ASNs) of a target can enable hackers to discover more assets. Multiple domains can resolve to the same IP address (virtual hosts) so scanning IP ranges and ASNs using reverse IP lookups could turn 10 IP addresses into 50 domains, rapidly expanding the attack surface.
Technologies being used
Changes to assets: The early bird catches the
Monitoring your attack surface is just as important as discovering assets. Some changes that hackers may monitor for are:
- Assets going online/offline
- DNS record changes
- New ports being opened
- Version updates on software
- New features being deployed
- Changes in responses
Repositories can contain sensitive data including environment files, database credentials, internal endpoints and a variety of tokens and keys. For this reason, source code repositories are an important asset included in a hackers EASM workflow. Active repositories constantly change so hackers will likely monitor updates to the code base too. For further information on basic code review from a hacker’s perspective, here’s a great video by LiveOverflow.
Registries for docker images and software libraries
Registries holding images containing software will be part of a hackers EASM. Well-known security researchers have found some very complex bugs by pulling software off docker images found on public registries. This can be achieved by:
- Deploying the image as a container
- Pulling the software off the container
- Reverse engineering the software back to the source code.
This can expose secrets and vulnerabilities in the source code.
Organizations, start thinking like a hacker
Whether it’s finding long-forgotten shadow IT assets, new assets from a recent acquisition or being the first to catch on to a new web application on port 8080, hackers can look to EASM techniques to help increase their knowledge about an organization’s assets. For ethical hackers, this can prove fruitful when it comes to bug bounty or responsible disclosure programs. Malicious attackers, however, could take the opportunity to exploit this kind of information. That’s why organizations should start thinking like hackers when it comes to their assets. Implementing a continuous EASM program will help uncover an organization’s Internet-facing assets and look for the vulnerabilities before a malicious hacker potentially does this.
My online alias is G0lden. I am a hacker out of the midwest United States. I came into the hacking world through corporate jobs out of college, and I also do bug bounties. I enjoy finding new ways to hunt bugs and cutting-edge new tools. Making new connections with fellow hackers is the best part of this community for me!