# Compare Local EVM Runtime Bytecode

It can be difficult to tell whether supplied runtime bytecode matches a Solidity build. This skill compares the bytes and reports the build details available in your files.

## Install

```bash
npx skillstore add flint-research/bytecode-review
```

## Metadata

- Status: approved
- Slug: flint-research-bytecode-review
- Skillstore revision: r1
- Version status: missing
- Tree hash: 82aba37a45fbdd33fda93686eb32ccd793daa46917970153baf220c9cb0ae7c7
- Author: flint-research
- GitHub username: flint-research
- Repository: https://github.com/flint-research/skills/tree/b739665d19cd1d924d41c680722e1372867a1bff/auditing/evm-audit/skills/bytecode-review
- Ref: d715043e3196bdd213a9eb9e5f78632e50554733
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, network, filesystem
- Quality score: 73
- Public page: https://skillstore.pages.dev/skills/flint-research-bytecode-review
- Manifest: https://skillstore.pages.dev/api/skills/flint-research-bytecode-review/manifest

## Capabilities

- Compare runtime hex from a local file with deployed bytecode in a Foundry-style artifact.
- Select a contract from Solidity standard JSON output by source and contract name.
- Report exact match status, byte counts, and SHA-256 digests.
- Record available compiler, optimizer, EVM version, and metadata settings.
- Summarize library link and immutable provenance and flag missing information.

## Use Cases

- Check a release artifact: Compare a Foundry build artifact with a saved runtime sample before recording a release verification result.
- Review bytecode provenance: Document the compiler and build settings visible in supplied evidence and identify missing records.
- Triage a runtime mismatch: Use byte counts and available build records to separate observed differences from unverified explanations.

## Prompt Templates

### Check for an exact match

```
Review my local Foundry artifact and runtime hex file. Use only a trusted local helper to report whether the bytes match.
```

### Select a contract

```
Review the named contract in my Solidity standard JSON output against my local runtime hex. Report byte counts and SHA-256 digests.
```

### Summarize build provenance

```
Record the compiler version, optimizer, EVM version, and metadata settings in my files. Identify missing values without guessing.
```

### Assess a mismatch

```
Review my local comparison results and known build inputs. Separate observed differences from possible metadata, library link, or immutable differences. State what evidence is missing.
```

## Limitations

- The workflow needs a separate local runtime hex file and does not fetch bytecode from a chain.
- The documented comparison requires Python 3.11 or later and a trusted copy of the helper, which is outside the audited skill files.
- An exact match proves equality of the supplied bytes only. It does not prove deployment origin, source authenticity, or contract safety.
- Missing source maps or build records limit what a mismatch can explain.

## Best Practices

- Use authorized local copies and verify the helper before running it.
- Select the intended source and contract when the build output contains multiple contracts.
- Preserve the original bytecode and record available build settings with the comparison.

## Anti Patterns

- Comparing creation bytecode with deployed runtime bytecode.
- Removing metadata before asking for an exact comparison.
- Treating an exact match as proof of contract safety or source authenticity.

## Security Audit

- Audited at: 2026-11-29T12:16:46.493\+00:00
- Summary: The backtick rule matched Markdown formatting, and the URL is a reference link. The workflow does direct users to a Python helper outside the audited skill directory. No evidence of prompt injection or data transfer was found in the reviewed instructions.

## Stats

- Views: 0
- Downloads: 0
- Favorites: 0
- Popularity score: 0
