Skip to content

meltedinhex/analyst-ai-pack / skills/reverse-engineering-arm-binaries

reverse-engineering-arm-binaries

Verified

Reverse engineers ARM/AArch64 malware by identifying the architecture and instruction set state (ARM/Thumb), parsing ELF/Mach-O ARM headers, and orienting analysis around the ARM calling convention. Activates for requests to reverse ARM binaries, analyze AArch64 malware, or handle ARM/Thumb instruction-set decoding.

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

references/api-reference.md

View on GitHub
# API Reference: Reverse Engineering ARM Binaries

## Overview

`scripts/analyst.py` parses ELF and Mach-O headers to identify ARM vs AArch64, endianness, entry
point, and (for 32-bit ARM ELF) Thumb entry state. It reads bytes statically and executes nothing.
Capstone can be used downstream for instruction decoding.

## Dependencies

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

## Core functions

### `identify(path)`
Returns format, architecture, endianness, entry point, and Thumb-entry flag.

### `_parse_elf(data)` / `_parse_macho(data)`
Header parsers reading `e_machine`/`e_entry` (ELF) and CPU type (Mach-O).

## Machine types

- ELF: `0x28` ARM, `0xB7` AArch64.
- Mach-O: `0x0000000C` ARM, `0x0100000C` ARM64.

## Calling convention notes

Args in `r0-r3`/`x0-x7`, return `r0`/`x0`, syscall via `svc` with number in `r7`/`x8`.

## Usage

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

## Sources

- Arm Architecture Reference Manual — https://developer.arm.com/documentation/
- ELF for the Arm Architecture (AAELF), `$a`/`$t` mapping symbols — https://github.com/ARM-software/abi-aa
- ELF `e_machine` 0x28/0xB7 and Mach-O CPU types from the respective format specifications
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