Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Technique:Recognizing embedded keys and certificates

From ReverseEngineering.wiki
Technique
On this wiki Facts · Code · Notes · Topics

Checklist of byte patterns and strings that reveal keys, certificates and keystores inside executables, firmware and archives, with links to each container format.

Search order

  1. ASCII armor: -----BEGIN (Format:PEM, OPENSSH PRIVATE KEY Format:OpenSSH private key, PGP Format:OpenPGP).
  2. Binary keystores by magic at offset 0: FE ED FE ED / CE CE CE CE (Format:Java KeyStore), openssh-key-v1\0 after base64 decoding.
  3. DER: 30 82 xx xx with 02 01 03 next for PKCS#12 (Format:PKCS12), or nested 30 82 for a certificate (Format:ASN.1 DER and BER); search for the OID bytes 2A 86 48 86 F7 0D 01 01 01 (rsaEncryption) or 2A 86 48 CE 3D 02 01 (id-ecPublicKey).
  4. Windows signatures: certificate table of a PE, see Format:PE (Portable Executable)/Authenticode.

This page covers recognition only; it does not describe extracting secrets from protected containers. Apple keychain and Android keystore files: Unverified, not examined.