From ae3f1815b2cdec459d86abf569207feb494c0e1d Mon Sep 17 00:00:00 2001 From: DariusIII Date: Fri, 12 Dec 2025 11:03:52 +0100 Subject: [PATCH] Update misc categorization --- .../Categorization/Categorizers/MiscCategorizer.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/Services/Categorization/Categorizers/MiscCategorizer.php b/app/Services/Categorization/Categorizers/MiscCategorizer.php index 2d30e1b66..6fd89affd 100644 --- a/app/Services/Categorization/Categorizers/MiscCategorizer.php +++ b/app/Services/Categorization/Categorizers/MiscCategorizer.php @@ -105,10 +105,12 @@ class MiscCategorizer extends AbstractCategorizer return $this->matched(Category::OTHER_HASHED, 0.7, 'obfuscated_uppercase'); } - // Long alphanumeric strings without typical release patterns - if (preg_match('/^[a-zA-Z0-9]{25,}$/', $name) && - !preg_match('/\b(19|20)\d{2}\b/', $name)) { - return $this->matched(Category::OTHER_HASHED, 0.65, 'obfuscated_long'); + // Mixed-case alphanumeric strings without separators (common obfuscation pattern) + // These look like random strings: e.g., "AA7Jl2toE8Q53yNZmQ5R6G" + if (preg_match('/^[a-zA-Z0-9]{15,}$/', $name) && + !preg_match('/\b(19|20)\d{2}\b/', $name) && + !preg_match('/^[A-Z][a-z]+([A-Z][a-z]+)+$/', $name)) { // Exclude CamelCase words + return $this->matched(Category::OTHER_HASHED, 0.7, 'obfuscated_mixed_alphanumeric'); } // Only punctuation and numbers with no clear structure