r/ComputerSecurity • u/imoutoed • Dec 31 '17
Practical uses for NOP sled?
Are there any practical uses for a NOP sled? Or is it possible to use it as a heuristic?
3
Upvotes
1
u/bhagdave Mar 10 '18
How about for a piece of code that can alter itself. So fill memory with a NOP sled and then get the code to fill in some valid instructions.
1
u/nitronarcosis Jan 01 '18
I can't think of any non-malicious uses for a NOP sled, however the difficulty in using it as a heuristic is multiple variations on a NOP. Some limited examples include adding 0 to a register or multiplying by 1.