Project

General

Profile

Actions

Feature #5737

open

smtp body extract

Added by eason pan about 2 years ago. Updated 7 months ago.

Status:
New
Priority:
Normal
Target version:
Effort:
medium
Difficulty:
medium
Label:

Description

Description: extract message body from smtp data.currently this feature is missed.
1. add a config item to enable it or not in suricata.yaml
2. output message body to eve.json

```
smtp:
enabled: no
raw-extraction: no # Configure SMTP-MIME Decoder
mime: # Decode MIME messages from SMTP transactions # (may be resource intensive) # This field supersedes all others because it turns the entire # process on or off
decode-mime: no

  1. Decode MIME entity bodies (ie. Base64, quoted-printable, etc.)
    decode-base64: no
    decode-quoted-printable: no
  1. Maximum bytes per header data value stored in the data structure
  2. (default is 2000)
    header-value-depth: 2000
  1. Extract URLs and save in state data structure
    extract-urls: no
  2. Scheme of URLs to extract
  3. (default is [http])
    #extract-urls-schemes: [http, https, ftp, mailto]
  4. Log the scheme of URLs that are extracted
  5. (default is no)
    #log-url-scheme: yes
  6. Set to yes to compute the md5 of the mail body. You will then
  7. be able to journalize it.
    body: yes ----> to enable or disbale it
    body-md5: yes
    ```

Files

phishing-emails.pcap (12.8 MB) phishing-emails.pcap eason pan, 12/06/2022 05:46 AM
clipboard-202212061426-fp05u.png (16.7 KB) clipboard-202212061426-fp05u.png eason pan, 12/06/2022 06:26 AM

Related issues 2 (1 open1 closed)

Related to Suricata - Feature #4905: smtp: add stream app-layer frame support ClosedVictor JulienActions
Related to Suricata - Task #6474: detect: smtp body inspection keywordNewOISF DevActions
Actions

Also available in: Atom PDF