[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[WEB SECURITY] New Whitepaper - .NET Framework Rootkits: Backdoors inside your Framework



------_=_NextPart_001_01C945A5.E71830D9
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Paper Name

=3D=3D=3D=3D=3D=3D=3D=3D=3D

=20

.NET Framework Rootkits - Backdoors inside your Framework (Author: Erez
Metula)

=20

=20

Paper Description

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=20

The paper introduces a new method that enables an attacker to change the
.NET language, and to hide malicious code inside its core.

It covers various ways to develop rootkits for the .NET framework, so
that every EXE/DLL that runs on a modified Framework will behave
differently than what it's supposed to do. Code reviews will not detect
backdoors installed inside the Framework since the payload is not in the
code itself, but rather it is inside the Framework implementation.
Writing Framework rootkits will enable the attacker to install a reverse
shell inside the framework, to steal valuable information, to fixate
encryption keys, disable security checks and to perform other nasty
things as described in this paper.=20

=20

=20

=20

Paper Summary

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=20

Framework modification can be achieved by tampering with a Framework DLL
and "pushing" it back into the Framework.

The process is composed of several steps, described thoroughly at the
corresponding whitepaper.

It also exposes a flaw in the manner in which a .NET Framework DLL is
loaded, and how it is possible to bypass its signature mechanism.

Instead of re-signing tampered DLL's with a spoofed Microsoft signature
key - surprisingly, it was found during this research that the modified
DLL can be directly copied to the correct location at the file system,
because the SN mechanism does not check the actual signature of a loaded
DLL but blindly loads the DLL based on the directory name with the
corresponding signature name!

It is important to mention that this technique does not requires "full
trust" permissions, which further proves the fact that the GAC / CAS
protection mechanisms are broken.

=20

This paper also introduces ".Net-Sploit" - a new tool for building MSIL
rootkits that will enable the user to inject preloaded/custom payload to
the Framework core DLL.

=20

You can find the detailed whitepaper, .NET-Sploit tool, source code, and
the OWASP presentation at:

http://www.applicationsecurity.co.il/.NET-Framework-Rootkits.aspx

=20


------_=_NextPart_001_01C945A5.E71830D9
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:p=3D"urn:schemas-microsoft-com:office:powerpoint" =
xmlns:oa=3D"urn:schemas-microsoft-com:office:activation" =
xmlns=3D"http://www.w3.org/TR/REC-html40";>

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	text-align:right;
	direction:rtl;
	unicode-bidi:embed;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal;
	font-family:Arial;
	color:windowtext;}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1 dir=3DRTL>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Paper =
Name<o:p></o:p></span></font></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>=3D=3D=3D=3D=3D=3D=3D=3D=3D<=
o:p></o:p></span></font></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></fo=
nt></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>.NET Framework Rootkits - =
Backdoors
inside your Framework (Author: Erez Metula)<o:p></o:p></span></font></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;<o:p></o:p></span></fo=
nt></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></fo=
nt></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Paper =
Description<o:p></o:p></span></font></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D<o:p></o:p></span></font></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></fo=
nt></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>The paper introduces a new =
method
that enables an attacker to change the .NET language, and to hide =
malicious
code inside its core.<o:p></o:p></span></font></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>It covers various ways to =
develop
rootkits for the .NET framework, so that every EXE/DLL that runs on a =
modified
Framework will behave differently than what it's supposed to do. Code =
reviews
will not detect backdoors installed inside the Framework since the =
payload is
not in the code itself, but rather it is inside the Framework =
implementation.
Writing Framework rootkits will enable the attacker to install a reverse =
shell
inside the framework, to steal valuable information, to fixate =
encryption keys,
disable security checks and to perform other nasty things as described =
in this
paper. <o:p></o:p></span></font></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></fo=
nt></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></fo=
nt></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></fo=
nt></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Paper =
Summary<o:p></o:p></span></font></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D<o:p></o:p></span></font></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;<o:p></o:p></span></fo=
nt></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Framework modification can =
be
achieved by tampering with a Framework DLL and &quot;pushing&quot; it =
back into
the Framework.<o:p></o:p></span></font></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>The process is composed of =
several
steps, described thoroughly at the corresponding =
whitepaper.<o:p></o:p></span></font></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>It also exposes a flaw in =
the manner
in which a .NET Framework DLL is loaded, and how it is possible to =
bypass its
signature mechanism.<o:p></o:p></span></font></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Instead of re-signing =
tampered DLL's
with a spoofed Microsoft signature key - surprisingly, it was found =
during this
research that the modified DLL can be directly copied to the correct =
location
at the file system, because the SN mechanism does not check the actual
signature of a loaded DLL but blindly loads the DLL based on the =
directory name
with the corresponding signature name!<o:p></o:p></span></font></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>It is important to mention =
that this
technique does not requires &quot;full trust&quot; permissions, which =
further
proves the fact that the GAC / CAS protection mechanisms are =
broken.<o:p></o:p></span></font></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></fo=
nt></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>This paper also introduces
&quot;.Net-Sploit&quot; - a new tool for building MSIL rootkits that =
will
enable the user to inject preloaded/custom payload to the Framework core =
DLL.<o:p></o:p></span></font></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></fo=
nt></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>You can find the detailed
whitepaper, .NET-Sploit tool, source code, and the OWASP presentation =
at:<o:p></o:p></span></font></p>

<p class=3DMsoNormal dir=3DLTR =
style=3D'text-align:left;text-autospace:none;
direction:ltr;unicode-bidi:embed'><font size=3D2 face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><a
href=3D"http://www.applicationsecurity.co.il/.NET-Framework-Rootkits.aspx=
">http://www.applicationsecurity.co.il/.NET-Framework-Rootkits.aspx</a><o=
:p></o:p></span></font></p>

<p class=3DMsoNormal dir=3DRTL><font size=3D3 face=3D"Times New =
Roman"><span dir=3DLTR
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C945A5.E71830D9--



Brought to you by http://www.webappsec.org
Search this site