New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

obfuscation-detector

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

obfuscation-detector - npm Package Compare versions

Comparing version 1.1.5 to 1.1.6

6

package.json
{
"name": "obfuscation-detector",
"version": "1.1.5",
"version": "1.1.6",
"description": "Javascript obfuscation detector",

@@ -34,8 +34,8 @@ "main": "src/index.js",

"devDependencies": {
"eslint": "^8.45.0",
"eslint": "^8.49.0",
"husky": "^8.0.1"
},
"dependencies": {
"flast": "^1.5.0"
"flast": "^1.5.2"
}
}

@@ -23,12 +23,19 @@ # Obfuscation Detector

### CLI
> obfuscation-detector /path/to/obfuscated.js [stopAfterFirst]
```bash
obfuscation-detector /path/to/obfuscated.js [stopAfterFirst]
```
Getting all matching obfuscation types for a file:
> $ obfuscation-detector /path/to/obfuscated.js
> [+] function_to_array_replacements, augmented_proxied_array_function_replacements
```bash
$ obfuscation-detector /path/to/obfuscated.js
[+] function_to_array_replacements, augmented_proxied_array_function_replacements
```
Getting just the first match:
> $ obfuscation-detector /path/to/obfuscated.js stop
> [+] function_to_array_replacements
```bash
$ obfuscation-detector /path/to/obfuscated.js stop
[+] function_to_array_replacements
```
The `stopAfterFirst` arguments doesn't have to be any specific string, it just needs not to be empty.

@@ -35,0 +42,0 @@

@@ -0,0 +0,0 @@ const {

@@ -0,0 +0,0 @@ const obfuscationName = 'augmented_proxied_array_function_replacements';

@@ -0,0 +0,0 @@ const obfuscationName = 'function_to_array_replacements';

@@ -0,0 +0,0 @@ const obfuscationName = 'obfuscator.io';

@@ -0,0 +0,0 @@ const {generateFlatAST} = require('flast');

@@ -0,0 +0,0 @@ const fs = require('node:fs');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc