# Quarantine

> Automated malware triage, reverse engineering, and IOC extraction using mamcp tools.

Quarantine is a free AI agent skill on Agensi by sudhanva rao, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [sudhanva rao](https://www.agensi.io/creators/sudhanva-rao)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-11-22
- Security: scan passed (2026-11-22); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/quarantine
- Tags: security, malware-analysis, reverse-engineering, threat-intel, cybersecurity

## About this skill

Triaging a suspicious file by hand is slow, and running it to see what it does is risky. This skill gives your agent a malware analyst's workflow on top of the open-source mamcp MCP server. The agent loads the sample, chooses what to examine, connects the evidence and writes a report. It never runs the file itself: execution happens only inside mamcp's sandboxes.

### What it does
- **Triage** runs capa (capabilities mapped to MITRE ATT&CK), FLOSS (obfuscated and stack strings) and YARA in a single call, and suggests next steps.
- **Code analysis** uses Ghidra to decompile functions, follow cross-references and call graphs, and find the code that uses a given string or API.
- **Format-specific parsing** extracts Office/RTF macros, PDF JavaScript and actions, LNK command lines, layered scripts, Inno Setup installers and archive contents (zip, 7z, ISO, nested).
- **Dynamic analysis** (optional) runs samples in a sandbox and records API calls, simulated network traffic, file and registry activity, strings decoded in memory, dropped files and memory dumps. It can feed fake C2 replies to a sample to trigger its command handlers.
- **Unpacking** recovers the real payload from memory dumps, including UPX-style packers that unpack into their own image (`image_dump`).
- **Detection engineering** writes YARA rules and tests them against the sample and a set of known-clean files until there are no false positives.
- **Intel export** outputs IOCs as STIX or MISP.

### How it works
1. **Load** the sample with `load_sample`. Archives are unpacked in memory (default password `infected`).
2. **Triage** with `triage`, and start Ghidra analysis in the background.
3. **Follow the file type**: documents, shortcuts and scripts usually lead to a later stage, and the skill follows the chain to the final payload.
4. **Read the code** behind each capability that matters (C2, persistence, injection, encryption, anti-analysis).
5. **Detonate** if mamcp-dynamic is available, then load mems back into static analysis.
6. **Report** using a fixed template: verdict, behaviour, defanged IOCs and a tested YARA rule. Every claim cites an address, API, string, rule or
run id.

### Frameworks & tools
Requires the mamcp MCP server (MIT licensed, free): github.com/sudhanvarao28/malwareAnalysisMcpToolkit. It runs in Docker and bundles Ghidra, capa,
FLOSS and YARA. Dynamic analysis uses the companion mamcp-dysy emulation built in and optional CAPEv2 (real Windows VMs) and Linux container backends.

### Why use it instead of prompting yourself
- **Built-in safety rules:** the agent never runs a sample, es out of a sample as untrusted data rather thaninstructions, and doesn't request live internet access unless you ask for it.
- **Evidence for every claim,** with observations kept separetwork IOCs defanged in the report.
- **Knows where to look next:** which tool fits each file type, when a sample is packed, when to re-run with fake C2 responses, and how to get the
payload out of a memory dump.

### Use cases
- **Phishing triage:** follow an attachment from document or shortcut to payload and pull out its C2.
- **Incident response:** work out what a binary found on a h
- **Detection authoring:** produce YARA rules tested against the sample and clean files.
- **Reverse engineering:** get past packers and read the dec

### Known limitations
- Requires a running mamcp server (Docker). Dynamic analysis also requires mamcp-dynamic.
- The default sandbox is an emulator, not real Windows. Evas APIs it doesn't implement end the run early, and simulatednetworking means real C2 commands never arrive. Use CAPEv2 for full fidelity.
- Built-in dynamic analysis covers Windows PE and shellcode.box need separate setup.
- capa, FLOSS and Ghidra are slow on first use (seconds to minutes); results are cached after that.
- The result is an analyst's starting point, not a guarantee rules before sharing them.

A few of these lines go beyond what I tested in this session your setup before you publish:
- "Free" and the GitHub link assume the repo is public.
- The CAPEv2 and Linux sandbox lines describe the backends at run either one here.

## Requires

- mamcp MCP server on github
- Agent with MCP support
- Docker with 8 GB+ memory
- Optional: mamcp-dynamic MCP server (sandbox detonation)
- Optional: CAPEv2 instance (real Windows VMs)
- Optional: Hybrid Analysis or Triage API key (hash lookups)

(github.com/sudhanvarao28/malwareAnalysisMcpToolkit) Build the image once with docker build -t mamcp . (~2 GB, 10–20 min). Keep samples in password-protected zips (password "infected") so antivirus doesn't delete them. Analyse samples only on a machine you're prepared to wipe.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Quarantine skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill speed up the malware triage process compared to manual analysis?

This skill automates the heavy lifting of malware triage by using Ghidra and capa to safely decompile code, extract obfuscated strings, and generate YARA rules without manual manual intervention.

### What technical infrastructure is required to run the Malware Analysis skill?

You must have the mamcp MCP server installed and running; this server acts as the bridge between the AI agent and the forensic tools like Ghidra and FLOSS.

### Can this skill analyze non-executable files like malicious Word documents or PDFs?

The skill supports a wide range of formats, including Windows PE binaries, malicious Office documents (macros), PDFs containing JavaScript, and LNK files.

### How does the agent ensure that extracted network indicators don't accidentally infect my host?

The skill follows a strict protocol that includes defanging all Indicators of Compromise (IOCs) to prevent accidental execution or navigation to malicious domains during the reporting phase.

### Can this skill handle packed or heavily obfuscated malware samples?

Yes, for samples that use custom packers, the skill can utilize the dynamic detonation feature to capture memory dumps and analyze the payload after it has unpacked in the sandbox.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
