Skip to content

fix(dsgai-2026): align NHI mapping with the DSGAI 2026 v1.0 taxonomy … - #445

Open
muyanli wants to merge 2 commits into
GenAI-Security-Project:mainfrom
muyanli:fix/dsgai-nhi-2026-taxonomy
Open

muyanli wants to merge 2 commits into
GenAI-Security-Project:mainfrom
muyanli:fix/dsgai-nhi-2026-taxonomy

Conversation

@muyanli

@muyanli muyanli commented Nov 28, 2026 •

Copy link
Copy Markdown

What this PR changes

dsgai-2026/DSGAI_NHI.md, affecting DSGAI01–DSGAI21 (all entries). Part of #444.

The file used DSGAI headings from a list that doesn't match the 2026 v1.0 taxonomy, even though its header cites that taxonomy as the source list. This PR keeps the existing content and moves each section to the 2026 entry it addresses, based on the entry definitions in the v1.0 PDF. It adds content only where the old file had nothing for a 2026 entry.

  • All 21 headings now match v1.0.
  • Every row and mitigation from the old sections is carried over verbatim, except old DSGAI05 "Guardrail Circumvention", which has no 2026 counterpart. One sentence that no longer holds after the move was removed ("The most critical DSGAI entry for NHI.").
  • The intro bullets, Audience tags and maturity table now reference the new IDs.
  • data/ and docs/ changes are regenerated by npm run generate and npm run stats. No other framework's rows change.

Type of change

  • New mapping file
  • Update to existing mapping (content, controls, CVE refs)
  • Bug fix (broken link, typo, incorrect cross-ref)
  • New recipe (shared/RECIPES.md)
  • New tool (shared/TOOLS.md)
  • Infrastructure (scripts, CI, templates)
  • Translation (i18n/)

Source / evidence

Checklist

Content

  • Follows the file template structure (header comment, H1, Why section, quick-reference table, audience
    tags, detailed per-entry mappings, references, changelog)
  • Severity ratings consistent with AIVSS / OWASP definitions in shared/SEVERITY.md (unchanged from the values already in data/entries/)
  • Cross-references are bidirectional — if this file mentions Agentic_X.md, that file mentions this one back
  • All referenced vulnerability IDs are valid (LLM01–LLM10, ASI01–ASI10, DSGAI01–DSGAI21)
  • License header present: CC BY-SA 4.0

Links & data

  • All internal .md links resolve to real files
  • All external URLs return 200 (checked manually or via lychee)
  • [N/A] data/schema.json compatible (if adding a new entry type)

Project hygiene

  • Changelog entry added at bottom of every modified file (YYYY-MM-DD format)
  • [N/A] CHANGELOG.md updated if this is a new mapping file (include in correct version section)
  • [N/A] README.md counts updated if file count changed (badge + summary table + section heading + repo tree); mapping counts regenerated by npm run stats
  • Ran node scripts/validate.js --file <path> locally and it passes

For new mapping files only

N/A

Notes for reviewers

Section moves

2026 entry Content
DSGAI01 — Sensitive Data Leakage moved from old DSGAI06 "Unintended Data Disclosure", old DSGAI03 "Sensitive Data in Training Sets", old DSGAI01 "Prompt Injection via Data Channels"
DSGAI02 — Agent Identity & Credential Exposure new rows; moved from old DSGAI07 "Excessive Data Access", old DSGAI14 "Model Weight Theft"
DSGAI03 — Shadow AI & Unsanctioned Data Flows new section
DSGAI04 — Data, Model & Artifact Poisoning moved from old DSGAI02 "Training Data Poisoning", old DSGAI09 "RAG Corpus Manipulation", old DSGAI17 "Model Supply Chain Risks", old DSGAI16 "Third-Party Data Dependencies"
DSGAI05 — Data Integrity & Validation Failures moved from old DSGAI04 "Insecure Data Pipelines"
DSGAI06 — Tool, Plugin & Agent Data Exchange Risks moved from old DSGAI13 "Data Leakage through Tool Integration"
DSGAI07 — Data Governance, Lifecycle & Classification for AI Systems moved from old DSGAI21 "Data Provenance and Lineage Failures", old DSGAI18 "Data Retention and Deletion Failures"
DSGAI08 — Non-Compliance & Regulatory Violations moved from old DSGAI20 "Regulatory Non-Compliance in Data Use"
DSGAI09 — Multimodal Capture & Cross-Channel Data Leakage new section
DSGAI10 — Synthetic Data, Anonymization & Transformation Pitfalls new section
DSGAI11 — Cross-Context & Multi-User Conversation Bleed moved from old DSGAI11 "Session Persistence Attacks"
DSGAI12 — Unsafe Natural-Language Data Gateways (LLM-to-SQL/Graph) new section
DSGAI13 — Vector Store Platform Data Security moved from old DSGAI08 "Data Leakage in Retrieval"
DSGAI14 — Excessive Telemetry & Monitoring Leakage moved from old DSGAI15 "Inference Data Exposure"
DSGAI15 — Over-Broad Context Windows & Prompt Over-Sharing moved from old DSGAI10 "Context Window Poisoning"
DSGAI16 — Endpoint & Browser Assistant Overreach new section
DSGAI17 — Data Availability & Resilience Failures in AI Pipelines moved from old DSGAI19 "Cascading Data Failures"
DSGAI18 — Inference & Data Reconstruction new section
DSGAI19 — Human-in-the-Loop & Labeler Overexposure new section
DSGAI20 — Model Exfiltration & IP Replication moved from old DSGAI12 "Model Inversion and Extraction"
DSGAI21 — Disinformation & Integrity Attacks via Data Poisoning new section

Judgment calls worth a second look

  • Old "Model Weight Theft" → DSGAI02. DSGAI20 explicitly excludes weight theft (p. 94), and DSGAI04 defers credential controls to DSGAI02 (p. 33).
  • Old "Context Window Poisoning" → DSGAI15. Its row is about sensitive data that shouldn't enter context; DSGAI21 would be the alternative.
    Scope: moved rows remain unreviewed. This PR fixes their placement, not their content.

Validation: npm run build passes, and repo-wide warnings drop from 10 to 9. The resolved warning is INC-134: NHI-4 failed under DSGAI02 and wasn't mapped before.

Not in scope: the registry and NHI files use "Insecure Credential Storage" (NHI-6) and "Long-Lived Credentials" (NHI-7). In the official 2025 list these are "Insecure Cloud Deployment Configurations" and "Long-Lived Secrets". I kept the registry names here and can raise that separately.

@muyanli
muyanli requested a review from emmanuelgjr as a code owner November 28, 2026 01:14

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant