Skip to content

Add AntiSandbox Windows Activation signature#585

Open
kevross33 wants to merge 4 commits into
CAPESandbox:masterfrom
kevross33:patch-360516
Open

Add AntiSandbox Windows Activation signature#585
kevross33 wants to merge 4 commits into
CAPESandbox:masterfrom
kevross33:patch-360516

Conversation

@kevross33

@kevross33 kevross33 commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Some sandboxes wont be activated due to isolation or because they download the free trials. Malware could use this to check if possibly a sandbox because most users will use genuine windows and certainly within enterprise networks.

image

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new Cuckoo signature, AntiSandboxWindowsActivation, designed to detect malware querying Windows licensing, activation, or genuine status to evade analysis. The review feedback highlights critical Python 2.7 compatibility issues: the use of f-strings will cause syntax errors, strict isinstance(..., str) checks will fail for unicode objects, and calling str() on registry paths can trigger UnicodeEncodeError crashes. The reviewer provides actionable suggestions to replace f-strings with .format() and to remove or adjust the type checks for robust Python 2.7 compatibility.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread modules/signatures/windows/antisandbox_windowsactivation.py
Comment thread modules/signatures/windows/antisandbox_windowsactivation.py
Comment thread modules/signatures/windows/antisandbox_windowsactivation.py Outdated
Comment thread modules/signatures/windows/antisandbox_windowsactivation.py
Comment thread modules/signatures/windows/antisandbox_windowsactivation.py
kevross33 and others added 3 commits June 4, 2026 17:18
Reduced severity level from 3 to 2 for the AntiSandboxWindowsActivation signature.
Increased severity level from 2 to 3 for the AntiSandboxWindowsActivation signature.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
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