@inversifyjs/http-insights@0.3.0
InversifyJs HTTP insights
AI Security Review
scanned 6d ago · by lpm-firewall-aiProvider setup unconditionally resets the package's local insights database, deleting previously collected records. This is a suspicious destructive default, though it is limited to the package's own database and is triggered by an explicit setup call.
Decision evidence
public snapshot- Calling HttpInsightsProvider.provide loads the database module during setup.
- The database module calls resetDb with the package's configured database URL.
- resetDb removes the database and its journal, WAL, and shared-memory files before recreating the database.
- The configured database path is ./.inversify/insights.db.
- The package is described as HTTP insights instrumentation and stores captured request data in a local SQLite database.
- The reset occurs when the application explicitly calls provide; the package entry point only exports the provider.
Source & flagged code
4 flaggedCalling HttpInsightsProvider.provide loads the database module during setup.
lib/insights/adapter/inversify/services/HttpInsightsProvider.jsView on unpkg · L12Findings
Affected versions and remediation
This report applies to @inversifyjs/http-insights@0.3.0.
See all versions of @inversifyjs/http-insights for other recorded verdicts.
- Review the evidence and your use of @inversifyjs/http-insights@0.3.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.