
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/jacalz/eval
A minimalistic math parser for Go. It implements the shunting-yard-algorithm and allows to parse math from strings.
The current implementation requires spaces between each math token and does not support trigionometric functions yet.
The library can be used as illustrated below:
package main
import (
"fmt"
"github.com/jacalz/eval"
)
func main() {
input := "( 6 - 2 * ( 6 / 3 ) ) ^ 3"
result, err := eval.Evaluate(input)
if err != nil {
panic(err)
}
fmt.Println(result)
}
A more elaborate example can be found in the example
folder.
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.