SlideShare a Scribd company logo
Mikhail Shcherbakov
July 05, 2015
Sandboxing in
.NET CLR
Mikhail Shcherbakov
IT Global Meetup #6
IntelliEgg
Creator of IntelliDebugger project
Coordinator of SPB .NET Community
Former Product manager and Team lead at
Cezurity, Positive Technologies, 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
linkedin.com/in/mikhailshcherbakov
github.com/yuske
@yu5k3
IntelliEgg

More Related Content

What's hot (20)

PDF
Synopsys Security Event Israel Presentation: New AppSec Paradigms with Open S...
Synopsys Software Integrity Group
 
PDF
Henrique Dantas - API fuzzing using Swagger
DevSecCon
 
PDF
DevSecOps | DevOps Sec
Rubal Jain
 
PDF
PIACERE - DevSecOps Automated
PIACERE
 
PPTX
DevSecOps reference architectures 2018
Sonatype
 
PDF
Talk DevSecOps to me
Michelle Ribeiro
 
PDF
Zero to Ninety in Securing DevOps
DevSecOps Days
 
PPTX
DevSecOps Beginners Guide : How to secure process in DevOps with OpenSource
DevOps Indonesia
 
PPTX
DevSecops: Defined, tools, characteristics, tools, frameworks, benefits and c...
Mohamed Nizzad
 
PPTX
Aleksei Dremin - Application Security Pipeline - phdays9
Alexey Dremin
 
PPTX
DevSecOps Days SF at RSA Conference 2018
DevSecOps Days
 
PDF
Dev week cloud world conf2021
Archana Joshi
 
PPT
Bio IT World 2015 - DevOps Security and Transparency
Kevin Gilpin
 
PDF
Bridging the Security Testing Gap in Your CI/CD Pipeline
DevOps.com
 
PDF
Webinar – Risk-based adaptive DevSecOps
Synopsys Software Integrity Group
 
PDF
Making Enterprise-Ready Plugins - Kaj Kandler JUC West 2015
Black Duck by Synopsys
 
PDF
Strengthen and Scale Security Using DevSecOps - OWASP Indonesia
Mohammed A. Imran
 
PDF
CI/CD pipeline security from start to finish with WhiteSource & CircleCI
WhiteSource
 
Synopsys Security Event Israel Presentation: New AppSec Paradigms with Open S...
Synopsys Software Integrity Group
 
Henrique Dantas - API fuzzing using Swagger
DevSecCon
 
DevSecOps | DevOps Sec
Rubal Jain
 
PIACERE - DevSecOps Automated
PIACERE
 
DevSecOps reference architectures 2018
Sonatype
 
Talk DevSecOps to me
Michelle Ribeiro
 
Zero to Ninety in Securing DevOps
DevSecOps Days
 
DevSecOps Beginners Guide : How to secure process in DevOps with OpenSource
DevOps Indonesia
 
DevSecops: Defined, tools, characteristics, tools, frameworks, benefits and c...
Mohamed Nizzad
 
Aleksei Dremin - Application Security Pipeline - phdays9
Alexey Dremin
 
DevSecOps Days SF at RSA Conference 2018
DevSecOps Days
 
Dev week cloud world conf2021
Archana Joshi
 
Bio IT World 2015 - DevOps Security and Transparency
Kevin Gilpin
 
Bridging the Security Testing Gap in Your CI/CD Pipeline
DevOps.com
 
Webinar – Risk-based adaptive DevSecOps
Synopsys Software Integrity Group
 
Making Enterprise-Ready Plugins - Kaj Kandler JUC West 2015
Black Duck by Synopsys
 
Strengthen and Scale Security Using DevSecOps - OWASP Indonesia
Mohammed A. Imran
 
CI/CD pipeline security from start to finish with WhiteSource & CircleCI
WhiteSource
 

Viewers also liked (13)

PDF
Creating The Ultimate Buyer Experience
Formstack
 
PPTX
My rutine
mariafernada0512
 
DOCX
Phonics has been in education for many years in various countries throughout ...
Shanthi Ramanathan
 
PDF
Rachael Voluck Resume
Rachael Voluck
 
PDF
Untitled Presentation
joaoarthurmedeiros
 
PDF
Bad / Dreems - Vevo DSCVR
Sam Ryan
 
PDF
Рахманов Александр "Что полезного в разборе дампов для .NET-разработчиков?"
Yulia Tsisyk
 
PPTX
AngularJS Scopes
Mohamed Elkhodary
 
PPTX
Analysis movie split
wereldbol
 
PPTX
Eval 1 - Digipak/Magazine Advert
Shane
 
PPT
Clase antibiotico ii
Saurymar Semeco
 
PPTX
Medicina deportiva diapositivas
aldo isaac velazquez fernandez
 
PPTX
Factores Economicos
joanyzambrano
 
Creating The Ultimate Buyer Experience
Formstack
 
My rutine
mariafernada0512
 
Phonics has been in education for many years in various countries throughout ...
Shanthi Ramanathan
 
Rachael Voluck Resume
Rachael Voluck
 
Untitled Presentation
joaoarthurmedeiros
 
Bad / Dreems - Vevo DSCVR
Sam Ryan
 
Рахманов Александр "Что полезного в разборе дампов для .NET-разработчиков?"
Yulia Tsisyk
 
AngularJS Scopes
Mohamed Elkhodary
 
Analysis movie split
wereldbol
 
Eval 1 - Digipak/Magazine Advert
Shane
 
Clase antibiotico ii
Saurymar Semeco
 
Medicina deportiva diapositivas
aldo isaac velazquez fernandez
 
Factores Economicos
joanyzambrano
 
Ad

Similar to Sandboxing in .NET CLR (20)

PPTX
Sandboxing in .NET CLR
Mikhail Shcherbakov
 
PPTX
Security Model in .NET Framework
Mikhail Shcherbakov
 
PDF
Pragmatic Pipeline Security
James Wickett
 
PPTX
Application security meetup k8_s security with zero trust_29072021
lior mazor
 
PPTX
ABN AMRO DevSecOps Journey
Derek E. Weeks
 
PPTX
Making Security Agile
Oleg Gryb
 
PPTX
12 Crucial Windows Security Skills for 2018
Paula Januszkiewicz
 
PPT
Agnitio: its static analysis, but not as we know it
Security BSides London
 
PPTX
Know Your Security Model
Mikhail Shcherbakov
 
PPTX
Started In Security Now I'm Here
Christopher Grayson
 
PDF
The Dev, Sec and Ops of API Security - API World
42Crunch
 
PDF
Kontinuierliche Sicherheitstests für APIs mit Testkube und OWASP ZAP
QAware GmbH
 
PDF
Blibli Web Application Security Policy Enforcement Point
SARCCOM
 
PDF
Horusec - Security & Vulnerability
Knoldus Inc.
 
PDF
Cyber security webinar 6 - How to build systems that resist attacks?
F-Secure Corporation
 
PPTX
DevSecCon London 2017: when good containers go bad by Tim Mackey
DevSecCon
 
PDF
DevSecOps with Confidence
VMware Tanzu
 
PPTX
In-kernel Analytics and Tracing with eBPF for OpenStack Clouds
PLUMgrid
 
PDF
AI-assisted development: how to build and ship with confidence
Maxim Salnikov
 
PDF
The Emergent Cloud Security Toolchain for CI/CD
James Wickett
 
Sandboxing in .NET CLR
Mikhail Shcherbakov
 
Security Model in .NET Framework
Mikhail Shcherbakov
 
Pragmatic Pipeline Security
James Wickett
 
Application security meetup k8_s security with zero trust_29072021
lior mazor
 
ABN AMRO DevSecOps Journey
Derek E. Weeks
 
Making Security Agile
Oleg Gryb
 
12 Crucial Windows Security Skills for 2018
Paula Januszkiewicz
 
Agnitio: its static analysis, but not as we know it
Security BSides London
 
Know Your Security Model
Mikhail Shcherbakov
 
Started In Security Now I'm Here
Christopher Grayson
 
The Dev, Sec and Ops of API Security - API World
42Crunch
 
Kontinuierliche Sicherheitstests für APIs mit Testkube und OWASP ZAP
QAware GmbH
 
Blibli Web Application Security Policy Enforcement Point
SARCCOM
 
Horusec - Security & Vulnerability
Knoldus Inc.
 
Cyber security webinar 6 - How to build systems that resist attacks?
F-Secure Corporation
 
DevSecCon London 2017: when good containers go bad by Tim Mackey
DevSecCon
 
DevSecOps with Confidence
VMware Tanzu
 
In-kernel Analytics and Tracing with eBPF for OpenStack Clouds
PLUMgrid
 
AI-assisted development: how to build and ship with confidence
Maxim Salnikov
 
The Emergent Cloud Security Toolchain for CI/CD
James Wickett
 
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
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 

Sandboxing in .NET CLR