Beyond the compiler: Making IBM i run modified native code
First seen by Oriel on .
AI summary
The article reconstructs IBM i 7.5’s 32-byte Program Validation Value and demonstrates that repaired validation data can let selected modified native instructions survive restore and execution.
- PVV is HMAC-SHA-256 over a canonicalized program representation, using a 32-byte descriptor derived from saved attributes and fixed LIC constants rather than a secret origin-authentication key.
- The reconstruction matched 1,223 known-valid values, parsed 1,239 rows, found zero unexplained mismatches, and rejected 17 unsupported structures before calculation.
- A modified instruction survived restore and resave with all 1,120 executable bytes preserved, while expected segment-identity metadata changed during object materialization.
- In controlled USER-state tests, an ordinary USERB1 account restored and executed a PVV-repaired program whose changed native payload read from a known-address USER-domain buffer.
- Unsigned SYSTEM and INHERIT variants were rejected, and QSECURITY 40 continued enforcing the SYSTEM-domain access boundary; digital signatures remain the origin-authentication mechanism where required.
#ibm i #program validation #hmac #reverse engineering
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Hacker News: 15, latest observation ; +10 over observed period since
- Lobsters: 3, latest observation ; +2 over observed period since
Comments
Comment count reported by the source.
- Hacker News: 2, latest observation ; +1 over observed period since
- Lobsters: 0, latest observation ; 0 over observed period since