authentication

Warn

Audited by Socket on Sep 14, 2026

3 alerts found:

Anomalyx2Security
AnomalyLOW
rules/two-factor.md

No evidence of intentional malware, data exfiltration, backdoors, or sabotage is present. The code implements legitimate 2FA functionality but has notable security weaknesses: Math.random() should be replaced with a cryptographically secure generator, authentication factors should be protected or hashed where practical, verification and email sending need rate limits and attempt controls, and backup-code consumption should use an atomic compare-and-remove operation. Review CSRF enforcement, authorization policies, transport security, and return-URL validation in the surrounding application.

Confidence: 97%Severity: 63%
SecurityMEDIUM
rules/oauth.md

The fragment contains legitimate OAuth authentication examples and no clear malware or intentional supply-chain attack. It has material authentication and credential-handling risks: automatic email-based account linking without an explicit verified-email check, unconditional email confirmation, plaintext token persistence, incomplete missing-email handling, and no visible OAuth state/nonce/PKCE protections. These issues should be reviewed and corrected before production use, while the security properties of sails-hook-wish and the return-URL helper require separate verification.

Confidence: 94%Severity: 72%
AnomalyLOW
rules/magic-links.md

The code appears to implement a legitimate magic-link authentication flow and shows no evidence of malware or intentional supply-chain compromise. The main security concerns are authentication-token exposure in GET query parameters, possible production use of an HTTP base URL, and the stated bypass of 2FA with automatic signup. Verification, expiration, single-use, replay, rate-limit, and scanner-handling controls require review in the omitted implementation.

Confidence: 94%Severity: 66%
Audit Metadata
Analyzed At
Sep 14, 2026, 02:41 PM
Package URL
pkg:socket/skills-sh/sailscastshq%2Fboring-stack%2Fauthentication%2F@18f3328d62da67fc7fff69a50c93746822b6188bae2e4b0da1a080fe3a9c9540