-
-
Notifications
You must be signed in to change notification settings - Fork 402
fix: prevent invalid commands matches on 5 characters or less (932220 PL-2, 932230 PL-1, 932232 PL-3, 932235 PL-1, 932236 PL-2, 932237 PL-3, 932238 PL-3, 932239 PL-2, 932250 PL-1, 932260 PL-1) #3735
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
Merged
EsadCetiner
merged 85 commits into
coreruleset:main
from
EsadCetiner:fix-invalid-command-matches
Feb 10, 2025
Merged
Changes from all commits
Commits
Show all changes
85 commits
Select commit
Hold shift + click to select a range
f9be489
fix: prevent invalid commands matches on 5 characters or less (932230…
EsadCetiner b870dc9
fix: copy paste error
EsadCetiner 1e56e28
fix: invalid output in tests
EsadCetiner f97a09c
test: enable tests to detect new attacks
EsadCetiner cdd86d7
Merge branch 'coreruleset:main' into fix-invalid-command-matches
EsadCetiner b583f22
test: enable tests to detect new attacks
EsadCetiner ac55e54
fix: correct description for 932250-4
EsadCetiner 259cb1f
Merge branch 'main' into fix-invalid-command-matches
EsadCetiner 8e001e5
perf: use word boundry to prevent invalid matches
EsadCetiner b893999
test: add test for id command
EsadCetiner 2355eb7
fix: invalid output for tests
EsadCetiner 7101a8f
Merge branch 'main' into fix-invalid-command-matches
EsadCetiner 2d54859
fix: add missing line break
EsadCetiner 40f9b4b
fix: invalid test format
EsadCetiner 1dbcd8f
chore: update toolchain
EsadCetiner a07ffa4
test: enable tests for newly detected attacks
EsadCetiner 98a8cf2
fix: don't use word boundry to prevent invalid matches
EsadCetiner fa948a0
Merge branch 'main' into fix-invalid-command-matches
EsadCetiner 1d0f38e
chore: regenerate rules regex
EsadCetiner 6a65620
Merge branch 'main' into fix-invalid-command-matches
EsadCetiner fc79c86
fix: add chained rule to prevent common false positives
EsadCetiner 07a72fc
fix: setvar ordering
EsadCetiner d564524
fix: use lf instead of crlf
EsadCetiner d509025
fix: setvar ordering
EsadCetiner 98b2c3d
fix: typos
EsadCetiner bb8fcfa
docs: clarify test descriptions
EsadCetiner 2a614d7
docs: improve descriptions
EsadCetiner cd636ee
fix: brace expansion detection
EsadCetiner 8f05ee5
style: improve test description formatting
EsadCetiner a95b81f
style: improve test description formatting
EsadCetiner 9cfef8e
Merge branch 'main' into fix-invalid-command-matches
EsadCetiner 3064180
Merge branch 'coreruleset:main' into fix-invalid-command-matches
EsadCetiner d9e69e4
Update regex-assembly/932237.ra
EsadCetiner d712d3c
chore: update unix-shell.data
theseion 721efe5
chore: update list generation scripts and update lists
theseion f50ec30
fix: use correct match in list update script
theseion 3cc3e7a
chore: update unix-shell-fps-pl1
theseion c711003
chore: update regular expressions
theseion f91054a
chore: revert unnecessary chain rule
theseion 8f86a75
chore: fix failing tests
theseion 73d57c9
Merge branch 'main' into fix-invalid-command-matches
EsadCetiner bc487a4
Merge branch 'main' into fix-invalid-command-matches
EsadCetiner 51d75ac
fix: linting error
EsadCetiner e96b6ce
fix: linting error
EsadCetiner d156d78
fix: whitespace
EsadCetiner 1679e61
Merge branch 'main' into fix-invalid-command-matches
EsadCetiner 9db01df
Merge branch 'main' into fix-invalid-command-matches
EsadCetiner a3082b8
chore: move php / cron FPs to curated list
theseion 5fe7c58
Merge branch 'main' into fix-invalid-command-matches
theseion 8c89575
chore: do not exclude php / cron by commenting them in FP file
theseion 32295f9
chore: update anti-evasion pattern in all places
theseion 0b7da0b
Merge branch 'main' into fix-invalid-command-matches
theseion c77a668
chore: only exclude exact match for specific commands
theseion 01e8b6a
chore: give quantitative tests write permissions to PR
theseion 33f75a2
chore: fix `yes` and `date`
theseion 99df75e
Merge branch 'main' into fix-invalid-command-matches
EsadCetiner 00ef9f3
up
EsadCetiner 43586fe
fix: tests
EsadCetiner 0fc5d0c
fix: lint
EsadCetiner 370d414
update comments
EsadCetiner 2fd7e81
fix: typo
EsadCetiner e3e7e3d
Merge branch 'main' into fix-invalid-command-matches
EsadCetiner 69f41d9
up
EsadCetiner a1d6326
fix: sync pl-2 exclusions with pl-1
EsadCetiner 9f06a2b
fix: some commands not being excluded correctly
EsadCetiner f6cda1d
chore: update regex
EsadCetiner 66f674a
fix: exclude pwd from pl-1
EsadCetiner 0ab62ee
fix: fp with `hash` and `lastcommonreqid`
EsadCetiner e787cca
fix: pashto afghanistan user-agent fp at pl-3
EsadCetiner 10df976
fix: copy-paste leftover
EsadCetiner 5e255ad
fix: exclude `install` at pl-2
EsadCetiner 14ddd7b
Merge branch 'coreruleset:main' into fix-invalid-command-matches
EsadCetiner 8873f48
fix: exclude `ed` at pl-2
EsadCetiner b1ab68d
chore: use correct toolchain version
EsadCetiner 5cb7d30
typos
EsadCetiner d1adff4
Merge branch 'main' into fix-invalid-command-matches
EsadCetiner 29d8296
fix: change definition of `~` and exclude exact match `java`
EsadCetiner 0597589
Merge branch 'main' into fix-invalid-command-matches
EsadCetiner c148712
fix: test numbering
EsadCetiner 9bf8e99
chore: update unix-shell.data
EsadCetiner 7038308
fix: typos
EsadCetiner 20ecdd8
chore: update anti_evasion_no_space_suffixes
theseion 8466d83
fix: regression with unix evasion suffix no space
EsadCetiner e20192d
chore: update regex
EsadCetiner 8cffb1a
Merge branch 'main' into fix-invalid-command-matches
EsadCetiner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.