Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Google Maps has a convenient feature for saving points of interest, called My Maps. Such maps are useful for sharing locations with friends. Unfortunately, Google does not provide an API to programatically view or update a MyMaps map1, and it is unlikely to be available any time soon.
This package acts as a simple wrapper around the endpoints used by the official My Maps web app, essentially mimicking the web app's behavior.
Fetching map data
import gmymaps
map_id = 'your-map-id-here'
client = gmymaps.get_client()
result = client.get_map_data(map_id)
Editing points and layers
from gmymaps import PointAttrs, PointAttrType
map_id = 'your-map-id-here'
layer_id = client.create_layer(map_id)
client.update_layer(map_id, layer_id, layer_name='My New Layer')
point_id = client.create_point(map_id, layer_id)
attrs = (PointAttrs()
.add_attr(PointAttrType.NAME, "My New Point")
.add_attr(PointAttrType.DESCRIPTION, "This is an interesting place to go!")
.add_attr(PointAttrType.COORD, [1.37, 103.75]))
client.update_point(map_id, layer_id, point_id, attrs)
client.delete_point(map_id, layer_id, point_id)
client.delete_layer(map_id, layer_id)
When attempting to access a private map, requests will be redirected to a sign-in page.
This redirection occurs even if the map is shared with a service account and
accessed using OAuth credentials from that account. To bypass this, you can save a session cookie,
similar to yt-dlp's --cookies-from-browser
feature. For more details, refer to cookie.py
.
Map
and Layer
1: Link to issue: https://issuetracker.google.com/issues/35820262
FAQs
Reverse engineered APIs to interact with a Google My Maps map
We found that gmymaps 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.