EXPLORE
← Back to Explore
sublimemediumRule

Attachment: EML file with IPFS links

Attached EML uses engaging language and IPFS links were detected in the EML file. IPFS has been recently observed hosting phishing sites.

MITRE ATT&CK

defense-evasion

Detection Query

type.inbound
and any(attachments,
        (.content_type == "message/rfc822" or .file_extension in ('eml'))
        and any(file.explode(.),
                any(.scan.url.urls,
                    strings.icontains(ml.link_analysis(.).effective_url.url,
                                      'ipfs'
                    )
                    or (
                      regex.icontains(ml.link_analysis(.).effective_url.path,
                                      '[\.-/]ipfs|ipfs[\.-/]'
                      )
                      and ml.link_analysis(.).effective_url.domain.domain not in $org_domains
                      and (
                        (
                          // don't include high rep domains
                          ml.link_analysis(.).effective_url.domain.domain not in $tranco_1m
                          and ml.link_analysis(.).effective_url.domain.domain not in $umbrella_1m
                        )
                        // if it's in Tranco or Umbrella, still include it if it's one of these
                        or ml.link_analysis(.).effective_url.domain.domain in $free_file_hosts
                        or ml.link_analysis(.).effective_url.domain.root_domain in $free_file_hosts
                        or ml.link_analysis(.).effective_url.domain.root_domain in $free_subdomain_hosts
                      )
                    )
                )
        )
)

Data Sources

Email MessagesEmail HeadersEmail Attachments

Platforms

email
Raw Content
name: "Attachment: EML file with IPFS links"
description: |
  Attached EML uses engaging language and IPFS links were detected in the EML file.  IPFS has been recently observed hosting phishing sites.
references:
  - "https://docs.ipfs.tech/how-to/address-ipfs-on-web/"
  - "https://securelist.com/ipfs-phishing/109158/"
type: "rule"
severity: "medium"
source: |
  type.inbound
  and any(attachments,
          (.content_type == "message/rfc822" or .file_extension in ('eml'))
          and any(file.explode(.),
                  any(.scan.url.urls,
                      strings.icontains(ml.link_analysis(.).effective_url.url,
                                        'ipfs'
                      )
                      or (
                        regex.icontains(ml.link_analysis(.).effective_url.path,
                                        '[\.-/]ipfs|ipfs[\.-/]'
                        )
                        and ml.link_analysis(.).effective_url.domain.domain not in $org_domains
                        and (
                          (
                            // don't include high rep domains
                            ml.link_analysis(.).effective_url.domain.domain not in $tranco_1m
                            and ml.link_analysis(.).effective_url.domain.domain not in $umbrella_1m
                          )
                          // if it's in Tranco or Umbrella, still include it if it's one of these
                          or ml.link_analysis(.).effective_url.domain.domain in $free_file_hosts
                          or ml.link_analysis(.).effective_url.domain.root_domain in $free_file_hosts
                          or ml.link_analysis(.).effective_url.domain.root_domain in $free_subdomain_hosts
                        )
                      )
                  )
          )
  )

attack_types:
  - "Credential Phishing"
tactics_and_techniques:
  - "Evasion"
  - "Free file host"
  - "Free subdomain host"
  - "IPFS"
detection_methods:
  - "File analysis"
  - "URL analysis"
id: "1fe9d7e7-892b-5b7f-a334-53b3fbddb9fe"