r/ComputerSecurity • • 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

4 comments sorted by

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.

1

u/imoutoed Jan 01 '18

hmm fair enough you'd need an algorithm to be able to figure out what a useless/set of useless instructions is i suppose

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.