Skip to content
Back to skills

Analyzing Rat Command And Control

ASecurity

'Analyzes remote access trojan command-and-control by mapping the RAT command set,

  • 22 stars
  • 0 votes
  • 0 copies
  • 25 views
  • Added September 11, 2026
securitypythonshellbashapisecurity

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add meltedinhex/analyst-ai-pack --skill analyzing-rat-command-and-control --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Analyzing Rat Command And Control?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Analyzing Rat Command And Control
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/meltedinhex-analyzing-rat-command-and-control/badge)](https://www.skillsdirectory.com/skills/meltedinhex-analyzing-rat-command-and-control)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: analyzing-rat-command-and-control
description: 'Analyzes remote access trojan command-and-control by mapping the RAT command set,
  identifying the C2 transport and beacon parameters, and cataloging operator capabilities from
  static strings and config. Activates for requests to analyze RAT C2, map a trojan command
  handler, or identify remote-access capabilities and C2 transport.'
domain: cybersecurity
subdomain: malware-analysis
tags:
  - malware-analysis
  - rat
  - command-and-control
  - c2
  - capability-mapping
version: 1.0.0
author: analyst-ai-pack
license: Apache-2.0
mitre_attack:
  - T1219
  - T1071
  - T1105
d3fend:
  - D3-NTA
  - D3-SDA
references:
  - 'MITRE ATT&CK T1219 Remote Access Software — https://attack.mitre.org/techniques/T1219/'
  - 'MITRE ATT&CK T1071 Application Layer Protocol — https://attack.mitre.org/techniques/T1071/'
---

# Analyzing RAT Command and Control

## When to Use

- You have a RAT sample and need to map its command set (shell, file ops, screenshot, keylog,
  webcam, proxy), C2 transport, and beacon parameters.
- You are cataloging operator capabilities for detection and impact assessment.

**Do not use** this to operate the RAT or connect to its C2 — characterize capabilities from inert
static analysis.

## Prerequisites

- The RAT sample (read inertly), optionally with an extracted config.

## Safety & Handling

- Read bytes statically; defang C2 endpoints; never connect to the C2.

## Workflow

### Step 1: Map command handlers and capabilities

```bash
python scripts/analyst.py profile sample.bin
```

Matches command-keyword and API patterns for capability classes: remote shell, file transfer,
screenshot/keylog/webcam, persistence, proxy/relay, and self-update.

### Step 2: Identify the C2 transport

Detect HTTP(S), raw TCP, TLS, DNS, or messaging-platform transport from imports/strings, plus
beacon intervals/user-agents where present.

### Step 3: Build the capability matrix

Summarize capabilities and transport, mapping to ATT&CK.

### Step 4: Defang and report

Defang endpoints and produce IOCs.

## Validation

- Capabilities are grouped into classes with the matched evidence.
- The C2 transport is identified from concrete imports/strings.
- Findings map to ATT&CK T1219/T1071.

## Pitfalls

- Generic API presence (e.g., `gdi32`) misread as screenshot capability — corroborate with command
  handlers.
- Commodity RAT builders sharing strings across families — avoid over-attribution.
- Encrypted command sets requiring config decryption first.

## References

- See [`references/api-reference.md`](references/api-reference.md) for the profiler.
- ATT&CK T1219 and T1071 (linked in frontmatter).

Files in this skill

  • LICENSE340 B
  • SKILL.md2.6 KB
  • references/api-reference.md1.1 KB
  • scripts/analyst.py3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.