
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
hijacking-webpack-plugin
Advanced tools
###基本使用 1
const HijackingPlugin = require('./hijacking-webpack-plugin');
new HijackingPlugin({
head: [
{src: '/static/tinymce/tinymce.min2cs1.js', defer: true},
{src: '/static/tinymce/tinymce.min2cs2.js', async: true},
{src: '/static/tinymce/tinymce.min2cs3.js', defer: true},
],
body: [
{src: '/static/tinymce/tinymce.min2cs1.js', defer: true},
{src: '/static/tinymce/tinymce.min2cs2.js', async: true},
{src: '/static/tinymce/tinymce.min2cs3.js', defer: true},
]
})
new HijackingPlugin({
head: [
{src: '/static/tinymce/tinymce.min2cs1.js', defer: true},
{src: '/static/tinymce/tinymce.min2cs2.js', async: true},
{src: '/static/tinymce/tinymce.min2cs3.js', defer: true},
],
body: [
{src: '/static/tinymce/tinymce.min2cs1.js', defer: true},
{src: '/static/tinymce/tinymce.min2cs2.js', async: true},
{src: '/static/tinymce/tinymce.min2cs3.js', defer: true},
],
filterTags: ['script', 'iframe'], //过滤标签
whiteURLS: [], // 白名单url:'baidu.com' | 'jquery.com'
isRejectJACK: true // 开启劫持防护
})
注:开启防劫持后,会针对您配的filterTags(过滤标签组)进行移除, 只要动态有元素插入进来,都会监控到并将其remove
具体业务场景,具体使用
欢迎大家issue、bug
FAQs
Prevent hijacking
The npm package hijacking-webpack-plugin receives a total of 20 weekly downloads. As such, hijacking-webpack-plugin popularity was classified as not popular.
We found that hijacking-webpack-plugin 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.