Skip to content

Add compiled script signature checks to AutoIt Detection - #80

Merged
doomedraven merged 3 commits into
masterfrom
feature/autoit
Sep 10, 2026
Merged

Add compiled script signature checks to AutoIt Detection#80
doomedraven merged 3 commits into
masterfrom
feature/autoit

Conversation

@doomedraven

Copy link
Copy Markdown
Collaborator

This PR supersedes #76 and adds compiled script AU3!EA06 signature checking, limited to the first 2MB. Also includes the robust Regex source-code checking from adepasquale, capped to 2MB to prevent ReDoS on massive bloated files.

adepasquale and others added 3 commits July 24, 2026 12:39
AutoIt v3 source/decompiled scripts submitted without an extension
were falling through to the generic fallback, since ident.py had no
content-based AutoIt sniffer alongside the existing ones for
PowerShell, VBScript, JS, and Node.js. A recognized extension still
resolves via the existing extension-based shortcut, which this
change does not touch.

Add an autoit() identifier to the identifiers list, following the
same category/minimum-hit-count pattern as nodejs(): three
independent signal categories (Func-block syntax, AutoIt-only
builtins, "@Identifier" macro syntax), each collapsed into a single
compiled alternation regex with word boundaries. Requiring hits in
at least two categories avoids false positives from keywords AutoIt
shares with VBScript (Dim, If, Else, ...), and word boundaries avoid
substring collisions like "EndFunc" inside "appendFunction" or
"SetError" inside "resetError".
@doomedraven
doomedraven merged commit c18d2d7 into master Sep 10, 2026
8 checks passed
@doomedraven
doomedraven deleted the feature/autoit branch September 10, 2026 07:33
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