{
  "bomFormat": "CycloneDX",
  "specVersion": "1.6",
  "serialNumber": "urn:uuid:9149dd4a-4c1e-40d3-91c9-e0e8b6efed0c",
  "version": 1,
  "metadata": {
    "timestamp": "2026-11-28T07:34:22.921Z",
    "tools": {
      "components": [
        {
          "type": "application",
          "name": "carebridge lib/bom.js",
          "version": "1.0.0"
        }
      ]
    },
    "component": {
      "type": "application",
      "bom-ref": "pkg:generic/carebridge@1.0.0",
      "name": "CareBridge",
      "version": "1.0.0",
      "description": "Patient-facing health app with SMART on FHIR sign-in. No backend and no stored health data."
    },
    "properties": [
      {
        "name": "carebridge:document",
        "value": "cbom"
      },
      {
        "name": "carebridge:scope",
        "value": "Cryptography the CareBridge code or server configuration uses or verifies. Certificates, CDN settings and provider servers are outside it."
      },
      {
        "name": "carebridge:stores-data-at-rest",
        "value": "false"
      }
    ]
  },
  "components": [
    {
      "type": "cryptographic-asset",
      "bom-ref": "crypto/x25519mlkem768",
      "name": "X25519MLKEM768",
      "description": "Hybrid TLS 1.3 key exchange: X25519 and ML-KEM-768 run together. The server option offers it first (CAREBRIDGE_TLS_PQ).",
      "cryptoProperties": {
        "assetType": "algorithm",
        "algorithmProperties": {
          "primitive": "combiner",
          "parameterSetIdentifier": "X25519MLKEM768",
          "cryptoFunctions": [
            "keygen",
            "encapsulate",
            "decapsulate"
          ],
          "classicalSecurityLevel": 128,
          "nistQuantumSecurityLevel": 3
        }
      },
      "evidence": {
        "occurrences": [
          {
            "location": "lib/tls.js"
          }
        ]
      }
    },
    {
      "type": "cryptographic-asset",
      "bom-ref": "crypto/ml-kem-768",
      "name": "ML-KEM-768",
      "description": "Post-quantum key encapsulation (FIPS 203). Used only inside the hybrid group above.",
      "cryptoProperties": {
        "assetType": "algorithm",
        "algorithmProperties": {
          "primitive": "kem",
          "parameterSetIdentifier": "768",
          "cryptoFunctions": [
            "keygen",
            "encapsulate",
            "decapsulate"
          ],
          "classicalSecurityLevel": 192,
          "nistQuantumSecurityLevel": 3
        }
      },
      "evidence": {
        "occurrences": [
          {
            "location": "lib/tls.js"
          }
        ]
      }
    },
    {
      "type": "cryptographic-asset",
      "bom-ref": "crypto/x25519",
      "name": "X25519",
      "description": "Classical elliptic-curve key agreement, the other half of the hybrid group, and the fallback when a peer has no ML-KEM. Breakable by a large quantum computer.",
      "cryptoProperties": {
        "assetType": "algorithm",
        "algorithmProperties": {
          "primitive": "key-agree",
          "curve": "curve25519",
          "cryptoFunctions": [
            "keygen",
            "keyderive"
          ],
          "classicalSecurityLevel": 128,
          "nistQuantumSecurityLevel": 0
        }
      },
      "evidence": {
        "occurrences": [
          {
            "location": "lib/tls.js"
          }
        ]
      }
    },
    {
      "type": "cryptographic-asset",
      "bom-ref": "crypto/aes-256-gcm",
      "name": "AES-256-GCM",
      "description": "TLS 1.3 record protection.",
      "cryptoProperties": {
        "assetType": "algorithm",
        "algorithmProperties": {
          "primitive": "ae",
          "mode": "gcm",
          "parameterSetIdentifier": "256",
          "cryptoFunctions": [
            "encrypt",
            "decrypt",
            "tag"
          ],
          "classicalSecurityLevel": 256,
          "nistQuantumSecurityLevel": 5
        }
      },
      "evidence": {
        "occurrences": [
          {
            "location": "lib/tls.js"
          }
        ]
      }
    },
    {
      "type": "cryptographic-asset",
      "bom-ref": "crypto/aes-128-gcm",
      "name": "AES-128-GCM",
      "description": "TLS 1.3 record protection, offered as a lower-preference suite by Node's defaults.",
      "cryptoProperties": {
        "assetType": "algorithm",
        "algorithmProperties": {
          "primitive": "ae",
          "mode": "gcm",
          "parameterSetIdentifier": "128",
          "cryptoFunctions": [
            "encrypt",
            "decrypt",
            "tag"
          ],
          "classicalSecurityLevel": 128,
          "nistQuantumSecurityLevel": 1
        }
      },
      "evidence": {
        "occurrences": [
          {
            "location": "lib/tls.js"
          }
        ]
      }
    },
    {
      "type": "cryptographic-asset",
      "bom-ref": "crypto/chacha20-poly1305",
      "name": "ChaCha20-Poly1305",
      "description": "TLS 1.3 record protection.",
      "cryptoProperties": {
        "assetType": "algorithm",
        "algorithmProperties": {
          "primitive": "ae",
          "parameterSetIdentifier": "256",
          "cryptoFunctions": [
            "encrypt",
            "decrypt",
            "tag"
          ],
          "classicalSecurityLevel": 256
        }
      },
      "evidence": {
        "occurrences": [
          {
            "location": "lib/tls.js"
          }
        ]
      }
    },
    {
      "type": "cryptographic-asset",
      "bom-ref": "crypto/sha-256",
      "name": "SHA-256",
      "description": "PKCE code challenge (S256), the digest inside RS256 and ES256 checks, and the file fingerprints in sbom.json.",
      "cryptoProperties": {
        "assetType": "algorithm",
        "algorithmProperties": {
          "primitive": "hash",
          "parameterSetIdentifier": "256",
          "cryptoFunctions": [
            "digest"
          ],
          "classicalSecurityLevel": 128,
          "nistQuantumSecurityLevel": 2
        }
      },
      "evidence": {
        "occurrences": [
          {
            "location": "public/js/smart.js"
          },
          {
            "location": "public/js/jwt.js"
          },
          {
            "location": "lib/bom.js"
          }
        ]
      }
    },
    {
      "type": "cryptographic-asset",
      "bom-ref": "crypto/sha-384",
      "name": "SHA-384",
      "description": "Handshake hashing inside the TLS_AES_256_GCM_SHA384 suite.",
      "cryptoProperties": {
        "assetType": "algorithm",
        "algorithmProperties": {
          "primitive": "hash",
          "parameterSetIdentifier": "384",
          "cryptoFunctions": [
            "digest"
          ],
          "classicalSecurityLevel": 192,
          "nistQuantumSecurityLevel": 4
        }
      },
      "evidence": {
        "occurrences": [
          {
            "location": "lib/tls.js"
          }
        ]
      }
    },
    {
      "type": "cryptographic-asset",
      "bom-ref": "crypto/rs256",
      "name": "RSASSA-PKCS1-v1_5 with SHA-256 (RS256)",
      "description": "Verifies the provider's id_token signature. CareBridge never signs. The provider chooses the algorithm; post-quantum signatures are not yet available in browsers or from providers.",
      "cryptoProperties": {
        "assetType": "algorithm",
        "algorithmProperties": {
          "primitive": "signature",
          "cryptoFunctions": [
            "verify"
          ],
          "nistQuantumSecurityLevel": 0
        }
      },
      "evidence": {
        "occurrences": [
          {
            "location": "public/js/jwt.js"
          }
        ]
      }
    },
    {
      "type": "cryptographic-asset",
      "bom-ref": "crypto/es256",
      "name": "ECDSA P-256 with SHA-256 (ES256)",
      "description": "Verifies the provider's id_token signature. CareBridge never signs.",
      "cryptoProperties": {
        "assetType": "algorithm",
        "algorithmProperties": {
          "primitive": "signature",
          "curve": "secp256r1",
          "cryptoFunctions": [
            "verify"
          ],
          "classicalSecurityLevel": 128,
          "nistQuantumSecurityLevel": 0
        }
      },
      "evidence": {
        "occurrences": [
          {
            "location": "public/js/jwt.js"
          }
        ]
      }
    },
    {
      "type": "cryptographic-asset",
      "bom-ref": "crypto/csprng",
      "name": "Browser CSPRNG (crypto.getRandomValues)",
      "description": "PKCE verifier, state, nonce and identifiers.",
      "cryptoProperties": {
        "assetType": "algorithm",
        "algorithmProperties": {
          "primitive": "drbg",
          "cryptoFunctions": [
            "generate"
          ]
        }
      },
      "evidence": {
        "occurrences": [
          {
            "location": "public/js/util.js"
          },
          {
            "location": "public/js/smart.js"
          }
        ]
      }
    },
    {
      "type": "cryptographic-asset",
      "bom-ref": "crypto/tls-1.3",
      "name": "TLS 1.3",
      "description": "Transport security for the connection to CareBridge and, in the browser, to the health provider. Certificates and the key-exchange group actually used are decided by the host or provider (for this site's host, see the Security page).",
      "cryptoProperties": {
        "assetType": "protocol",
        "protocolProperties": {
          "type": "tls",
          "version": "1.3",
          "cipherSuites": [
            {
              "name": "TLS_AES_256_GCM_SHA384",
              "algorithms": [
                "crypto/aes-256-gcm",
                "crypto/sha-384"
              ]
            },
            {
              "name": "TLS_CHACHA20_POLY1305_SHA256",
              "algorithms": [
                "crypto/chacha20-poly1305",
                "crypto/sha-256"
              ]
            },
            {
              "name": "TLS_AES_128_GCM_SHA256",
              "algorithms": [
                "crypto/aes-128-gcm",
                "crypto/sha-256"
              ]
            }
          ],
          "cryptoRefArray": [
            "crypto/x25519mlkem768",
            "crypto/x25519"
          ]
        }
      },
      "evidence": {
        "occurrences": [
          {
            "location": "lib/tls.js"
          }
        ]
      }
    }
  ],
  "dependencies": [
    {
      "ref": "pkg:generic/carebridge@1.0.0",
      "dependsOn": [
        "crypto/x25519mlkem768",
        "crypto/ml-kem-768",
        "crypto/x25519",
        "crypto/aes-256-gcm",
        "crypto/aes-128-gcm",
        "crypto/chacha20-poly1305",
        "crypto/sha-256",
        "crypto/sha-384",
        "crypto/rs256",
        "crypto/es256",
        "crypto/csprng",
        "crypto/tls-1.3"
      ]
    }
  ]
}
