/** * Binary Analysis Scanner * * Detects vulnerabilities in compiled code, native Node.js addons, and shared libraries. * Checks for security hardening flags (RELRO, NX, PIE, CANARY) and identifies * potentially vulnerable native modules. * * Detection targets: * - Node.js native addons (binding.gyp, *.node) * - Shared libraries (*.so, *.dll, *.dylib) * - Rust FFI (Cargo.toml with cdylib) * - Go CGO (import "C" in .go files) */ import type { ScannerResult } from "./types.js"; interface BinaryTarget { path: string; type: "node-addon" | "shared-lib" | "rust-ffi" | "go-cgo" | "binding-gyp"; name: string; } /** * Check if binary analysis tools are available */ export declare function checkBinaryAnalysisAvailable(): Promise<{ checksec: boolean; nm: boolean; objdump: boolean; file: boolean; }>; /** * Detect native modules and binaries in the project */ export declare function detectNativeModules(projectPath: string): Promise; /** * Main entry point: Run binary analysis on a project */ export declare function runBinaryAnalysis(projectPath: string, options?: { timeout?: number; useCloud?: boolean; }): Promise; export {}; //# sourceMappingURL=binary-analysis.d.ts.map