-
Notifications
You must be signed in to change notification settings - Fork 3
/
AV-detection.bro
81 lines (65 loc) · 3.04 KB
/
AV-detection.bro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Script to detect the AV software running on the clients/end-points,
# by analyzing DNS requests to the corresponding AV servers for updates.
##Mcafee##
# Mcafee GTI File Reputation accesses an online master database to determine whether a file is suspicious.
# GTI File Reputation queries can be recognized because they are on sub domains of avqs.mcafee.com or avts.mcafee.com.
# By determining the src_ip making the queries to GTI DB for suspicious file, one can find out if they are running Mcafee VS.
# Following script determines the Mcafee AV by looking at the DNS queries for those sub-domains.
##MalwareBytes##
# The DNS keystone.mwbsys.com is used for verification of license keys by the various Malwarebytes apps.
@load base/frameworks/software
@load base/protocols/dns
module AV;
export {
redef enum Software::Type += {
## Identifier for AV software
MCAFEE,
MALWAREBYTES,
AVAST,
SOPHOS,
QIHU,
};
type Software::name_and_version: record {
name : string;
version: Software::Version;
};
}
event DNS::log_dns (rec: DNS::Info) &priority=5
{
local result: Software::name_and_version;
if ( rec?$query && /avts.mcafee.com/ in rec$query )
{
result$name = "Mcafee GTI";
result$version$addl = "Probably VSCore 14.4.0.354.17 or later";
Software::found(rec$id, [$version=result$version, $name=result$name, $host=rec$id$orig_h, $software_type=MCAFEE,$unparsed_version=rec$query]);
}
if ( rec?$query && /avqs.mcafee.com/ in rec$query )
{
result$name = "Mcafee GTI";
result$version$addl = "Probably GTI Proxy or Othe Mcafee Entp. product";
Software::found(rec$id, [$version=result$version, $name=result$name, $host=rec$id$orig_h, $software_type=MCAFEE,$unparsed_version=rec$query]);
}
if ( rec?$query && /keystone.mwbsys.com/ in rec$query )
{
result$name = "MalwareBytes";
Software::found(rec$id, [$name=result$name, $host=rec$id$orig_h, $software_type=MALWAREBYTES,$unparsed_version=rec$query]);
}
if ( rec?$query && /sophosxl.net/ in rec$query )
{
result$name = "Sophos";
Software::found(rec$id, [$name=result$name, $host=rec$id$orig_h, $software_type=SOPHOS,$unparsed_version=rec$query]);
}
if ( rec?$query && /ff.avast.com/ in rec$query )
{
result$name = "Avast";
Software::found(rec$id, [$name=result$name, $host=rec$id$orig_h, $software_type=AVAST,$unparsed_version=rec$query]);
}
}
event HTTP::log_http(rec: HTTP::Info) &priority=10
{
if(rec?$method && rec$method == "POST" && /conf.f.360.cn/ in rec$host)
{ local result: Software::name_and_version;
result$name = "Qihu";
Software::found(rec$id, [$name=result$name, $host=rec$id$orig_h, $software_type=QIHU]);
}
}