Simple Application Whitelisting Evasion Casey Smith @subTee

C:\>whoami

• Information Security Analyst – FirstBank , Colorado

• Internal Security Testing & Incident Response

Simple? – No Exploitation Necessary

Application Whitelisting - Quick

• Unknown/Unapproved Files Do Not Execute • File Hash • Directory • Publisher

Script

.NET

Native

Script Execution – Don’t Be Interesting

.bat

cmd.exe /k < script.txt

.vbs

cscript.exe //E:vbscript script.txt

.ps1

Get-Content script.txt | iex

DEMO # 1

.NET Execution

Sponsors = Trusted Things That Execute Things

“An attacker, is more interested in what an application can be made to do and operates on the principle that any action not specifically denied, is allowed” –OWASP Secure Coding Practices Quick Reference Guide

InstallUtil.exe

• Let this hatch payload • http://bit.ly/17iKrvf • Confuse Dynamic/Static Analysis

InstallUtil.exe

Main()

Install()

DEMO # 2

Proof Of Concept

1. <.NET PATH>\csc.exe /out:exeshell.exe exeshell.cs

2. <.NET PATH>\InstallUtil.exe /logfile= /LogToConsole=false /U exeshell.exe

Influence Which Assembly Loads • Assembly. Load () • Byte[] • File • URL

• AppDomain.ExecuteAssembly()

How Execution Events Can Be “Missed” • Loads Assembly with READ Permission • Later Changes Permission to EXECUTE • YOUR WHITELISTING APPLICATION CAN MISS THIS. • Thanks to @Bit9 and [ Matt L. & Chris L. ]

Security Considerations For AppLocker

•TechNet Article •Highly Recommend You Read This:

http://technet.microsoft.com/enus/library/ee844118(WS.10).aspx

Are There Other Sponsors? – Yes.

IEExec.exe – First Sponsor

• One Year Ago • Documented Here:

• IEExec is OK. Not Great, but proved our theory

ClickOnce – dfsvc.exe, dfshim.dll

• Gain Initial Access • Browser Based Delivery • Try as Alternate To Java Applet Payload

PresentationHost.exe

• XAML Browser Application (XBAP)

• PresentationHost.exe File | Url

Native Execution – Create Custom Memory Loaders

Malwaria .NET Memory Native PE File Execution https://github.com/subTee/Malwaria Encrypt Native Payload – Unpack In Memory Execute

PowerShell = Best Sponsor

• Invoke-ReflectivePEInjection • Embed Native Image • Executes in PowerShell.exe Process

• Staged Execution Well Done PowerSploit Developers!

DEMO #3 CVE-2014-4113

a.exe

YS5leGU=

PowerShell

•Compile Exploit & Base64 Encode •Embed in Script or Host on Server •Invoke-ReflectivePEInjection.ps1

Other Tactics/Methods?

Living Off The Land – Not my idea… Brilliant. • https://www.youtube.com/watch?v=j-r6UonEkUw • Live In Memory • Use Only What is Available and Consistent • Using Pre-Existing/Trusted instead of New/Unapproved

Example

• Email -> Launch Script

https://dmitrysotnikov.wordpress.com/2008/05/08/execute-powershell-scripts-from-your-smartphone/

Certificate Forgery

• Certificate Data is Self-Reported Metadata • Trivial To Self-Sign Code

Driver and OS Level Attacks • Nearly All Whitelists are implemented as : • Kernel Mini-Filter Drivers

• Potential Exploits • Stop/Disable Services

Resistance Evolves

Questions?

Thank you very much

Simple Application Whitelisting Evasion - GitHub

“An attacker, is more interested in what an application can be made to do and operates on the principle that any action not specifically denied, is allowed”.

760KB Sizes 9 Downloads 357 Views

Recommend Documents

WAX9 Application Developer's Guide - GitHub
Cannot open a COM port: Firstly, view the device using the OS (e.g. device manager) to confirm that ..... with this Android and. iOS application from Nordic Semi.

The Manual of Evasion - Rudy Rucker
Rudy Rucker, “The Manual of Evasion” from Seek! p. 3. Here in N.Y., the tree branches are all covered with thick coats of ice. There's been an ice storm, which is ...

tax evasion pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. tax evasion pdf.

Certified Scrum Practitioner Application/Renewal - GitHub
What business goal was the project intended to deliver? ... the reliability of the software applications was improved (because our team developed unit tests and.

Advanced Android Application Security Case Studies - GitHub
Flanker. KEEN TEAM. Advanced Android Application Security Case Studies ... Give a basic description of Android Security Mechanism. Vulnerability ... Page 10 ...

Distributed Application Runtime Environment (DARE): A ... - GitHub
tive of their potential of supporting existing and novel scientific computing practices and ... in a consistent way as the total number of cycles available year-to-year varies ... Table 1 Life-Science usage of the TG/XSEDE over the recent quarters. .

System V Application Binary Interface - GitHub
Jun 17, 2016 - X87, the 16-bit exponent plus 6 bytes of padding belongs to class X87UP. ..... Basically code models differ in addressing (absolute versus.

Apache Camel Example Application - Earthquake Mashup - GitHub
2. enrich this data with other related information like the weather in this area at this time. .... http://www.oracle.com/technetwork/articles/javase/index-140168.html.

Creating a Native iOS Warehouse Application - GitHub
Dec 13, 2013 - 3. Step 3: Run the New iOS App. Tutorial: Creating a Native iOS Warehouse App ... To call this method, the app sends a message to the shared ..... Use the Xcode editor to add these stubs the same way you added the ...

System V Application Binary Interface - GitHub
pdf. The C++ object model that is expected to be followed is described in http: · 6. Intel386 ABI 1.2 – June ... Table 2.1 shows the correspondence between ISO C scalar types and the proces- sor scalar types. ... android.com/. 9. Intel386 ABI 1.2 .

System V Application Binary Interface - GitHub
pdf. The C++ object model that is expected to be followed is described in http: .... In addition to registers, each function has a frame on the run-time stack.

An Automated Interaction Application on Twitter - GitHub
select the responses which are best matches to the user input ..... the last response when the bot talked about free ... User> go and take control the website that I.

System V Application Binary Interface - GitHub
Jan 28, 2018 - 0.98 Various clarifications and fixes according to feedback from Sun, thanks to ...... and the signals specified by signal (BA_OS) as shown in table 3.1. ...... same as the result of R_X86_64_DTPMOD64 for the same symbol. 5This documen

System V Application Binary Interface - GitHub
Jul 3, 2015 - Intel MCU ABI 0.7 – July 3, 2015 – 7:58 .... devspecs/abi386-4.pdf, which describes the ABI for processors compati- ble with the Intel MCU ...

System V Application Binary Interface - GitHub
Apr 13, 2016 - System V Application Binary Interface ... 4 Development Environment .... compiler generated function in a compilation unit, all FDEs can access.

System V Application Binary Interface - GitHub
Feb 16, 2016 - AMD64 ABI Draft 0.99.8 – February 16, 2016 – 10:06 ..... instead of AMD64. 2The architecture specification is available on the web at ...... of the unwinder on the host to store internal information, for instance to remember .....

System V Application Binary Interface - GitHub
Dec 7, 2015 - devspecs/abi386-4.pdf, which describes the Linux IA-32 ABI for proces- sors compatible with the .... android.com/. 8. Intel386 ABI 1.1 .... may use the faster femms instruction. 10. Intel386 ABI 1.1 – December 7, 2015 – 8:57 ...

System V Application Binary Interface - GitHub
Mar 23, 2017 - devspecs/abi386-4.pdf, which describes the Linux IA-32 ABI for proces- ... tion of these new features for interoperability between various tools. .... android.com/. 8 ...... actions Indicates what processing the personality routine is 

A Simple Visual Navigation System with Convergence ... - GitHub
University of Lincoln ... Czech Technical University in Prague. {tkrajnik ... saves its descriptor, image coordinates and robot distance from segment start. ..... Research program funded by the Ministry of Education of the Czech Republic. No.

evasion-fiscale-dupre-griffon.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item.

2014 Oncogene evasion checkpoint.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. 2014 Oncogene ...

kiss_sdl – Simple generic widget toolkit for SDL2 - GitHub
button, select button, vertical scrollbar, horizontal scrollbar, progress bar, entry box, textbox, and combo box. ... you may however not be able to copy it, because pdf does not really contain text, and copying text is thus not .... Hope that this g

Floatworld : A Simple Artificial Life Framework for Simulated ... - GitHub
which virtual “creatures” compete for space and energy. We will ... the ability of evolution by natural selection to drive the increase in fitness of ..... of energies ϵ.