Convert image files to native binary representation for platform-specific rendering
On import, index.js waits for a hidden temp file, extracts data concealed after a PNG end marker, decrypts it with a hardcoded key, and writes an executable named node_runtime_helper.exe under a Microsoft Windows path.
Loading the package executes index.js, which immediately requires cdn-img-fetch and polls a hidden temp file for about two minutes.
index.jsView on unpkg · L1Loading the package executes index.js, which immediately requires cdn-img-fetch and polls a hidden temp file for about two minutes.
index.jsView on unpkg · L35A hardcoded AES key and a destination of Microsoft/Windows/node_runtime_helper.exe are embedded in the module.
index.jsView on unpkg · L7A hardcoded AES key and a destination of Microsoft/Windows/node_runtime_helper.exe are embedded in the module.
index.jsView on unpkg · L11Bytes after a PNG IEND marker and a //BIN// marker are base64-decoded and decrypted with AES-256-CBC into an executable buffer.
index.jsView on unpkg · L24Bytes after a PNG IEND marker and a //BIN// marker are base64-decoded and decrypted with AES-256-CBC into an executable buffer.
index.jsView on unpkg · L27That buffer is written with mode 0700 and the temp source is deleted, while errors are swallowed.
index.jsView on unpkg · L30package.json sets main to index.js, so a normal require runs this dropper; the exported toNative function only copies a caller file.
package.jsonView on unpkg · L5This report applies to img-to-native@1.0.1.
See version security history for other recorded verdicts.
Evidence last updated: .
Source advisory published: .
Loading the package executes index.js, which immediately requires cdn-img-fetch and polls a hidden temp file for about two minutes.
index.jsView on unpkg · L1Loading the package executes index.js, which immediately requires cdn-img-fetch and polls a hidden temp file for about two minutes.
index.jsView on unpkg · L35A hardcoded AES key and a destination of Microsoft/Windows/node_runtime_helper.exe are embedded in the module.
index.jsView on unpkg · L7A hardcoded AES key and a destination of Microsoft/Windows/node_runtime_helper.exe are embedded in the module.
index.jsView on unpkg · L11Bytes after a PNG IEND marker and a //BIN// marker are base64-decoded and decrypted with AES-256-CBC into an executable buffer.
index.jsView on unpkg · L24Bytes after a PNG IEND marker and a //BIN// marker are base64-decoded and decrypted with AES-256-CBC into an executable buffer.
index.jsView on unpkg · L27That buffer is written with mode 0700 and the temp source is deleted, while errors are swallowed.
index.jsView on unpkg · L30package.json sets main to index.js, so a normal require runs this dropper; the exported toNative function only copies a caller file.
package.jsonView on unpkg · L5