trojanhorse-js
Version:
A comprehensive JavaScript library for fetching, managing, and analyzing global threat intelligence from multiple open-source feeds and security news sources. Unlike its mythological namesake, this Trojan protects your digital fortress.
25 lines • 803 B
TypeScript
import { ThreatFeedResult, FeedConfiguration } from '../types';
export declare class URLhausFeed {
private readonly axiosInstance;
private readonly config;
private lastFetchTime;
private readonly MIN_FETCH_INTERVAL;
constructor();
fetchThreatData(): Promise<ThreatFeedResult>;
getConfig(): FeedConfiguration;
checkAvailability(): Promise<boolean>;
getStats(): {
lastFetch: Date | null;
nextAllowedFetch: Date;
rateLimit: FeedConfiguration['rateLimit'];
};
private setupInterceptors;
private checkRateLimit;
private parseCSV;
private parseCSVLine;
private parseCSVColumns;
private convertToThreatIndicators;
private determineSeverity;
private extractMalwareFamily;
}
//# sourceMappingURL=URLhausFeed.d.ts.map