Skip to content

meltedinhex/analyst-ai-pack / skills/analyzing-elf-binaries-on-linux

analyzing-elf-binaries-on-linux

Verified

Statically analyzes Linux ELF malware: ELF header and sections, dynamic symbols and imports, segment permissions, embedded strings, and packing indicators to infer capability without execution. Activates for requests to analyze an ELF binary, Linux malware, or shared object.

FileKindSize
LICENSEother340 B
SKILL.mdskill md3.1 KB
references/api-reference.mdmarkdown1.2 KB
scripts/analyst.pyscript3.2 KB

references/api-reference.md

View on GitHub
# API Reference: Analyzing ELF Binaries on Linux

## Overview

`scripts/analyst.py` reports ELF header facts, dynamic symbols and `NEEDED` libraries, a strip
check, and capability groupings (network/process/crypto). It uses `pyelftools` when present
and falls back to a minimal header/entropy parse otherwise.

## Dependencies

| Package | Version | Purpose |
|---------|---------|---------|
| pyelftools | >= 0.30 | Full ELF parsing (optional) |
| (stdlib) | — | Header/entropy fallback |

## External tools

| Tool | Purpose |
|------|---------|
| readelf / nm (binutils) | Authoritative ELF inspection |
| strings | Embedded string review |

## Core functions

### `analyze(path)`
Dispatches to the pyelftools or minimal parser; returns header, symbols, needed libs, and
capability groupings.

### `entropy(data)`
Byte-level Shannon entropy for packing assessment.

## Usage

```bash
pip install pyelftools     # optional
python scripts/analyst.py analyze sample.elf
```

## Sources

- ELF / System V ABI specification — https://refspecs.linuxfoundation.org/elf/elf.pdf
- pyelftools — https://github.com/eliben/pyelftools
- UPX section/marker conventions (vendor docs)
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