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

修改rule id 98的环境变量增加忽略大小写标记、修复拼写错误 #263

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

testwill
Copy link
Contributor

@testwill testwill commented Aug 1, 2023

No description provided.

@@ -23,7 +23,7 @@ func getRegexp(pattern string) (regex *regexp.Regexp, err error) {
} else {
// If it does not exist in the cache,
// it compiles the pattern and creates one.
regex, err = regexp.Compile(pattern)
regex, err = regexp.Compile("(?i)" + pattern)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个不建议直接在代码层面去做,如果某些规则需要忽略大小写,那么应该在规则本身去修改正则,而不是在代码层将所有的pattern强制加了忽略大小写,可能会导致很多误报(如AK/SK的规则)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的

@testwill testwill changed the title 正则增加忽略大小写标记 key、token等环境变量增加忽略大小写标记、修复拼写错误 Aug 1, 2023
@testwill testwill changed the title key、token等环境变量增加忽略大小写标记、修复拼写错误 修改rule id 98的环境变量增加忽略大小写标记、修复拼写错误 Aug 1, 2023
@DVKunion DVKunion merged commit 825e339 into chaitin:master Sep 1, 2023
22 checks passed
@testwill testwill deleted the sensitive branch September 1, 2023 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants