Skip to content

Update: attachment_encrypted_pdf_cred_theft.yml - Small regex tweak#4920

Open
missingn0pe wants to merge 1 commit into
mainfrom
missingn0pe.fn.ESC-17540.attachment_encrypted_pdf_cred_theft
Open

Update: attachment_encrypted_pdf_cred_theft.yml - Small regex tweak#4920
missingn0pe wants to merge 1 commit into
mainfrom
missingn0pe.fn.ESC-17540.attachment_encrypted_pdf_cred_theft

Conversation

@missingn0pe

@missingn0pe missingn0pe commented Jul 17, 2026

Copy link
Copy Markdown
Member

Description

  • Fixes false negative (ESC-17540) in attachment_encrypted_pdf_cred_theft rule
  • Updated regex pattern to detect both "PDF passcode" and "PDF password" variants
  • Changed passcode to regex group pass(?:code|word)
  • 29 net-new coverage hits

Changes

Before:

'PDF\s*(?:Access|Preview|Unlock|Decrypt|passcode)'

After:

'PDF\s*(?:Access|Preview|Unlock|Decrypt|pass(?:code|word))'

Associated samples

- Sample 1

Associated hunts

- Hunt 1 (Shared samples) - L90D - PR logic
- Hunt 2 (Shared samples) - L90D - PR logic vs old logic
- Hunt 3 (Multi-hunt) - L30D - PR logic
- Hunt 4 (Multi-hunt) - L30D - PR logic vs old logic

Updated the regex pattern in attachment_encrypted_pdf_cred_theft rule to detect
both "PDF passcode" and "PDF password" variants. Changed from literal "passcode"
to regex group pass(?:code|word) for broader coverage of credential theft lures.

Fixes false negative where attacks use "password" instead of "passcode".

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@missingn0pe
missingn0pe requested a review from a team July 17, 2026 19:18
@missingn0pe
missingn0pe requested a review from a team as a code owner July 17, 2026 19:18
@missingn0pe missingn0pe self-assigned this Jul 17, 2026
@missingn0pe missingn0pe changed the title fix: expand encrypted PDF password regex to catch FN (ESC-17540) Update: expand encrypted PDF password regex to catch FN (ESC-17540) Jul 17, 2026
@missingn0pe missingn0pe changed the title Update: expand encrypted PDF password regex to catch FN (ESC-17540) Update: attachment_encrypted_pdf_cred_theft.yml - small regex tweak Jul 17, 2026
@missingn0pe missingn0pe changed the title Update: attachment_encrypted_pdf_cred_theft.yml - small regex tweak Update: attachment_encrypted_pdf_cred_theft.yml - Small regex tweak Jul 17, 2026
@github-actions github-actions Bot added the in-test-rules PR is in our testing suite to collect telemetry label Jul 17, 2026
github-actions Bot added a commit that referenced this pull request Jul 17, 2026
github-actions Bot added a commit that referenced this pull request Jul 17, 2026
@zoomequipd zoomequipd assigned zoomequipd and unassigned missingn0pe Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in-test-rules PR is in our testing suite to collect telemetry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants