Skip to content

Commit

Permalink
Netwatch example subdomains and emails
Browse files Browse the repository at this point in the history
  • Loading branch information
fcosantos committed Nov 24, 2023
1 parent ecf66e1 commit 056f75b
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions examples/netwatch_templates/file.yara
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ meta:
target_entity = "file"
condition:
vt.metadata.new_file and
vt.metadata.itw.domain.root == "${domain}"
(vt.metadata.itw.domain.root == "${domain}" or
vt.metadata.itw.domain.raw iendswith ".${domain}"
)
}


Expand All @@ -14,6 +16,22 @@ meta:
target_entity = "file"
condition:
for any lookup in vt.behaviour.dns_lookups : (
lookup.hostname iequals "${domain}"
(lookup.hostname == "${domain}" or
lookup.hostname iendswith ".${domain}"
)
)
}

rule network_watch_email_embeds_${domain_escaped} : ${domain_escaped} {
meta:
description = "New files containing ${domain}"
target_entity = "file"
strings:
$domain = "${domain}"
condition:
any of them and
vt.metadata.new_file and
(vt.metadata.file_type == vt.FileType.EMAIL or
vt.metadata.file_type == vt.FileType.OUTLOOK
)
}

0 comments on commit 056f75b

Please sign in to comment.