hello thank you for attending yeah first devcon everything is impressive size of the room is also impressive um so we are paul and thomas who are two women researchers from the sonar r d team what do you hi i'm paul and yeah i come from the ctf scene and in general i like to break javascript things so vs code is a very good place for that and on my side i'm more like a php guy it's been giving me a job in the offensive security side for like six years i always gonna keep on keep on giving for the next decade and also like some also like to do some exploration in the memory and safety world from time to time and our company sonar writes static analytics tools to help developers write king code and uh it's like a spell checker but for code in general and uh we use uh zero days that we find ourselves to fuel product innovation we found 150 zero days over the last two years and we were recognized by elimination for the pony awards uh the pot trigger top ten maybe the king techniques and we also play point one from time to time and because the journey of most developers starts in the code editor we're wondering about the security of these code editors and everybody have usually strong opinions on their favorite code editor like paul likes nano which is weird don't tell me but it's like eight percent of all developers pretend to use nano for some reasons uh but sometimes you need to get to get the job done and you start using bigger ids like your visual studio or the entity j suite or vs code which is the most popular one with like 75 percent of the market share so let's start to do something a bit interactive with vs code uh you've been cloning some git repo online or somebody just sent you some source code and you want to open it in vs code because i mean it's your job as a developer to read and edit code um so please raise your hand if you think that nothing wrong is going to happen so next slide the conclusion and stock is over nobody right uh okay i'll make me and resume up in this context okay so some people are not sure so i'm gonna show you quick demo uh to show you that it's real uh so we just received something oh sorry maybe i can zoom in a bit yeah okay um so you just received something or you just get cloned something on your desktop and it's just an open me please just like some html file with a git repo nothing sensitive so i open my folder i get this security prompt popping but it's calc before this prompt i didn't do anything so something's fishy and we're gonna get back on it uh later but it's definitely unsafe to do some things with vs code and uh this is what we want to show you today it's uh what's wrong there is no standard threat model for developer tools we don't know what's unsafe and before doing this research uh when we found this thing we're kind of surprised is it a normal thing to do like is it supposed to be unsafe to read somebody else's code because i mean it's my job and every day i just open random people's php code that i find online so if i do it does it tweak on the secret of my system can i open somebody else's code is it any risk does my ide run my code it's just happened with gb the compiler as it's used by malware analysts but in practice like in the background it would run the code you would decompile which is not something nobody wants i guess and also when you have fancy features like vs codes remote development do you know if it's safe microsoft doesn't say anything uh on this regard and also i think some background is uh that we have more and more threat actors campaigns against developers uh i would be a threat actors i would try to target developers it would be an easy target uh they do plenty of things all day with everybody else's code of dependencies and stuff and recently we've been seeing uh tractors using plex one day uh in the last place campaign so they compromised devops uh through their plex media server instance and then i think they use some keylogger to get secrets to access production and they compromise everybody's password vault that way uh they're also a google tag so the straight analyst group they reported uh a north korean campaign uh oh say say it's north korea and somebody would reach out to some permanent infosec figures on twitter and say oh yeah i have this kind of exploit i i can't build it can you help me to do it and you when you're nice and talented and you're like yeah i'm gonna help you and if you build a project it would compromise you and run some uh weird powershell things in the background so it's definitely a thing and with this presentation we want to show you around the different attack surfaces of these ids including vs code oh it's going to be about vs code anyway paul will start by showing you all the software's architectures you will see it's a huge beast so it needs some background understanding on how it works and it's developed and designed and then we can start by looking at the most common sources of risk that we've seen in vs code in the core and and it's based on on research so we will tell you when it's all on bugs and also some research done by external researchers and we'll credit them every time accordingly and then we'll look at the reporting process for microsoft we have a fun anecdote to share and most of the bug you will see requires some degree of interaction like you've seen i've just opened a folder in my desktop and i think it's expected from vs code so we still call everything rce because the attacker is remote but it would be more like something like arbitrary code execution that's done by somebody who's remote but that's been carried on locally so we call it rce ace it's roughly the same thing in this context so paul thank you um yeah so let's look at how vs code is built first of all it's based on electron which is basically node.js and chromium meshed together so it's written in typescript and with a little bit of html css and all the other web technologies sprinkled on top which means it can also easily work in the browser so there are two web-based versions of vs code probably even more on github.dev and vs.code.dev and they are basically the same experience some things are different but yeah that's the gist of it vs code is highly extensible everybody can build extensions for it and you can also publish them to the marketplace where everybody can install them from and search through them and one cool thing that came up during the development of Visual Studio Code was the language server protocol. It's basically a way how you can write support for a language once, and then all editors that support this protocol can reuse it instead of having to code it for every editor again. VS Code is mostly open source. It has about 800,000 lines of code in its GitHub repo, and when you download the version from Microsoft directly, it has some small proprietary parts, but you can also download the full OSS version if you want. Let's look at the components that VS Code is made of. So, first of all, it isolates and splits different things into different components, and it uses processes for that. And there are some privileged processes. You can see them in red. There's, first of all, the main process. This is the one that starts up first and orchestrates everything else. Then there's the share process. This one hosts the PTYs, the terminals that you can open in VS Code. For example, it hosts the file watcher, DMA, and the file watcher. And then there's the extension host process, and this one, as the name says, hosts whatever extensions want to run in the background, which is not UI. And then there are less privileged parts, which are the renderer process. So this is the Chromium part, and it's basically just like a normal website. It cannot really access directly the file system, execute commands, or whatever. It's just rendering the UI. And this is how it looks. I'm sure many of you have seen it. And the big outer red part is called the workbench. This is basically the core UI of VS Code itself. It's served from the VS Code file protocol, which is a special protocol. We will see that later. And then, for example, an extension. Here, the Markdown preview extension can also show some UI, and this will be in a web view, which is similar to an iframe, so it's kind of isolated. And it also comes from the VS Code web view protocol. So already there, you see that it's coming from different things. There are some isolation things, which is going on. But, yeah, if one of the parts, for example, the extension, wants to directly access the workbench, then this will not be allowed by the same origin policy, because they come from different origins. And, yeah, this is something that comes from the web and also applies here. But, of course, sometimes the different parts have to communicate, and for that there are different IPC interfaces. So between origins in the renderers, there's window.postmessage, which is a regular web message-passing interface. And then if a UI part, a renderer process, wants to talk to some of the utility processes, they can use message ports to talk directly there. Or if they want to talk to the main process, then there's the good old election way of using preload scripts and the context bridge. So, of course, to hunt bugs and to find them, you probably want to debug VS Code, because it's just a way to find bugs. It's just easier to step through instead of having to put printf everywhere and recompile. So for the UI part, you can just use the Chromium developer tools like you know them from Chrome or any other Chromium-based browsers. And with that, you can debug extension UI and also the workbench UI. If you want to debug the backend part of extensions, you have to start VS Code with the dash-dash inspect-extensions flag, and then you can just attach a Chrome DevTools instance and debug it normally. Or the easiest way is just you use VS Code to debug VS Code. It's easy because they have pre-made launch configurations, so you just clone the repo, open it in VS Code, and then you will see in the launch configs tab that you can start different processes or everything together under debugging. All right, now that we roughly know how VS Code looks in the inside, Thomas will start with the first attack surface, which is exposed network services. So I think it's a bit generic. It's something you would find in kind of any desktop application, but in the case of VS Code, it happens kind of a lot. You may have services that start listening on the network. You may start wanting to expose a development server to locals. You may want to expose your server to everybody. You may want to expose a debugger or just to communicate with other components on the system. And while you would, in theory, to be safe, you would rather use some OS IP mechanisms, it's still JavaScript code, TypeScript code, and I think people, who are developing VS Code extensions, are maybe like web developers or not-JS developers, but they're not likely to be system-level developers, so they never really use OS IP mechanisms. And in practice, even if you want to expose a debugger or local server, even a unique socket could be enough, and it would be safer to not expose anything. Because if you start exposing ports, even on local hosts, they may be a website when you browse. They may start doing requests to these ports, and even if it's listening only on local hosts, you could do sysop attacks, or you could use web sockets to connect to a service. So listening only on local hosts is not a good solution either. If you want some examples of CDs that were in plug-ins, there was one called Rainbow Fart, which is supposed to play sound when you type keywords on VS Code, which sounds silly, but still, they got 128,000 installs, so people are using this module, and Kirill Efimov from Snyk found that it would expose an HTTP port on port 7777, and it would expose an HTTP port on port 7777, and it would expose an HTTP port on port 7777, and if you go on this page, you would be able to upload a zip file to change the sounds it's playing when you type on VS Code. And there would be a zip-based pass traversal, so basically you would browse on some random website online, and it would do a sysop attack to force you to send a zip file exploiting the vulnerability on this page, and then you would be able to override any file on the local file system. So you would override the developer's .bashrc file, and you would be able to execute arbitrary command from here. There were also more serious examples in the core, directly on VS Code, if you remember, Paul told you you can use the dash dash inspect option to expose an OGS debugger to the outside to debug VS Code, and it was enabled by default on VS Code at that point in 2019, and it was reported in one key by Tavizo and PHRAAAA, kind of like at the same week or same month, and in this case, this debugger was starting a local host in a random port every time you would start VS Code. But it's a debugger, it's meant to change variables, it's meant to run code, so if you'd be able to reach out to this port, you would kind of gain RC easily. In practice, it's not so easy, because the way the node.js debugger works, you first have to do an HTTP request to find out kind of a magic value with a WebSocket URL, and then you use WebSockets to connect to this destination. So you cannot just make a request to a local service, to a local port, because it's not the same origin. So you would first use some DNS rebinding to access the service, get the WebSocket URL, and then since WebSockets are not subject to the same origin policy, you would be able to connect to this thing. I don't remember seeing any complete exploit for it, but I think it could have been exploited in that case. And now we can start to spice things up and dig into things that are more specific to VS Code in this case. Another very interesting feature of Electron is that it provides a native layer to work with the underlying operating system for like a better integration. So you also need it, because you need file access, network access, but you can also expose things to the outside. It's a pretty nice form of IPC that's not relying on the network. So VS Code registers is VS Code colon slash slash protocol handler, and if you have a VS Code insider, which is an active version of VS Code, it's VS Code dash insiders colon slash slash. And when you click on one of these links, the OS kind of gets the event and says, okay, do I have anybody who kind of registered for this one? In the case of VS Code, it's going to be VS Code, and then it kind of wakes up VS Code and say, oh, there's something for you. And so this is one of the bugs that we found in the Git built-in extension. So it's called an extension, but it's built-in, enabled by default, and you cannot remove it. It's part of VS Code, but it's still called an extension. And it exposes a feature that way to let you clone repositories when you click on a link. So when you use GitLab, for instance, when you want to clone something, it gives you the command line with git clone, and you can also have this open in your ID button that will automatically bring VS Code in front and clone the repo for you. So under the hood, the way it works, the Git extension implements a class called UIAndler, and it kind of handles the request that comes from the operating system. If it finishes with slash clone, it calls a method called clone with the full address that you clicked, and then it passes the request with the URL and calls an ID command called git code clone, which is something you can also invoke yourself when you press command shift and P. You can also type git.clone, and it's going to run the same thing. And then internally, git.clone calls something called clone repository, which is only a wrapper around the git command. There is no reason to reimplement git in TypeScript just for this feature. So they simply call git clone for you. And as you see in the web square, if there is no space, it puts the URL as is right here. So there is something interesting here because we kind of control the way an external command is being called, and there is no risk of command injection here because it's not being executed in the shell. It's directly calling git, but you can still add arbitrary arguments to git. So if you put git dash dash help, it's going to display the help. In this case, it's a git clone, so the green part is what's fixed, what's constant because of VS Code, and in red is what we control. And we found out that if you put the option dash u for upload back, it's going to tell git to, next time you have to clone something, use this command instead of trying to use your own installed commands. So basically it tricks git into running a command of your choice instead. There are some restrictions for exploitation which are not that interesting. It's kind of like CTFE. You need the clone to trigger this command because otherwise git thinks it's a local repo, it's not a remote one, and it's not calling the upload back command, and you need to avoid spaces to not be relencoded. So this is what the final payload looks like. We have this VS Code current slash slash thing, vscode.git, clone, we pass the URL, dash u, and then we do some tricks to not have spaces, and the resulting indication is this git clone dash u thing. So I'm going to show you what it looks like in practice. And let's say you go online on some git lab self-assisted instance. You want to use this feature. So you're going to clone. You click. I want to open it in my VS Code. It prompts you. Do you want to clone? There is no way for me to check what's in there, so I have to trust it. So I'm going to say yes. I put it on my desktop. All right. And once again, you have this calc. It just popped up. So yeah, kind of unsafe in the end. And there were very similar findings, I think, a year before by Smurie from Schilder. Also an argument injection when you would click on links for the remote development extension. I am not showing code because it's closed source, and we didn't, like, spend time to dig into it and make it readable. But it's basically the same thing. Like, the os part is directly being put in the command line, and you can inject arbitrary arguments. And you would exploit it with dash o proxy commands. And it's quick ad break. I love argument injection bugs. I think, Paul, you're getting used to it. And we found many, many argument injection bugs over the time. So we created a page that lists all the small dash u, dash o proxy commands, all these argument injection vectors that's going to help you to execute arbitrary commands when you find argument injection bugs. So it's free. It's open source. And it welcomes contributions. So if you go on this page and you find out that we missed good tricks, feel free to add yours. And now we can also dig into something that's even more specific to VS Code, and that's workspace settings. There is a support for pair workspace settings that comes along your source code repo. So if you want to share settings with other developers, like linter configurations, like things to do and you want to share with everybody else, you can create a file named .vscode slash settings.json. And it's a way to share the settings. And it's automatically loaded when you open the folder. So the question is, if you put your security research out on, maybe can I override sensitive settings? Like, are there maybe sensitive settings? And in 2017, so like a long time ago, Justin Stevan found out that there would be an option called git.path, also from the Git's built-in extension, that you could change to say, oh, no, Git, it's not in my slash user slash bin slash Git. It's somewhere else. So if you ship a folder, a project, and in settings you override this setting, the git.path thing, you could force it to invoke other commands instead. And as soon as somebody would open a folder, it would be loaded, and Git would run. And it would call this other command instead. There were also some interesting tricks for the expectation, because it would have to survive a first command dash dash version invocation from the VS Code install folder. And then it would be called from the project folder. So what it did, it was to set git.path to bash. So the first code works. And for the other one, it would plant a file called revpath in this folder. And it would be called instead, and it would run its payload. And there were also another example of vulnerabilities that would use local data directly found by Didi Walker in 2020. When you do not just development, you would use NPM to store all your dependencies. And to this end, you write everything in a file named package.json. And if you kind of hover a dependency on this file, the NPM plug-in kicks in and tries to fetch information and to show you information like the description of the package, how many installs, everything. And it would call this command and safely concatenate the name of the dependency in the command. And there would be a command injection in there. It was later bypassed by Justin Steven again because they tried to fix it. They started validating the name of dependencies. And it's a fail-open thing. So basically, if you don't match what they expect you to be, something unsafe, it would say, yeah, it's safe. It's like it's a block list approach instead of another list approach. And it was once again proven to be not the best way to fix the vulnerabilities. And now we can get to workspace trust, which was also part of the name of this talk, so I have to explain it to you. It was a feature introduced in 2021 in VS Code that its goal is to reduce impact of malicious folders. So everything you've seen before, where we would run arbitrary commands and where we would use local data, could be kind of blocked by this new trust-based system. And you would have a new security assumption. You would say all untrusted folders are safe to open in restricted mode, but as soon as you start trusting something, it's not a security bug anymore if somebody executes commands in this case. So trusting a folder is always unsafe, and untrusted folders are supposed to be safe. And this is what it looks like. So this is a prompt that says, do you trust the author of this file in this folder? And it pops every time you open a folder. So you may be influenced and say, oh, I want to click yes every single time, but it's maybe not the best idea. There are some documentation that say this is what you risk if you press yes, but you would not expect the no to be unsafe. And the way it works under the hood, all extensions, including built-in ones, they declare their own capabilities in their own package.json file, and the default value is false. That means this extension won't run in untrusted workspaces. So you kind of miss features from VS Code just because you clicked no, I don't trust. So you're not kind of like living the life with VS Code, with all the fancy extensions, and you have a very limited IDE, which is maybe not what you were looking for in the first place. So they also introduced something called limited that lets extensions say, okay, in this case, if it's untrusted, I'm not going to run this command. I'm going to remove a few of my features that could be unsafe, but everything else will run. And once again, the guilt of built-in extension, I think it's really a gift for us. It runs in untrusted workspaces. I'd say that it's supported, so that means it's going to run in all untrusted workspaces and untrusted workspaces also. And when we were trying to see if there were security issues with this extension, we found out that Git, so the command Git, supports several levels of configuration. There is a system-wide configuration in etc.git.config. There is a global one in your own folder in .git.config, and there is a local one in .git.config of the current folder. Indeed, cloning does not retrieve the local configuration nor the other kind of configuration. They have to be files you created yourself on your system, but you can put Git repos in archives. So it would come with its own local configuration that may be unsafe. And Justin Steven and us we collided on some research where we tried to see if we would be able to hide Git repositories in the folders of Git repositories. So we would be able to clone these files when you clone the main repository. And in a Git config, you can have interesting directives, like the one we have here, which is called .fsmonitor, which is a way to tell Git, run this command to see if there were some changes since the last time you run this command. The default one is really good, but if you have a huge monorepo, if you have a thousand files, it's going to take some time to find out the differences. So sometimes you may want something more specific for better performance, and not lag in the IDE or when you get in your developer shell. So it's not specific to VS Code, and we found out that basically planting malicious configuration in Git folders it's pretty easy to trick people into opening these folders, and they can use arbitrary commands. And in fact, the first demonstration we've shown in the intro was based on a malicious Git folder that could have been just a zip file or a sub-repo. So this was a command, which was a calc, and we have the workspace trust thing. Because the Git extension runs in trusted workspaces, it runs before the proper displays to the user. So you have no way to prevent everything. You cannot just review every single Git repo that you're cloning or that you're downloading from the internet. that we found. So we told you it worked in VS Code, but it also works in developer shells. So in this case I have ZSH with all my ZSH team that includes a Git extension to show in my shell on which branch I'm running and give me some contextualized information on my Git repo. So it runs every time I CD in a new directory. So if I go on the desktop and then I go on my malicious Git repo, it's going to pop again. So if I'm CD-ing into something that runs Git in a directory and having something that runs Git and might be off, it's unsafe. So in the end, all these developer tools they don't really kind of acknowledge the security risks and they say, oh yeah, it's up to you to not work with malicious Git repos but you can't just review everything by yourself every single time. So there are a lot of things out there that are still affected by this thing like see all my ZSH prompts and we've also reported it to many IDEs many shell integrations some of them tried to fix it but in the end it should be on Git to fix it and they said, no, it's an accepted risk you should not work with untrusted Git repos. So now Paul's going to show you a few things about XSSes in VS Code. Yes, so as I told you earlier VS Code has a built-in browser part of it is Chromium so of course there can be cross-site scripting and in an IDE like VS Code XSS bugs can be very nasty because some parts of the UI always have to be kind of privileged I showed you the red part the workbench you will have buttons like save file or run my build command and if you press that button in the UI that should happen so the UI has to have a way to make this happen and the other thing is that extensions can have their own UI part in web views as I showed you for the markdown preview extension and even if we would say all the code of VS Code itself is clean, no issues no security vulnerabilities all the extensions that you install from the marketplace could still have something and that's then the first foot in the door to start your XSS attack so let's look at the first example this is a cool one it was found by the Grand Pew and Sirius of ElectroVault they presented it here at DEF CON last year so we will go quickly over it basically they found a way to control an extensions web view in this case the markdown preview extension and then they used a meta HTML tag to redirect away so basically now their attacker page is running in this web view in this frame and from there they can start their attack so they already took control over the frame over the web view and then they used the post message message passing interface to talk to the outer part, to the workbench and there was an unsafe handler that allowed them to load any file in that privileged frame but there was a clue they can't just load their own file from the attacker server and run any code on the system they had to find a way to actually load the file via the correct origin, via the correct protocol and they found a bug in VS Code itself so they could do that and after that they could use the node integration which is an electron setting basically that says this origin can just use the node.js APIs to run commands and so on then there was a pretty similar finding, this time by Justin Steven, he found that in the Jupyter notebook extension you can also render certain things as markdown and then it's the same thing over again you can put some HTML and first of all he only found how to leak arbitrary files because there's this fun CDN origin that's a special one and yes the plus in there in the domain name is a mistake and you can basically put an absolute path and read any file by just loading it and then Luca Grattoni by used it to improve it to an RCE basically by using the same last stage as the other guys to compromise the privileged origin and then there was a pretty different finding this was by they also used the Jupyter Python notebook markdown trick to render something from there as markdown but they didn't have to go up this chain to first compromise the privileged origin and then use the node integration, they found a way to go around that which is they just created a link tag with a command link from the command protocol and this is a special one in VSCode so this allows you to execute internal VSCode commands so not an OS command but basically something like focus the taskbar or open a terminal and in this case they auto clicked this link with Javascript so the command would be executed and they used the command that opens a new terminal because with that you can specify which shell executable and which arguments to execute and that gives you direct arbitrary code execution and from this we noticed a lot of the UI of VSCode is actually markdown the tooltips, the status bar at the bottom the menus, a lot of things are just markdown strings being rendered because it's easier than writing HTML I guess and if there's user or attacker control data being interpolated into this markdown then markdown injection can happen and if that happens and in the place of the code the markdown string is set to being trusted then you can use these command links in markdown as well so if you have markdown injection you can just put in a link to again use this command to open a terminal with your own command basically but it always requires user interaction because the user still has to click on the link it can't be auto clicked unless you have Javascript execution in the first place so with that in mind we looked at some third party extensions for example GitLens this is an extension with 25 million installed, it's pretty common and pretty popular and there we found that while they rendered some hover tooltips for some commits we could inject markdown and in this case the data came from a commit message and it was then unsafely interpolated into a markdown string where we could then add a link and in this case we didn't use the other one because we also wanted it to work in untrusted workspace to again bypass this workspace trust prompt so we used the install extension command and because the marketplace is open I can just publish any extension there you could publish a malicious extension and then use this command to install it at the victims vs code instance and this was fixed pretty quickly in version 14 CV is still pending but it's a first good example and this is basically how it looks like so you open some repo and you can see the blue bar on top so it's still in the untrusted mode but if you hover a line and then click on this very innocent looking message then a calc pops showing that we could have executed any command and we found a similar thing in the github pull requests and issues extension which has 13 million installs so also pretty popular it's by github themselves and again in a hover tooltip we found a markdown injection and in this case it didn't come from the local repository or the local workspace folder but it can be exploited remotely which means let's say a maintainer is working on that project they use this extension to look at issues and PRs and then I as an attacker create a malicious PR which has the exploit payload in the body and if they then use the extension to look at it again we have the markdown injection and if they click the link it's GG so this one was also fixed pretty soon CV is also pending and this is what it looks like so first we create this again very important looking issue on github so if they use the extension to look at this again there's a very innocent link and if they click on it a calculator opens so yeah this was basically the last of our attack surfaces as we've seen there's a lot of different things that can go wrong so let's see how things went when we were reporting the bugs that we found to microsoft so we used the official MSRC platform for that it's pretty cool compared to bug bounty platforms because it allows you to speak about the bugs after they were fixed which we like to do for some people it has a little bit better reputation because of delays but for us personally we had a good experience not many delays and it's a nice thing because everything is centralized there even the attribution and you can always see it's in development, it's being released soon so you don't have to wait without a response from the vendor for months so let's look at the bounties we got so for the first one which was the git local level configuration bug we got a 30k bounty which was pretty cool we donated it to charity and we even wondered a little bit why it was so much because we didn't know and it fell into the Azure bug bounty and we even asked them why it's so much do they have a hosted vs code version somewhere but we never got a response so the year after we found something again which was this time the protocol handler argument injection and we thought okay, easy we get another 30k which we can give to charity pretty cool but the response was oh wait a minute last time we awarded you the bug bounty in error and actually all extensions including the built in ones that are shipped with vs code are out of scope sorry, this time you're not getting any bounty we kind of disagree we think extensions that are built in and shipped with it are out of scope for bug bounty but at least they still fix it and this even brought us onto the MSRC leaderboard in Q2 last year and the things that I showed in GitLens and the GitHub extension brought us on the leaderboard this year which was pretty cool because we could go to the Microsoft researcher invite only party like yesterday alright, so now let's wrap things up we've seen a lot so the first things that we learned is that CVEs at buggy components a lot of the fixed vulnerabilities were bypassed by Justin Steven because he just looked at the patch and saw that it's not complete and that's probably will probably be the same case in the future so if you want to find some easy bugs just look at what they fix and see if the patch is complete the next thing we want you to remember is if you click trust you lose for example the git local configuration exploit still works if you trust the workspace because the way git works and it's basically not really possible for VS Code to fix it and they also say if you trust it's your problem now we want you so please don't click on trust just to get this dialogue that makes you away think about it and if you don't trust it press I don't trust it and then we found that attacking desktop applications is fun it's a lot different compared to attacking server applications that you can reach over the internet because it has a whole new set of assumptions and attack surfaces and we've also seen that bug bounty scope doesn't always reflect the real threat model again we think that built-in modules should not be excluded from the bug bounty scope but we can change that and finally it's still unclear for many developer tools what's the security of the model they're not built with security in mind it's not super clear what's the responsibility of the user and what's the responsibility of the tool to make sure everything is safe no random commands are executed and if you don't know that it's your job as a user then you can't really protect yourself we personally like the principle of least surprise so we think the tool should not do some magic under the hood that you don't know will happen so it should warn you it's a very welcome addition and a good start and we hope other developer tools will include it as well thank you