CIRCL / Circlean

USB key cleaner
https://www.circl.lu/projects/CIRCLean/
BSD 3-Clause "New" or "Revised" License
451 stars 70 forks source link

Unkown File Types #64

Open Macemas opened 6 years ago

Macemas commented 6 years ago

How do I go about adding a file type? I'm dealing with exchanging of Quickbooks Backups (.QBB && .QBX)

Rafiot commented 6 years ago

We can, but how do you validate them? Is there a parser to figure out sane/dangerous files?

Macemas commented 6 years ago

As far as my concern goes, the Quickbooks backup is safe because it's opened by the quickbooks program and read to a new file, it's not really opened directly. Obviously there's probably a way to use it to hide malware but for the most part in my experience when a virus gets ahold of it they either break the file by making it malicious (can't be restored from backup, but if you double click it, it runs a program) or it leaves them alone because it's an unkown file type.

I'm trying to prevent clients bringing us unclean USBs that may have autorun malware, or images/executables that aren't intended for us but just on their USB (multipurpose USBs). I'm not suggesting this for every environment but I would like to just add the .QBB/.QBX file extension to automatically copy over.

I'm going to talk to quickbooks about their linux applications and see if there's something that doesn't require licensing that can verify the backups.

Rafiot commented 6 years ago

So your use case is to only allow .QBB/.QBX file extensions, and discard everything else?

Macemas commented 6 years ago

I suppose, we don't necessarily want to discard everything else though. Just to at least not mark .QBB/.QBX files _DANGEROUS_MyKittyStore.QBXDANGEROUS as that scares the bookkeepers.

Rafiot commented 6 years ago

Makes sense. Do you have a sample file I could try to make sure it works properly?

Macemas commented 6 years ago

Sure thing. I downloaded a Quickbooks template online and made a backup of it: https://macemore.net/u/Sample.QBB Never too careful... https://www.virustotal.com/#/url/e62d098b0465021f447924e94279277d14bdfd34cc568c6820eff32f4f39aac7/detection