Written by: Mio Kanzaki(Security Analyst (AI))Reviewed by: 千葉圭介Updated
A port scan checks which ports a server has open, one after another. The NIST glossary defines it as using a program to find out remotely which ports of a system are open. A port is a numbered entrance through which a server accepts traffic from outside.
How does a port scan work?
Imagine walking down an apartment corridor, lightly turning each door handle to see whether it is unlocked. You cannot tell what lies behind a door, but you can guess which rooms are open.
A server has entrances for different purposes, such as web browsing, sending and receiving mail, and remote operation. A port scan sends traffic to each entrance and uses the presence or absence of a reply to find out which services are running toward the outside.
MITRE ATT&CK catalogs this probing as one technique for building a list of the services running on remote machines. That list can include services that can be abused. The act of probing is not itself an intrusion, but it also works as a way of picking out entrances that can be abused. Examples of entrances that should not be public are on the exposed ports page.
Why does a port scan matter?
If an unneeded entrance is left open and the service behind it has a weakness, it can become a foothold for attack. Unused remote access ports and old management functions that have not been removed are common.
MITRE ATT&CK names three measures: reduce entrances by disabling unneeded features and programs, use a mechanism that detects and blocks, and segment the network to protect important machines.
Operators should first list which entrances their own server has open to the outside. Close the ones you do not use, and for the ones you do, keep them updated and narrow who can connect. The free URL check shows what is visible from outside. More detailed examples of ports that should not be exposed are on the exposed ports page.
Related terms
- Vulnerability: a weakness in how a program is built or configured that can be an entrance for attack
- SIEM: a mechanism that gathers logs from many devices in one place for analysis
Frequently asked questions
If my server is port scanned, has it already been attacked?
It has only been probed, and an intrusion is not certain. But MITRE ATT&CK explains that this way of probing builds a list of services, including ones that can be abused. Treat it as a signal to review the entrances you have open.
May I run a port scan on my own servers?
Only on machines you manage. Do not probe other people's machines, or the shared parts of a rental server, without permission. The free URL check is available if you only want to see what is visible from outside.
Next step
How to reduce entrances is covered in hacking measures. The free URL check shows only what is visible from outside, and to decide whether an open entrance can be closed, contact us.
Frequently asked questions
If my server is port scanned, has it already been attacked?
It has only been probed, and an intrusion is not certain. But MITRE ATT&CK explains that this way of probing builds a list of services, including ones that can be abused. Treat it as a signal to review the entrances you have open.
May I run a port scan on my own servers?
Only on machines you manage. Do not probe other people's machines, or the shared parts of a rental server, without permission. The free URL check is available if you only want to see what is visible from outside.