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.
Library enabling a flexible and frictionless way to render snapshots of maps with overlayed geometries.
Snapr (/ˈsnæp ər/) is a library that enables a flexible and frictionless way to render snapshots of maps with overlayed geometries. The backing library is written in Rust, these are bindings to said library.
from snapr import Geometry, Point, Snapr
import requests
def tile_fetcher(coords: list[tuple[int, int]], zoom: int) -> list[tuple[int, int, bytearray]]:
tiles = []
for x, y in coords:
response = requests.get(
f"https://a.tile.osm.org/{zoom}/{x}/{y}.png",
headers={"User-Agent": "snapr.py"},
)
tiles.append((x, y, bytearray(response.content)))
return tiles
snapr = Snapr(tile_fetcher=tile_fetcher, zoom=15)
geometries = [
Geometry.Point(Point(latitude=41.703811459356196, longitude=-103.34835922605679)),
]
snapshot = snapr.generate_snapshot_from_geometries(geometries=geometries)
with open("example.png", "wb") as image:
image.write(snapshot)
Licensed under the MIT License found at the root of the repository.
FAQs
Library enabling a flexible and frictionless way to render snapshots of maps with overlayed geometries.
We found that snapr demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
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.