This repository is the canonical registry of Corsair mapping packs. Mapping packs describe how to translate tool output into Corsair's canonical control model.
index.json # Discovery manifest
schemas/ # JSON schema for index.json
signers/ # Public keys for pack verification
packs/<tool>/<version>/ # Mapping packs (one tool per version)
mappings/ # Mapping JSON files
fixtures/ # Sample input + expected output
pack.json # Unsigned pack
pack.signed.json # Signed pack (generated by maintainers)
- Create a new folder:
packs/<tool>/<version>/mappings/ - Add mapping JSON files.
- Add fixtures under
packs/<tool>/<version>/fixtures/. - Build an unsigned pack:
corsair mappings pack --id <tool> --version <version> \ --mapping ./packs/<tool>/<version>/mappings \ --out ./packs/<tool>/<version>/pack.json
- Run validation:
corsair mappings validate --file ./packs/<tool>/<version>/pack.json bun scripts/validate-index.ts index.json
- Update
index.jsonwith a new entry. - Open a PR.
Maintainers will review, sign, and publish a release.
Consumers should verify pack signatures before use:
export CORSAIR_MAPPING_PACK_PUBKEY="$(cat signers/grcorsair.pub.pem)"
export CORSAIR_MAPPING_FILE=./packs/<tool>/<version>/pack.signed.json
corsair sign --file tool-output.jsonindex.json is a flat array of entries. Example:
[
{
"id": "prowler-aws",
"tool": "Prowler",
"version": "1.2.0",
"description": "Prowler OCSF to Corsair controls",
"frameworks": ["SOC2", "CIS-AWS"],
"mappingIds": ["prowler-ocsf"],
"packUrl": "https://github.com/grcorsair/mappings/releases/download/prowler-aws-v1.2.0/prowler-aws.pack.signed.json",
"sha256": "<sha256>",
"signer": "grcorsair",
"source": "community",
"publicKeyUrl": "https://github.com/grcorsair/mappings/raw/main/signers/grcorsair.pub.pem",
"createdAt": "2026-02-19"
}
]- Schema:
schemas/index.schema.json - Validator:
bun scripts/validate-index.ts index.json
- Community packs are signed by the registry key (
grcorsair). - Vendor packs should be signed by the vendor and may be mirrored here.
- The signature inside the pack is the source of truth.
Apache-2.0