<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->
# analyzing-packed-executables — API Reference

## Agent Script

| Command | Description |
|---------|-------------|
| `detect --target <path>` | Detect packing method used on binary. |
| `unpack --target <path>` | Attempt automatic unpacking of binary. |
| `entropy --target <path>` | Perform entropy analysis on binary sections. |

## Usage Examples

```bash
# Detect packing method used on binary.
node scripts/agent.js detect --target ./sample

# Attempt automatic unpacking of binary.
node scripts/agent.js unpack --target ./sample

# Perform entropy analysis on binary sections.
node scripts/agent.js entropy --target ./sample
```

## Output Format

All commands return JSON with the following structure:

```json
{
  "action": "<command>",
  "result": {
    "action": "<command>",
    "status": "complete",
    "domain": "<domain>",
    "technique": "analyzing-packed-executables"
  }
}
```
