
Research
/Security News
GlassWASM: WebAssembly Malware Found in Trojanized Open VSX Extensions
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.
BadCerts is a Go library to deal with bad ssl cert(s) (e.g. self-signed certificates).
NOTE: For self-signed certs, a better approach to deal with them is to use
x509.CertPool,
which is faster than using BadCerts library.
An example can be found
here
(Thanks to
/u/loosecanonsandvich).
BadCerts library is still kinda useful to deal with other types of bad certs,
like expired certs or certs with wrong common names.
// This is the cert fingerprint from https://self-signed.badssl.com/
myCertFingerprint := "9SLklscvzMYj8f+52lp5ze/hY0CFHyLSPQzSpYYIBm8="
client := &http.Client{
Transport: &http.Transport{
DialTLS: badcerts.DialTLSWithWhitelistCerts(
badcerts.IsSelfSignedError,
myCertFingerprint,
),
},
}
// Now client can handle https://self-signed.badssl.com/ just fine:
_, err := client.Get("https://self-signed.badssl.com/")
if err != nil {
panic(err)
}
fmt.Println("Everything is awesome.")
// And it will still return error for other bad certificates.
Yes you can, but then you won't know if it's replaced by a different, malicious MITM cert. Or you could use the same http client with sites with legit certs and now you are losing protection.
BadCerts library still have all the normal certificate verification protections, it just trust the whitelisted certificate(s) additionally, but nothing more.
It comes with a command line tool badcerts-fingerprint.
Yes they are. You should use Let's Encrypt on your site. This is more for the sites you cannot control and have to deal with.
This library is inspired by tam7t/hpkp
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
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.