instrument-integration

Warn

Audited by Socket on Sep 13, 2026

6 alerts found:

Anomalyx4Securityx2
AnomalyLOW
references/EXAMPLE-android.md

The supplied code does not show clear malware or sabotage. It intentionally collects analytics data, including usernames, and enables unmasked session replay, which presents a material privacy and data-exposure risk, especially around login fields and displayed user content. Pin the PostHog dependency to an audited version and enable input/text masking or explicitly exclude sensitive screens and fields. Review PostHog host and privacy consent behavior before production use.

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

The supplied code appears to be a legitimate analytics integration example and shows no evidence of intentional malware or supply-chain sabotage. It does contain insecure demo authentication and authorization: any nonempty credentials are accepted, and the burrito API trusts a client-supplied username. PostHog analytics and exception data are intentionally sent to configured PostHog infrastructure, so privacy and data-governance review is appropriate. The duplicate posthog declaration in profile.tsx is a likely build error. The main security risk is unsafe reuse of the demo authentication design, not malicious behavior.

Confidence: 98%Severity: 55%
SecurityMEDIUM
references/EXAMPLE-nuxt-4.md

No clear malicious or supply-chain attack behavior is present. The code performs expected PostHog analytics, error tracking, and source-map integration. It contains significant demo-application security weaknesses: passwords are not checked, API routes trust attacker-controlled usernames and analytics headers, and the burrito endpoint permits unauthorized modification of another user's data. It should not be used as production authentication without proper credential verification, session management, and server-side authorization. The PERSONAL_API_KEY must remain confidential and build/server-only.

Confidence: 98%Severity: 72%
SecurityMEDIUM
references/EXAMPLE-astro-ssr.md

The fragment appears to be a legitimate PostHog/Astro analytics demonstration rather than malware. It contains severe intentional-demo authentication weaknesses: any credentials are accepted, localStorage is trusted as authentication, and event APIs are unauthenticated and spoofable. PostHog telemetry is expected from the stated purpose, and no clear data theft, backdoor, destructive behavior, or suspicious obfuscation is present. The assessment is limited because the file is truncated.

Confidence: 97%Severity: 82%
AnomalyLOW
references/EXAMPLE-astro-hybrid.md

The code implements an explicit PostHog analytics demo and does not show malicious or covert supply-chain behavior. It contains significant demo-grade security weaknesses: authentication is entirely client-side and accepts any credentials, APIs trust user-supplied identities, and analytics data including usernames and session IDs is transmitted to PostHog. The external script host is configurable and defaults to the standard PostHog service. No credential theft, destructive behavior, command execution, obfuscation, or suspicious exfiltration is evident in this fragment.

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

No evidence of intentional malware, supply-chain sabotage, credential theft, exfiltration beyond the explicitly configured PostHog analytics service, persistence, command execution, or obfuscated code is present. The application has serious demo-level security weaknesses: authentication is not real, the burrito endpoint permits unauthorized username-based updates, and PostHog tracing headers are claimed in documentation but not configured in the shown plugin. It should not be used as production authentication or authorization code.

Confidence: 98%Severity: 62%
Audit Metadata
Analyzed At
Sep 13, 2026, 10:44 AM
Package URL
pkg:socket/skills-sh/0xaidan%2Fpolymarket-bot-test%2Finstrument-integration%2F@0afe40ff3fe25c2b54929d4db29de88d9c3cae333d2941ea07bcd1a79649fb48