Skip to content

Commit b15b63f

Browse files
Insight: Filtering out common schema domains in Domains in Attachments (#3162)
1 parent e8148e1 commit b15b63f

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed
Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,29 @@
11
name: "Domains in attachments"
22
type: "query"
33
source: |
4-
filter(
5-
map(attachments,
6-
map(file.explode(.),
7-
distinct(map(.scan.url.urls, .domain.domain), .)
8-
)
9-
),
10-
length(.) > 0
4+
filter(map(attachments,
5+
map(file.explode(.),
6+
distinct(map(filter(.scan.url.urls,
7+
.domain.root_domain not in $org_domains
8+
and .domain.root_domain not in (
9+
"sublimesecurity.com",
10+
"wps.cn"
11+
)
12+
and .domain.domain not in~ (
13+
"schemas.openxmlformats.org",
14+
"schemas.microsoft.com",
15+
"purl.org",
16+
"www.w3.org",
17+
"purl.oclc.org",
18+
"schemas.apple.com"
19+
)
20+
),
21+
.url
22+
),
23+
.
24+
)
25+
)
26+
),
27+
length(.) > 0
1128
)
1229
severity: "informational"

0 commit comments

Comments
 (0)