-
Notifications
You must be signed in to change notification settings - Fork 50
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
Adding extension-less Office file snippet #679
Adding extension-less Office file snippet #679
Conversation
@@ -15,6 +15,12 @@ source: | | |||
.file_extension in~ ("rtf", "doc", "docx") | |||
or .file_extension in~ $file_extensions_common_archives | |||
or .file_extension in~ $file_extensions_macros | |||
or ( | |||
.file_extension is null | |||
and .file_type == "unknown" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not blocking you, but it sounds like we should add more file type matchers based on the contents? That way we can detect pdf(x), ppt(x), doc(x), etc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This rule specifically, or the snippet in general? Agreed that we should have more file type matching, but it shouldn't go inside the snippet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
totally, nothing you need to change here yet. Just making an observation that it sounds like we're short on some file type matchers in the backend. If we did have extra matchers, then you'd want to update .file_type
here
100000 is only .1mb. might want to bump it? |
/update-test-rules |
Adding extension-less Office file snippet by @aidenmitchell #679 Source SHA 7628945 Triggered by @morriscode
Office files without an extension appear as
in MQL, so adding this snippet to all of our Office file rules to ensure coverage. Size check is a guard rail.