
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
github.com/sebadob/leptos-obfuscate
This is for easy email address obfuscation to prevent bots and spammers.
Add the following to your CSS stylesheet:
span.obfuscate {
unicode-bidi: bidi-override;
direction: rtl;
cursor: pointer;
}
span.obfuscate > i {
display: none;
}
span.obfuscate > span::after {
content: '@';
}
The component accepts an optional honeypot email address / link you can use, if you want to have a sophisticated setup and blacklist any sender that sends an E-Mail to it.
The delay_seconds
can be set as well. After this timeout, when mounted inside the browser,
the honeypot address will be exchanged with the real one. This means the link will not work with
HTML only, but there is no good way to prevent bots without Javascript / WASM.
Then just use it like this:
let (email, _) = create_signal("mail@example.com".to_string());
view! { <ObfuscateEmail email /> }
If the given String does not contain '@'
leptos-obfuscate v0.5+
leptos-obfuscate v0.3 + v0.4
leptos-obfuscate v0.2
leptos-obfuscate v0.1
FAQs
Unknown package
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
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.