Nothing Special   »   [go: up one dir, main page]

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

FR: match on MIME type #25

Open
Zugschlus opened this issue May 2, 2019 · 1 comment
Open

FR: match on MIME type #25

Zugschlus opened this issue May 2, 2019 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@Zugschlus
Copy link
Contributor

Hi,

I would like to be able to write something like

!/usr/share/locale/[^/]/LC_MESSAGES/.*.mo$ mime=application/x-gettext-translation

to exclude everything that matches the given MIME type. That would probably help in reducing the amount of aide reports in directories with many known harmless files which could be used by an attacker to hide away executables or scripts or tools.

I know that this will link in libmagic which has a rather complicated security history, but the use case would be helpful anyway.

Greetings
Marc

@hvhaugwitz hvhaugwitz added the enhancement New feature or request label May 2, 2019
@hvhaugwitz hvhaugwitz added this to the Backlog milestone May 2, 2019
@hvhaugwitz
Copy link
Member

Thanks for your feature request.

I strongly share your concerns about the security of libmagic, nevertheless I also understand your use case. Let's keep this issue open to decide later how to continue with it.

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

No branches or pull requests

2 participants