🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

local-config-parser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package version was removed
This package version has been unpublished, mostly likely due to security reasons
This package has been flagged as malicious. It is considered unsafe regardless of version.

The fragment implements a rules engine that executes configuration-provided “expression” strings as JavaScript using Node’s vm. Because the expressions are sourced from JSON files in a user-derived, typically writable directory (APPDATA/home) and because it auto-executes cached rules during module import, an attacker who can modify the relevant config/cache file could trigger untrusted code execution (or at minimum unintended logic/DoS) within the application’s trust boundary. There is no direct evidence of overt malware behaviors like exfiltration or persistence in this snippet, but the dynamic execution pattern is security-sensitive and should be hardened (e.g., remove auto-exec, validate/sign configs, and restrict to a real expression DSL or a strictly locked-down sandbox). The remote content is malicious and gets downloaded by another package that is installed in the same dependency chain. The malicious content implements sandbox-escape logic and perform downloader logic that runs next stage malware samples.

local-config-parser

JSON configuration file parser with built-in rule evaluation engine for dynamic application behavior

unpublished
npmnpm
Version
1.0.0
Version published
Weekly downloads
191
19000%
Maintainers
1
Weekly downloads
 
Created
The README file is missing

Keywords

config

FAQs

Package last updated on 28 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts