I have written some antivirus software in Python, but am unable to find virus signatures. The software works by dumping each file on the hard disk to hex, thus getting the hex signature. Where do i get signatures for all the known viruses?
There's Clamav, the open source GPL anti-virus. You can read its source code to see how it implements heuristics and other stuff. It's written in C, though.
You can download a virus database there as well. They're free and updated frequently.
I doubt such a list exists, anti-virus companies spend a lot of time/money building their databases and it would seem unlikely that any of them would release the data for free.
Also, as Lasse says, not all viruses have a static signature. The "good" ones (and I would assume that means the majority of viruses from this century) would all be self-mutating.
There is a database of malware signatures in CSV format
on comodo.com you can download them from their site
Download Virus signature database
That is a quite large file(about 432MB) so it should contain a lot of signatures.
© 2022 - 2024 — McMap. All rights reserved.
b
before the string, e.g.b'hello'
orb'\x68\x65\x6c\x6c\xf'
, which are both equivalent to'hello'
in Python 2.) – Selfrenunciation