Skip to content

meltedinhex/analyst-ai-pack / skills/analyzing-cryptominer-malware

analyzing-cryptominer-malware

Verified

Analyzes cryptojacking/coinminer malware by extracting mining pool endpoints (stratum), wallet addresses, algorithm and miner identifiers (XMRig and forks), and persistence or resource-control settings from static strings and config. Activates for requests to analyze a cryptominer, extract mining pool and wallet IOCs, or identify coinminer configuration.

FileKindSize
LICENSEother340 B
SKILL.mdskill md2.7 KB
references/api-reference.mdmarkdown1.3 KB
scripts/analyst.pyscript2.5 KB

references/api-reference.md

View on GitHub
# API Reference: Analyzing Cryptominer Malware

## Overview

`scripts/analyst.py` extracts a coinminer's configuration from static strings: stratum pool
endpoints, wallet addresses (Monero/Bitcoin/Ethereum formats), algorithm identifiers, miner
family strings, and resource-control/stealth keys. It reads bytes statically, defangs pool
endpoints, and executes nothing.

## Dependencies

| Package | Version | Purpose |
|---------|---------|---------|
| (stdlib) | — | regex, JSON, file IO |

## Core functions

### `profile(path)`
Returns pool endpoints, wallet addresses (by coin), algorithms, miner family, resource controls,
and a cryptominer likelihood flag.

## Extracted indicators

- **Pools**: `stratum+tcp://` / `stratum+ssl://`.
- **Wallets**: Monero (`4…`, 95 chars), Bitcoin (legacy + bech32), Ethereum (`0x…40 hex`).
- **Algorithms**: `rx/0`, `cn/r`, `randomx`, `kawpow`, `ethash`, etc.
- **Resource controls**: `max-cpu-usage`, `donate-level`, `background`, `idle`.

## Usage

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

## Sources

- MITRE ATT&CK T1496 Resource Hijacking — https://attack.mitre.org/techniques/T1496/
- XMRig configuration keys — https://xmrig.com/docs/miner/config
- Coin address formats from each coin's public address specification
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 197kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall