This repository was archived by the owner on Feb 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Malware protection 6: Malware integration #3604
Merged
Merged
Changes from 63 commits
Commits
Show all changes
82 commits
Select commit
Hold shift + click to select a range
afd0746
Rename PhishingDetection to MaliciousSiteProtection; code adjustments…
mallexxx 45c982d
fix linter issues
mallexxx f041a1a
Update UserText key names; Bump BSK; disable TODO warnings
mallexxx 3cdf77d
refactor Malicious Site Protection APIClient
mallexxx aca479c
fix test
mallexxx 712f7d6
Update Malicious site data storing
mallexxx 21f4585
fix BSK ref
mallexxx d135c21
fix BSK ref
mallexxx 5687819
Refactor malicious site data update manager
mallexxx 35cf020
Refactor Special Error Types
mallexxx 8cb5739
Package.resolved
mallexxx 6f29625
Integrate Malware protection
mallexxx 87fd08c
Update protections update script and data
mallexxx 9ef094d
validate revision returned by api in update script; fix revision upda…
mallexxx be5bde1
temporarily include malware test page to the filters
mallexxx bafd937
fix sh linter issue
mallexxx fcc6627
Package.resolved
mallexxx eb8be0b
bump BSK
mallexxx 906ccd4
Malware protection 2: API Client refactoring (#3595)
mallexxx 59b989a
Malware protection 3: Refactor Data storing (#3598)
mallexxx 4d40826
Merge remote-tracking branch 'origin/main' into alex/malware-protecti…
mallexxx 87f5f47
bump BSK
mallexxx fc9db2d
Merge branch 'alex/malware-protection-1' into alex/malware-protection-5
mallexxx e380729
Merge branch 'alex/malware-protection-5' into alex/malware-protection-6
mallexxx 5b82f9b
fix linter warning
mallexxx 30460c2
fix update_phishing_detection_data.sh; update malicious site data
mallexxx 94f1595
Merge branch 'alex/malware-protection-5' into alex/malware-protection-6
mallexxx 961e60f
fix updating hashes by update_phishing_detection_data.sh, add more in…
mallexxx 556ec25
Merge branch 'alex/malware-protection-5' into alex/malware-protection-6
mallexxx caccaff
fix linter issue
mallexxx 5445910
fix feature flag usage
mallexxx df70113
Merge branch 'alex/malware-protection-5' into alex/malware-protection-6
mallexxx 46dce01
add Malware tests
mallexxx a5efd99
fix tests
mallexxx 200c1b2
remove ambiguity for DuckURLSchemeHandler
mallexxx 78640c2
Merge branch 'alex/malware-protection-5' into alex/malware-protection-6
mallexxx 5c53151
fix tests
mallexxx 6a688ac
increase timeout
mallexxx 0eac1a9
fix tests
mallexxx 83338a8
fix fire overlay kept showing after closing fire window
mallexxx 6b92133
more debug info
mallexxx df4639b
rollback unneeded DuckURLSchemeHandler changes
mallexxx c9c7a46
rollback config
mallexxx 5449841
Merge branch 'alex/malware-protection-1' into alex/malware-protection-5
mallexxx 5afbe3b
address PR review comments
mallexxx 31a6325
rm OnboardingTabExtension
mallexxx 8b4c30e
fix tests
mallexxx 82553b8
remove localOverrides checks
mallexxx b14f1a3
disable daily os version pixel for test runs
mallexxx 4d2ac61
Merge remote-tracking branch 'origin/alex/malware-protection-5' into …
mallexxx 7efd315
Merge remote-tracking branch 'origin/main' into alex/malware-protecti…
mallexxx 6062a7f
fix build
mallexxx aeee5df
Malware protection 5: Refactor Special Error Types (#3603)
mallexxx 4bbae0a
rollback lost line
mallexxx 89bfa8b
cleanup
mallexxx fee4525
fix build
mallexxx 18656dc
fix build
mallexxx 7fd0faf
Merge branch 'alex/malware-protection-1' into alex/malware-protection-6
mallexxx b5ea63e
rename phishing, adjust settings
mallexxx 8b62077
Merge remote-tracking branch 'origin/main' into alex/malware-protecti…
mallexxx ae17370
Pinned tab favicon
mallexxx e465120
upd filter ver
mallexxx 61c94a0
ship review fixes
mallexxx 88dbfb1
fix tests
mallexxx be2f2ee
add Warning: to Malware title
mallexxx 941332a
go back for Ssl error page on Leave site action
mallexxx 3ee8985
Merge remote-tracking branch 'origin/main' into alex/malware-protecti…
mallexxx 8893893
update copy xcstrings
mallexxx d672847
update data
mallexxx c92cb45
fix page reloading on "Accept risk"
mallexxx 4564fcf
remove TODO-s
mallexxx 01c9932
fix tests
mallexxx f39d20f
update BSK dependency
SabrinaTardio 3b80c27
update copy
mallexxx 6307071
fix privacy dashboard button not updated
mallexxx dfb58cb
BSK -> 221.0.0
mallexxx d53d4f6
rm privacy-dashboard
mallexxx 28f752e
Merge remote-tracking branch 'origin/main' into alex/malware-protecti…
mallexxx 890480a
cleanup
mallexxx d4c60ee
maliciousSiteProtectionErrorPage feature flag -> maliciousSiteProtection
mallexxx 244467d
BSK -> 221.0.1
mallexxx e14814f
Merge remote-tracking branch 'origin/main' into alex/malware-protecti…
mallexxx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,8 +31,8 @@ | |
switch (dataType, dataType.threatKind) { | ||
case (.hashPrefixSet, .phishing): "phishingHashPrefixes.json" | ||
case (.filterSet, .phishing): "phishingFilterSet.json" | ||
// case (.hashPrefixes, .malware): "malwareHashPrefixes.json" | ||
// case (.filters, .malware): "malwareFilterSet.json" | ||
case (.hashPrefixSet, .malware): "malwareHashPrefixes.json" | ||
case (.filterSet, .malware): "malwareFilterSet.json" | ||
} | ||
} | ||
|
||
|
@@ -46,11 +46,12 @@ | |
struct EmbeddedDataProvider: MaliciousSiteProtection.EmbeddedDataProviding { | ||
|
||
private enum Constants { | ||
static let embeddedDataRevision = 1694418 | ||
static let phishingEmbeddedHashPrefixDataSHA = "d9eccd24d05ce16d4ab877574df728f69be6c7840aea00e1be11aeafffb0b1dc" | ||
// TODO: Rollback the revision and filter (with -f) set when malware is available on the server | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we remove it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, this is to be removed before merging. for now it‘s there to test |
||
static let embeddedDataRevision = 1695638 | ||
static let phishingEmbeddedHashPrefixDataSHA = "a9fdca1e3c852ac288b738314732847c0daf27caf3ed30a349ecaaae04682e7e" | ||
static let phishingEmbeddedFilterSetDataSHA = "5452a5a36651c3edb5f87716042175b5a3074acb5cc62a279dbca75479fc1eda" | ||
// static let malwareEmbeddedHashPrefixDataSHA = "be5a2320307ed0dd8b8b2f2702dbade752dfb886aae24f212b0c3009524636aa" | ||
// static let malwareEmbeddedFilterSetDataSHA = "37517e5f3dc66819f61f5a7bb8ace1921282415f10551d2defa5c3eb0985b570" | ||
static let malwareEmbeddedHashPrefixDataSHA = "b248a417fbd003de95fd273ae01d1b336fe2599b7d1c60b8f71786a943ab4a83" | ||
static let malwareEmbeddedFilterSetDataSHA = "6c63a19c15868083f80b9936cafc482ae9e6f01d27246aa91789197b6f5ba9e7" | ||
} | ||
|
||
func revision(for dataType: MaliciousSiteProtection.DataManager.StoredDataType) -> Int { | ||
|
@@ -69,8 +70,8 @@ | |
switch (dataType, dataType.threatKind) { | ||
case (.hashPrefixSet, .phishing): Constants.phishingEmbeddedHashPrefixDataSHA | ||
case (.filterSet, .phishing): Constants.phishingEmbeddedFilterSetDataSHA | ||
// case (.hashPrefixes, .malware): Constants.malwareEmbeddedHashPrefixDataSHA | ||
// case (.filters, .malware): Constants.malwareEmbeddedFilterSetDataSHA | ||
case (.hashPrefixSet, .malware): Constants.malwareEmbeddedHashPrefixDataSHA | ||
case (.filterSet, .malware): Constants.malwareEmbeddedFilterSetDataSHA | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need translations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, as soon as we get our copy approved