Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
gopkg.in/photoprism/go-tz.v2
Go library for fast offline timezone lookup by latitude and longitude. This is a fork of ugjka/go-tz
that includes the latest timezone boundaries data and a Makefile for build automation.
Uses a simplified shapefile from timezone-boundary-builder for the lookups. The GeoJSON simplification was done with mapshaper.
import "gopkg.in/photoprism/go-tz.v2/tz"
func TimeZone(lat, lng float64) (result string) {
result = "UTC"
zones, err := tz.GetZone(tz.Point{Lat: lat, Lon: lng})
if err == nil && len(zones) > 0 {
result = zones[0]
}
return result
}
The embedded timezone data is licensed under the Open Data Commons Open Database License (ODbL). Any other code in this library can be used under the terms of the MIT License.
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.