Skip to content

update screenshot rule: add display regex and GDI+ routines#1148

Open
cipherBT wants to merge 1 commit intomandiant:masterfrom
cipherBT:fix-issue-981-capture-screenshot
Open

update screenshot rule: add display regex and GDI+ routines#1148
cipherBT wants to merge 1 commit intomandiant:masterfrom
cipherBT:fix-issue-981-capture-screenshot

Conversation

@cipherBT
Copy link
Copy Markdown

closes #981
Hi! I'm an undergraduate student actively preparing a proposal for the Automated Rule Generation GSoC 2026 project. This PR fixes the false negatives for the screenshot capability by accurately implementing @williballenthin original suggestions.

I have verified it locally and ran it against the 2f8... sandbox report to ensure the GDI+ branch fires successfully. Since this is my first time modifying existing rule architecture, I would deeply appreciate any review or feedback on the formatting!

@mike-hunhoff
Copy link
Copy Markdown
Collaborator

@cipherBT please post a screenshot of the unit tests passing locally before we give this a review.

@cipherBT
Copy link
Copy Markdown
Author

image image

Hi @mike-hunhoff Here are the local test results

Results: 944 passed, 566 skipped, 179 xfailed, 1 xpassed, 1 failed

The single failure (test_scripts[capa2sarif.py) is unrelated to my rule change, it fails due to a missing sarif_om dependency on my local environmen, which is solved by installing 'python3 -m pip install sarif_om>=1.0.4'.`

All rule-related tests pass cleanly. I have also verified locally that the updated rule successfully detects the GDI+ screenshot behavior against the 2f8a79b.. VMray sandbox report.
image

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.

false negative for screenshot

2 participants