When I'm using CodeX to write and debug Node.js code, Bitdefender always kills it and automatically deletes harmless Node.js dependency-related JS files. I restore these deleted files, open them, and they're full of data, with no code at all.
what deleted in modules: the files in node_modules\caniuse-lite\data\regions\
Hello,
Bitdefender is probably doing this not because they are inherently malicious. I think the behavioral detection terminates the executable because its behavior looks suspicious, if it's spawning processes, writing files, executing generated code, modifying dependencies, etc. Bitdefenderās Advanced Threat Defense module is behavior-based and can block trusted apps when they perform malware-like actions.
The caniuse-lite\data\regions files are part of the normal caniuse-lite npm package; the package describes itself as a smaller version of caniuse-db, and specifically references data/regions as usage-data files. So if Bitdefender is deleting those files from a clean npm install, that may be a false positive, but the exact detection name is needed to confirm.