본 발명은 메모리 힙(heap) 영역 공격을 회피하기 위한 메모리 정렬 랜덤화 방법에 관한 것으로서, 더욱 상세하게는 소프트웨어 메모리 힙 영역의 취약점 공격(exploit)을 차단하기 위하여 힙 내부 객체들의 메모리 정렬(alignment)을 랜덤하게 형성시키는 방법에 관한 것이다.본 발명에 의하면, 힙 내부 객체들의 메모리 정렬(alignment)시, 메모리주소를 워드 사이즈의 배수로부터 정렬하는 방식이 아닌, 랜덤하게 도출된 주소로부터 정렬하는 방식을 채택하여, 힙 익스플로잇 공격을 강력하게 방어하게 된다.