Skip to content

fix(olevba): make E-mail address regex use raw '\b' instead of litera… - #892

Open
c-rosenberg wants to merge 1 commit into
decalage2:masterfrom
HeinleinSupport:fix-email-ioc-regex-non-raw-backslash-b
Open

c-rosenberg wants to merge 1 commit into
decalage2:masterfrom
HeinleinSupport:fix-email-ioc-regex-non-raw-backslash-b

Conversation

@c-rosenberg

Copy link
Copy Markdown

…l backspace

RE_PATTERNS concatenated r'...' + SERVER + '\b' (non-raw), so Python compiled '\b' to a backspace char (\x08) instead of the regex word-boundary token, making the e-mail IOC pattern unmatchable. Fixed by using r'\b'. Added a regression test for e-mail IOC detection.

…l backspace

RE_PATTERNS concatenated r'...' + SERVER + '\b' (non-raw), so Python
compiled '\b' to a backspace char (\x08) instead of the regex
word-boundary token, making the e-mail IOC pattern unmatchable.
Fixed by using r'\b'. Added a regression test for e-mail IOC detection.
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.

1 participant