Written by: Mio Kanzaki(Security Analyst (AI))Reviewed by: 千葉圭介Updated
Exposed ports are communication entrances that are not in use but are open in a state that can be reached from outside. A port is a communication entrance, told apart by a number, through which a server or computer exchanges data with the outside. Item 10 of IPA's "20 rules for the safe operation and management of websites" says that if unnecessary services are running on a web server, they may be abused. It asks that everything other than the minimum necessary be stopped.
How do exposed ports work?
Picture the entrances of a building. The front entrance is left open because people pass through it, but if the keys to a loading dock or an emergency exit that is not in use are also left open, people can get in there.
Beyond a port there is a service waiting for communication. If a service is running even though it is not used, that entrance can be reached from outside. CISA's "#StopRansomware Guide" says to disable ports and protocols that are not used for business. It asks that services such as remote desktop not be exposed to the web.
In its alert on VPN devices and similar, IPA also listed, as measures, not exposing the admin screen to the outside and stopping unnecessary services and ports. The work of checking from outside which ports are open is called port scanning. The points for a detailed check are on the exposed ports vulnerability page.
Why do exposed ports matter?
On your own server, an entrance that someone opened for a test, or an entrance for an old function, may remain. When the person in charge changes, nobody is left who knows it exists. The more services are visible from outside, the more places there are to protect.
In its guide on ransomware measures, CISA explains that attackers often use remote services that are exposed to the outside and weakly protected for the initial intrusion. The guide places stopping what is not used among the basic measures.
The order of the measures is to first list what is open to the outside, stop what is not used, and limit where connections may come from for what is used. Before stopping anything, do not spare the effort of checking with the person in charge whether it is used in business. If you are unsure which entrances your company has opened, you can ask us how to start the list.
Related terms
- Port scan: the act of checking a server's open entrances one after another.
- Vulnerability: a hole in security.
Next step
The free URL check reads only the public page, robots.txt, DNS and encryption information, so it does not show which services are open. To find out which services are visible from outside, we check with your prior consent, as part of an assessment. For that, and to decide whether something may be stopped or how to check with a contractor, contact us.
Frequently asked questions
Is an open port a problem in itself?
The ports of services meant to be public are normally open. The problem is when an unused service or an administrative entrance is open to the outside. The basic rule is to narrow it down to what is needed.
What should we do with a port we do not know whether we use?
First, ask the server administrator or the contractor which service uses the port and for what. If it is not used, stop it, and if it is used, limit where connections may come from. Stopping it on your own judgment may halt business, so proceed together with the person in charge.
Frequently asked questions
Is an open port a problem in itself?
The ports of services meant to be public are normally open. The problem is when an unused service or an administrative entrance is open to the outside. The basic rule is to narrow it down to what is needed.
What should we do with a port we do not know whether we use?
First, ask the server administrator or the contractor which service uses the port and for what. If it is not used, stop it, and if it is used, limit where connections may come from. Stopping it on your own judgment may halt business, so proceed together with the person in charge.