Saturday 05 December 2026 18:19:58 GMT+01:00

Netcrook

HomeManifesto
News
Techcrook
Geocrook
WikicrookTeamAppContact
EnglishItaliano

WIKICROOK

Native addon

A Node.js component that relies on compiled code and may trigger build activity during installation.

A native addon is a Node.js component that includes compiled code, usually written in C or C++, alongside JavaScript. Because it is not pure JavaScript, it often must be built for the target system during installation. That build step may happen through npm lifecycle scripts or other install-time tooling, which is why native addons can trigger extra activity when dependencies are added.

In cyber security, native addons matter because install-time compilation expands the attack surface. A package that builds code on the local machine can execute commands during installation, which is useful for legitimate performance-critical features but also attractive for supply-chain abuse. Defenders should review which dependencies require native compilation, restrict automatic script execution where possible, and treat package installs as a form of code execution rather than a simple download. Careful approval and monitoring help reduce the risk of unexpected behavior in developer laptops and CI systems.

← WIKICROOK index