feat: Threat Intelligence Feed Framework#209
Merged
mijinummi merged 1 commit intoJul 21, 2026
Merged
Conversation
Introduces src/modules/threat-intelligence/ with a feed abstraction (ThreatIntelligenceFeed), an ingestion pipeline that ingests one or all registered feeds and isolates per-feed failures, and interval-based scheduling for recurring ingestion. Closes MD-Creative-Production#123
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Implements the threat intelligence feed framework requested in #123, under
src/modules/threat-intelligence/.Why
Internal monitoring alone can miss known malicious actors already documented by external threat intel sources. This gives Sentinel a pluggable way to ingest and act on that data.
Implementation
ThreatIntelligenceFeedis an abstract base class; any upstream source (HTTP API, file drop, SDK, etc.) implements it by providing anameand afetchIndicators()method. The ingestion pipeline only depends on this interface, not on any concrete feed.ThreatIntelligenceService.ingestFeed()fetches and stores indicators for a single feed, stamping each with an id, feed name, and fetch timestamp.ingestAll()runs ingestion across every registered feed in parallel and isolates per-feed failures (one feed throwing doesn't block the others). Ingestion results (success/failure, record count) are observable viaonIngestion().schedule(feedName, { intervalMs, runImmediately })runs recurring ingestion for a feed on an interval, withstopSchedule()/stopAllSchedules()/isScheduled()for lifecycle control.Follows the same plain-class-plus-interfaces style already used by
src/modules/detection/malicious-addresses.Testing
16 new unit tests in
threat-intelligence.service.spec.tscovering feed registration/removal, successful and failed ingestion (including isolation of per-feed failures), aggregate ingestion, subscriber notifications, and scheduling (interval firing, immediate run, stop/replace/stop-all, scheduling an unregistered feed).Verified locally:
npm run lint— cleannpm run format:check— clean for these filesnpm run build— passesnpx jest --config jest.backend.config.js src/modules/threat-intelligence— 16/16 passingAcceptance Criteria
Closes #123