Hi.
I'm looking for some documentation on the bests ways to find a signature in a file (PE, but nevermind).
Currently, I'm doing this:
I'm passing all my signatures to SQLite, and I wonder if there are good ways to query the database for some signatures match.
How do AV product do to handle their huge databases?
I'm looking for some documentation on the bests ways to find a signature in a file (PE, but nevermind).
Currently, I'm doing this:
Code: Select all
This is quite fast cause I got less than 20 signatures to search, but in a whole database this can be very long I guess.open file
parse sections
foreach section in sections
foearch byte in bytes
foreach signature in signatures
memcmp(...)
end
end
end
I'm passing all my signatures to SQLite, and I wonder if there are good ways to query the database for some signatures match.
How do AV product do to handle their huge databases?