
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
#TRM
Tracking management client javascript code for Hiiir Ads platform
##usage
npm install trm
Trm is a tracking code for PMD platform, you can generate a new library in your localhost.
trm = require("trm")
// will generate a library in `./tmp/test.js`
result = trm.generateLib({
domain: "yahoo.com.tw",
destPath: "./tmp/test.js"
})
// code reulst
console.log(result.code);
result.then(function (result) {
// show file content and save data in destination path
console.log(result);
})
##client usage
call trm and import code that is from trm source.
//code is from compressed
out = trm.compress();
trm.resultDisplay({
code: out.code,
pid: pixel id,
aid: audience id
});
##Client code output,
That is output code from trm.resultDisplay()
!function(){return window.analytics={load:function(t){var n,e,o;document.getElementById("analytics-js")||(n=document.createElement("script"),n.type="text/javascript",n.id="analytics-js",n.async=!0,n.src=("https:"===document.location.protocol?"https://":"http://")+"localhost:8080/.tmp/test.js",o=document.getElementsByTagName("script")[0],o.parentNode.insertBefore(n,o)),e=window.onload,window.onload=function(){return e&&e(),t()}},VERSION:"0.1.3"}}();
window.analytics.load(function () {
window.analytics.initial("-999", "-99999");
window.analytics.send("");
});
window.analytics.load(function () {
window.analytics.initial("1", "--FB-Audience-ID--");
window.analytics.push("id", "abc");
window.analytics.push("NTD", "168");
window.analytics.send("");
});
##Ref
FAQs
tracking management client code
We found that trm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.