Pcornel
Security · IPsec

Integrity Algorithms

Cheat sheet · https://pcornel.dk/topic.php?topic=4662

Back to the Topic

Answer

IPsec integrity algorithms detect tampering, such as HMAC-SHA-256 or SHA-384. AES-GCM includes integrity itself; MD5 and SHA-1 should no longer be used.

Remember

  • Use SHA-256 or stronger.
  • AES-GCM includes integrity.
  • MD5 and SHA-1 are obsolete.

First checks

  • ip xfrm state | grep auth — integrity algorithm
  • Proposal: HMAC-SHA-256/384/512 or AEAD — config
  • No MD5/SHA-1 — audit

Verify in this order

packet → integrity check value → verify

Where it usually breaks

First mismatch in endpoint/identity → path/reachability → policy selection → enforcement/session → protected flow → telemetry/detection; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4662

Confirmation

Confirm action

Continue?