autoi-mcp

v0.6.1
autoi-mcp Checked 2 days ago Published 4 months ago

MCP Server for automated IoT firmware binary security auditing

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

init_workspace

初始化审计工作区,返回后续工具持久化输出所需的 output_dir。 在工作目录下创建 workspace/output_json/ 目录结构。之后调用 scan_firmware / scan_web_context / triage_firmware_top20 时,把返回的 output_dir 作为它们的 output_dir 参数传入,即可把完整结果落盘。 Args: base_dir: 工作区根目录,默认当前工作目录(agent 的 cwd) Returns: dict: - workspace_dir: 工作区根目录绝对路径 - output_dir: JSON 持久化目录绝对路径(传给各工具的 output_dir) - hint: 使用提示

ParameterTypeDescription
base_dir

scan_firmware

扫描固件目录下所有 ELF,解析 + 规则匹配 + 风险评分。 默认只返回统计摘要 + Top N 高风险详情,控制输出大小。 设置 verbose=True 返回全部明细。 Args: dirpath: 固件解压后的根目录路径 recursive: 是否递归子目录,默认 True max_workers: 并行线程数,默认 4 verbose: 是否输出全部明细,默认 False(仅摘要+Top N) top_n: 非 verbose 模式下返回的高/中风险 Top N 数量,默认 20

ParameterTypeDescription
dirpath *string
max_workersinteger
output_dir
recursiveboolean
top_ninteger
verboseboolean

check_elf

检查单个 ELF 的安全缓解措施、危险函数和输入源。 用于快速抽查某个二进制,不需要扫描整个目录。 不包含风险评分——评分是 scan_firmware 的工作。 Args: filepath: ELF 文件的绝对路径

ParameterTypeDescription
filepath *string

triage_single_binary

对单个 ELF 文件执行 IDA headless 深度分析。 检测危险函数(sinks)、输入源(sources)、以及从输入到危险函数的 调用路径,用于确认漏洞的实际可利用性。 Args: binary_path: ELF 文件的绝对路径 Returns: dict: - info: BinaryInfo (Tier 1 产物) - sink: list[SinkInfo] - 检测到的危险函数及调用点 - source: list[SourceInfo] - 检测到的输入源及调用点 - source_sink_path: list[SourceSinkPath] - source→sink 路径 * source: str - 输入函数名 * sink: str - å�…

ParameterTypeDescription
binary_path *string

triage_batch

批量对多个 ELF 文件执行 IDA 深度分析(并发)。 用于在 Tier 1 高风险过滤后,并发分析多个目标。 Args: binary_paths: ELF 文件路径列表 max_workers: 最大并行数,None 则从 config 读取(默认 8) timeout: 单个文件超时秒数,None 则从 config 读取(默认 300) Returns: dict: {filepath: TriageReport} 每个文件都会有一条记录,无论成功或失败。 失败时 TriageReport.error 非空。

ParameterTypeDescription
binary_paths *array
max_workers
timeout

triage_firmware_top20

一键深度分析:Tier 1 扫描 → 高风险过滤 → Tier 2 IDA 分析(Top 20)。 自动执行完整管道: 1. 扫描固件目录所有 ELF 文件 2. 风险评分并过滤高风险二进制 3. 对 Top 20 高风险目标执行 IDA 深度分析 Args: firmware_dirpath: 固件解压后的根目录路径 recursive: 是否递归子目录,默认 True max_workers_tier2: Tier 2 IDA 分析的最大并行数,None 则从 config 读取 Returns: dict: - tier1_summary: dict - Tier 1 扫描摘要 * total_scanned: int * total_elf: int…

ParameterTypeDescription
firmware_dirpath *string
max_workers_tier2
output_dir
recursiveboolean

scan_web_context

扫描固件目录的 Web 上下文:Web server、endpoint、参数、疑似处理二进制。 把二进制风险与 URL、参数、认证边界关联起来,回答"哪个入口触发哪个风险"。 全部为静态解析,不访问真实设备、不发起网络请求。 默认只返回统计摘要 + Top N endpoint/binding 详情,控制输出大小。 设置 verbose=True 返回全部明细。 Args: dirpath: 固件解压后的根目录路径 verbose: 是否输出全部 endpoint/binding 明细,默认 False(仅摘要+Top N) top_n: 非 verbose 模式下返回的 endpoint/…

ParameterTypeDescription
dirpath *string
output_dir
top_ninteger
verboseboolean