Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UpdateClient: WARNING: prefix set does not fully match retrieved list: expected 500 =/= retrieved 499 #1

Open
hildeb opened this issue Jun 23, 2020 · 3 comments

Comments

@hildeb
Copy link

hildeb commented Jun 23, 2020

On the initial run of clamsbsync.py I'm getting:

UpdateClient: WARNING: prefix set does not fully match retrieved list: expected 500 =/= retrieved 499
UpdateClient: WARNING: prefix set does not fully match retrieved list: expected 500 =/= retrieved 499
UpdateClient: WARNING: prefix set does not fully match retrieved list: expected 500 =/= retrieved 499
UpdateClient: WARNING: prefix set does not fully match retrieved list: expected 500 =/= retrieved 499
UpdateClient: WARNING: prefix set does not fully match retrieved list: expected 500 =/= retrieved 499

@hildeb
Copy link
Author

hildeb commented Jun 23, 2020

More context:

# clamsbsync.py -v build
root: INFO: Running update.py CLI
UpdateClient: INFO: processing changes for MALWARE.URL.ALL_PLATFORMS from NEW to Cg0IARAGGAEiAzAwMTABENTEBxoCGAnHSw42
UpdateClient: INFO: adding 41324 new entries to MALWARE.URL.ALL_PLATFORMS
UpdateClient: INFO: updating state for MALWARE.URL.ALL_PLATFORMS from NEW to Cg0IARAGGAEiAzAwMTABENTEBxoCGAnHSw42
UpdateClient: INFO: sync success for MALWARE.URL.ALL_PLATFORMS - db.update 0:2:26.142
UpdateClient: INFO: computed checksum of prefixes for MALWARE.URL.ALL_PLATFORMS = 0a95bdaf5c05d236e97dce9435450aba9ea99bb6b0c25854d167e616d8684220
UpdateClient: INFO: computed checksum of prefixes matches expected checksum
UpdateClient: INFO: processing changes for SOCIAL_ENGINEERING.URL.ALL_PLATFORMS from NEW to Cg0IAhAGGAEiAzAwMTABEOTxCBoCGAlmDTAL
UpdateClient: WARNING: prefix set does not fully match retrieved list: expected 500 =/= retrieved 499
UpdateClient: INFO: commiting additions segment for SOCIAL_ENGINEERING.URL.ALL_PLATFORMS

@kevlin2
Copy link
Contributor

kevlin2 commented Nov 4, 2022

This shouldn't be too much of an issue, the safebrowsing database pulls from two parts of Google's API: list updates and full hash lookups.

It first retrieves the full list of changes since the last update with includes directions on changing an established prefix list. Then, since ClamAV requires the full hash, queries the full hash service with those prefixes.

Since there is some time in between the queries and Google is always constantly updating lists, there is a chance that the associated full hash to a prefix may go stale in between. Thus a lookup mismatch occurs.

The 500 =/= 499 means that of the 500 prefixes submitted for the given query only 499 full hashes were returned.

Ultimately, this is fine and will not affect future updates as the list updates and full hash lookups are independent.

@micahsnyder
Copy link
Contributor

While the warnings described are not a problem, I think we should leave this issue open to make it easier for people who encounter the warning to find this explanation.

If anyone from the community is keen to submit a PR to reduce the severity of the message add additional explanation to the message, you're welcome to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants