SlideShare a Scribd company logo
Sandboxing in .NET CLR
Mikhail Shcherbakov
July 05, 2015
Coordinator of SPB .NET Community
Product Manager at Cezurity
One of the core developers of the source code
analyzer PT Application Inspector
Former Team Lead at Acronis, Luxoft, Boeing
About me
2
Sandboxing is the base of security
Development of extensible and security-sensitive
applications
Troubleshooting and knowledge about the
internals
Knowledge in Practice
 ASP.NET / IIS  Silverlight
 SQL CLR  XBAP
 ClickOnce  Sharepoint
3
Security Architecture
4
Security Architecture
5
Application Domains
6
The verification process
7
Just-in-time verification
Code Access Security
9
Policy
10
deprecated
in .NET
Framework
4
Policy
11
Permissions
12
Permissions
13
Enforcement
14
Fully Trusted code in
Partially Trusted AppDomain
15
Transparency Model
16
Level 2 Security Transparency
Critical
Full Trust code that can do anything
Safe Critical
Full Trust code Provides access to Critical code
Transparent
Only verifiable code Cannot p/invoke Cannot elevate/assert
17
Security Transparency Attributes
Assembly
Level
Type
Level
Member
Level
SecurityTransparent   
SecuritySafeCritical   
SecurityCritical   
AllowPartiallyTrustedCallers   
SecAnnotate.exe – .NET Security Annotator Tool
http://bit.ly/1A3vMw3
18
Stack walking
19
Sandbox implementation
ASP.NET Partial Trust applications
2005 2005 2006 2007 2008 2009 2010 2011 2012
Use Medium trust
in shared hosting
environments
bit.ly/1yABGqf
August 2005
For Web servers that
are Internet-facing,
Medium trust is
recommended
bit.ly/1z83LVV
July 2008
21
ASP.NET Partial Trust applications
20152008 2009 2010 2011 2012 2013
ASP.NET Partial Trust does not
guarantee application isolation
bit.ly/1CRv3Ux
June 2012
ASP.NET Security and the
Importance of KB2698981 in
Cloud Environments bit.ly/1vXJ50J
April 2013
“The official position of the ASP.NET team is
that Medium Trust is obsolete”
-Levi Broderick, security developer at
Microsoft bit.ly/1If14Gv
June 2013
ASP.NET MVC 5 no longer
supports partial trust
bit.ly/1w0xxuX
October 2013
22
DynamicMethod class
MS13-015 vulnerability
Could Allow Elevation of
Privilege (KB2800277)
Trusted Chain
Attack
23
Luring Attack
24
Luring Attack
MS02-061 “Elevation of Privilege in SQL Server Web Tasks”
25
Exception Filter Attack
Exception Filter Attack
27
Exception Filter Attack
28
Summary
29
Sandboxing:
Exploring the .NET Framework 4 Security Model
bit.ly/1zBHDl7
New Security Model: Moving to a Better Sandbox
bit.ly/1qdLTYf
How to Test for Luring Vulnerabilities
bit.ly/1G5asdG
Using SecAnnotate to Analyze Your Assemblies for
Transparency Violations bit.ly/12AtGZF
Summary
30
.NET Security:
OWASP Top 10 for .NET developers bit.ly/1mpvG9R
OWASP .NET Project bit.ly/1vCfknm
Troy Hunt blog www.troyhunt.com
The WASC Threat Classification v2.0
bit.ly/1G5d8rM
Summary
31
Thank you for your attention!
Mikhail Shcherbakov
spbdotnet.org
ms@cezurity.com
linkedin.com/in/mikhailshcherbakov
github.com/yuske
@yu5k3
Product Manager at Cezurity

More Related Content

What's hot (20)

PDF
OWASP AppSecEu 2016 Rome - Building secure cloud native apps
Andreas Falk
 
PDF
BOMs Away - Why everyone needs a BOM (AppSec Cali 2019)
Steve Springett
 
PDF
Spring Security
Knoldus Inc.
 
PDF
Compute Security - Host Security
Eng Teong Cheah
 
PDF
SecDevOps for API Security
42Crunch
 
PPTX
How Secure is Your API?
Mary Joy Sabal
 
PPTX
SQL Server Security and Intrusion Prevention
Gabriel Villa
 
PDF
[OWASP Poland Day] A study of Electron security
OWASP
 
PDF
Understanding The Known: OWASP A9 Using Components With Known Vulnerabilities
Anant Shrivastava
 
PDF
Better API Security with Automation
42Crunch
 
PDF
[OWASP Poland Day] Security knowledge framework
OWASP
 
PDF
The Twelve Factor Apps
tomi vanek
 
PDF
Reduce Third-Party Tool Dependencies in Your Test Framework
TechWell
 
PPT
Top Keys to create a secure website
Click Ripple Solutions
 
PPTX
Evaluating container security with ATT&CK Framework
Sandeep Jayashankar
 
PDF
42crunch-API-security-workshop
42Crunch
 
PDF
Linux Security for Developers
Michael Boelen
 
PDF
OWASP API Security Top 10 Examples
42Crunch
 
PDF
Web Application Firewall - Web Application & Web Services Security integrated...
Thomas Malmberg
 
OWASP AppSecEu 2016 Rome - Building secure cloud native apps
Andreas Falk
 
BOMs Away - Why everyone needs a BOM (AppSec Cali 2019)
Steve Springett
 
Spring Security
Knoldus Inc.
 
Compute Security - Host Security
Eng Teong Cheah
 
SecDevOps for API Security
42Crunch
 
How Secure is Your API?
Mary Joy Sabal
 
SQL Server Security and Intrusion Prevention
Gabriel Villa
 
[OWASP Poland Day] A study of Electron security
OWASP
 
Understanding The Known: OWASP A9 Using Components With Known Vulnerabilities
Anant Shrivastava
 
Better API Security with Automation
42Crunch
 
[OWASP Poland Day] Security knowledge framework
OWASP
 
The Twelve Factor Apps
tomi vanek
 
Reduce Third-Party Tool Dependencies in Your Test Framework
TechWell
 
Top Keys to create a secure website
Click Ripple Solutions
 
Evaluating container security with ATT&CK Framework
Sandeep Jayashankar
 
42crunch-API-security-workshop
42Crunch
 
Linux Security for Developers
Michael Boelen
 
OWASP API Security Top 10 Examples
42Crunch
 
Web Application Firewall - Web Application & Web Services Security integrated...
Thomas Malmberg
 

Viewers also liked (20)

PDF
Secure and Simple Sandboxing in SELinux
James Morris
 
PPT
Hack In Paris 2011 - Practical Sandboxing
Tom Keetch
 
PPT
File Transfer protocols
Aayushi Pareek
 
PDF
Ceh v5 module 07 sniffers
Vi Tính Hoàng Nam
 
PPT
Nmap(network mapping)
SSASIT
 
PPTX
Content Analysis System and Advanced Threat Protection
Blue Coat
 
PPTX
Advanced Threat Protection - Sandboxing 101
Blue Coat
 
PPTX
File transfer protocol
Milind Swane
 
PDF
Sandbox vs manual malware analysis v1.1
Michael Gough
 
PPTX
Remote network monitoring
yousef emami
 
PPTX
Nmap not only a port scanner by ravi rajput comexpo security awareness meet
Ravi Rajput
 
PPT
Course on Ehtical Hacking - Introduction
Bharat Thakkar
 
PDF
Introduction to SNMP
Mohammed Farrah
 
PPTX
Network scanning
oceanofwebs
 
PPTX
Understanding NMAP
Phannarith Ou, G-CISO
 
PPT
Port Scanning
amiable_indian
 
PDF
Nmap Basics
amiable_indian
 
PDF
Hacking With Nmap - Scanning Techniques
amiable_indian
 
PPTX
Computer Hacking - An Introduction
Jayaseelan Vejayon
 
PPTX
ETHICAL HACKING PPT
Sweta Leena Panda
 
Secure and Simple Sandboxing in SELinux
James Morris
 
Hack In Paris 2011 - Practical Sandboxing
Tom Keetch
 
File Transfer protocols
Aayushi Pareek
 
Ceh v5 module 07 sniffers
Vi Tính Hoàng Nam
 
Nmap(network mapping)
SSASIT
 
Content Analysis System and Advanced Threat Protection
Blue Coat
 
Advanced Threat Protection - Sandboxing 101
Blue Coat
 
File transfer protocol
Milind Swane
 
Sandbox vs manual malware analysis v1.1
Michael Gough
 
Remote network monitoring
yousef emami
 
Nmap not only a port scanner by ravi rajput comexpo security awareness meet
Ravi Rajput
 
Course on Ehtical Hacking - Introduction
Bharat Thakkar
 
Introduction to SNMP
Mohammed Farrah
 
Network scanning
oceanofwebs
 
Understanding NMAP
Phannarith Ou, G-CISO
 
Port Scanning
amiable_indian
 
Nmap Basics
amiable_indian
 
Hacking With Nmap - Scanning Techniques
amiable_indian
 
Computer Hacking - An Introduction
Jayaseelan Vejayon
 
ETHICAL HACKING PPT
Sweta Leena Panda
 
Ad

Similar to Sandboxing in .NET CLR (20)

PPTX
Sandboxing in .NET CLR
Mikhail Shcherbakov
 
PPTX
Security Model in .NET Framework
Mikhail Shcherbakov
 
PPT
Making the case for sandbox v1.1 (SD Conference 2007)
Dinis Cruz
 
PPTX
Understanding Application Threat Modelling & Architecture
Priyanka Aash
 
PPTX
ASFWS 2013 - Advances in secure (ASP).NET development – break the hackers’ sp...
Cyber Security Alliance
 
PPT
Secure Web Applications Ver0.01
Vasan Ramadoss
 
PDF
Full Download Programming NET Security 1st Edition Adam Freeman PDF DOCX
calessidey19
 
PPTX
Application Security Architecture and Threat Modelling
Priyanka Aash
 
PPTX
Securing your azure web app with asp.net core data protection
Mike Melusky
 
PPTX
00. introduction to app sec v3
Eoin Keary
 
DOCX
21CSB02T UNIT 1 NOTES. FOR WEB APPLICATION SECURITY VERTICAL COURSES
Rajkumars275092
 
PDF
Making Security Approachable for Developers and Operators
ArmonDadgar
 
PPTX
Presentation for taste of it 2014 wide - no clients
Robert LeRoy
 
PPTX
Secure your web app presentation
Frans Lytzen
 
PPTX
Spa Secure Coding Guide
Geoffrey Vandiest
 
PPTX
Improving Application Security With Azure
Softchoice Corporation
 
PDF
OWASP based Threat Modeling Framework
Chaitanya Bhatt
 
PPTX
Application Security - Myth or Fact Slides
dfgrumpy
 
PPTX
Application Security-Understanding The Horizon
Lalit Kale
 
PPTX
Shared Security Responsibility for the Azure Cloud
Alert Logic
 
Sandboxing in .NET CLR
Mikhail Shcherbakov
 
Security Model in .NET Framework
Mikhail Shcherbakov
 
Making the case for sandbox v1.1 (SD Conference 2007)
Dinis Cruz
 
Understanding Application Threat Modelling & Architecture
Priyanka Aash
 
ASFWS 2013 - Advances in secure (ASP).NET development – break the hackers’ sp...
Cyber Security Alliance
 
Secure Web Applications Ver0.01
Vasan Ramadoss
 
Full Download Programming NET Security 1st Edition Adam Freeman PDF DOCX
calessidey19
 
Application Security Architecture and Threat Modelling
Priyanka Aash
 
Securing your azure web app with asp.net core data protection
Mike Melusky
 
00. introduction to app sec v3
Eoin Keary
 
21CSB02T UNIT 1 NOTES. FOR WEB APPLICATION SECURITY VERTICAL COURSES
Rajkumars275092
 
Making Security Approachable for Developers and Operators
ArmonDadgar
 
Presentation for taste of it 2014 wide - no clients
Robert LeRoy
 
Secure your web app presentation
Frans Lytzen
 
Spa Secure Coding Guide
Geoffrey Vandiest
 
Improving Application Security With Azure
Softchoice Corporation
 
OWASP based Threat Modeling Framework
Chaitanya Bhatt
 
Application Security - Myth or Fact Slides
dfgrumpy
 
Application Security-Understanding The Horizon
Lalit Kale
 
Shared Security Responsibility for the Azure Cloud
Alert Logic
 
Ad

More from Mikhail Shcherbakov (20)

PPTX
Delegates and events in C#
Mikhail Shcherbakov
 
PPTX
Mythbusters - Web Application Security
Mikhail Shcherbakov
 
PPTX
Михаил Щербаков "WinDbg сотоварищи"
Mikhail Shcherbakov
 
PPTX
Apache Ignite.NET в действии
Mikhail Shcherbakov
 
PPTX
Архитектура Apache Ignite .NET
Mikhail Shcherbakov
 
PPTX
Знакомство с In-Memory Data Grid
Mikhail Shcherbakov
 
PDF
сценарии использования статического анализатора
Mikhail Shcherbakov
 
PPTX
WCF. Легко или проблемно
Mikhail Shcherbakov
 
PDF
Поиск ошибок в программах на языке C#
Mikhail Shcherbakov
 
PPTX
Когда в C# не хватает C++ . Часть 3.
Mikhail Shcherbakov
 
PDF
Project Rider
Mikhail Shcherbakov
 
PPTX
WinDbg в руках .NET разработчика
Mikhail Shcherbakov
 
PPTX
Structured logging
Mikhail Shcherbakov
 
PPTX
RESTful API: Best practices, versioning, design documentation
Mikhail Shcherbakov
 
PPTX
Простой и кросс-платформенный WEB-сервер на .NET
Mikhail Shcherbakov
 
PPTX
Использование Visual Studio Tools for Apache Cordova в реальных проектах
Mikhail Shcherbakov
 
PPTX
Когда в C# не хватает C++ . Часть 2.
Mikhail Shcherbakov
 
PDF
Распространённые ошибки оценки производительности .NET-приложений
Mikhail Shcherbakov
 
PPTX
Когда в C# не хватает C++
Mikhail Shcherbakov
 
PDF
Как это работает: DLR
Mikhail Shcherbakov
 
Delegates and events in C#
Mikhail Shcherbakov
 
Mythbusters - Web Application Security
Mikhail Shcherbakov
 
Михаил Щербаков "WinDbg сотоварищи"
Mikhail Shcherbakov
 
Apache Ignite.NET в действии
Mikhail Shcherbakov
 
Архитектура Apache Ignite .NET
Mikhail Shcherbakov
 
Знакомство с In-Memory Data Grid
Mikhail Shcherbakov
 
сценарии использования статического анализатора
Mikhail Shcherbakov
 
WCF. Легко или проблемно
Mikhail Shcherbakov
 
Поиск ошибок в программах на языке C#
Mikhail Shcherbakov
 
Когда в C# не хватает C++ . Часть 3.
Mikhail Shcherbakov
 
Project Rider
Mikhail Shcherbakov
 
WinDbg в руках .NET разработчика
Mikhail Shcherbakov
 
Structured logging
Mikhail Shcherbakov
 
RESTful API: Best practices, versioning, design documentation
Mikhail Shcherbakov
 
Простой и кросс-платформенный WEB-сервер на .NET
Mikhail Shcherbakov
 
Использование Visual Studio Tools for Apache Cordova в реальных проектах
Mikhail Shcherbakov
 
Когда в C# не хватает C++ . Часть 2.
Mikhail Shcherbakov
 
Распространённые ошибки оценки производительности .NET-приложений
Mikhail Shcherbakov
 
Когда в C# не хватает C++
Mikhail Shcherbakov
 
Как это работает: DLR
Mikhail Shcherbakov
 

Recently uploaded (20)

PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
Python basic programing language for automation
DanialHabibi2
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Python basic programing language for automation
DanialHabibi2
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 

Sandboxing in .NET CLR