- General
- Acquiring Old/Vulnerable Software
- Practice Exploit Development/Structured Learning
- Exploitation Papers
- Tutorials
- Assembly
- Writing Shellcode
- Windows Specific
- Linux specific
- Bypassing Exploit Protections/Mitigations
- DEP/SEHop/ASLR
- CFG/EMET
- DeviceGuard
- Technology Specific Exploit Development
- Android
- Anti Debugging/Fuzzing
- General Tools
- General
- Hunting/Building Exploits
- Shellcode
- Decompilers/Disassemblers
- Debuggers
- General
- Linux
- Windows
- General Tools
- Exploit Collections/Repository
- GPU Vulnerabilities/Research
- Attacking AV
- Finding Vulnerabilities
- General
- 101
- Articles/Papers/Talks/Writeups
- Educational/Informative
- A brief history of Exploitation - Devin Cook
- Mechanization of Exploits
- REMath
- Exploit Mitigation Killchain
- Exploit Tips and Techniques(ReCon2014 William Peteroy)
- Root Cause Analysis – Memory Corruption Vulnerabilities
- Unusual Bugs(23C3)
- In this presentation I'll present a series of unusual security bugs. Things that I've ran into at some point and went "There's gotta be some security consequence here". None of these are really a secret, and most of them are even documented somewhere. But apparently most people don't seem to know about them. What you'll see in this presentation is a list of bugs and then some explanation of how these could be exploited somehow. Some of the things I'll be talking about are (recursive) stack overflow, NULL pointer dereferences, regular expressions and more.
- From MS08 067 To EternalBlue by Denis Isakov - BSides Manchester2017
- RAP: RIP ROP (GRSEC/PaX team)
- Tools
- Testing Payloads
- pop-nedry
- Why pop calc, when you can pop Nedry!? This repository contains an x86-64 payload that recreates the Jurassic Park scene in which Dennis Nedry locks Ray Arnold out of his terminal.
- pop-nedry
- Vivisect
- Fairly un-documented static analysis / emulation / symbolic analysis framework for PE/Elf/Mach-O/Blob binary formats on various architectures.
- Dr. Memory
- Dr. Memory is a memory monitoring tool capable of identifying memory-related programming errors such as accesses of uninitialized memory, accesses to unaddressable memory (including outside of allocated heap units and heap underflow and overflow), accesses to freed memory, double frees, memory leaks, and (on Windows) handle leaks, GDI API usage errors, and accesses to un-reserved thread local storage slots. Dr. Memory operates on unmodified application binaries running on Windows, Linux, Mac, or Android on commodity IA-32, AMD64, and ARM hardware.
- Testing Payloads
- Miscellaneous
- Exploit-Challenges - A collection of vulnerable ARM binaries for practicing exploit development
- Here are a collection of vulnerable ARM binaries designed for beginner vulnerability researchers & exploit developers to play around with and test their skills!
- BinTut
- Dynamic or live demonstration of classical exploitation techniques of typical memory corruption vulnerabilities, from debugging to payload generation and exploitation, for educational purposes
- ROP Emporium
- Learn return-oriented programming through a series of challenges designed to teach ROP techniques in isolation, with minimal reverse-engineering and bug-hunting.
- Pwnables.kr
- How to write buffer overflows, mudge, 1995
- Smashing the stack for fun and profit, Aleph One, 1996
- Smashing the Stack for Fun and Profit in 2010
- The Frame Pointer Overwrite, klog, 1999
- win32 buffer overflows, dark spyrit, 1999
- Understanding Buffer Overflow Exploits
- Getting around non-executable stack (and fix) (First public description of a return-into-libc exploit), Solar Designer, 1997
- More advanced ret-into-lib(c) techniques, Nergal, 2001
- On the effectiveness of address-space randomization, , 2004
- Introduction to Return Oriented Programming (ROP) - ketansingh.net
- Gentle introduction to ROP programming
- Borrowed code chunks exploitation technique, Sebastian Krahmer, 2005
- The Geometry of Innocent Flesh on the Bone: Return-into-libc without function calls, Hovav Shacham, 2007
- Defeating DEP, the Immunity Debugger way, Pablo Sole,2008
- The Case of Return-Oriented Programming and the AVC Advantage, 2009
- Practical Return-Oriented Programming, Dino A. Dai Zovi, 2010
- Return-Oriented Programming without Returns
- Introduction to ROP programming
- Return-Oriented Programming without Returns - Stephen Checkoway, Lucas Davi, Alexandra Dmitrienko, Ahmad-Reza Sadeghi, Hovav Shacham, and Marcel Winandy
- We show that on both the x86 and ARM architectures it is possible to mount return-oriented programming attacks without using return instructions. Our attacks instead make use of certain instruction sequences that behave like a return, which occur with sufficient frequency in large libraries on (x86) Linux and (ARM) Android to allow creation of Turing-complete gadget sets. Because they do not make use of return instructions, our new attacks have negative implications for several recently proposed classes of defense against return-oriented programming: those that detect the too-frequent use of returns in the instruction stream; those that detect violations of the last-in, first-out invariant normally maintained for the return-address stack; and those that modify compilers to produce code that avoids the return instruction.
- Blind Return Oriented Programming (BROP)
- The BROP attack makes it possible to write exploits without possessing the target's binary. It requires a stack overflow and a service that restarts after a crash. Based on whether a service crashes or not (i.e., connection closes or stays open), the BROP attack is able to construct a full remote exploit that leads to a shell. The BROP attack remotely leaks enough gadgets to perform the write system call, after which the binary is transferred from memory to the attacker's socket. Following that, a standard ROP attack can be carried out. Apart from attacking proprietary services, BROP is very useful in targeting open-source software for which the particular binary used is not public (e.g., installed from source setups, Gentoo boxes, etc.). The attack completes within 4,000 requests (within minutes) when tested against a toy proprietary service, and real vulnerabilities in nginx and MySQL.
- Hacking Blind - BROP paper
- Blind Return Oriented Programming
- Blind Return Oriented Programming (BROP) Attack (1)
- Blind Return Oriented Programming (BROP) Attack (2)
- Sigreturn Oriented Programming is a real Threat
- Playing with signals : An overview on Sigreturn Oriented Programming
- SROP | Signals, you say?
- Jump-Oriented Programming: A New Class of Code-Reusegghunte
- Attacking x86 Windows Binaries by Jump Oriented Programming
- Jumping the Fence Comparison and Improvements for Existing Jump Oriented Programming Tools - John Dunlap - Derbycon7
- how2heap - shellphish
- A repository for learning various heap exploitation techniques.
- w00w00 on heap overflows, Matt Conover, 1999
- Vudo - An object superstitiously believed to embody magical powers, Michel "MaXX" Kaempf, 2001
- Once upon a free(), anonymous author, 2001
- Advanced Doug Lea's malloc exploits, jp, 2003
- Exploiting the wilderness, Phantasmal Phantasmagoria, 2004
- Malloc Maleficarum, Phantasmal Phantasmagoria, 2005
- Yet another free() exploitation technique, huku, 2009
- Heap Feng Shui in JavaScript
- heap-exploitation
- This book on heap exploitation is a guide to understanding the internals of glibc's heap and various attacks possible on the heap structure.
- Project HeapBleed
- CENSUS researcher Patroklos Argyroudis has recently presented a talk on heap exploitation abstraction at two conferences, namely ZeroNights 2014 (Moscow, Russia) and BalCCon 2014 (Novi Sad, Serbia). In the talk titled Project Heapbleed, Patroklos has collected the experience of exploiting allocators in various different target applications and platforms. He focused on practical, reusable heap attack primitives that aim to reduce the exploit development time and effort.
- Exploiting format string vulnerabilities, scut / Team-TESO, 2001
- Advances in format string exploitation, gera, 2002
- An alternative method in format string exploitation, K-sPecial, 2006
- Maximum Overkill Two - From Format String Vulnerability to Remote Code Execution
- Exploiting Format Strings: Getting the Shell
- Large memory management vulnerabilities, Gael Delalleau, 2005
- Exploiting the Otherwise Non-exploitable on Windows, skape, 2006
- Vector rewrite attack, Barnaby Jack, 2007
- Application-Specific Attacks: Leveraging the ActionScript Virtual Machine, Mark Dowd, 2008
- Pointer inference and JIT-Spraying, Dion Blazakis, 2010
- Writing JIT shellcode for fun and profit, Alexey Sintsov, 2010
- Too LeJIT to Quit: Extending JIT Spraying to ARM
- Interpreter Exploitation: Pointer Inference and JIT Spraying
- Understanding JIT Spray
- Writing JIT-Spray Shellcode For Fun And Profit
- The Devil is in the Constants: Bypassing Defenses in Browser JIT Engines
- Exploit writing tutorial part 6 : Bypassing Stack Cookies, SafeSeh, SEHOP, HW DEP and ASLR
- Aslr Smack and Laugh Reference
- Advanced Buffer Overflow Methods
- Smack the Stack
- Exploiting the random number generator to bypass ASLR
- Wikipedia on ASLR
- Bypassing Memory Protections: The Future of Exploitation
- On the Effectiveness of Address-Space Randomization
- Exploiting with linux-gate.so.1
- Circumventing the VA kernel patch For Fun and Profit
- Defeating the Matasano C++ Challenge
- Bypassing PaX ASLR protection
- Thoughts about ASLR, NX Stack and format string attacks
- Return-into-libc without Function Calls
- Linux ASLR Curiosities. Tavis Ormandy. Julien Tinnes
- Fun With Info-Leaks(DEP+ASLR bypass)/
- This article is about information leaks in form of memory disclosures created in Internet Explorer 10 32-bit on Windows 7 64-bit. They are used to bypass full ASLR/DEP to gain remote code execution. While the software containing the bug might not be that popular, it's quite nice what can be done with the bug.
- Reducing the Effective Entropy of GS Cookies
- Exploiting Buffer Overflows On Kernels With Aslr Enabled Using Brute Force On The Stack Layer
- Bypassing The Linux Kernel Aslr And Exploiting A Buffer Overflow Vulnerable Application With Ret2esp
- This video tutorial illustrates how to exploit an application vulnerable to buffer overflow under a modern 2.6 Linux kernel with ASLR, bypassing stack layer randomization by search a
jmp *%esp
inside the executable file and forcing our program to jump there.
- This video tutorial illustrates how to exploit an application vulnerable to buffer overflow under a modern 2.6 Linux kernel with ASLR, bypassing stack layer randomization by search a
- Exploiting A Buffer Overflow Under Linux Kernel 2.6 With Aslr Through Ret2reg
- Linux kernel versions 2.6.x implement ASLR to faexecution of arbitrary code located in the stack segment of a process. Moreover, kernel versions >= 2.6.18 also made the allocation of ld-linux.so.2 dynamic, and recent compilers also tend to avoid the generation of
jmp|call *%esp
instructions, so the use of a ret2esp technique to exploit a vulnerable application is becoming harder and harder. A way to turn around the problem is analyzing the registers situations just a while before the vulnerable code is executed: very probably one of them points to the address of the vulnerable buffer. All we have to do is searching inside the executable or a static library a ret2reg instruction, where reg is the register pointing to the vulnerable area, and use that as return address.
- Linux kernel versions 2.6.x implement ASLR to faexecution of arbitrary code located in the stack segment of a process. Moreover, kernel versions >= 2.6.18 also made the allocation of ld-linux.so.2 dynamic, and recent compilers also tend to avoid the generation of
- Pwn2Own 2010 Windows 7 Internet Explorer 8 exploit
- Attacking the Core : Kernel Exploiting Notes
- Much ado about NULL: Exploiting a kernel NULL dereference
- Integer Overflow in FreeBSD Kernel(2002)
- Post MS06-035 Mailslot DoS Workaround(Kernel Null Ptr Deref)
- Attacking the XNU Kernel For Fun And Profit: Part 1
- This blog post is part of a series of posts in which I will discuss several techniques to own XNU, the kernel used by Apple's OS X and iOS. My focus will be on heap-based attacks, such as heap overflows, double frees, use-after-frees and zone confusion.
- An Introduction to Use After Free Vulnerabilities
- Exploit writing tutorial part 11 : Heap Spraying Demystified
- Part 9: Spraying the Heap [Chapter 2: Use-After-Free] – Finding a needle in a Haystack
- Overwriting the .dtors section, Juan M. Bello Rivas, 2000
- Abusing .CTORS and .DTORS for fun 'n profit, Izik, 2006
- Large memory management vulnerabilities, Gael Delalleau, 2005
- Symlinks and Cryogenic Sleep
- Clutching at straws: When you can shift the stack pointer
- Structured Learning/Courses
- Modern Windows Exploit Development
- Bypassing All the Things
- Handholding through Vuln Discovery and Exploitation
- Smashing the Browser - From fuzzing to 0day on IE11
- Goes from introducing a fuzzer to producing an IE11 0day
- armpwn
- "Repository to train/learn memory corruption exploitation on the ARM platform. This is the material of a workshop I prepared for my CTF Team."
- Tutorials/Follow-alongs
- From fuzzing to 0-day
- SQL Injection to MIPS Overflows: Part Deux
- This paper is a followup to a paper presented at BlackHat USA 2012, entitled SQL Injec0ons to MIPS Overflows: Rooting SOHO Routers." That previous paper described how to combine SQL injection vulnerabilies with MIPS Linux buffer overflows in order to gain root on Netgear SOHO routers. This paper revisits the MiniDLNA UPnP server that ships on nearly all Netgear routers in order to explore what has changed in the past two years.
- Writing a stack-based overflow exploit in Ruby with the help of vulnserver.exe and Spike 2.9
- From 0-day to exploit Buffer overflow in Belkin N750 (CVE-2014-1635)
- AVM Fritz!Box root RCE: From Patch to Metasploit Module
- Link to Lab Writeup for Winx86 ExploitDev Practice
- Corelan
- FuzzySecurity
- SwiftSecurity
- X86 Instruction Reference
- Awesome Reference for Intel x86/64
- This reference is intended to be precise opcode and instruction set reference (including x86-64). Its principal aim is exact definition of instruction parameters and attributes.
- Nasm x86 reference
- Intel Pentium Instruction Set Reference (A)
- Iczelion's Win32 Assembly Homepage
- cgasm
- cgasm is a standalone, offline terminal-based tool with no dependencies that gives me x86 assembly documentation. It is pronounced "SeekAzzem".
- ShellCode
- 101
- Articles/Blogposts/Writeups
- Introduction to Windows Shellcode Development - securitycafe.ro
- Windows Kernel Shellcode on Windows 10 - improsec.com
- Educational/Informative
- Shellcode Time: Come on Grab Your Friends - wartortell -Derbycon4
- Packed shellcode is a common deterrent against reverse engineering. Mainstream software will use it in order to protect intellectual property or prevent software cracking. Malicious binaries and Capture the Flag (CTF) challenges employ packed shellcode to hide their intended functionality. However, creating these binaries is an involved process requiring significant experience with machine language. Due to the complexity of creating packed shellcode, the majority of samples are painstakingly custom-created or encoded with very simple mechanisms, such as a single byte XOR. In order to aid in the creation of packed shellcode and better understand how to reverse engineer it, I created a tool to generate samples of modular packed shellcode. During this talk, I will demonstrate the use of the shellcode creation tool and how to reverse engineer the binaries it creates. I will also demonstrate an automated process for unpacking the binaries that are created.
- Shellcode Time: Come on Grab Your Friends - wartortell -Derbycon4
- How to Write it
- Shellcoding for Linux and Windows Tutorial - Steve Hannah
- Phrack Magazine Extraction Utility
- writing ia32 alphanumeric shellcode
- shellcode tutorials
- Writing Manual Shellcode by Hand
- Linux Specific
- Windows Specific
- WinAPI for Hackers
- History and Advances in Windows Shellcode - Phrack 2004
- Writing Win32 Shellcode with VisualStudio
- demonstrating how to write optimized (sort of) Win32 shellcode using Visual Studio’s compiler
- Techniques
- Loading and Debugging Windows Kernel Shellcodes with Windbg. Debugging DoublePulsar Shellcode.
- Shellcode Debugging with OllyDbg
- Canaries * Playing with canaries
- Code Trampolines
- Finding Opcodes:
- metasploit opcode DB;
- memdump;
- pvefindaddr - mona.py
- Egg Hunters
- Beta aaKsYS TEAM: EGG HUNTER (Windows)
- Explanation of egghunters, how they work and a working demonstration on windows.
- jmp2it
- This will allow you to transfer EIP control to a specified offset within a file containing shellcode and then pause to support a malware analysis investigation The file will be mapped to memory and maintain a handle, allowing shellcode to egghunt for second stage payload as would have happened in original loader Patches / self modifications are dynamically written to jmp2it-flypaper.out
- Beta aaKsYS TEAM: EGG HUNTER (Windows)
- Resolving the Base Pointer of the Linux Program Interpreter with Shellcode
- Art of Picking Intel Registers
- Using ARM Inline Assembly and Naked Functions to fool Disassemblers
- Shellcode without Sockets
- English Shellcode
- History indicates that the security community commonly takes a divide-and-conquer approach to battling malware threats: identify the essential and inalienable components of an attack, then develop detection and prevention techniques that directly target one or more of the essential components. This abstraction is evident in much of the literature for buffer overflow attacks including, for instance, stack protection and NOP sled detection. It comes as no surprise then that we approach shellcode detection and prevention in a similar fashion. However, the common belief that components of polymorphic shellcode (e.g., the decoder) cannot reliably be hidden suggests a more implicit and broader assumption that continues to drive contemporary research: namely, that valid and complete representations of shellcode are fundamentally different in structure than benign payloads. While the first tenet of this assumption is philosoph- ically undeniable (i.e., a string of bytes is either shellcode or it is not), truth of the latter claim is less obvious if there exist encoding techniques capable of producing shellcode with features nearly indistinguishable from non-executable content. In this paper, we challenge the assumption that shellcode must conform to superficial and discernible representations. Specifically, we demonstrate a technique for automatically producing English Shellcode, transforming arbitrary shellcode into a representation that is superficially similar to English prose. The shellcode is completely self-contained - i.e., it does not require an external loader and executes as valid IA32 code)—and can typically be generated in under an hour on commodity hardware. Our primary objective in this paper is to promote discussion and stimulate new ideas for thinking ahead about preventive measures for tackling evolutions in code-injection attacks
- Obfuscation/Hiding
- General
- Reference/Resources
- REPLs
- rappel
- Rappel is a pretty janky assembly REPL. It works by creating a shell ELF, starting it under ptrace, then continiously rewriting/running the .text section, while showing the register states. It's maybe half done right now, and supports Linux x86, amd64, armv7 (no thumb), and armv8 at the moment.(As of Aug 2017)
- WinREPL
- x86 and x64 assembly "read-eval-print loop" shell for Windows
- rappel
- Tools
- General
- Sickle
- Sickle is a shellcode development tool, created to speed up the various steps needed to create functioning shellcode.
- meterssh
- MeterSSH is a way to take shellcode, inject it into memory then tunnel whatever port you want to over SSH to mask any type of communications as a normal SSH connection.
- Shellcode_Tools
- Miscellaneous tools written in Python, mostly centered around shellcodes.
- bin2py: Embed binary files into Python source code.
- shellcode2exe: Convert shellcodes into executable files for multiple platforms.
- ShellSploit Framework
- shellnoob
- A shellcode writing toolkit
- rex
- Shellphish's automated exploitation engine, originally created for the Cyber Grand Challenge.
- Patcherex
- Shellphish's automated patching engine, originally created for the Cyber Grand Challenge.
- sRDI
- Shellcode implementation of Reflective DLL Injection. Convert DLLs to position independent shellcode
- ShellcodeStdio
- An extensible framework for easily writing debuggable, compiler optimized, position independent, x86 shellcode for windows platforms.
- OWASP ZSC
- OWASP ZSC is open source software written in python which lets you generate customized shellcode and convert scripts to an obfuscated script. This software can be run on Windows/Linux/OSX with python.
- Shellen
- Shellen is an interactive shellcoding environment. If you want a handy tool to write shellcodes, then shellen may be your friend. Shellen can also be used as an assembly or disassembly tool. keystone and capstone engines are used for all of shellen's operations. Shellen only works on python3. python2 support may appear in the future.
- Sickle
- Encoders
- Context-keyed Payload Encoding
- A common goal of payload encoders is to evade a third-party detection mechanism which is actively observing attack traffic somewhere along the route from an attacker to their target, filtering on commonly used payload instructions. The use of a payload encoder may be easily detected and blocked as well as opening up the opportunity for the payload to be decoded for further analysis. Even so-called keyed encoders utilize easily observable, recoverable, or guessable key values in their encoding algorithm, thus making decoding on-the-fly trivial once the encoding algorithm is identified. It is feasible that an active observer may make use of the inherent functionality of the decoder stub to decode the payload of a suspected exploit in order to inspect the contents of that payload and make a control decision about the network traffic. This paper presents a new method of keying an encoder which is based entirely on contextual information that is predictable or known about the target by the attacker and constructible or recoverable by the decoder stub when executed at the target. An active observer of the attack traffic however should be unable to decode the payload due to lack of the contextual keying information.
- Context-keyed Payload Encoding
- Obfuscators
- UniByAv
- UniByAv is a simple obfuscator that take raw shellcode and generate executable that are Anti-Virus friendly. The obfuscation routine is purely writtend in assembly to remain pretty short and efficient. In a nutshell the application generate a 32 bits xor key and brute force the key at run time then perform the decryption of the actually shellcode.
- UniByAv
- General
-
101
-
Articles/Blogposts/Writeups
-
General
-
Stack Protections
- Reference Material
- DEP/SEHop/ASLR/NX
- Understanding DEP as a mitigation Technology
- Preventing the Exploitation of SEH Overwrites
- This paper proposes a technique that can be used to prevent the exploitation of SEH overwrites on 32-bit Windows applications without requiring any recompilation. While Microsoft has attempted to address this attack vector through changes to the exception dispatcher and through enhanced compiler support, such as with /SAFESEH and /GS, the majority of benefits they offer are limited to image files that have been compiled to make use of the compiler enhancements. This limitation means that without all image files being compiled with these enhancements, it may still be possible to leverage an SEH overwrite to gain code execution. In particular, many third-party applications are still vulnerable to SEH overwrites even on the latest versions of Windows because they have not been recompiled to incorporate these enhancements. To that point, the technique described in this paper does not rely on any compile time support and instead can be applied at runtime to existing applications without any noticeable performance degradation. This technique is also backward compatible with all versions of Windows NT+, thus making it a viable and proactive solution for legacy installations.
- Understanding DEP as a mitigation Technology
- Preventing the Exploitation of Structured Exception Handler (SEH) Overwrites with SEHOP
- Fun With Info-Leaks(DEP+ASLR bypass)/
- This article is about information leaks in form of memory disclosures created in Internet Explorer 10 32-bit on Windows 7 64-bit. They are used to bypass full ASLR/DEP to gain remote code execution. While the software containing the bug might not be that popular, its quite nice what can be done with the bug.
- Bypassing Windows Hardware-enforced Data Execution Prevention Oct 2, 2005
- Bypassing Windows Hardware-enforced DEP
- This paper describes a technique that can be used to bypass Windows hardware-enforced Data Execution Prevention (DEP) on default installations of Windows XP Service Pack 2 and Windows 2003 Server Service Pack 1. This technique makes it possible to execute code from regions that are typically non-executable when hardware support is present, such as thread stacks and process heaps. While other techniques have been used to accomplish similar feats, such as returning into NtProtectVirtualMemory, this approach requires no direct reprotecting of memory regions, no copying of arbitrary code to other locations, and does not have issues with NULL bytes. The result is a feasible approach that can be used to easily bypass the enhancements offered by hardware-enforced DEP on Windows in a way that requires very minimal modifications to existing exploits.
- Exploit Writeup on Flash vuln explaining use of ASLR + DEP bypass
- [DEP/ASLR bypass without ROP/JIT](https://cansecwest.com/slides/2013/DEP-ASLR bypass without ROP-JIT.pdf)
- Bypassing SEHOP
- Great Writeup/Example of SEH Bypass
- SEH Overwrites Simplified v1.01
- (SEH Bypass)Defeating the Stack Based Buffer Overflow Prevention Mechanism of Microsoft Windows 2003 Server.
- A Crash Course on the Depths of Win32 Structured Exception Handling
- Intro to Windows kernel exploitation 1/N: Kernel Debugging
- Win32 Assembly Components - Last Stage of Delirium Research Group
- Preventing the Exploitation of Structured Exception Handler (SEH) Overwrites with SEHOP
- Structured Exception Handling - TechNet
- Defeating Microsoft Windows XP SP2 Heap protection and DEP bypass
- x86-64 buffer overflow exploits and the borrowed code chunks exploitation technique
- The x86-64 CPU platform (i.e. AMD64 or Hammer) introduces new features to protect against exploitation of buffer overflows, the so called No Execute(NX) or Advanced Virus Protection (A VP). This non-executable enforcement of data pages and the ELF64 SystemV ABI render common buffer overflow exploitation techniques useless. This paper describes and analyzes the protection mechanisms in depth. Research and tar get platform was a SUSE Linux 9.3 x86-64 system but the results can be expanded to non-Linux systems as well.
- DeviceGuard
- EMET/Control Flow Guard
- Exploring Control-Flow-Guard in Windows10
- Bypassing EMET's EAF with custom shellcode using kernel pointer
- Bypassing EMET 4.1
- Disarming and Bypassing EMET 5.1 - OffSec
- Bypassing Microsoft EMET 5.1 . Yet again.
- Disarming and Bypassing EMET 5.1
- Defeating EMET 5.2 Protections - Part 1
- Defeating EMET 5.2 Protections - Part 2
- Bypassing EMET 5.2 Protection
- BYPASSING EMET Export Address Table Access Filtering feature
- Disarming Control Flow Guard Using Advanced Code Reuse Attacks
- BYPASS CONTROL FLOW GUARD COMPREHENSIVELY - Zhang Yunhai
- Proposed Windows 10 EAF/EMET "Bypass" for Reflective DLL Injection
- Kernel PatchGuard/Protection
- Kernel Patch Protection - Wikipedia
- An Introduction to Kernel Patch Protection - blogs.msdn
- KPP Destroyer
- Bypassing PatchGuard 3
- Disable PatchGuard - the easy/lazy way - fyyre
- GhostHook – Bypassing PatchGuard with Processor Trace Based Hooking
- UPGSED Universal PatchGuard and Driver Signature Enforcement Disable
-
Tools
-
Miscellaneous
- Educational/Informative
- A SysCall to ARMs - Brendan Watters - Brendan Watters -Derbycon 2013
- Description:ARM processors are growing more and more prevalent in the world; ARM itself claims that more than 20 billion chips have been shipped. Take a moment to appreciate that is about three chips for every man, woman, and child on earth. The three main topics I aim to cover are (1) how to perform a Linux system call on an ARM processor via assembly, ARM pipelining used in most modern ARM processors and how it came about, and (3) the really cool way ARM can avoid branching, even with conditional control flow. These will be explained in both code, English, and (hopefully successful) live demos using an ARM development board. The end result is to get the audience to understand how to create a simple socket program written in ARM assembly.
- A SysCall to ARMs - Brendan Watters - Brendan Watters -Derbycon 2013
- SCANSPLOIT
- Exploit using barcodes, QRcodes, earn13, datamatrix
- A cursory analysis of @nitayart's Broadpwn bug (CVE-2017-9417)
- Emulation and Exploration of BCM WiFi Frame Parsing using LuaQEMU
- Broadpwn: Remotely Compromising Android and iOS via a Bug in Broadcom’s Wi-Fi Chipsets
- Crashing phones with Wi-Fi: Exploiting nitayart's Broadpwn bug (CVE-2017-9417)
- Cisco IOS MIPS GDB remote serial protocol implementation
- A hacky implementation of GDB RSP to aid exploit development for MIPS based Cisco routers
- Cisco ASA Episode 3: A Journey In Analysing Heaps by Cedric Halbronn - BSides Manchester2017
- Glibc Adventures: The Forgotten Chunks
- Exploiting Glibc
- Compromise-as-a-Service: Our PleAZURE.
- This could be a comprehensive introduction about the ubiquity of virtualization, the essential role of the hypervisor, and how the security posture of the overall environment depends on it. However, we decided otherwise, as this is what everybody is interested in: We will describe the Hyper-V architecture in detail, provide a taxonomy of hypervisor exploits, and demonstrate how we found MS13-092 which had the potential to compromise the whole Azure environment. Live demo included!
- Articles/Blogposts/Writeups
- Pool Blade: A new approach for kernel pool exploitation
- Linux ASLR integer overflow: Reducing stack entropy by four
- A bug in Linux ASLR implementation for versions prior to 3.19-rc3 has been found. The issue is that the stack for processes is not properly randomized on some 64 bit architectures due to an integer overflow. This is a writeup of the bug and how to fix it.
- Linux GLibC Stack Canary Values
- Shellshock bug writeup by lcamtuf
- Adventures in Xen Exploitation
- "This post is about my experience trying to exploit the Xen SYSRET bug (CVE-2012-0217)."
- Educational/Informative
- Heap
- Kernel Exploit Development
- Papers
- Tools
- rappel
- Rappel is a pretty janky assembly REPL. It works by creating a shell ELF, starting it under ptrace, then continiously rewriting/running the .text section, while showing the register states. It's maybe half done right now, and supports Linux x86, amd64, armv7 (no thumb), and armv8 at the moment.(As of Aug 2017)
- Build a database of libc offsets to simplify exploitation
- rappel
- Articles/Blogposts/Papers/Writeups
- IOHIDeous
- A macOS kernel exploit based on an IOHIDFamily 0day.
- Writeup
- OS X Kernel-mode Exploitation in a Weekend
- Apple's Mac OS X operating system is attracting more attention from users and security researchers alike. Despite this increased interest, there is still an apparent lack of detailed vulnerability development information for OS X. This paper will attempt to help bridge this gap by walking through the entire vulnerability development process. This process starts with vulnerability discovery and ultimately finished with a remote code execution. To help illustrate this process, a real vulnerability found in the OS X wireless device driver is used.
- IOHIDeous
- RPC
- Automating VMware RPC Request Sniffing - Abdul-Aziz Hariri - ZDI
- In this blog, I will discuss how I was able to write a PyKD script to sniff RPC requests that helped me tremendously while writing VMware RPC exploits.
- Automating VMware RPC Request Sniffing - Abdul-Aziz Hariri - ZDI
- Software into Hardware back into Software
- Exploiting the DRAM rowhammer bug to gain kernel privileges
- "Rowhammer is a problem with some recent DRAM devices in which repeatedly accessing a row of memory can cause bit flips in adjacent rows. We tested a selection of laptops and found that a subset of them exhibited the problem. We built two working privilege escalation exploits that use this effect. One exploit uses rowhammer-induced bit flips to gain kernel privileges on x86-64 Linux when run as an unprivileged userland process. When run on a machine vulnerable to the rowhammer problem, the process was able to induce bit flips in page table entries (PTEs). It was able to use this to gain write access to its own page table, and hence gain read-write access to all of physical memory.
- Program for testing for the DRAM "rowhammer" problem
- Exploiting the DRAM rowhammer bug to gain kernel privileges
- Articles/Blogposts/Writeups
- Papers
- Getting out of Jail: Escaping Internet Explorer Protected Mode
- With the introduction of Windows Vista, Microsoft has added a new form of mandatory access control to the core operating system. Internally known as "integrity levels", this new addition to the security manager allows security controls to be placed on a per-process basis. This is different from the traditional model of per-user security controls used in all prior versions of Windows NT. In this manner, integrity levels are essentially a bolt-on to the existing Windows NT security architecture. While the idea is theoretically sound, there does exist a great possibility for implementation errors with respect to how integrity levels work in practice. Integrity levels are the core of Internet Explorer Protected Mode, a new "low-rights" mode where Internet Explorer runs without permission to modify most files or registry keys. This places both Internet Explorer and integrity levels as a whole at the forefront of the computer security battle with respect to Windows Vista.
- PatchGuard Reloaded: A Brief Analysis of PatchGuard Version 3
- Since the publication of previous bypass or circumvention techniques for Kernel Patch Protection (otherwise known as "PatchGuard"), Microsoft has continued to refine their patch protection system in an attempt to foil known bypass mechanisms. With the release of Windows Server 2008 Beta 3, and later a full-blown distribution of PatchGuard to Windows Vista and Windows Server 2003 via Windows Update, Microsoft has introduced the next generation of PatchGuard to the general public ("PatchGuard 3"). As with previous updates to PatchGuard, version three represents a set of incremental changes that are designed to address perceived weaknesses and known bypass vectors in earlier versions. Additionally, PatchGuard 3 expands the set of kernel variables that are protected from unauthorized modification, eliminating several mechanisms that might be used to circumvent PatchGuard while co-existing (as opposed to disabling) it. This article describes some of the changes that have been made in PatchGuard 3. This article also proposes several new techniques that can be used to circumvent PatchGuard's defenses. Countermeasures for these techniques are also discussed.
- Subverting PatchGuard Version 2
- Windows Vista x64 and recently hotfixed versions of the Windows Server 2003 x64 kernel contain an updated version of Microsoft's kernel-mode patch prevention technology known as PatchGuard. This new version of PatchGuard improves on the previous version in several ways, primarily dealing with attempts to increase the difficulty of bypassing PatchGuard from the perspective of an independent software vendor (ISV) deploying a driver that patches the kernel. The feature-set of PatchGuard version 2 is otherwise quite similar to PatchGuard version 1; the SSDT, IDT/GDT, various MSRs, and several kernel global function pointer variables (as well as kernel code) are guarded against unauthorized modification. This paper proposes several methods that can be used to bypass PatchGuard version 2 completely. Potential solutions to these bypass techniques are also suggested. Additionally, this paper describes a mechanism by which PatchGuard version 2 can be subverted to run custom code in place of PatchGuard's system integrity checking code, all while leaving no traces of any kernel patching or custom kernel drivers loaded in the system after PatchGuard has been subverted. This is particularly interesting from the perspective of using PatchGuard's defenses to hide kernel mode code, a goal that is (in many respects) completely contrary to what PatchGuard is designed to do.
- Bypassing PatchGuard on Windows x64
- The version of the Windows kernel that runs on the x64 platform has introduced a new feature, nicknamed PatchGuard, that is intended to prevent both malicious software and third-party vendors from modifying certain critical operating system structures. These structures include things like specific system images, the SSDT, the IDT, the GDT, and certain critical processor MSRs. This feature is intended to ensure kernel stability by preventing uncondoned behavior, such as hooking. However, it also has the side effect of preventing legitimate products from working properly. For that reason, this paper will serve as an in-depth analysis of PatchGuard's inner workings with an eye toward techniques that can be used to bypass it. Possible solutions will also be proposed for the bypass techniques that are suggested.
- Getting out of Jail: Escaping Internet Explorer Protected Mode
- Tools
- Vulnserver
- 'I have just released a program named Vulnserver - a Windows based threaded TCP server application that is designed to be exploited.''
- Blackbone
- Windows memory hacking library
- Vulnserver
- Code Injection
- DLL
- Windows Heap Exploitation
- Reliable Windows Heap Exploits
- WinHeap-Explorer
- The efficient and transparent proof-of-concept tool for heap-based bugs detection in x86 machine code for Windows applications.
- Advanced Windows Debugging: Memory Corruption Part II—Heaps
- Daniel Pravat and Mario Hewardt discuss security vulnerabilities and stability issues that can surface in an application when the heap is used in a nonconventional fashion.
- Windows Kernel Exploitation
- Writeups
- Windows Kernel Exploitation 101 : Exploiting CVE - 2014 - 4113
- Intro to Windows kernel exploitation 1/N: Kernel Debugging
- Intro to Windows kernel exploitation 2/N: HackSys Extremely Vulnerable Driver
- I Know Where Your Page Lives: Derandomizing the latest Windows 10 Kernel - ZeroNights 2016
- Sharks in the Pool :: Mixed Object Exploitation in the Windows Kernel PoolSharks in the Pool :: Mixed Object Exploitation in the Windows Kernel Pool
- Analysing the NULL SecurityDescriptor kernel exploitation mitigation in the latest Windows 10 v1607 Build 14393
- Abatchy - Windows Kernel Exploitation Series
- Papers
- Windows Kernel-mode Payload Fundamentals
- This paper discusses the theoretical and practical implementations of kernel-mode payloads on Windows. At the time of this writing, kernel-mode research is generally regarded as the realm of a few, but it is hoped that documents such as this one will encourage a thoughtful progression of the subject matter. To that point, this paper will describe some of the general techniques and algorithms that may be useful when implementing kernel-mode payloads. Furthermore, the anatomy of a kernel-mode payload will be broken down into four distinct units, known as payload components, and explained in detail. In the end, the reader should walk away with a concrete understanding of the way in which kernel-mode payloads operate on Windows.
- A Window into Ring0 - Paper
- With the rise of sandboxes and locked down user accounts attackers are increasingly resorting to attacking kernel mode code to gain full access to compromised systems. The talk provided an overview of the Windows kernel mode attack surface and how to interact with it. It then went on to cover the tools available for finding bugs in Windows kernel mode code and drivers as well as highlighting some of the lower hanging fruit, common mistakes and the steps being taken (or lack of steps being taken) to mitigate the risks posed. The talk also covered common exploitation techniques to gather information about the state of kernel mode memory and to gain code execution as SYSTEM. Finally the talk walked through exploiting CVE-2016-7255 on modern 64 bit versions of Windows.
- Windows Kernel-mode Payload Fundamentals
- Talks
- Securi-Tay 2017 - A Window into Ring0
- With the rise of sandboxes and locked down user accounts attackers are increasingly resorting to attacking kernel mode code to gain full access to compromised systems. This talk aims to provide an overview of the Windows kernel mode attack surface and how to interact with it. This talk will demonstrate the tools available for finding bugs in Windows kernel mode code and drivers together with highlighting some of the lower hanging fruit, common mistakes and the steps being taken (or lack of steps being taken) to mitigate the risks posed. The talk will then cover common exploitation techniques to gather information about the state of kernel mode memory and to gain code execution as SYSTEM using examples from publicly known exploits.
- Securi-Tay 2017 - A Window into Ring0
- Tools
- HackSys Extreme Vulnerable Driver
- HackSys Extreme Vulnerable Driver is intentionally vulnerable Windows driver developed for security enthusiasts to learn and polish their exploitation skills at Kernel level.
- HackSys Extreme Vulnerable Driver caters wide range of vulnerabilities ranging from simple Buffer Overflows to complex Use After Frees and Pool Overflows. This allows the researchers to explore the exploitation techniques for all the implemented vulnerabilities.z6z
- Windows-driver-samples
- This repo contains driver samples prepared for use with Microsoft Visual Studio and the Windows Driver Kit (WDK). It contains both Universal Windows Driver and desktop-only driver samples.
- DriverBuddy
- DriverBuddy is an IDA Python script to assist with the reverse engineering of Windows kernel drivers.
- Blog post
- win_driver_plugin
- A tool to help when dealing with Windows IOCTL codes or reversing Windows drivers.
- Write your first driver - docs ms
- HackSys Extreme Vulnerable Driver
- Writeups
- Patch Analysis
- Microsoft Patch Analysis for Exploitation
- Since the early 2000's Microsoft has distributed patches on the second Tuesday of each month. Bad guys, good guys, and many in-between compare the newly released patches to the unpatched version of the files to identify the security fixes. Many organizations take weeks to patch and the faster someone can reverse engineer the patches and get a working exploit written, the more valuable it is as an attack vector. Analysis also allows a researcher to identify common ways that Microsoft fixes bugs which can be used to find 0-days. Microsoft has recently moved to mandatory cumulative patches which introduces complexity in extracting patches for analysis. Join me in this presentation while I demonstrate the analysis of various patches and exploits, as well as the best-known method for modern patch extraction.
- Microsoft Patch Analysis for Exploitation Stephen Sims
- The Wallstreet of Windows Binaries - Marion Marschalek, Joseph Moti
- Wallstreet - Github Repository
- Wallstreet of Windows binaries 7, 8, 9 err 10 sorry
- Microsoft Patch Analysis for Exploitation
- Since the early 2000's Microsoft has distributed patches on the second Tuesday of each month. Bad guys, good guys, and many in-between compare the newly released patches to the unpatched version of the files to identify the security fixes. Many organizations take weeks to patch and the faster someone can reverse engineer the patches and get a working exploit written, the more valuable it is as an attack vector. Analysis also allows a researcher to identify common ways that Microsoft fixes bugs which can be used to find 0-days. Microsoft has recently moved to mandatory cumulative patches which introduces complexity in extracting patches for analysis. Join me in this presentation while I demonstrate the analysis of various patches and exploits, as well as the best-known method for modern patch extraction.
- Microsoft Patch Analysis for Exploitation
- Papers
- ActiveX - Active Exploitation
- This paper provides a general introduction to the topic of understanding security vulnerabilities that affect ActiveX controls. A brief description of how ActiveX controls are exposed to Internet Explorer is given along with an analysis of three example ActiveX vulnerabilities that have been previously disclosed.
- Exploiting the Otherwise Non-Exploitable on Windows
- This paper describes a technique that can be applied in certain situations to gain arbitrary code execution through software bugs that would not otherwise be exploitable, such as NULL pointer dereferences. To facilitate this, an attacker gains control of the top-level unhandled exception filter for a process in an indirect fashion. While there has been previous work illustrating the usefulness in gaining control of the top-level unhandled exception filter, Microsoft has taken steps in XPSP2 and beyond, such as function pointer encoding, to prevent attackers from being able to overwrite and control the unhandled exception filter directly. While this security enhancement is a marked improvement, it is still possible for an attacker to gain control of the top-level unhandled exception filter by taking advantage of a design flaw in the way unhandled exception filters are chained. This approach, however, is limited by an attacker's ability to control the chaining of unhandled exception filters, such as through the loading and unloading of DLLs. This does reduce the global impact of this approach; however, there are some interesting cases where it can be immediately applied, such as with Internet Explorer.
- ActiveX - Active Exploitation
- Countermeasures
- BuBBle: A Javascript Engine Level Countermeasure against Heap-Spraying Attacks
- Abstract. Web browsers that support a safe language such as Javascript are becoming a platform of great interest for security attacks. One such attack is a heap-spraying attack: a new kind of attack that combines the notoriously hard to reliably exploit heap-based buffer overflow with the use of an in-browser script- ing language for improved r eliability. A typical heap-s praying attack allocates a high number of objects containing the attacker’s code on the heap, dramatically increasing the probability that the contents of one of these objects is executed. In this paper we present a lightweight approach that makes heap-spraying attacks in Javascript significantly harder. Our prototype, which is implemented in Firefox, has a negligible performance and memory overhead while effectively protecting against heap-spraying attacks.
- BuBBle: A Javascript Engine Level Countermeasure against Heap-Spraying Attacks
- Intro to Anti-Fuzzing
- Anti-Debugging
- The Ultimate Anti-Debugging Reference(2011)
- Good reference, though old.
- Windows Anti-Debug Reference
- Good, but also old, Nov2010
- gargoyle, a memory scanning evasion technique
- The Ultimate Anti-Debugging Reference(2011)
- General Tools
- binwally
- Binary and Directory tree comparison tool using the Fuzzy Hashing concept (ssdeep)
- Using Binwally
- lisa.py
- An Exploit Dev Swiss Army Knife.
- binwally
- Tools for Finding/Building Exploits (DeBrujinn sequence)
- Pattern-Create/offset as a python function
- Metasploit pattern generator in Python, modified to be used as a function
- !exploitable Crash Analyzer
- !exploitable (pronounced bang exploitable) is a Windows debugging extension (Windbg) that provides automated crash analysis and security risk assessment. The tool first creates hashes to determine the uniqueness of a crash and then assigns an exploitability rating to the crash: Exploitable, Probably Exploitable, Probably Not Exploitable, or Unknown. There is more detailed information about the tool in the following .pptx file or at http://www.microsoft.com/security/msec. Additonally, see the blog post, or watch the video.
- Findjmp2
- Findjmp2 is a modified version of Findjmp from eEye.com to find jmp, call, push in a loaded DLL. This version includes search for pop/pop/ret set of instructions that is useful to bypass Windows XP SP2 and Windows 2003 stack protection mechanism.
- binjitsu
- binjitsu is a CTF framework and exploit development library. Written in Python, it is designed for rapid prototyping and development, and intended to make exploit writing as simple as possible.
- Pattern-Create/offset as a python function
- Shellcode Tools
- rp++
- rp++ is a full-cpp written tool that aims to find ROP sequences in PE/Elf/Mach-O (doesn't support the FAT binaries) x86/x64 binaries. It is open-source, documented with Doxygen (well, I'm trying to..) and has been tested on several OS: Debian / Windows 7 / FreeBSD / Mac OSX Lion (10.7.3). Moreover, it is x64 compatible. I almost forgot, it handles both Intel and AT&T syntax (beloved BeaEngine). By the way, the tool is a standalone executable ; I will upload static-compiled binaries for each OS.
- rp++
- List
- Bokken
- Bokken is a GUI for the Pyew and Radare projects so it offers almost all the same features that Pyew has and and some of the Radare's ones. It's intended to be a basic disassembler, mainly, to analyze malware and vulnerabilities. Currently Bokken is neither an hexadecimal editor nor a full featured disassembler YET, so it should not be used for deep code analysis or to try to modify files with it.
- IDA
- IDA Pro combines an interactive, programmable, multi-processor disassembler coupled to a local and remote debugger and augmented by a complete plugin programming environment.
- Overview & Tutorials
- Ida Plugins
- Ida Sploiter
- IDA Sploiter is a plugin for Hex-Ray's IDA Pro disassembler designed to enhance IDA's capabilities as an exploit development and vulnerability research tool. Some of the plugin's features include a powerful ROP gadgets search engine, semantic gadget analysis and filtering, interactive ROP chain builder, stack pivot analysis, writable function pointer search, cyclic memory pattern generation and offset analysis, detection of bad characters and memory holes, and many others.
- Ida Pomidor
- IDA Pomidor is a fun and simple plugin for the Hex-Ray's IDA Pro disassembler that will help you retain concentration and productivity during long reversing sessions.
- FLARE-Ida
- This repository contains a collection of IDA Pro scripts and plugins used by the FireEye Labs Advanced Reverse Engineering (FLARE) team.
- Ida Sploiter
- Hopper
- Hopper is a reverse engineering tool for OS X and Linux, that lets you disassemble, decompile and debug your 32/64bits Intel Mac, Linux, Windows and iOS executables!
- Reverse
- Reverse engineering for x86 binaries (elf-format). Generate a more readable code (pseudo-C) with colored syntax. Warning, the project is still in development, use it at your own risks. This tool will try to disassemble one function (by default main). The address of the function, or its symbol, can be passed by argument.
- fREedom - capstone based disassembler for extracting to binnavi
- fREedom is a primitive attempt to provide an IDA Pro independent means of extracting disassembly information from executables for use with binnavi (https://github.com/google/binnavi).
- BinNavi
- BinNavi is a binary analysis IDE that allows to inspect, navigate, edit and annotate control flow graphs and call graphs of disassembled code.
- Bokken
- General/Platform Neutral
- The Secret Lives of Debuggers - Lance Buttars - BSides SLC15
- Binaries are files like any text file or a bitmap. They can be modified and changed.With some basic understanding of assembly language anyone can take a binary and modify its execution in a debugger and using a hex editor change how it executes. In this presentation I will cover the basics of binary manipulation and the use of debuggers to change program execution.
- HyperDbg
- HyperDbg is a kernel debugger that leverages hardware-assisted virtualization. More precisely, HyperDbg is based on a minimalistic hypervisor that is installed while the system runs. Compared to traditional kernel debuggers (e.g., WinDbg, SoftIce, Rasta R0 Debugger) HyperDbg is completely transparent to the kernel and can be used to debug kernel code without the need of serial (or USB) cables. For example, HyperDbg allows to single step the execution of the kernel, even when the kernel is executing exception and interrupt handlers. Compared to traditional virtual machine based debuggers (e.g., the VMware builtin debugger), HyperDbg does not require the kernel to be run as a guest of a virtual machine, although it is as powerful.
- Paper
- scdbg
- scdbg is an open source, multi-platform, shellcode analysis application that runs shellcode through a virtual machine that emulates a 32bit processor, memory, and basic Windows API environment. scdbg uses the libemu library to provide this environment. Builds of scdbg exist for both Windows and Unix users.
- scdbg Manual
- xnippet
- xnippet is a tool that lets you load code snippets or isolated functions (no matter the operating system they came from), pass parameters to it in several formats (signed decimal, string, unsigned hexadecimal...), hook other functions called by the snippet and analyze the result. The tool is written in a way that will let me improve it in a future, defining new calling conventions and output argument pointers.
- voltron
- Voltron is an extensible debugger UI toolkit written in Python. It aims to improve the user experience of various debuggers (LLDB, GDB, VDB and WinDbg) by enabling the attachment of utility views that can retrieve and display data from the debugger host. By running these views in other TTYs, you can build a customised debugger user interface to suit your needs.
- The Secret Lives of Debuggers - Lance Buttars - BSides SLC15
- Linux
- GDB - GNU Debugger * GDB, the GNU Project debugger, allows you to see what is going on 'inside' another program while it executes -- or what another program was doing at the moment it crashed. * GDB 'exploitable' plugin * 'exploitable' is a GDB extension that classifies Linux application bugs by severity. The extension inspects the state of a Linux application that has crashed and outputs a summary of how difficult it might be for an attacker to exploit the underlying software bug to gain control of the system. The extension can be used to prioritize bugs for software developers so that they can address the most severe ones first. The extension implements a GDB command called 'exploitable'. The command uses heuristics to describe the exploitability of the state of the application that is currently being debugged in GDB. The command is designed to be used on Linux platforms and versions of GDB that include the GDB Python API. Note that the command will not operate correctly on core file targets at this time.
- PEDA
- PEDA - Python Exploit Development Assistance for GDB
- radare2 as an alternative to gdb-peda
- pwndbg - Making debugging suck less
- A PEDA replacement. In the spirit of our good friend windbg, pwndbg is pronounced pwnd-bag.
- Uses capstone as backend.
- gdbgui
- A modern, browser-based frontend to gdb (gnu debugger). Add breakpoints, view stack traces, and more in C, C++, Go, and Rust. Simply run gdbgui from the terminal and a new tab will open in your browser.
- GEF - GDB Enhanced Features
- GEF is aimed to be used mostly by exploiters and reverse-engineers. It provides additional features to GDB using the Python API to assist during the process of dynamic analysis or exploit development.
- Why not PEDA?
- Yes!! Why not?! PEDA is a fantastic tool to do the same, but is only to be used for x86-32 or x86-64. On the other hand, GEF supports all the architecture supported by GDB (x86, ARM, MIPS, PowerPC, SPARC, and so on).
- Docs
- Windows
- An Introduction to Debugging the Windows Kernel with WinDbg
- Getting Started with WinDbg part 1
- OllyDbg
- OllyDbg is a 32-bit assembler level analysing debugger for Microsoft® Windows®. Emphasis on binary code analysis makes it particularly useful in cases where source is unavailable.
- OllyDbg Tricks for Exploit Development
- WinDbg
- TWindbg
- PEDA-like debugger UI for WinDbg
- WinAppDbg
- The WinAppDbg python module allows developers to quickly code instrumentation scripts in Python under a Windows environment. It uses ctypes to wrap many Win32 API calls related to debugging, and provides a powerful abstraction layer to manipulate threads, libraries and processes, attach your script as a debugger, trace execution, hook API calls, handle events in your debugee and set breakpoints of different kinds (code, hardware and memory). Additionally it has no native code at all, making it easier to maintain or modify than other debuggers on Windows. The intended audience are QA engineers and software security auditors wishing to test or fuzz Windows applications with quickly coded Python scripts. Several ready to use tools are shipped and can be used for this purposes. Current features also include disassembling x86/x64 native code, debugging multiple processes simultaneously and produce a detailed log of application crashes, useful for fuzzing and automated testing.
- x64dbg
- Exploit Collections
- XiphosResearch PoC Exploits
- Miscellaneous proof of concept exploit code written at Xiphos Research for testing purposes.
- exploit-db.org
- All AIX exploits written by Hector Monsegur
- The Exploit Database Git Repository
- The official Exploit Database repository
- XiphosResearch PoC Exploits
- PoC Collections
- PoC for CVE-2018-0802 And CVE-2017-11882
- MS17-010 worawit
- explodingcan
- An implementation of NSA's ExplodingCan exploit in Python
- CVE-2017-10271 identification and exploitation. Unauthenticated Weblogic RCE.
- Chimay-Red
- Working POC of Mikrotik exploit from Vault 7 CIA Leaks
- Writeup
- Proof of concept exploits / tools for Epson vulnerabilities: CVE-2017-12860 and CVE-2017-12861
- Exploits for Unitrends version 9.1.1 and earlier ; all by Dwight Hohnstein
- CVE-2017-10271
- Oracle WebLogic WLS-WSAT Remote Code Execution Exploit (CVE-2017-10271)
- CVE-2018-0802
- This repo contains a Proof of Concept exploit for CVE-2018-0802. To get round the limited command length allowed, the exploit uses the Packager OLE object to drop an embedded payload into the %TMP% directory, and then executes the file using a short command via a WinExec call, such as: cmd.exe /c%TMP%\file.exe.
- Epson Vulnerability: EasyMP Projector Takeover (CVE-2017-12860 / CVE-2017-12861)
- Code Execution (CVE-2018-5189) Walkthrough On JUNGO Windriver 12.5.1
- A Study of Overflow Vulnerabilities on GPUs
- Jellyfish - GPU rootkit PoC by Team Jellyfish
- Jellyfish is a Linux based userland gpu rootkit proof of concept project utilizing the LD_PRELOAD technique from Jynx (CPU), as well as the OpenCL API developed by Khronos group (GPU). Code currently supports AMD and NVIDIA graphics cards. However, the AMDAPPSDK does support Intel as well.
- Temporal Return Addresses
- Nearly all existing exploitation vectors depend on some knowledge of a process' address space prior to an attack in order to gain meaningful control of execution flow. In cases where this is necessary, exploit authors generally make use of static addresses that may or may not be portable between various operating system and application revisions. This fact can make exploits unreliable depending on how well researched the static addresses were at the time that the exploit was implemented. In some cases, though, it may be possible to predict and make use of certain addresses in memory that do not have static contents. This document introduces the concept of temporal addresses and describes how they can be used, under certain circumstances, to make exploitation more reliable.
- Automating Mimicry Attacks Using Static Binary Analysis
- Intrusion detection systems that monitor sequences of system calls have recently become more sophisticated in defining legitimate application behavior. In particular, additional information, such as the value of the program counter and the configuration of the program's call stack at each system call, has been used to achieve better characterization of program behavior. While there is common agreement that this additional information complicates the task for the attacker, it is less clear to which extent an intruder is constrained. In this paper, we present a novel technique to evade the extended detection features of state-of-the-art intrusion detection systems and reduce the task of the intruder to a traditional mimicry attack. Given a legitimate sequence of system calls, our technique allows the attacker to execute each system call in the correct execution context by obtaining and relinquishing the control of the application's execution flow through manipulation of code pointers. We have developed a static analysis tool for Intel x86 binaries that uses symbolic execution to automatically identify instructions that can be used to redirect control flow and to compute the necessary modifications to the environment of the process. We used our tool to successfully exploit three vulnerable programs and evade detection by existing state-of-the-art system call monitors. In addition, we analyzed three real-world applications to verify the general applicability of our techniques.
- Anti-Virus Software Gone Wrong
- Anti-virus software is becoming more and more prevalent on end-user computers today. Many major computer vendors (such as Dell) bundle anti-virus software and other personal security suites in the default configuration of newly-sold computer systems. As a result, it is becoming increasingly important that anti-virus software be well-designed, secure by default, and interoperable with third-party applications. Software that is installed and running by default constitutes a prime target for attack and, as such, it is especially important that said software be designed with security and interoperability in mind. In particular, this article provides examples of issues found in well-known anti-virus products. These issues range from not properly validating input from an untrusted source (especially within the context of a kernel driver) to failing to conform to API contracts when hooking or implementing an intermediary between applications and the underlying APIs upon which they rely. For popular software, or software that is installed by default, errors of this sort can become a serious problem to both system stability and security. Beyond that, it can impact the ability of independent software vendors to deploy functioning software on end-user systems.
- Sigreturn Oriented Programming is a real Threat
- Abstract: This paper shows that Sigreturn Oriented Programming (SROP), which consists of using calls to sigreturn to execute arbitrary code, is a pow erful method for the de velopment of exploits. This is demonstrated by developing two different kinds of SROP based exploits, one asterisk exploit which was already portrayed in the paper presenting SROP, and one novel exploit for a recently disclosed bug inthe DNS address resolution of the default GNUC library. Taking advantage of the fact, that these exploits have very few dependencies on the program being exploited, a library is implemented to automate wide parts of SROP exploit creation. This highlights the potential of SROP in respect to reusable and portable exploit code which strongly supports the conclusion of the original paper: SROP is areal threat!
- Breaking the links: Exploiting the linker
- nt!
_SEP_
TOKEN_PRIVILEGES - Single Write EoP Protect - Kyriakos 'kyREcon' Economou- TL;DR: Abusing enabled token privileges through a kernel exploit to gain EoP it won't be enough anymore as from NT kernel version 10.0.15063 are 'checked' against the privileges present in the token of the calling process. So you will need two writes
- Fun with info leaks
- Linux Kernel < 2.6.36.2 Econet Privilege Escalation Exploit
- Coding Malware for Fun and Not for Profit (Because that would be illegal)
- Exploiting BadIRET vulnerability - CVE-2014-9322, Linux kernel privilege escalation
- A Technical Analysis of CVE 2014-1776
- Diving into A Silverlight Exploit and Shellcode - Analysis and Techniques
- Abstract: We will observe how the exploit is obfuscated; how it loads parts of the code dynamically into the memory in order to reduce the chances of being detected by signature based protections and how to extract these components from the exploit. In addition we will look at the shell-code supplied by the exploit-kit and how it uses encryption to hide the payload's URL and contents.
- Owning Internet Printing - A Case Study in Modern Software Exploitation
- The Chakra Exploit and the Limitations of Modern Mitigation Techniques
- EnglishmansDentist Exploit Analysis
- Dangerous Clipboard: Analysis of the MS15-072 Patch
- MS16-039 - "Windows 10" 64 bits Integer Overflow exploitation by using GDI objects
- The Weak Bug - Exploiting a Heap Overflow in VMware
- MS17-010
- CVE-2016-7255 - Git repo
- Hijacking Arbitrary .NET Application Control Flow
- This paper describes the use of Reflection in .NET and how it can be utilized to change the control flow of an arbitrary application at runtime. A tool, Gray Storm, will be introduced that can be injected into an AppDomain and used to control the executing assembly instructions after just-in-time compilation.
- Dissecting Veil-Evasion Powershell Payloads and Converting to a Bind Shell
- iOS
- MIPS
- Smashing the Heap with Vector: Advanced Exploitation Technique in Recent Flash Zero-day Attack
- Exploiting CVE-2014-4113 on Win8.1
- Debugging Windows kernel under VMWare using IDA's GDB debugger
- Hello MS08-067, My Old Friend!
- The Birth of a Complete IE11 Exploit Under the New Exploit Mitigations
- Modern Objective-C Exploitation Techniques
- A New CVE-2015-0057 Exploit Technology
- PLASMA PULSAR
- This document describes a generic root exploit against kde.
- ROP
- stuff * ROPs are for the 99% - Yang Yu * OptiROP: The art of hunting ROP gadgets * Video * This research attempts to solve the problem by introducing a tool named OptiROP that lets exploitation writers search for ROP gadgets with semantic queries. Combining sophisticated techniques such as code normalization, code optimization, code slicing, SMT solver and some creative heuristic searching methods, OptiROP is able to discover desired gadgets very quickly, with much less efforts. Our tool also provides the detail semantic meaning of each gadget found, so users can easily decide how to chain their gadgets for the final shellcode.
- Tools
- ropa
- ropa is a Ropper-based GUI that streamlines crafting ROP chains. It provides a cleaner interface when using Ropper as compared to the command line. It can provide a smoother workflow for crafting the rop chain in the GUI, then exporting the final chain in the desired format. For those used to using CLI, this tool may serve as a cleaner interface to filter out the relevant gadgets.
- Ropper
- You can use ropper to display information about binary files in different file formats and you can search for gadgets to build rop chains for different architectures (x86/X86_64, ARM/ARM64, MIPS/MIPS64, PowerPC). For disassembly ropper uses the awesome Capstone Framework.
- ropa
- Tools
- UAF
- Exploiting CVE-2015-0311: A Use-After-Free in Adobe Flash Player
- "The vulnerability was first discovered as a zero-day being actively exploited in the wild as part of the Angler Exploit Kit. Although the exploit code was highly obfuscated using the SecureSWF obfuscation tool, malware samples taking advantage of this vulnerability became publicly available, so I decided to dig into the underlying vulnerability in order to exploit it and write the corresponding module for Core Impact Pro and Core Insight."
- Use-After-Silence: Exploiting a quietly patched UAF in VMware - Abdul-Aziz Hariri
- Exploiting CVE-2015-0311: A Use-After-Free in Adobe Flash Player
- *Extended: alloc/Heap
- shadow :: De Mysteriis Dom jemalloc
- shadow is a jemalloc heap exploitation framework. It has been designed to be agnostic of the target application that uses jemalloc as its heap allocator (be it Android's libc, Firefox, FreeBSD's libc, standalone jemalloc, or whatever else). The current version (2.0) has been tested extensively with the following targets: Android 6 and 7 libc (ARM32 and ARM64); Firefox (x86 and x86-64) on Windows and Linux;
- Overview of Android's jemalloc structures using shadow
- In this document we explore Android's jemalloc structures using shadow. A simplified view of the heap is presented here. The intention of this document is to get you started with jemalloc structures and shadow's commands.
- MALLOC DES-MALEFICARUM - blackngel
- Understanding the Heap - Sploitfun
- Automated vulnerability analysis of zero sized heap allocations
- Tracking Down Heap Overflows with rr
- Walking Heap using Pydbg
- This is the simplest implementation of HeapWalk() API based on pydbg. Heap walk API enumerates the memory blocks in the specified heap. If you are not very familiar with HeapWalk() API this page has a very good example in C++.
- Linux Heap Exploitation Intro Series – (BONUS) printf might be leaking!
- Linux Heap Exploitation Intro Series: Riding free on the heap – Double free attacks!
- shadow :: De Mysteriis Dom jemalloc
- Kaspersky Hooking Engine Analysis
- AV_Kernel_Vulns
- Pocs for Antivirus Software‘s Kernel Vulnerabilities
- Look at fuzzing section.
- Winmerge
- WinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.
- Analyzing Common Binary Parser Mistakes
- With just about one file format bug being consistently released on a weekly basis over the past six to twelve months, one can only hope developers would look and learn. The reality of it all is unfortunate; no one cares enough. These bugs have been around for some time now, but have only recently gained media attention due to the large number of vulnerabilities being released. Researchers have been finding more elaborate and passive attack vectors for these bugs, some of which can even leverage a remote compromise.
- All the Ways to Capture a Crash Dump
- Basic Debugging of an Application Crash
- Collecting User Mode Dumps
- heapwn
- Heap exploitation is a dark art to me. This repo is an attempt to document my findings/notes on the heap pwnables I deal with while learning heap's internals (Linux specific). - str8outtaheap https://github.com/Microsoft/MSRC-Security-Research/tree/master/presentations https://cseweb.ucsd.edu/~hovav/dist/sparc.pdf
- Machine Motivated Practical Page Table Shellcode & Finding Out What's Running on Your System - Slides
- Counterfeit Object-oriented Programming
- Modern Binary Attacks and Defences in the Windows Environment: Fighting Against Microsoft EMET in Seven Rounds
- ADI vs ROP
- Low Level Exploits - hugh pearse
- credssp
- This is a poc code for exploiting CVE-2018-0886. https://github.com/secretsquirrel/fido
- Dark Compsition kernel exploitation Case Study ---- Integer Overflow
- Obfuscated String/Shellcode Generator - Online Tool - zerosum0x0
- PSKernel-Primitives
- Exploit primitives for PowerShell
- Protectors
- Obfuscator, Encryption, Junkcode, Anti-Debug, PE protection/modification
- When "ASLR" Is Not Really ASLR - The Case of Incorrect Assumptions and Bad Defaults - cmu
- Implementing a Custom X86 Encoder
- This paper describes the process of implementing a custom encoder for the x86 architecture. To help set the stage, the McAfee Subscription Manager ActiveX control vulnerability, which was discovered by eEye, will be used as an example of a vulnerability that requires the implementation of a custom encoder. In particular, this vulnerability does not permit the use of uppercase characters. To help make things more interesting, the encoder described in this paper will also avoid all characters above 0x7f. This will make the encoder both UTF-8 safe and tolower safe.
- Marshalling to SYSTEM - An analysis of CVE-2018-0824 - codewhitesec.blogspot
- windows-kernel-exploits
- MindshaRE: Walking the Windows Kernel with IDA Python - Jasiel Spelman
- CVE-2017-11176: A step-by-step Linux Kernel exploitation (part 1/4) - blog.lexfo
- Executable and Linkable Format 101 - Part 1 Sections and Segments - Ignacio Sanmillan
- Executable and Linkable Format 101. Part 2: Symbols - Ignacio Sanmillan
- Executable and Linkable Format 101 Part 3: Relocations - Ignacio Sanmillan
- Shellab
- Shellab is a tool that can be used to improve existing shellcodes and adapt them for personal needs. Developed to provide an alternative to msfvenom with new functionalities. Suitable for both Windows and Linux shellcode (32 and 64 bit).
- Kernel crash caused by out-of-bounds write in Apple's ICMP packet-handling code (CVE-2018-4407) - lgtm.com
- Yet another memory leak in ImageMagick or how to exploit CVE-2018–16323. - barracud4
- Flash News - CVE-2018-15981 - Gil Dabah