firmware-differential-security-analysis
Compare vulnerable and fixed firmware images to isolate security-relevant validation and authorization changes. Use for patch diffs, CVE comparisons, and homologous embedded handlers.
SKILL.mdfirmware-reverse-eng-skill/firmware-differential-security-analysis/SKILL.md
GitHubFirmware Differential Security Analysis
Use this skill when two firmware versions, builds, or related models must be compared without assuming shared source lineage.
Workflow
- Preserve acquisition URLs, filenames, versions, hashes, extraction commands, architectures, and filesystem boundaries.
- Identify corresponding binaries by names, hashes, strings, imports, section layout, and route/function relationships.
- Align functions using call graphs, distinctive constants, strings, operation IDs, and normalized instruction patterns—not absolute addresses alone.
- Diff candidate handlers and trace the smallest change affecting input validation, authorization, state gating, or sink reachability.
- State old behavior, new behavior, checked parameter/state, branch outcome, and resulting security semantics.
- Search the target firmware for architecture-independent signatures and classify each match as same vulnerable logic, same patched logic, related, absent, or unknown.
Evidence discipline
Separate VERIFIED BY PATCH DIFF from target-firmware evidence. Do not claim
CVE applicability from operation-number similarity or strings alone. Preserve
unresolved indirect calls and runtime-registration conditions. Never execute
firmware binaries from acquired images.