Written by Ruben Selby, founder and penetration tester at Wolfcore. Last reviewed 22 November 2026.
Part of the Ports and protocols section of the Wolfcore Resources library.
In one sentence: Port 4444 is not used by any normal business service, but it appears so often in attack tools and tutorials that an unexplained connection on it should be treated as a possible intruder until you prove otherwise.
What runs on this port
Almost nothing you would deliberately run. The reference site ProtocolPorts says port 4444 has no standard, fixed legitimate service. What it has is a reputation.
The Metasploit documentation, which is the official guide to a widely used penetration testing framework, explains two kinds of shell. A bind shell opens a new service on the target and waits for the attacker to connect. A reverse shell, also called connect-back, works the other way: the attacker starts a listener first, and the target machine connects out to it. The documentation’s worked example uses port 4444 as the listener port, and many tutorials copy it. The port is a setting. The person running the tool chooses it.
So an open 4444 is a clue, not proof. Some development and testing tools may also use that number. The only way to know is to find the process that owns it.
Why attackers look for it
They mostly do not scan for 4444 as a way in. It is the other direction. After an attacker gets code running on a machine, that code often phones home to a listener the attacker controls. Because tutorials and copied scripts use 4444, it shows up in real intrusions. A skilled attacker changes the port, which is why a closed 4444 proves nothing.
The ports an attacker scans for as entry points are the ones with real services, such as 445, 3389 and 22. Internet-wide scanning and device search engines list what is open on any public address, so anything you expose will be found.
How it gets attacked
There is no vulnerability in “port 4444” itself. It is a listener, not a product. The real weaknesses are the ones that let the attacker run code in the first place:
- Unpatched services. ProtocolPorts notes the 2003 MSBlaster worm exploited the MSRPC DCOM bug (CVE-2003-0352, on port 135) and used port 4444 to open a remote shell on victims. That history is why the port is still watched. See port 135 (MSRPC).
- Weak or reused credentials on remote access, which let an attacker start a shell without exploiting anything.
- Users running a malicious file. The Metasploit documentation’s demonstration is simply a generated executable that a user double-clicks, which connects back to the listener. If you want to know how many of your staff would run an unknown file, phishing simulation software lets you test that safely.
- Open outbound rules. If every internal machine can connect to any port on the internet, a connect-back shell works.
Who it affects and how badly
Any business, because the risk is about outbound traffic and compromised machines, not a product.
- Sole trader to 10 staff: one infected laptop and an attacker reading mail and files. Worst case is fraud on client payments and lost client trust.
- 10 to 250 staff (recruitment, manufacturing, schools, charities): the attacker uses the first machine to move to others. Worst case is a ransomware outage.
- 250 plus and regulated (fintech, insurance, healthcare, councils): a shell on a server with regulated data. Worst case is a notifiable breach and regulator fines.
How to check whether yours is exposed
Use only networks and machines you own or have written permission to test.
- Look at your firewall rules. Is outbound traffic allowed to any port? Is inbound 4444 allowed anywhere?
- Check what is listening. On Windows,
netstat -anolists listening ports with the owning process ID. ProtocolPorts gives the same approach for Linux and macOS. - Check your asset list. Does any server have a documented reason to use 4444? If not, find out why it is open.
- Check outbound logs. Look at firewall or DNS logs for connections from workstations to port 4444 on outside addresses.
- Run the free scan. The free web vulnerability scan at https://wolfcore.co.uk/free-web-vulnerability-scan/ checks your public web side. It does not replace a review of outbound rules.
If you find an unexplained listener or outbound connection: identify the process and its parent, isolate the machine from the network rather than just rebooting it, and treat it as an incident.
How to secure it
- Default-deny outbound traffic from servers, and allow only what each needs. This is the control that breaks connect-back shells whatever port is used.
- Patch the service that was exploited. ProtocolPorts is explicit that you should patch the underlying bug, not only block a port.
- Block 4444 outbound and inbound at the firewall as a cheap extra tripwire, knowing it is easy to bypass.
- Use endpoint detection that looks at behaviour, such as a script or document spawning a shell, not just port numbers.
- Remove unneeded remote access and require multi-factor authentication on what remains.
- Keep an asset list so a surprise listener stands out.
What we check on a test
During a test we review outbound filtering from a typical workstation and from servers: which ports can reach the internet, and whether an unexpected listener on a server would be noticed. We report what outbound rules allow. We do not assume 4444 is the port an attacker would pick.
Frequently asked questions
Is port 4444 always malicious? No. It has no standard service, but it can be a lab or testing tool. Find the process before you decide.
Does blocking 4444 stop reverse shells? Only ones that use it. The port is a setting the attacker chooses, so default-deny outbound is the stronger control.
What was the link to MSBlaster? The 2003 worm used a bug on port 135 and then used port 4444 for a remote shell, per ProtocolPorts.
Related terms
metasploit, port 135 msrpc, how eternalblue ms17 010 works, windows event id 4688 process creation, how lateral movement works, indicators of compromise
How Wolfcore helps
A Wolfcore penetration test finds this the way an attacker would, by hand, not with a scanner. Start with the free web vulnerability scan at https://wolfcore.co.uk/free-web-vulnerability-scan/ and see https://wolfcore.co.uk/services/penetration-testing/
Wolfcore
Would your staff click a phishing email?
Run a real, safe phishing test on your team with Phishy. Free for 14 days, up to 10 staff, no card. We help you set it up.
Start a free phishing testFree website security scanor book a 30 minute call