Assets

June 28, 2026 ยท View on GitHub

This document identifies the assets protected by the Hex ecosystem.

For where these assets are stored and how they flow through the system, see Architecture. For threats targeting these assets, see Threats.

Critical Assets

Package Artifacts

Package tarballs containing source code distributed to consumers.

AttributeDescription
LocationS3 storage, served via CDN
Impact if compromisedArbitrary code execution in downstream systems
ProtectionChecksums, signed registry, immutable versions (after one hour, or 24 hours for newly created packages)

Registry Metadata

Signed protobuf files containing package versions, dependencies, and checksums.

AttributeDescription
LocationS3 storage (protobuf files), served via CDN
Impact if compromisedDependency confusion, version manipulation
ProtectionRSA-PKCS1-SHA512 signatures, repository field verification

Registry Signing Key

Private RSA key used to sign all registry files.

AttributeDescription
LocationSecrets management
Impact if compromisedAttacker could sign malicious registry, bypassing all client verification
ProtectionAccess control, rotation procedures

Maintainer Accounts

User credentials and authentication state.

AttributeDescription
LocationDatabase (hashed passwords, TOTP secrets)
Impact if compromisedUnauthorized package publishing
ProtectionStrong passwords, 2FA, OAuth tokens

API Tokens

Bearer tokens for API access.

AttributeDescription
LocationDatabase (hashed), client machines (plaintext/encrypted)
Impact if compromisedUnauthorized actions within token scope
ProtectionScoping, revocation, short-lived OAuth tokens

High Value Assets

Documentation Content

User-generated HTML documentation.

AttributeDescription
LocationS3 storage, served via hexdocs.pm
Impact if compromisedXSS attacks, phishing
ProtectionCSP headers, per-package origin isolation (<package>.hexdocs.pm, <org>.hexorgs.pm/<package>)

Package Ownership

Namespace mappings and collaborator permissions.

AttributeDescription
LocationDatabase
Impact if compromisedPackage takeover, typosquatting enablement
ProtectionOwnership model, audit logs

Organization Data

Private repositories and billing information.

AttributeDescription
LocationDatabase
Impact if compromisedData breach, unauthorized access
ProtectionAccess control, authentication requirements

Supporting Assets

Audit Logs

Records of security-relevant actions.

AttributeDescription
LocationDatabase, log aggregation
Impact if compromisedLoss of forensic capability
ProtectionAppend-only, retention policies

Build Metadata

SBOM and provenance information.

AttributeDescription
LocationPackage metadata, external attestations
Impact if compromisedFalse provenance claims
ProtectionSigned attestations (future)

Infrastructure Credentials

Service accounts and deployment keys.

AttributeDescription
LocationSecrets management
Impact if compromisedFull system compromise
ProtectionRotation, least privilege, monitoring

Asset Classification Matrix

Impact ratings use CVSS v4.0 semantics:

  • None - No impact
  • Low - Limited impact
  • High - Serious impact
AssetConfidentialityIntegrityAvailability
Package ArtifactsNoneHighHigh
Registry MetadataNoneHighHigh
Registry Signing KeyHighHighHigh
Maintainer AccountsHighHighLow
API TokensHighHighLow
Documentation ContentNoneLowLow
Package OwnershipLowHighLow
Organization DataHighHighLow
Audit LogsLowHighLow
Build MetadataNoneHighNone
Infrastructure CredentialsHighHighHigh