MCP scan allowlist ignores `tool:` field, so entries apply server-wide
Les mainteneurs répondent en général sous 11 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 76/100
Piste de recherche
Start with scripts/mcp-scan/process_scan_results.py, especially load_security_config() and is_issue_allowed(), then inspect the scanner tests. Add coverage for per-tool matches, duplicate codes across tools, and entries without tool:. Done means tool-scoped entries only allow matching findings, server-wide entries retain their current behavior, and each match reports its own reason.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
security.allowed_issues entries in MCP server specs commonly include a tool: field, which reads as scoping the entry to one tool. scripts/mcp-scan/process_scan_results.py never reads it. load_security_config() builds a dict keyed only by code (line 84), and is_issue_allowed() checks only the finding's AITech/AISubtech codes against that dict (lines 91-127). So every entry allowlists its code for every tool on the server, including tools added in future versions.
Impact
- 7 specs use
tool:across 17 entries (heroku, phoenix, sentry, server-everything, arxiv, clickhouse, redis). All of them are broader than they look. npx/heroku-mcp-server/spec.yamlhas eight separateAISubtech-12.1.2entries, one per tool. They collapse into a single dict key, so 12.1.2 is allowlisted on every Heroku tool, and only the last entry'sreasonsurvives into the scan output.- Prefix matching widens this further. An
AITech-12.1entry also covers everyAISubtech-12.1.xon every tool. - It makes narrow allowlists for LLM-analyzer flakes unsafe. For example, supabase's main build just failed on a nondeterministic AITech-8.2 (data exfiltration) finding on
get_publishable_keys. Allowlisting that would also silence any future 8.2 finding onexecute_sql.
Proposed fix
- Store allowlist entries as a list of
(code, tool, reason)rather than a dict keyed by code. - When an entry has
tool, match only findings whosetool_nameequals it. Entries withouttoolkeep today's server-wide behavior, so existing specs withouttool:don't change. - Keep each matched entry's own
reasonin the output. - Add tests for per-tool matching, duplicate codes across tools, and the no-
toolfallback.
Rollout note
Turning this on will narrow 17 existing entries. A spec whose allowlist was quietly covering other tools could start failing its scan. Running the scanner over those 7 specs before merging would show which entries need to be widened or duplicated.
- Langage dominant
- Go
- Étoiles
- 8
- Forks
- 7
- Merge moyen
- 6 j 15 h
- PR mergées (30 j)
- 74
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de stacklok/dockyard
-
grype high security
Difficulté 2/5 1-3 heures Accessibilité débutants 53/100
Les mainteneurs répondent en général sous 11 jours
-
grype high security
Difficulté 2/5 1-3 heures Accessibilité débutants 56/100
Les mainteneurs répondent en général sous 11 jours
-
Package Postman with proxy-compatible NodePeut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. Ouverteneeds-triage
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
stacklok/dockyard#1195 · 1 commentaire ·
Les mainteneurs répondent en général sous 11 jours
-
grype high security
Difficulté 2/5 1-3 heures Accessibilité débutants 52/100
stacklok/dockyard#1191 · 3 commentaires ·
Les mainteneurs répondent en général sous 11 jours
-
grype high security
Difficulté 3/5 1-2 jours Accessibilité débutants 52/100
stacklok/dockyard#1189 · 3 commentaires ·
Les mainteneurs répondent en général sous 11 jours
Toutes les issues de stacklok/dockyard
Issues similaires
-
HTTP probe loses insecureSkipVerify in the generated probe manifestPeut-être pris @BahaaMattar l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 87/100
litmuschaos/litmus#5745 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
Les mainteneurs répondent en général sous 2 jours
-
type/bug
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
Les mainteneurs répondent en général sous 1 jour
-
messaging/v1: IsGRPCProtocol and InternalMetadataToGrpcMetadata panic on empty or nil metadata valuesPeut-être pris @patelshivani2283-lab l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
Les mainteneurs répondent en général sous 1 jour
-
needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
stacklok/toolhive-catalog#2024 ·
Les mainteneurs répondent en général sous 1 jour