Skip to content

Commit 1ce9f52

Browse files
gsanchiettiTbaile
authored andcommitted
fix(ns-threat_shield): update DNS feed format
The adblock package 4.5.5-r3 introduced a strict validation requiring feed rules to start with the word 'feed'. Previously, awk-style rules were supported but now cause feeds to be silently dropped. Update both DNS source files to use the new 'feed 1' format: - community-dns.sources: 8 feeds using '/^[^#]/ { print }' - nethesis-dns.sources: 4 feeds using complex awk validation regex
1 parent 9c30c61 commit 1ce9f52

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

packages/ns-threat_shield/files/community-dns.sources

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
11
{
22
"malware_lvl2": {
33
"url": "https://bl.nethesis.it/plain/community/free/malware_lvl2.dns",
4-
"rule": "/^[^#]/ { print }",
4+
"rule": "feed 1",
55
"size": "XXL",
66
"focus": "Threat Intelligence Feed",
77
"descurl": "www.nethesis.it"
88
},
99
"malware_privacy_lvl2": {
1010
"url": "https://bl.nethesis.it/plain/community/free/malware_privacy_lvl2.dns",
11-
"rule": "/^[^#]/ { print }",
11+
"rule": "feed 1",
1212
"size": "XXL",
1313
"focus": "Multi Light: malware & privacy",
1414
"descurl": "www.nethesis.it"
1515
},
1616
"malware_privacy_lvl3": {
1717
"url": "https://bl.nethesis.it/plain/community/free/malware_privacy_lvl3.dns",
18-
"rule": "/^[^#]/ { print }",
18+
"rule": "feed 1",
1919
"size": "XXL",
2020
"focus": "Multi Normal: malware and privacy",
2121
"descurl": "www.nethesis.it"
2222
},
2323
"malware_privacy_lvl4": {
2424
"url": "https://bl.nethesis.it/plain/community/free/malware_privacy_lvl4.dns",
25-
"rule": "/^[^#]/ { print }",
25+
"rule": "feed 1",
2626
"size": "XXL",
2727
"focus": "Multi Pro: malware and privacy",
2828
"descurl": "www.nethesis.it"
2929
},
3030
"adult": {
3131
"url": "https://bl.nethesis.it/plain/community/free/adult.dns",
32-
"rule": "/^[^#]/ { print }",
32+
"rule": "feed 1",
3333
"size": "XXL",
3434
"focus": "Adult",
3535
"descurl": "www.nethesis.it"
3636
},
3737
"doh_vpn_tor_proxy": {
3838
"url": "https://bl.nethesis.it/plain/community/free/doh_vpn_tor_proxy.dns",
39-
"rule": "/^[^#]/ { print }",
39+
"rule": "feed 1",
4040
"size": "XXL",
4141
"focus": "Prevent DNS bypass",
4242
"descurl": "www.nethesis.it"
4343
},
4444
"gambling": {
4545
"url": "https://bl.nethesis.it/plain/community/free/gambling.dns",
46-
"rule": "/^[^#]/ { print }",
46+
"rule": "feed 1",
4747
"size": "XXL",
4848
"focus": "Gambling",
4949
"descurl": "www.nethesis.it"
5050
},
5151
"piracy": {
5252
"url": "https://bl.nethesis.it/plain/community/free/piracy.dns",
53-
"rule": "/^[^#]/ { print }",
53+
"rule": "feed 1",
5454
"size": "XXL",
5555
"focus": "Piracy",
5656
"descurl": "www.nethesis.it"

packages/ns-threat_shield/files/nethesis-dns.sources

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
{
22
"yoroi_malware_level1": {
33
"url": "https://__USER__:__PASSWORD__@bl.nethesis.it/plain/__TYPE__/nethesis-blacklists/yoroi_malware_level1.dns",
4-
"rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
4+
"rule": "feed 1",
55
"size": "XL",
66
"focus": "malware",
77
"descurl": "https://www.nethesis.it"
88
},
99
"yoroi_malware_level2": {
1010
"url": "https://__USER__:__PASSWORD__@bl.nethesis.it/plain/__TYPE__/nethesis-blacklists/yoroi_malware_level2.dns",
11-
"rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
11+
"rule": "feed 1",
1212
"size": "XL",
1313
"focus": "malware",
1414
"descurl": "https://www.nethesis.it"
1515
},
1616
"yoroi_susp_level1": {
1717
"url": "https://__USER__:__PASSWORD__@bl.nethesis.it/plain/__TYPE__/nethesis-blacklists/yoroi_suspicious_level1.dns",
18-
"rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
18+
"rule": "feed 1",
1919
"size": "XL",
2020
"focus": "malware",
2121
"descurl": "https://www.nethesis.it"
2222
},
2323
"yoroi_susp_level2": {
2424
"url": "https://__USER__:__PASSWORD__@bl.nethesis.it/plain/__TYPE__/nethesis-blacklists/yoroi_suspicious_level2.dns",
25-
"rule": "/^([[:alnum:]_-]{1,63}\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
25+
"rule": "feed 1",
2626
"size": "XL",
2727
"focus": "malware",
2828
"descurl": "https://www.nethesis.it"

0 commit comments

Comments
 (0)