
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
@posthog/geoip-plugin
Advanced tools
Enrich PostHog events and persons with IP location data. Simply enable this plugin - from that point on, your new events will have GeoIP data added, allowing you to locate users and run queries based on geographic data.
Available on Cloud and self-hosted PostHog 1.24.0+
This plugin prefers to use event property $ip (which should be of type string), but if that is not provided,
it uses the IP address of the client that sent the event.
This way in most cases the plugin can infer the IP address without any work on your side.
The following properties can be added to the event if its IP address can be matched to a GeoLite2 City location:
$geoip_city_name?: string
$geoip_country_name?: string
$geoip_country_code?: string
$geoip_continent_name?: string
$geoip_continent_code?: string
$geoip_latitude?: number
$geoip_longitude?: number
$geoip_time_zone?: string
$geoip_subdivision_1_code?: string
$geoip_subdivision_1_name?: string
$geoip_subdivision_2_code?: string
$geoip_subdivision_2_name?: string
$geoip_subdivision_3_code?: string
$geoip_subdivision_3_name?: string
They are also set on the associated person same as above, plus set_once in $initial_geoip_... form, to record where the user was when they were first seen.
View of an example event in PostHog:
A case to be aware of is sending events from a server – such events, if not provided with custom property $ip,
will be detected as sent from the location of the data center, instead of the related user.
If you'd like this plugin to skip over an event and not add the above properties,
set property $geoip_disable to true on that event.
http://github.com/PostHog/posthog-plugin-geoip.FAQs
Enrich PostHog events and persons with IP location data
The npm package @posthog/geoip-plugin receives a total of 2,832 weekly downloads. As such, @posthog/geoip-plugin popularity was classified as popular.
We found that @posthog/geoip-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers 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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.