Vista Security Uberblick

Anonymous Benedikt

endlich sicher vor dem Bundestrojaner oder was?

Ubersicht

User Privilegien Grundlagen

(U)ser (A)ccount (C)ontrol

Compiler Voodoo


void SomeFunc() {
  // do something
}

typedef void (*FUNC_PTR )(void);

int DangerousFunc(char *szString) {
  char buf[32];
  strcpy(buf,szString);

  FUNC_PTR fp = (FUNC_PTR)(&SomeFunc);
  // Other code
  (*fp)();

  return 0;
}

Compiler Voodoo


0x00000000







0xFFFFFFFF

Compiler Voodoo



PVOID Encode/DecodePointer(
  PVOID Ptr
);
        

PVOID Encode/DecodeSystemPointer(
  PVOID Ptr
);
        

Noch mehr Compiler Voodoo



GS Cookie



GS Cookie die erste



GS Cookie die zweite


Kein Schutz wenn:

GS Internals


Wie der MasterCookie generiert wird:

Cookie = SystemTimeHigh

Cookie ^= SystemTimeLow

Cookie ^= ProcessId

Cookie ^= ThreadId

Cookie ^= TickCount

Cookie ^= PerformanceCounterHigh

Cookie ^= PerformanceCounterLow

GS Internals

Funktions Prolog:

mov eax, __security_cookie
xor eax, ebp
mov [ebp+2A8h+var_4], eax

Funktions Epilog:

mov ecx, [ebp+2A8h+var_4]
xor ecx, ebp
pop esi
call __security_check_cookie

__security_check_cookie:

    cmp ecx, __security_cookie
    jnz short loc_406355
    rep retn
loc_406355:
    jmp __report_gsfailure

GS Cookie die dritte


noch mehr von Ollie

GS Cookie Adressverteilung


Vista auf nativer Hardware, ohne Reboot, 15.000 runs

GS Cookie Adressverteilung


Vista auf nativer Hardware, mit Reboot, 10.000 runs

GS Cookie Adressverteilung


Vista im VMWare Server auf XP64, ohne Reboot, 15.000 runs

GS Cookie Adressverteilung


Vista im VMWare Server auf XP64, ohne Reboot, 15.000 runs

"Windows Vista ASLR is a technology that makes exploitation of a vulnerability a statistical problem"

Exception-Handling a hackers dream

PREfast

"Windows Vista ASLR is a technology that makes exploitation of a vulnerability a statistical problem"

Static Driver Verifier - Finding Driver Bugs at Compile-Time

"Windows Vista ASLR is a technology that makes exploitation of a vulnerability a statistical problem"

Driver Verifier

"Windows Vista ASLR is a technology that makes exploitation of a vulnerability a statistical problem"

MYTHBUSTERS!!!!



teh END

AWSUM THX!!

KTHXBYE