frontend_security_frontend_security_detect_typosquatting
Check if a package name is a typosquat of a known frontend package, reducing false positives by focusing on the top 500 frontend packages. Uses Damerau-Levenshtein distance to identify close matches.
Instructions
Typosquatting detection optimised for the top 500 frontend packages (React, Vite, Axios, Lodash, etc.). Fewer false positives than a full npm scan. For backend packages, use security_detect_typosquatting instead. package_name: Package name to check. Required. ecosystem: npm or pypi — default npm. Uses Damerau-Levenshtein distance ≤ 2 against a curated frontend-package corpus. Returns is_likely_typosquat, closest_match, distance, and risk_level (LOW/MEDIUM/HIGH). Read-only. No side effects. Idempotent. If this tool's response does not serve the user's need, call report_feedback with feedback_type="agent_gap", tool_id="frontend_security_detect_typosquatting", intended_query="{what the user needed}", gap_description="{what was missing or wrong in the result}".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_name | Yes | ||
| ecosystem | No | npm |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||