Skip to content

DNS rule format feedback #3

@zoomequipd

Description

@zoomequipd

a couple of things regarding the dns rules

alert dns $HOME_NET any -> any any (msg:"AT Related Malicious Domain (www[.]enduluxe[.]com/) in DNS Lookup"; dns.query; content:"www.enduluxe.com"; isdataat:!1,relative; reference:url,phishstats.info; reference:url,github.com/julioliraup/Antiphishing; classtype:social-engineering; sid:6000016; rev:1; metadata: signature_severity Major;)
  1. you might consider truncating www. off the domain and using dotprefix transformations and endswith modifier.

In many cases, domains controlled by phishing actors will setup several subdomains. For example in the referenced signature, this domain was observed with subdomain in the past (it was a LONG time ago, but proves the point nontheless) https://urlscan.io/search/#page.domain%3Aenduluxe.com

  1. if the intention is to match "exact" domains, this is fine, but consider using the bsize modifier to actually make it exact.

  2. defang domains by using a space instead of the [.] as per the [Suricata Community Style Guide
    (https://github.com/sidallocation/suricata-style-guide/blob/main/style-guide.md)

Defang domain names by using a space before the label separator to avoid accidental information leaks
   Example: Observed Malicious Win32/Badhombre DNS Query (tromf .mx)
  1. remove the trailing / from the domain in the MSG
    www[.]enduluxe[.]com/ --> www[.]enduluxe[.]com

Proposed format of exact match

alert dns $HOME_NET any -> any any (msg:"AT Related Malicious Domain (www .enduluxe .com) in DNS Lookup"; dns.query; bsize:16; content:"www.enduluxe.com";  reference:url,phishstats.info; reference:url,github.com/julioliraup/Antiphishing; classtype:social-engineering; sid:6000016; rev:1; metadata: signature_severity Major;)

Proposed format of non-exact match

alert dns $HOME_NET any -> any any (msg:"AT Related Malicious Domain (www .enduluxe .com) in DNS Lookup"; dns.query; dotprefix; content:".enduluxe.com"; endswith; reference:url,phishstats.info; reference:url,github.com/julioliraup/Antiphishing; classtype:social-engineering; sid:6000016; rev:1; metadata: signature_severity Major;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions