Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Samba] Veto files used to allow only one extension to be written to the share

127 views
Skip to first unread message

Tácio Andrade via samba

unread,
Mar 15, 2017, 11:00:03 PM3/15/17
to
Good night.

I am behind a way so that in my backup share it is possible to only write
files in the format of the application that I use to execute the backup
routines, for this I searched the internet for a solution that works like
Allow Files, however it is Complicated to find.

Talking on forums a user informed me that he could use the parameter to
follow in smb.conf, however in my tests it did not work.

veto files = /!*.doc/

Could anyone tell me if there really is any way to do it?


Sincerely, Tácio Andrade. IT Consultant at MultiTI.com.br
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

Tácio Andrade via samba

unread,
Mar 18, 2017, 6:00:03 AM3/18/17
to
Anyone know anything about it? I found a list with all the extensions used
by Ransomware at the moment, but they are almost 800 and with that amount I
think I will have problems using the veto files, as well as the red tape of
updating them.

Please, if anyone knows anything about it, please share.


2017-03-15 23:51 GMT-03:00 Tácio Andrade <tacioa...@gmail.com>:

> Good night.
>
> I am behind a way so that in my backup share it is possible to only write
> files in the format of the application that I use to execute the backup
> routines, for this I searched the internet for a solution that works like
> Allow Files, however it is Complicated to find.
>
> Talking on forums a user informed me that he could use the parameter to
> follow in smb.conf, however in my tests it did not work.
>
> veto files = /!*.doc/
>
> Could anyone tell me if there really is any way to do it?
>
>
> Sincerely, Tácio Andrade. IT Consultant at MultiTI.com.br
>



--
Att. Tácio Andrade, Consultor de TI na MultiTI.com.br
Whatsapp - 077(9)8111-7727
Oi - 073(9)8830-2419

Andrew Walker via samba

unread,
Mar 20, 2017, 8:40:03 AM3/20/17
to
What's your goal with this? Is it to prevent ransomware attacks on a samba
share that hosts your backups?

I think that trying to veto every type of ransomware file is the wrong
approach to take. Newer versions randomize the file names and extensions.
Ultimately, this approach his falls into the category of doing security by
trying to 'enumerate badness'.
http://www.ranum.com/security/computer_security/editorials/dumb/ Obviously,
computer security has moved along quite a ways since Marcus Ranum wrote
that (now there security puppy-mills, swanky icons, red bull?, theme songs,
and products galore), but if something was a bad idea in 2000 it's probably
still a bad idea today.

A better approach (in very broad strokes) is probably:
1) client hardening [prevent the attack from happening]
2) secure server configuration [in this case, don't let users (or
misbehaving applications) trash your backups]
3) get the ability to detect and stop an attack [there are various products
that claim to do this]
4) backups! [these should be quick to get at and restore. ZFS is very nice
in this regard.]

It seems like you're wanting to do (2). I just don't see "veto files" in
this case being the right solution. Perhaps this means adjusting how your
network is designed (keep backups on a separate network segment from your
client systems). Perhaps this means setting up a separate samba share that
can only be accessed by the backup application. I believe that ransomware
attacks execute with whatever privileges the user inadvertently executing
the thing (malicious website, pe / js file, macro, cat video, etc.) has.

TL;DR, don't let users write to the share that has your backups.
0 new messages