Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7511613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:36:11+00:00 2026-05-29T23:36:11+00:00

I have a project that loads 3rd party modules (in the form of DLLs)

  • 0

I have a project that loads 3rd party modules (in the form of DLLs) and allows them to execute arbitrary code. The application loading the modules requires elevated privileges as so too will the modules.

The modules are all made in house for this project, so the risk is relatively low at the moment. However, in the future there might be outside modules needing to be loaded.

The modules don’t have any need to modify, access, or do anything with any of the drives, so I would like to be able to disable any form of I/O in the modules. I haven’t figure out any way to do this, or even where to start.

The dependency injection is from MEF, specifically using the Prism design patterns.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T23:36:15+00:00Added an answer on May 29, 2026 at 11:36 pm

    You should have a look at these questions:

    How can I use CAS in .NET 4 to lock down my MEF extensions?

    Looking for a practical approach to sandboxing .NET plugins

    As well as the linked http://msdn.microsoft.com/en-us/library/bb763046.aspx

    The short story is that if your application is running in full trust, then code access security attributes won’t prevent addins from doing anything that they like. You’d need to load the addins in a security-limited (sandboxed) AppDomain and access them via intra-appdomain remoting. To do that, see “Sandboxing” here: http://msdn.microsoft.com/en-us/magazine/ee677170.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a vb.net project that loads plugin dlls at runtime to crunch some
I have a web application project which utilises a set of 3rd party dll's.
I have an Flash AS3 project that loads external SWFs and controls them in
I have a project that using some third-party libraries. My questions is how to
I have a maven project that loads an xslt file and executes the transformation
I have a Java project that expects external modules to be registered with it.
I have an Android project that loads a custom .so lib. I'm having trouble
I have a 3rd party JAR file that is compiled using Java 1.4. Is
I have an ASP.NET MVC project that loads fine when I start it directly.
I have a codebase for a Flash Builder project that loads in assets from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.