
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
@mitre/hdf-schema
Advanced tools
JSON schemas and multi-language type definitions for Heimdall Data Format (HDF)
JSON schemas and multi-language type definitions for Heimdall Data Format (HDF).
HDF is a standardized format for representing security assessment results. This package provides:
npm install @mitre/hdf-schema
Seven document types covering the full security assessment lifecycle:
hdf-results)Assessment findings from running security checks against target systems. The primary output of converters. Contains evaluated baselines with requirement results, components (hosts, containers, cloud resources), status overrides with disposition tracking, and statistics.
hdf-baseline)Security requirement definitions without results — the "what to check" document. Contains requirement metadata (title, descriptions, severity, impact), check/fix instructions, framework mappings (NIST, CCI), and dependency information.
hdf-system)Authorization boundary definition. Describes a system's components (with polymorphic types: host, container, cloud account, application, etc.), data flows between components, and control designations (common/hybrid/system-specific).
hdf-plan)Assessment plan linking baselines to system components. Defines what will be assessed, how, and by whom. References baselines, systems, and runner configurations.
hdf-amendments)Standalone amendment documents containing waivers, attestations, POA&Ms, and other overrides. Applied to results via hdf amend apply to track adjudication decisions (false positives, risk adjustments, operational requirements).
hdf-evidence-package)Bundles references to all documents needed for a compliance review — results, baselines, system, plan, and amendments — with checksums for integrity verification.
hdf-comparison)Output of the diff engine. Structural comparison between two or more HDF documents showing requirement-level changes, status transitions, and field diffs.
Schemas can be imported in two ways:
// Named exports from the barrel (all schemas available)
import { hdfResultsSchema, hdfBaselineSchema, hdfSystemSchema } from '@mitre/hdf-schema';
// Sub-path imports (one schema per import, tree-shakeable)
import type { HdfResults } from '@mitre/hdf-schema/hdf-results';
import type { HdfBaseline } from '@mitre/hdf-schema/hdf-baseline';
import type { HdfSystem } from '@mitre/hdf-schema/hdf-system';
import type { HdfPlan } from '@mitre/hdf-schema/hdf-plan';
import type { HdfAmendments } from '@mitre/hdf-schema/hdf-amendments';
import type { HdfEvidencePackage } from '@mitre/hdf-schema/hdf-evidence-package';
import type { HdfComparison } from '@mitre/hdf-schema/hdf-comparison';
Helper functions (severity mapping, effective status computation):
import { severityToImpact, impactToSeverity, computeEffectiveStatus } from '@mitre/hdf-schema/helpers';
import Ajv from 'ajv';
import { hdfResultsSchema } from '@mitre/hdf-schema';
const ajv = new Ajv({ strict: false });
const validate = ajv.compile(hdfResultsSchema);
const isValid = validate(myDocument);
if (!isValid) {
console.error(validate.errors);
}
import type { HdfResults, HdfBaseline } from '@mitre/hdf-schema';
function processResults(results: HdfResults) {
for (const baseline of results.baselines) {
for (const requirement of baseline.requirements) {
console.log(`${requirement.id}: ${requirement.results[0]?.status}`);
}
}
}
import hdf "github.com/mitre/hdf-libs/hdf-schema/dist/go/v3"
func main() {
data := []byte(`{"baselines": [...]}`)
results, err := hdf.UnmarshalHDFResults(data)
if err != nil {
panic(err)
}
for _, baseline := range results.Baselines {
fmt.Printf("%s: %d requirements\n", baseline.Name, len(baseline.Requirements))
}
}
| File | Description |
|---|---|
src/schemas/hdf-results.schema.json | Assessment findings (modular, uses $ref) |
src/schemas/hdf-baseline.schema.json | Requirement definitions without results |
src/schemas/hdf-system.schema.json | Authorization boundary, components, data flows |
src/schemas/hdf-plan.schema.json | Assessment plan linking baselines to components |
src/schemas/hdf-amendments.schema.json | Waivers, attestations, POA&Ms |
src/schemas/hdf-evidence-package.schema.json | Bundle of references to all documents |
src/schemas/hdf-comparison.schema.json | Differential analysis between assessments |
src/schemas/primitives/*.schema.json | Shared type definitions |
dist/schemas/*.schema.json | Bundled schemas (self-contained, all $refs inlined) |
Modular schemas (src/schemas/) use $ref to reference shared definitions from primitive files. Use these if your validator supports $ref resolution.
Bundled schemas (dist/schemas/) have all references inlined. Use these for tools that don't support $ref or for simpler integration.
After building, types are available in:
| Language | Location |
|---|---|
| TypeScript | dist/ts/hdf-*.ts (7 files, one per schema) |
| Go | dist/go/hdf.go (single file containing all types) |
# Install dependencies
pnpm install
# Run tests
pnpm test
# Build everything (schemas + types)
pnpm build
# Build only bundled schemas
pnpm build:schemas
# Build only generated types
pnpm build:types
This package has two version numbers that serve different purposes:
Package version (package.json version): Follows npm semver. Bumped on every release — bug fixes, new helpers, type generation improvements, dependency updates. This is what consumers see in npm install @mitre/hdf-schema@3.0.1.
Schema version ($id URL in each .schema.json): Identifies the schema structure itself. Only changes when the schema structure changes — new fields, removed fields, type changes, constraint changes. Example: https://mitre.github.io/hdf-libs/schemas/hdf-results/v3.1.0.
These versions are aligned at major boundaries (both are 3.x to signal this is the successor to the heimdall2 v2.x ecosystem) but can diverge at minor/patch levels. A package patch release (e.g., 3.0.1 → 3.0.2) that only fixes a converter bug or updates a helper function does not change the schema $id. A schema structural change (e.g., adding a new required field) bumps the schema version in the $id URL regardless of where the package version stands.
The $id URLs are also the canonical hosted location for each schema: https://mitre.github.io/hdf-libs/schemas/.
All schemas use JSON Schema draft/2020-12.
Interactive schema reference documentation is published at: https://mitre.github.io/hdf-libs/schemas/
controlType field on Requirement_Core — optional enum (policy | procedure | technical | management | operational) aligning with NIST SP 800-53 / SP 800-53A categories. Replaces heuristic derivation from family conventions.verificationMethod field on Requirement_Core — optional enum (automated | manual-by-design | manual-pending-automation | hybrid) disambiguating the two cases that null code overloaded: inherently manual vs. automation-could-exist-but-doesn't-yet.applicability field on Requirement_Core — optional enum (required | optional | advisory) providing a uniform expression for what FedRAMP CORE props, FedRAMP 20x Optional: markers, CIS Implementation Groups, and CMMC sublevels each encode incompatibly today.disposition field on EvaluatedRequirement — the type of the governing override or POAM (e.g., waiver, falsePositive, riskAdjustment). Indicates why a requirement is in its current state.effectiveImpact field on EvaluatedRequirement — the computed impact score (0.0–1.0) after applying the most recent non-expired impact override.Impact_Override type on Status_Override and Standalone_Override — object with a value field (0.0–1.0). At least one of status or impact must be set (enforced via anyOf).Override_Type expansion — added falsePositive, riskAdjustment, operationalRequirement; removed exception (use waiver with status: "notApplicable" instead).vendorDependency added to POAM type enum../schemas/<name>.schema.json sub-path export was removed. Use named imports from the barrel (import { hdfResultsSchema } from '@mitre/hdf-schema') instead.FAQs
JSON schemas and multi-language type definitions for Heimdall Data Format (HDF)
We found that @mitre/hdf-schema demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.