GenAI-Data-Security-Initiative icon indicating copy to clipboard operation
GenAI-Data-Security-Initiative copied to clipboard

ATLAS mappings needing a judgement call, and an offer of the verifier behind #59

Open astrogilda opened this issue 4 months ago • 2 comments

This is the part of the ATLAS review that needs your judgement rather than a lookup, plus an offer of the tooling that produced it. The mechanical half is in #59; nothing here overlaps with it.

Mappings where the fix could go either way

AML.T0035 "Exfiltrate via ML Inference API", on 14 rows. AML.T0035 is "AI Artifact Collection", and no release I read carries the recorded label at all. The nearest live technique to it is AML.T0024 "Exfiltration via AI Inference API". So both halves of the pair are questionable and there are two defensible fixes. Moving the identifier to AML.T0024 keeps the label. Keeping AML.T0035 and correcting the label to "AI Artifact Collection" also works, and on DSGAI14 specifically it works better than the alternative: that entry is about telemetry and monitoring leakage, and AML.T0035's definition explicitly covers "other telemetry data produced when interacting with a model". I lean toward keeping the identifier and fixing the label, but the rows are not all alike and you know the intent behind them.

AML.T0012 "Obtain Capabilities", on two rows that want opposite fixes. AML.T0012 is "Valid Accounts" and "Obtain Capabilities" is AML.T0016, so again either half could be the error. DSGAI02 describes acquiring agent credentials through memory inspection, log analysis and tool payload capture, which reads as AML.T0012 with a stale label. DSGAI03 describes shadow AI tools the adversary may already operate or compromise, which reads as genuinely obtaining a capability, so there the identifier would move to AML.T0016.

AML.T0010 "Backdoor ML Model", similarly split. AML.T0010 is "AI Supply Chain Compromise"; "Backdoor ML Model" was AML.T0018's name before it became "Manipulate AI Model". LLM03's row describes backdoors reaching model weights through the training and fine-tuning supply chain, which fits AML.T0010. ASI04's row names MCP servers, prompt templates and model adapters, and AML.T0010.005 "AI Agent Tool" is the exact sub-technique for that.

I have another 46 proposals of this kind across NIST AI RMF, the EU AI Act and the OWASP families. I would rather not dump them on you at once — say the word and I will open them as a table, or split them per framework, or drop the ones you are not interested in.

Two things about the repository, offered rather than asserted

scripts/generate.js writes the current date into the four generated bundles under docs/. Because those bundles are committed, any check that regenerates and compares fails on a pristine checkout from the day after they were last written, with no input having changed. Removing the four stamp lines makes regeneration byte-identical across runs, which is what lets a build check mean anything. I have the patch if you want it. Separately, npm run validate reports 51 errors and 67 warnings on main at 2aa707af, none of them from anything I touched.

A verifier, if it is useful

I found the ATLAS problems by writing a script that fetches each framework's primary source, pins the sha256 of the bytes it read, and compares every citation to it: the identifier exists, and the recorded control_name is the name that framework's own publisher gives that identifier. The schema already declares url, version, last_synced and source_sha on every framework file, which is most of what this needs; what is missing is something that compares them to the source.

It runs offline in CI against the pinned registries, so a pull request never needs the network, and a weekly scheduled run re-fetches the primaries and reports drift. Frameworks whose text is paywalled, ISO/IEC 42001 and PCI DSS among them, are reported as unverified rather than asserted either way, because a source you cannot fetch is not a source you can check against. On the tree as it stands it reports 281 citations checked against a pinned primary and 273 mismatched; with the pull request applied, 281 and zero.

Two things I would want to be honest about before you take it. It only covers the two frameworks that publish a machine-readable primary, MITRE ATLAS and the NIST AI RMF playbook; the other 23 stay unverified until someone writes an adapter, and it says so rather than counting them as passing. And it is a new file plus a workflow, which is a bigger ask than a data fix, so I am raising it here rather than putting it in the pull request. Happy to open it separately, hand it over as a patch, or leave it if the maintenance cost is not worth it to you.

Amendment, 20 August 2026

The scope limit above turns out to matter more than it looked when I wrote it, so I am recording it here; the offer below should not read as covering the case that has since come up. The note at the bottom of #63 reports control_id values holding prose, with several carrying U+FFFD from a bad encoding round-trip. The verifier offered above cannot see any of it: it compares a citation to a machine-readable primary, and the damaged identifiers sit in SOC 2, the EU AI Act and the NHI Top 10, none of which publishes one. Measured at 2aa707af over crosswalk/data/frameworks/*.json, 152 of 1,514 control_id values contain U+FFFD and 576 are five words or longer.

So the offer above is the narrower of two things worth building, and it is the second of the two. The check that catches the defect on #63 needs no primary at all, covers all 25 registries, and runs offline: reject U+FFFD in a control_id, reject an identifier that is a sentence, and hold each registry to a shape derived from its own identifiers. The citation verifier described above sits on top of that once source_sha is populated. Details and the counts are in the comment below.

Edited 20 August 2026 to add this amendment. Nothing above it was changed.

astrogilda avatar Aug 03 '26 22:08 astrogilda

Your note at the bottom of #63 about control_id values holding prose is right, and it is larger than the example you gave. I have amended the issue body above to say that the verifier offered there does not reach it, so the offer is not left standing as though it covered this. What follows is the measurement and the check that does cover it.

Counted at 2aa707af over crosswalk/data/frameworks/*.json, so these are the inputs and the generated bundle is out of it: 1,514 control entries across the 25 registries. 152 control_id values contain U+FFFD, and they are concentrated, 117 in SOC 2, 23 in the EU AI Act and 12 in the NHI Top 10. Separately, 576 control_id values are five words or longer, spread across eleven registries, with SOC 2 at 168, the EU AI Act at 118 and the NHI Top 10 at 103.

AIUC-1 is worth a look on its own, because it exposes the cause where the other counts only show the symptom. Nine of its 23 entries are AIUC-1 control identifiers, B001 through B009. The other fourteen are the header and body of two different tables on the same page: five single letter domain codes, a header row whose control_id is "Primary DSGAI entries" and whose title is "AIUC-1 Domain", six rows whose control_id is a list of DSGAI identifiers, and a version table, its header "Date" titled "Version" and its one row "2026-03-27" titled "1.0.0". That is not a handful of typos. The ingest consumed a table it should have skipped, and an edit would leave the ingest free to do it again, so the fix wants to be a check.

Nothing in the repository can currently fail on any of it. In crosswalk/data/framework-schema.json, control_id is {"type": "string"} with a description that names the intended shape, "Canonical control identifier e.g. GV-1.1, Art. 9, SR 3.3", and there is no pattern, no minLength and no per registry constraint, so a whole sentence validates exactly as GV-1.1 does. source_sha is typed ["string", "null"] and is null on all 25 files, so the field that exists to make a sync checkable cannot fail while it is empty. mitre-atlas.json still declares version 4.0 and last_synced 2026-04-10, which is the same gap #59 approaches from the other end.

The check that catches what you found needs no primary, so I would sooner write that one first and have it cover all 25 registries, where the offer above reaches two. Reject U+FFFD anywhere in a control_id, reject an identifier that is a sentence, and hold each registry to a shape derived from its own identifiers rather than to a global pattern, since GV-1.7, Art. 24-27 and A.5.1 all have to pass. It runs offline against the committed files, needs no network, and would have failed on the AIUC-1 table the day it was ingested.

One thing I checked before suggesting an allow list route, since that would be the obvious way to do this. data_validation/reference_data/framework_control_ids/ holds six CSVs, and five of them are a header line and a "# TODO: Populate" comment. Only nist_csf2.csv carries rows, eleven of them. The allow list is a place today, and not yet a resource. The shape check does not depend on it.

Would you like this as one pull request against framework-schema.json plus a check under crosswalk/scripts, or an issue first so you can say which registries you want it strict about? Happy either way. #59 is still open with the same two small questions in it: whether there is a gate you would rather I run, given that data_validation/run_all_checks.py currently prints "Validators not yet implemented" and exits without checking anything, and whether you want the regenerated docs/*.js bundles in the diff or would rather regenerate them yourself.

astrogilda avatar Aug 20 '26 16:08 astrogilda

Closing here because the crosswalk mappings this issue covers now live in their own repository, GenAI-Security-Project/crosswalk. The crosswalk/ folder was removed from this repository in #68.

The ATLAS work is continuing there:

  • crosswalk#93 tracks the ATLAS rows that pair an id with another technique's name, plus ids that do not exist (checked against ATLAS 2026.08).
  • crosswalk#116 has already retargeted the 16 ATLAS rows whose own claim restates the ATLAS definition.

Thank you, @astrogilda, for the careful review and for the offer of the verifier. Your judgement-call cases (AML.T0035 vs AML.T0024, and the AML.T0012 rows) are best raised on crosswalk#93, where the rows are being fixed. Please bring them, and the verifier offer, there.

emmanuelgjr avatar Oct 01 '26 04:10 emmanuelgjr