Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
6d21563
Fix typo in comment and enhance deobfuscation logic in REstringer cla…
ctrl-escp Aug 24, 2025
be7390e
Refactor normalization logic in normalizeComputed.js to enhance clari…
ctrl-escp Aug 24, 2025
5d85e9f
Refactor normalizeEmptyStatements.js to improve empty statement norma…
ctrl-escp Aug 24, 2025
9ed1045
Refactor parseTemplateLiteralsIntoStringLiterals.js to enhance templa…
ctrl-escp Aug 25, 2025
c93b6e9
Refactor rearrangeSequences.js to improve sequence expression handlin…
ctrl-escp Aug 25, 2025
0ff3588
Add quick test script to package.json for targeted testing of functio…
ctrl-escp Aug 25, 2025
6ce1069
Add .cursor directory
ctrl-escp Aug 25, 2025
761dca8
Refactor functions across multiple modules to enhance clarity and mai…
ctrl-escp Aug 25, 2025
a75ca6f
Enhance rearrangeSwitches functionality by separating matching and tr…
ctrl-escp Aug 25, 2025
21b3a93
Refactor removeDeadNodes.js to improve dead code elimination process.…
ctrl-escp Aug 25, 2025
2df7bb4
Declare static arrays once outside of a loop
ctrl-escp Aug 25, 2025
fb38444
Refactor removeRedundantBlockStatements.js to improve redundancy elim…
ctrl-escp Aug 25, 2025
c72ccbd
Refactor replaceBooleanExpressionsWithIf.js to enhance logical expres…
ctrl-escp Aug 26, 2025
57a7695
Add REstringer Module Refactoring Guidelines document
ctrl-escp Aug 26, 2025
f5a2db5
refactor(safe): replaceCallExpressionsWithUnwrappedIdentifier - match…
ctrl-escp Aug 26, 2025
0822091
refactor(safe): replaceEvalCallsWithLiteralContent match/transform pa…
ctrl-escp Aug 26, 2025
46724d6
refactor(safe): replaceFunctionShellsWithWrappedValue match/transform…
ctrl-escp Aug 26, 2025
bea8ca4
refactor(safe): replaceFunctionShellsWithWrappedValueIIFE match/trans…
ctrl-escp Aug 26, 2025
15fe41c
refactor(safe): replaceIdentifierWithFixedAssignedValue match/transfo…
ctrl-escp Aug 26, 2025
e5aa613
refactor(safe): replaceIdentifierWithFixedValueNotAssignedAtDeclarati…
ctrl-escp Aug 26, 2025
d91f0d7
refactor(safe): replaceNewFuncCallsWithLiteralContent match/transform…
ctrl-escp Aug 27, 2025
af1efbf
refactor: replaceSequencesWithExpressions - match/transform pattern, …
ctrl-escp Aug 27, 2025
c60c944
refactor: resolveDeterministicIfStatements - match/transform pattern,…
ctrl-escp Aug 27, 2025
dd976b1
refactor(safe): Split resolveFunctionConstructorCalls into match/tran…
ctrl-escp Aug 27, 2025
9ae117f
refactor(resolveMemberExpressionReferencesToArrayIndex): split into m…
ctrl-escp Aug 28, 2025
2dc1c58
refactor(resolveMemberExpressionsWithDirectAssignment): split into ma…
ctrl-escp Aug 28, 2025
5622c08
refactor(resolveProxyCalls): implement match/transform pattern for pr…
ctrl-escp Sep 1, 2025
3be60dd
refactor(resolveProxyReferences): split into match/transform pattern …
ctrl-escp Sep 1, 2025
67954d0
Improve JSDoc type documentation
ctrl-escp Sep 1, 2025
baa2dc3
refactor(resolveProxyVariables): implement match/transform pattern fo…
ctrl-escp Sep 1, 2025
140765c
refactor(safe): enhance resolveRedundantLogicalExpressions with compr…
ctrl-escp Sep 1, 2025
4a9069c
refactor(separateChainedDeclarators): implement match/transform patte…
ctrl-escp Sep 1, 2025
5e6d758
refactor(simplifyCalls): implement match/transform pattern with enhan…
ctrl-escp Sep 1, 2025
eaf41eb
refactor(simplifyIfStatements): implement match/transform pattern wit…
ctrl-escp Sep 1, 2025
5041486
refactor(unwrapFunctionShells): implement match/transform pattern wit…
ctrl-escp Sep 1, 2025
b9883d0
refactor(unwrapFunctionShells): implement match/transform pattern wit…
ctrl-escp Sep 1, 2025
007a13f
refactor(unwrapIIFEs): implement match/transform pattern with compreh…
ctrl-escp Sep 1, 2025
0247dfe
refactor(unwrapSimpleOperations): implement match/transform pattern w…
ctrl-escp Sep 1, 2025
f6cb64a
refactor(normalizeRedundantNotOperator): implement match/transform pa…
ctrl-escp Sep 1, 2025
00d8abd
refactor(resolveAugmentedFunctionWrappedArrayReplacements): implement…
ctrl-escp Sep 1, 2025
ac49528
Refactor resolveBuiltinCalls.js: implement match/transform pattern wi…
ctrl-escp Sep 1, 2025
63a319b
Refactor resolveDefiniteBinaryExpressions.js: implement match/transfo…
ctrl-escp Sep 1, 2025
3f609ed
Refactor resolveDefiniteMemberExpressions.js: implement match/transfo…
ctrl-escp Sep 1, 2025
be3b83d
Refactor resolveDeterministicConditionalExpressions.js: implement mat…
ctrl-escp Sep 1, 2025
afe9c2b
Refactor resolveEvalCallsOnNonLiterals.js: implement match/transform …
ctrl-escp Sep 1, 2025
25c2139
Refactor resolveFunctionToArray.js: implement match/transform pattern…
ctrl-escp Sep 1, 2025
c15cbf4
Refactor resolveInjectedPrototypeMethodCalls: split match/transform p…
ctrl-escp Sep 1, 2025
438f9bf
Refactor config.js and resolveBuiltinCalls.js: rename skipIdentifiers…
ctrl-escp Sep 2, 2025
2eeb702
Refactor resolveLocalCalls: split match/transform pattern, optimize p…
ctrl-escp Sep 2, 2025
304461c
Refactor resolveMemberExpressionsLocalReferences: split match/transfo…
ctrl-escp Sep 2, 2025
f883d87
Refactor resolveBuiltinCalls.js and resolveLocalCalls.js: rename skip…
ctrl-escp Sep 2, 2025
a2672a0
refactor: split resolveMinimalAlphabet into match/transform functions
ctrl-escp Sep 2, 2025
68ca57c
refactor: standardize constant naming in config.js and related modules
ctrl-escp Sep 2, 2025
dd27af6
refactor: enhance areReferencesModified detection and standardize con…
ctrl-escp Sep 2, 2025
958e5e6
refactor: consolidate canNotOperatorArgument check into normalizeRedu…
ctrl-escp Sep 2, 2025
e113264
refactor: enhance createNewNode utility with modern JavaScript type s…
ctrl-escp Sep 2, 2025
a0183cf
refactor: optimize createOrderedSrc utility with enhanced error handl…
ctrl-escp Sep 2, 2025
679b470
refactor: enhance and integrate doesBinaryExpressionContainOnlyLitera…
ctrl-escp Sep 2, 2025
e22e749
refactor: enhance doesDescendantMatchCondition utility with performan…
ctrl-escp Sep 2, 2025
a24871f
refactor: enhance generateHash utility with robust input validation a…
ctrl-escp Sep 2, 2025
0635feb
refactor: enhance getCache utility with robust input validation and c…
ctrl-escp Sep 2, 2025
5acf3ba
refactor: enhance getCalleeName utility with comprehensive logic and …
ctrl-escp Sep 2, 2025
6f85f72
refactor(getDeclarationWithContext): optimize visitedNodes tracking a…
ctrl-escp Sep 2, 2025
003079f
refactor(getDescendants): optimize traversal with Set, fix typos, and…
ctrl-escp Sep 2, 2025
9fb86ac
refactor(getMainDeclaredObjectOfMemberExpression): add safety checks …
ctrl-escp Sep 2, 2025
966720c
refactor(getObjType): enhance documentation and add comprehensive tes…
ctrl-escp Sep 2, 2025
042c7b4
refactor(isNodeInRanges): enhance documentation and streamline implem…
ctrl-escp Sep 2, 2025
1c106a4
refactor(normalizeScript): enhance documentation and clarify transfor…
ctrl-escp Sep 2, 2025
a4bb716
Enhance safe-atob and safe-btoa documentation with comprehensive JSDo…
ctrl-escp Sep 2, 2025
5240a50
Enhanced documentation with comprehensive JSDoc and improved trap neu…
ctrl-escp Sep 2, 2025
1737ffe
Enhanced VM sandbox documentation with honest security disclaimers, f…
ctrl-escp Sep 2, 2025
d27826f
refactor(processors): enhance augmentedArray with match/transform pat…
ctrl-escp Sep 3, 2025
a4d73ea
Enhance functionToArray processor documentation and examples
ctrl-escp Sep 3, 2025
49b2ec7
Refactor obfuscator.io processor with match/transform pattern and ren…
ctrl-escp Sep 3, 2025
2c0d2d7
Refactor parseArgs utility with comprehensive improvements
ctrl-escp Sep 3, 2025
aff64d1
Update CONTRIBUTING.md to enhance clarity and structure
ctrl-escp Sep 4, 2025
3a9a1bb
Update package.json for repository URL change and add watch script fo…
ctrl-escp Sep 4, 2025
abd727a
Update README.md and add CONTRIBUTING.md for improved documentation
ctrl-escp Sep 4, 2025
4d0977a
typo
ctrl-escp Sep 4, 2025
6fbea26
Refactor error handling in evaluation functions to use evalInVm.BAD_V…
ctrl-escp Sep 4, 2025
421c826
Rename constants in multiple modules for consistency to uppercase
ctrl-escp Sep 4, 2025
3de9c48
Extract constants that are used once from the config to where they're…
ctrl-escp Sep 8, 2025
5418af8
Update dependencies and refactor argument parsing
ctrl-escp Sep 15, 2025
e882af4
Update LICENSE year and copyright holder to reflect current ownership…
BenBaryoPX Nov 24, 2025
53f7930
Refactor README.md to streamline advanced configuration section
BenBaryoPX Nov 24, 2025
1a6178d
Update README.md and refactor custom processor tests
BenBaryoPX Nov 24, 2025
05b22bf
Update constructor parameter documentation in REstringer class
BenBaryoPX Nov 24, 2025
1db1f30
Refactor normalizeComputedMatch function for improved clarity and eff…
BenBaryoPX Nov 24, 2025
79886dd
Update parameter documentation across multiple modules for consistency
BenBaryoPX Nov 24, 2025
717494c
Update dependencies in package.json and package-lock.json
BenBaryoPX Nov 25, 2025
801396f
Refactor simplifyCalls.js to enhance argument extraction and context …
BenBaryoPX Nov 25, 2025
4491716
Refactor simplifyIfStatementsTransform for improved readability
BenBaryoPX Nov 25, 2025
34aa909
Enhance reference handling in resolveMemberExpressionsWithDirectAssig…
BenBaryoPX Nov 25, 2025
e748080
Fix conditional check in simplifyIfStatementsTransform to ensure alte…
BenBaryoPX Nov 25, 2025
7fa867e
Adjust expected result
BenBaryoPX Nov 25, 2025
0f79a65
Adjust expected result
BenBaryoPX Nov 25, 2025
29a6bab
Enhance reference handling in replaceIdentifierWithFixedValueNotAssig…
BenBaryoPX Nov 25, 2025
09b6d15
Enhance simplifyCalls tests to cover null context and refine expected…
BenBaryoPX Nov 25, 2025
4b859cf
Update obfuscation-detector dependency to version 2.0.7 in package.js…
BenBaryoPX Nov 25, 2025
a2ae04a
Install isolated-vm's Linux prerequisits
BenBaryoPX Nov 25, 2025
d9e869c
Revert isolated-vm to v6.0.1 to keep support for node version from v2…
BenBaryoPX Nov 25, 2025
1b6cb5a
Remove support for Node v18
BenBaryoPX Nov 25, 2025
6be0e76
Update lock file
BenBaryoPX Nov 25, 2025
250ee64
Fix isolated-vm on version 6.0.1
BenBaryoPX Nov 25, 2025
93ac039
Fix isolated-vm to version 5.0.4 to keep support for node 20
BenBaryoPX Nov 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
node-version: [20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -26,5 +26,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y python3 g++ build-essential
- run: npm install
- run: npm run test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ node_modules/
*.log
*tmp*/
.DS_Store
*.heapsnapshot
*.heapsnapshot
.cursor
150 changes: 0 additions & 150 deletions CONTRIBUTING.md

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 PerimeterX
Copyright (c) 2025 HUMAN Security

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading
Loading