Skip to main content

Port Details

Port
6667
Transport
TCP
Service
IRC
IANA service name
ircu
Range
User port (1024-49151)
Related ports
1946697

Security Exposure

Connections on 6667 are plain text, so messages and passwords sent with the IRC PASS command cross the network unencrypted. IRC is also used as a command and control channel: MITRE ATT&CK lists Hildegard, Magic Hound malware, Siloscape and TeamTNT using IRC for C2, and Shadowserver publishes a report of IRC networks contacted by sandboxed malware.

Hardening

  • +Block outbound TCP 6665 to 6669 from servers and workstations that have no need for IRC.
  • +Use TLS on port 6697 for legitimate IRC use.
  • +Require server and channel passwords on internal IRC services and keep the IRC daemon patched.

Monitoring

Alert on outbound connections to TCP 6665 to 6669 and on IRC commands such as NICK, USER and JOIN seen on non-standard ports.

Tools for Auditing and Monitoring IRC

Snort

Open Source
SIEM Tools

Open-source network intrusion detection and prevention engine that inspects traffic with rule-based signatures and protocol analysis.

LicenseGPL-2.0-only
PlatformLinux, FreeBSD

Zeek

Open Source
Network Monitoring Tools

Network security monitoring framework that translates raw packet traffic into structured transaction logs and network events.

LicenseBSD-3-Clause
PlatformLinux, FreeBSD, macOS, OpenBSD

Suricata

Open Source
Network Monitoring Tools

High-speed network intrusion detection, prevention, and security monitoring engine with deep protocol parsing capabilities.

LicenseGPL-2.0-only
PlatformLinux, FreeBSD, macOS, Windows

Frequently Asked Questions

Is IRC on port 6667 encrypted?→

No. RFC 7194 describes 6667 as the plaintext default and 6697 as the port for IRC over TLS.

Why does port 6667 show up in malware analysis?→

Malware families have used IRC for command and control, and Shadowserver tracks IRC servers contacted by malware in sandboxes.

Sources

Port assignments from the IANA Service Name and Transport Protocol Port Number Registry. Services can be configured to run on any port, so traffic on port 6667 is not guaranteed to be IRC. Exploited-in-the-wild data from the CISA KEV catalog (CC0).