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 availableDatabase.getVersion()— Get native library versionDatabase.getUpdateUrl()— Get embedded update URL- Low-level
Entry/EntryDataAPI for typed data access
Native Library
Updated to matchy b743209 with thread safety fixes, SIMD safety improvements, and Windows compatibility fixes.