@ultrst-armada/kloks@1.24.0
Kloks — Public Backend, State-Graph, Audio/MIDI & Service Package Library built on KrnlTS (@kloks/*)
AI Security Review
scanned 4d ago · by lpm-firewall-aiThe exported admin login helper contains a fixed credential fallback that creates a privileged local session when its login request throws or returns no error or success. This is a significant authentication risk, though the inspected source does not show server-side acceptance of the generated token or automatic activation.
Decision evidence
public snapshot- The admin login helper posts credentials to `/api/auth/admin/login`; if the request throws or yields neither success nor an error, it falls through to a hardcoded credential check.
- The fallback accepts `admin@depm.vault` with password `admin123` and creates a user with `role: "admin"`.
- The fallback calls `store.setSession(adminUser)` and returns success with the resulting session token.
- `setSession` generates a session token when no custom token is supplied.
- The login helper is callable through `store.loginAdmin` and is also exported from the services module.
- The fallback runs only when a caller invokes the admin login helper and the login request throws or returns neither success nor an error.
- The inspected source does not establish that a server accepts the locally generated session token.
Source & flagged code
4 flaggedPackage source references dynamic require/import behavior.
packages/state-graph/dist/transformers.node-HWHOAE4H.jsView on unpkg · L33Package source references a known benign dynamic code generation pattern.
packages/state-graph/dist/transformers.node-HWHOAE4H.jsView on unpkg · L18054Findings
Affected versions and remediation
This report applies to @ultrst-armada/kloks@1.24.0.
See all versions of @ultrst-armada/kloks for other recorded verdicts.
- Review the evidence and your use of @ultrst-armada/kloks@1.24.0 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.