Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

Authorized malware source structure analysis

malware_source_analyze
Read-onlyIdempotent

Analyze authorized malware C/C++/Go source in the workspace to map file roles, inventory functions, and extract XOR keys and security flags without generating or improving malware code.

Instructions

Analyze authorized malware C/C++/Go SOURCE inside the workspace: map files to structural roles (C2 builder, bot core, attack modules, scanner, killer, credential table, encoder), inventory function definitions, extract XOR key material and security-relevant flags. Analysis of already-obtained, authorized samples only — does NOT generate or improve malware code.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "malware_source_analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesDirectory (or file) of authorized source, inside the workspace.
maxFilesNoMaximum number of files to inspect.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds meaningful context beyond that: the authorization precondition, the explicit non-generation constraint, and the categories of artifacts extracted (roles, functions, keys, flags). It stops short of describing output structure or failure behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and scope are front-loaded in the first sentence, with the authorization/non-generation caveat following. The role enumeration is long but each item carries information about what the analysis detects, so the length is largely earned.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a multi-faceted source analysis tool with no output schema, the description covers the core capability, scope constraints, and the categories of extracted findings. It does not describe the response structure or handling of unsupported inputs, which is a minor gap given the rich annotations and fully documented schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and both parameters are documented in the schema, including path constraints and the maxFiles range. The description adds no parameter-level syntax or format detail beyond what the schema already provides, so the baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (analyze) and resource (malware C/C++/Go source in the workspace), then enumerates the concrete outputs: structural role mapping, function inventory, XOR key material, and security flags. The explicit 'SOURCE' framing distinguishes it from binary-oriented siblings like malware_sample_analyze and static_analysis_run.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It clearly scopes usage to 'already-obtained, authorized samples only' and states an explicit when-not: it does NOT generate or improve malware code. It does not route the agent to a named alternative for binary samples or vulnerability review, but the authorization and non-generation boundaries give clear selection context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools