instrument-product-analytics

Warn

Audited by Socket on Sep 14, 2026

7 alerts found:

Anomalyx7
AnomalyLOW
references/EXAMPLE-android.md

The code appears to be a benign PostHog-instrumented Android demo application, not malware. The primary security and privacy concern is unmasked session replay combined with collection of usernames and a password field; configure input/text masking or exclude the login screen and avoid collecting unnecessary PII. The demo login also provides no real authentication, and the floating dependency version should be pinned and reviewed. No direct exfiltration to a suspicious destination, backdoor, destructive behavior, or obfuscation is shown.

Confidence: 97%Severity: 58%
AnomalyLOW
references/EXAMPLE-react-react-router-7-framework.md

No evidence of malicious supply-chain behavior or concealed malware is present. The code implements the advertised PostHog analytics and error-tracking functionality and sends user/event context to the configured PostHog endpoints. It contains significant demo-only security weaknesses: arbitrary credentials are accepted, passwords are not validated, and the burrito API authorizes actions based only on a client-supplied username. It should not be used as production authentication without proper sessions, password handling, authorization, and validation.

Confidence: 98%Severity: 58%
AnomalyLOW
references/EXAMPLE-astro-hybrid.md

The code appears to be a legitimate PostHog-enabled Astro demonstration application. It contains no clear malicious behavior, obfuscated payload, credential theft, or suspicious exfiltration beyond disclosed analytics transmission to PostHog. It is unsuitable for production authentication because credentials are not validated, identity is stored in and trusted from localStorage, and API endpoints accept spoofed usernames and counters without authorization or validation.

Confidence: 98%Severity: 63%
AnomalyLOW
references/EXAMPLE-nuxt-4.md

No clear malicious or supply-chain attack behavior is present. The code implements intentional PostHog telemetry and source-map integration using a configurable PostHog endpoint. It does contain significant demo-application security weaknesses: passwords are not verified, authentication is not persisted securely, and the burrito endpoint trusts a caller-supplied username without authorization. Usernames and tracking identifiers are intentionally transmitted to PostHog. These issues should be addressed before adapting the example for production, but they do not indicate malware.

Confidence: 98%Severity: 62%
AnomalyLOW
references/EXAMPLE-astro-ssr.md

The code appears to be a legitimate PostHog analytics demonstration, not malware. Its principal risks are intentionally weak demo authentication, client-controlled localStorage authorization, unauthenticated event APIs, and transmission of usernames and session identifiers to PostHog. These permit impersonation, event spoofing, and privacy exposure, but the fragment shows no malicious supply-chain behavior. The externally loaded PostHog script remains a normal but material third-party trust dependency.

Confidence: 98%Severity: 62%
AnomalyLOW
references/EXAMPLE-nuxt-3-6.md

No evidence of malicious supply-chain behavior or concealed malware is present. The code intentionally sends analytics, identity, session-context, and error data to the configured PostHog host. It contains significant security weaknesses if treated as production code: fake authentication, client-controlled identity headers, and missing authorization on the burrito endpoint. These limitations are consistent with the documented demo purpose but require remediation before deployment as a real application.

Confidence: 98%Severity: 58%
AnomalyLOW
references/EXAMPLE-next-app-router.md

No evidence of intentional malware, covert credential harvesting, destructive behavior, or hidden backdoors is present. The code performs explicit PostHog telemetry and sends usernames, event data, and errors to the configured PostHog service. It contains a serious but documented demo-authentication weakness: any non-empty credentials are accepted, passwords are ignored, and authentication state is client-controlled and stored in memory/localStorage. Safe only as a demonstration, not as production authentication.

Confidence: 98%Severity: 62%
Audit Metadata
Analyzed At
Sep 14, 2026, 07:06 PM
Package URL
pkg:socket/skills-sh/posthog%2Fskills%2Finstrument-product-analytics%2F@9ca860163256a132fd1e14273643be87d6693b9eb5d8f211028c6e061b51e76f
Security Audit — socket — instrument-product-analytics