4.8 Interpret the fields in protocol headers as related to intrusion analysis
📘Cisco Certified CyberOps Associate (200-201 CBROPS)
1. SMTP (Simple Mail Transfer Protocol)
- Purpose:
SMTP is used to send emails from a client (like Outlook, Thunderbird) to a mail server or between mail servers. It is outgoing mail only. - Port Numbers:
- Default: 25 (server-to-server communication)
- Secure (with TLS/SSL): 587 (submission from client to server)
- Sometimes 465 (deprecated, SSL)
- How SMTP Works:
- Client connects to the mail server.
- Client sends commands to initiate the email (like
HELO,MAIL FROM,RCPT TO,DATA). - Server responds with numeric SMTP response codes (e.g., 250 = OK, 550 = mailbox unavailable).
- Message is transmitted, and connection is closed.
- SMTP Header Fields:
While SMTP is a text-based protocol, it still has headers that are useful for intrusion analysis: FieldDescriptionExampleMAIL FROM:Sender email addressMAIL FROM:<alice@example.com>RCPT TO:Recipient email addressRCPT TO:<bob@example.com>DATAStart of the email contentEmail body begins afterDATASubject:Email subject lineSubject: Security UpdateDate:Timestamp of the emailDate: Mon, 15 Mar 2026 14:00:00 +0000- Why important for intrusion analysis:
- Detect spoofed senders (
MAIL FROM) - Identify unusual or malicious subjects
- Track email timestamps to spot suspicious spikes in traffic
- Detect spoofed senders (
- Why important for intrusion analysis:
2. POP3 (Post Office Protocol v3)
- Purpose:
POP3 is used to download emails from the mail server to the client. After downloading, emails are usually deleted from the server (unless configured to leave a copy). - Port Numbers:
- Default: 110 (non-secure)
- Secure (POP3S): 995 (SSL/TLS)
- How POP3 Works:
- Client connects to the server.
- Authentication occurs (
USERandPASScommands). - Emails are listed (
LIST) and retrieved (RETR). - Emails can be deleted (
DELE). - Connection ends (
QUIT).
- POP3 Header Fields:
POP3 itself mostly transmits commands and responses, but when you look at the email messages it retrieves, you can see the same headers as SMTP emails:From,To,Subject,Date, etc. - Why important for intrusion analysis:
- Check for unusual email access patterns
- Detect unauthorized login attempts
- Monitor for mass email downloads (possible data exfiltration)
3. IMAP (Internet Message Access Protocol)
- Purpose:
IMAP is used to access emails on the server without downloading them permanently. This allows multiple devices to sync emails and folders. - Port Numbers:
- Default: 143 (non-secure)
- Secure (IMAPS): 993 (SSL/TLS)
- How IMAP Works:
- Client connects to the server.
- Authentication (
LOGINcommand). - Client can list folders (
LIST) and messages (FETCH). - Changes are synchronized (read/unread, move, delete).
- Connection ends (
LOGOUT).
- IMAP Header Fields:
IMAP doesn’t modify the email headers but fetches messages containing: FieldDescriptionFrom:Sender of the emailTo:RecipientSubject:Email subjectDate:TimestampFlags:Seen, Answered, Deleted, etc. - Why important for intrusion analysis:
- Detect unauthorized folder access
- Track emails flagged as read/deleted remotely
- Monitor for suspicious IMAP commands indicating malware or scripts accessing emails
4. Key Differences Between POP3 and IMAP
| Feature | POP3 | IMAP |
|---|---|---|
| Email storage | Downloaded to client | Remains on server |
| Multiple devices | Poor support | Excellent support |
| Email status sync | No | Yes (seen, deleted, flagged) |
| Typical ports | 110, 995 | 143, 993 |
5. Email Protocols in Intrusion Analysis
When performing intrusion analysis, knowing SMTP, POP3, and IMAP headers and commands helps you detect:
- Phishing or spoofed emails – by checking
MAIL FROMvs.From:header. - Unauthorized logins – unusual POP3 or IMAP logins, failed authentication attempts.
- Malware communication – attackers sometimes use email for command-and-control messages.
- Data exfiltration – mass downloads via POP3 or IMAP can indicate sensitive data theft.
- Anomalous patterns – sudden spikes in email sending (SMTP) or fetching (POP3/IMAP).
6. Exam Tips
- Remember ports:
- SMTP: 25, 587 (TLS)
- POP3: 110, 995 (SSL)
- IMAP: 143, 993 (SSL)
- Know commands and responses:
- SMTP:
HELO,MAIL FROM,RCPT TO,DATA,QUIT - POP3:
USER,PASS,LIST,RETR,DELE,QUIT - IMAP:
LOGIN,LIST,FETCH,LOGOUT
- SMTP:
- Focus on headers for analysis:
From,To,Subject,Date,Flags - Recognize anomalies: sudden spikes, unusual addresses, unknown ports, or repeated failed logins.
