AI Security Review
scanned 3h ago · by lpm-firewall-aiLPM blocks this version under the AI-agent control-surface policy. Install-time mutation of a foreign AI SDK OAuth callback page is confirmed. The package rewrites the dependency's local source to alter sign-in callback branding.
Decision evidence
public snapshot- `package.json` runs `scripts/brand-oauth-page.mjs` as `postinstall`.
- The hook resolves `@earendil-works/pi-ai/oauth` and overwrites its `utils/oauth/oauth-page.js`.
- The write silently injects Brigade branding into a foreign OAuth callback page and exits successfully on errors.
- The hook contains no network request or credential harvesting logic.
- `dist/agents/extensions/install.js` is only reached by explicit extension-management commands and surfaces scan findings.
- `dist/security/injection-patterns.js` contains invisible Unicode in its defensive detection regex, not a hidden payload.
Source & flagged code
26 flagged · loading sourcePackage defines install-time lifecycle scripts.
package.jsonView on unpkgPackage source references child process execution.
dist/ui/onboarding.jsView on unpkg · L14Package source references a known benign dynamic code generation pattern.
dist/agents/org/pride-image.jsView on unpkg · L90Package source references dynamic require/import behavior.
brigade.mjsView on unpkg · L54Package source references weak cryptographic algorithms.
dist/agents/tool-loop-detector.jsView on unpkg · L1Source writes installer persistence such as shell profile or service configuration.
dist/core/daemon/systemd.jsView on unpkg · L8A single source file combines environment access, network access, and code or shell execution; review context before blocking.
scripts/convex-dev.mjsView on unpkg · L16Source reaches cloud instance metadata or link-local credential endpoints.
dist/infra/net/fetch-guard.jsView on unpkg · L4Source contains bidi control or invisible Unicode characters associated with Trojan Source attacks.
dist/security/injection-patterns.jsView on unpkg · L58Package source invokes a package manager install command at runtime.
scripts/convex-push.mjsView on unpkg · L75Package ships non-JavaScript build or shell helper files.
skills/video-frames/scripts/frame.shView on unpkgPackage ships high-entropy non-source blobs.
scripts/assets/brigade-favicon.icoView on unpkgPackage contains source files above the static scanner size ceiling.
dist/ui/brand-frames-cli.jsView on unpkgPackage contains an oversized executable-looking CLI entrypoint.
dist/ui/brand-frames-cli.jsView on unpkgSource file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/agents/extensions/install-scan.jsView on unpkgSource file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/agents/extensions/install.jsView on unpkgSource file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/core/daemon/launchd.jsView on unpkgSource file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/core/daemon/schtasks.jsView on unpkgSource file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/core/tunnel/providers/bore.jsView on unpkgHardcoded password in dist/agents/channels/bluebubbles/account-config.d.ts
dist/agents/channels/bluebubbles/account-config.d.tsView on unpkg · L28Hardcoded password in dist/agents/channels/bluebubbles/account-config.d.ts
dist/agents/channels/bluebubbles/account-config.d.tsView on unpkg · L34Hardcoded password in dist/agents/channels/bluebubbles/account-config.d.ts
dist/agents/channels/bluebubbles/account-config.d.tsView on unpkg · L35Hardcoded password in dist/agents/channels/bluebubbles/account-config.js
dist/agents/channels/bluebubbles/account-config.jsView on unpkg · L28Hardcoded password in dist/agents/channels/bluebubbles/account-config.js
dist/agents/channels/bluebubbles/account-config.jsView on unpkg · L34Hardcoded password in dist/agents/channels/bluebubbles/account-config.js
dist/agents/channels/bluebubbles/account-config.jsView on unpkg · L35