Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Obfuscate IDs or classNames with unique and random strings.
$ npm install obfus -g
$ obfus <config-json-path>
{
"separator": "\\_\\_(.+?)\\_\\_", // Be sure to use the unique separator to avoid unnecessary work.
"source": [
"public/css", //If a directory is defined, it explorers all the sub-directories and files.
"public/index.html"
],
"obfuscationDictionary": {}, //Dictionary object to load. (Keep it blank)
"obfuscationDictionaryLog": "obfus_dictionary.log", //Dictionary log's filename. (Keep it blank if you don't need it.)
"source_postfix": "_old",
"target_postfix": ""
}
test/
+-- public
| +-- css
| | +-- style.css
| +-- index.html
+-- obfusConfig.json
<!DOCTYPE html>
<html>
<head>
<title>Obfus Test</title>
<meta charset="utf-8">
<link href="./css/style.css" rel="stylesheet">
</head>
<body>
<div id="__wrapper__">
<h1 class="__title__">Big Title</h1>
<p class="__paragraph__">
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
</p>
</div>
</body>
</html>
#__wrapper__ {background:yellow;}
#__wrapper__ h1 {font-size:64px;font-style:italic;}
#__wrapper__ .__title__ {color:blue;}
#__wrapper__ .__paragraph__ {font-size:20px;}
{
"separator": "\\_\\_(.+?)\\_\\_",
"source": [
"public/css/",
"public/index.html"
],
"obfuscationDictionary": {},
"obfuscationDictionaryLog": "obfus_dictionary.log",
"source_postfix": "_old",
"target_postfix": ""
}
test$ obfus ./obfusConfig.json
test/
+-- public
| +-- css
| | +-- style.css
| | +-- style_old.css
| +-- index.html
| +-- index_old.html
+-- obfus_dictionary.log
+-- obfusConfig.json
<!DOCTYPE html>
<html>
<head>
<title>Obfus Test</title>
<meta charset="utf-8">
<link href="./css/style.css" rel="stylesheet">
</head>
<body>
<div id="AE">
<h1 class="jT">Big Title</h1>
<p class="Oe">
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
</p>
</div>
</body>
</html>
#AE {background:yellow;}
#AE h1 {font-size:64px;font-style:italic;}
#AE .jT {color:blue;}
#AE .Oe {font-size:20px;}
{"__wrapper__":"AE","__title__":"jT","__paragraph__":"Oe"}
Cavin Jo (oigil.jo@gmail.com)
FAQs
Obfuscate IDs or classNames with unique and random strings.
The npm package obfus receives a total of 6 weekly downloads. As such, obfus popularity was classified as not popular.
We found that obfus 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.