Skip to content

Commit

Permalink
Gus rules recomm.
Browse files Browse the repository at this point in the history
  • Loading branch information
fcosantos committed Aug 7, 2023
1 parent 737d584 commit bd6095c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions examples/netwatch_templates/domain.yara
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
rule network_watch_${domain_escaped} : ${domain_escaped} {
meta:
description = "Monitor new domains for ${domain}"
description = "Monitor new subdomains for ${domain}"
target_entity = "domain"
condition:
vt.net.domain.new_domain and
vt.net.domain.raw endswith "${domain}"
vt.net.domain.root == "${domain}"
}
4 changes: 2 additions & 2 deletions examples/netwatch_templates/file.yara
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
rule network_watch_${domain_escaped} : ${domain_escaped} {
meta:
description = "New files downloaded from domain ${domain}"
description = "New files downloaded from ${domain}"
target_entity = "file"
condition:
vt.metadata.new_file and
vt.metadata.itw.domain.raw iendswith "${domain}"
vt.metadata.itw.domain.root == "${domain}"
}
5 changes: 3 additions & 2 deletions examples/netwatch_templates/ip_address.yara
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
rule network_watch_${domain_escaped} : ${domain_escaped} {
meta:
description = "New IP addresses resolving domain ${domain}"
description = "New IP addresses resolving domain ${domain} or its subdomains"
target_entity = "ip_address"
condition:
vt.net.ip.reverse_lookup iendswith "${domain}"
vt.net.ip.reverse_lookup == "${domain}"
vt.net.ip.reverse_lookup endswith ".${domain}"
}
2 changes: 1 addition & 1 deletion examples/netwatch_templates/url.yara
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ meta:
target_entity = "url"
condition:
vt.net.url.new_url and
vt.net.domain.raw == "${domain}"
vt.net.domain.root == "${domain}"
}

0 comments on commit bd6095c

Please sign in to comment.