scan_binary
Scan binary files (APK, EXE, DLL, SO, JAR) to detect open source components, extract license information, and identify security issues with adjustable analysis depth.
Instructions
Scan binary files for OSS components and licenses using BinarySniffer.
This tool analyzes compiled binaries, executables, libraries, and archives (APK, EXE, DLL, SO, JAR, etc.) to detect open source components, extract license information, and identify security issues.
Use this tool when:
Analyzing mobile apps (APK, IPA)
Scanning executables (EXE, ELF binaries)
Examining shared libraries (DLL, SO, DYLIB)
Analyzing Java archives (JAR, WAR, EAR)
Scanning firmware or embedded binaries
Generating SBOM for binary distributions
Args: path: Path to binary file or directory to analyze analysis_mode: Analysis depth - "fast" (quick scan), "standard" (balanced), or "deep" (thorough analysis, slower) generate_sbom: If True, generate SBOM in CycloneDX format check_licenses: If True, perform detailed license analysis check_compatibility: If True, check license compatibility and show warnings confidence_threshold: Minimum confidence level (0.0-1.0) for component detection output_format: Output format - "json", "table", "csv" (default: json)
Returns: Dictionary containing: - components: List of detected OSS components with licenses - licenses: Summary of all licenses found - compatibility_warnings: License compatibility issues (if check_compatibility=True) - sbom: CycloneDX SBOM (if generate_sbom=True) - metadata: Scan statistics and file information
Examples: # Scan an Android APK scan_binary("app.apk")
# Deep analysis with SBOM generation
scan_binary("firmware.bin", analysis_mode="deep", generate_sbom=True)
# Check license compatibility
scan_binary("library.so", check_compatibility=True)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| analysis_mode | No | standard | |
| generate_sbom | No | ||
| output_format | No | json | |
| check_licenses | No | ||
| check_compatibility | No | ||
| confidence_threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |