UNPKG

pompelmi

Version:

RFI-safe file uploads for Node.js — Express/Koa/Next.js middleware with deep ZIP inspection, MIME/size checks, and optional YARA scanning.

20 lines (19 loc) 855 B
import type { Scanner, AnalysisDepth } from "./types"; export type PresetName = 'basic' | 'advanced' | 'malware-analysis' | 'decompilation-basic' | 'decompilation-deep' | string; export interface PresetOptions { yaraRules?: string | string[]; yaraTimeout?: number; enableDecompilation?: boolean; decompilationEngine?: 'binaryninja-hlil' | 'ghidra-pcode' | 'both'; decompilationDepth?: AnalysisDepth; decompilationTimeout?: number; binaryNinjaPath?: string; pythonPath?: string; ghidraPath?: string; analyzeHeadless?: string; timeout?: number; [key: string]: unknown; } export declare function composeScanners(...scanners: Scanner[]): Scanner; export declare function createPresetScanner(preset: PresetName, opts?: PresetOptions): Scanner; export declare const PRESET_CONFIGS: Record<string, PresetOptions>;