Skip to content

v0.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 18 Dec 03:15

What's New

HTTP Auto-Update

Databases can now automatically update from a remote URL. Embed an update URL when building, then enable auto-update when opening:

// Build with update URL
builder.setUpdateUrl("https://example.com/threats.mxy")
       .save(Paths.get("threats.mxy"));

// Open with auto-update enabled
OpenOptions options = OpenOptions.defaults()
    .autoUpdate(true)
    .updateIntervalSecs(3600);
Database db = Database.open(path, options);

Database Validation

Validate database files before opening:

Database.validate(Paths.get("threats.mxy"), ValidationLevel.STRICT);

Schema Validation

Enable ThreatDB schema validation when building:

builder.setSchema("threatdb")
       .add("1.2.3.4", Map.of("tlp", "RED", "confidence", 95));

Case-Insensitive Matching

builder.setCaseInsensitive(true);

Reload Callbacks

Get notified when a watched database reloads:

OpenOptions options = OpenOptions.defaults()
    .autoReload(true)
    .reloadCallback(event -> System.out.println("Reloaded: " + event));

Other Additions

  • Database.hasAutoUpdate() — Check if auto-update feature is available
  • Database.getVersion() — Get native library version
  • Database.getUpdateUrl() — Get embedded update URL
  • Low-level Entry / EntryData API for typed data access

Native Library

Updated to matchy b743209 with thread safety fixes, SIMD safety improvements, and Windows compatibility fixes.