[00:00:06] Hi everyone, I'm John Douglas and this [00:00:08] is securing the Nougat supply chain for [00:00:09] developers and their agents. [00:00:13] Now, every package that you restore is [00:00:15] code that you choose to trust. Keep that [00:00:17] in mind as we go through this whole [00:00:19] presentation. [00:00:21] Today, we're going to be talking about [00:00:22] four different things. We're going to be [00:00:23] talking about the changes that we made [00:00:25] to the Nougat client. We're be talking [00:00:27] about nougat.org. We're be talking about [00:00:29] what we're building for AI agents and [00:00:31] also what's next. [00:00:34] Now let's talk about the Nougata client. [00:00:38] Today we are we are adding what is [00:00:41] called cooldown. Now a Nougata cooldown [00:00:44] is a way that you can more or less say I [00:00:46] want you to wait this amount of time [00:00:49] before adding a specific type of package [00:00:51] or a package version. Now, this is [00:00:54] useful because attacks will spread [00:00:55] throughout different versions that are [00:00:57] published, say, minutes ago or even [00:00:59] hours ago. A cooldown will keep them out [00:01:01] of your supply chain and when they're [00:01:04] ready to have an update and they've been [00:01:06] tested, tried and true, then you can [00:01:09] just update the packages uh instead of [00:01:12] uh being a part of a supply chain [00:01:13] attack. Now, this is added innet 11.2 2 [00:01:16] in the CLI and then in Visual Studio [00:01:19] 18.14 uh in the package manager UI and [00:01:22] the console. This is kind of the syntax [00:01:24] on the right where you can see that new [00:01:26] cooldown is for 3 days and then when you [00:01:28] try to do a net add package or any type [00:01:30] of package operation in the IDE of your [00:01:32] choice, it will actually skip that [00:01:33] version because it was uh published uh 6 [00:01:35] hours ago. It's quite a nifty feature. [00:01:37] Uh this is a feature that uh the [00:01:39] industry is starting to uh standardize [00:01:41] on as well. other registries are using [00:01:43] uh some type of idea of a package [00:01:45] cooldown. [00:01:47] Now there is a breaking change that we [00:01:49] were going to add in VS 18.414 [00:01:52] and that is no more auto run scripts. [00:01:56] Now uh VS will not run those auto uh [00:02:00] auto run package scripts anymore. Uh [00:02:02] beforehand you probably know this with [00:02:05] uh .NET framework, entity framework uh [00:02:07] those type of packages where the [00:02:09] init.ps1 PS1 PowerShell scripts or [00:02:12] install.ps1 will auto run in VS when you [00:02:15] open it. Uh we're going to change this [00:02:18] uh because there is kind of a vector [00:02:20] there for um uh supply chain attacks. [00:02:22] Now in .NET CLI this has been ignored [00:02:25] for quite some time. This has been this [00:02:27] is how it was really designed in 2017. [00:02:29] But from VS18.14 [00:02:32] you will only be able to run uh those [00:02:34] packages if you choose. So, and we'll [00:02:36] put some warnings and we'll make sure [00:02:38] that you know about it in the package [00:02:39] manager console so that you can trust [00:02:41] those packages and uh basically those [00:02:44] auto run um scripts. Now, uh if you're [00:02:46] an author, you know, you're probably [00:02:48] already familiar with MS build targets [00:02:50] and using those. Um that's kind of the [00:02:52] alternative today. [00:02:56] Now, one of the coolest features that we [00:02:58] have um and we'll talk about that on [00:02:59] both sides of the client and the server [00:03:01] is staged publishing. Now stage [00:03:04] publishing is a concept where you can [00:03:06] push a nougat package today and you can [00:03:08] list it later. Now how that works is you [00:03:11] can look at some of the syntax today of [00:03:13] net package stage maybe your new [00:03:15] packages and then you can also create [00:03:17] what's called a group. Those groups are [00:03:19] how you can stage a group on nougat.org [00:03:22] for a later publication or uh maybe you [00:03:25] just want to group it for later when [00:03:26] you're ready. You can get the status of [00:03:28] it and you can even uh publish and list [00:03:31] every package in those groups at once. [00:03:34] This is kind of how this looks uh with a [00:03:36] package stage package stage status and [00:03:38] then a package stage publish and a and a [00:03:41] list argument as well. We'll show you on [00:03:43] the nouga.org site how this looks. But [00:03:45] this is what it looks like from the CLI [00:03:46] perspective or what you can do in um you [00:03:49] know your uh respective GitHub actions [00:03:51] or as aso um different type of [00:03:54] environments. [00:03:56] Now, another thing that we've been [00:03:57] working on is non-asky package ids. Uh, [00:04:00] we are deprecating this. Uh, you've [00:04:02] probably seen in uh some of the [00:04:04] headlines that people are using these to [00:04:06] impersonate different uh nougat [00:04:07] packages. Now, if you were to look at [00:04:09] these two, Newtonoft.json and [00:04:11] Newtonoft.json, to the naked eye, you [00:04:14] don't see anything here. You just see [00:04:16] the same E, right? But they they are [00:04:18] different. They're different uh they're [00:04:20] different characters. And so, the real [00:04:22] package might use like a Latin E. um a [00:04:24] lookalike might use something else. And [00:04:26] so this is where we will start to [00:04:27] provide warnings for um these non-asky [00:04:30] package IDs. Uh we we did an [00:04:32] announcement earlier about this, but we [00:04:34] just want to make sure that you know [00:04:35] what the real package is and that will [00:04:38] warn in a net 12 preview. [00:04:41] Now let's talk about nougata.org. [00:04:45] Now nougata.org we have added a new [00:04:47] thing called trusted publishing. I [00:04:49] believe last year we have had such great [00:04:52] uh adoption of this feature. This [00:04:54] feature allows you to basically uh not [00:04:57] have to worry about API keys uh anymore. [00:04:59] Uh more or less this is a way to improve [00:05:02] your publishing making sure that people [00:05:04] know that you are a trusted publisher. [00:05:06] Now we've had about 41% of uh monthly [00:05:09] nouga.org publishes that use it today as [00:05:11] of uh November. We are looking to get to [00:05:15] 70% of a target. Now we support GitHub [00:05:18] actions, we support GitLab and we are [00:05:21] working really hard to get Azure Azure [00:05:23] DevOps uh support. So uh go adopted [00:05:27] today ak.msnougatrusted [00:05:30] publishing. [00:05:33] Now one more announcement that we do [00:05:34] have is that API keys now last only 30 [00:05:38] days or less. This is because API keys [00:05:41] are being leaked and being used around [00:05:43] the internet when a uh supply chain [00:05:46] attack happens. And so uh since about [00:05:48] August 17th of this year, uh new keys [00:05:51] will expire in 30 days or less. But [00:05:53] moving on for November 1st, existing [00:05:56] keys longer than 30 days, those will [00:05:58] actually expire. We really want you to [00:06:01] uh read this blog. It's [00:06:02] devlogs.microsoft.com.net [00:06:05] and there's uh reducing API key [00:06:07] lifetime. It's a great blog. Uh, and uh, [00:06:10] this is going to also encourage you to [00:06:12] adopt trusted publishing. We really want [00:06:14] you to um, get in the habit of abusing [00:06:16] trusted publishing as possible. This is [00:06:19] a uh, industry standard that all the [00:06:21] registries are starting to adopt. [00:06:24] So, uh, before November 1st, uh, you [00:06:27] know, move your CI off of those long lip [00:06:30] keys. You know, those pushes are going [00:06:33] to expire um, and your build will [00:06:35] probably fail. Uh this is uh you know [00:06:38] the first step you should do is go find [00:06:40] your keys. Go look through every [00:06:42] pipeline that p that pushes with an API [00:06:44] key. Check the expiration dates on [00:06:47] nuia.org and and then start to look into [00:06:50] what trusted publishing is. Uh number [00:06:52] two, switch to trusted publishing if you [00:06:54] can. Uh this makes it so that you don't [00:06:56] have to rotate any keys. Uh this is [00:06:59] supported on most platforms. You don't [00:07:01] have to worry about leaks, uh any of [00:07:02] that type of stuff. But we do know that [00:07:05] there are uh situations where you won't [00:07:07] be able to adopt trusted publishing. Um [00:07:09] if there are any bugs or challenges in [00:07:11] adopting trusted publishing, reach out [00:07:13] to us. Uh uh it's a great place to give [00:07:16] feedback and understand unique [00:07:18] scenarios. But a stop gap for this is to [00:07:20] rotate your keys. Now you can rotate [00:07:22] your keys every 30 days. This is quite [00:07:25] challenging um just in the logistical [00:07:27] type uh logistical sense of it all. But [00:07:29] uh this is not a long-term practice. you [00:07:31] know, uh, these keys can still leak. [00:07:33] They're still valid for 30 days. We [00:07:35] really encourage you to move to trusted [00:07:37] publishing. So again, go read that blog [00:07:40] if you haven't yet. The reducing API key [00:07:42] lifetime. [00:07:44] Now, let's talk about uh stage [00:07:47] publishing. Now, we are adding staging [00:07:50] and proof of presence on nouga.org. [00:07:53] Uh, this has a few different steps and [00:07:55] we'll walk through each one of them. The [00:07:57] first one is I showed you earlier in the [00:07:59] client side that you can now use this uh [00:08:01] net nougat push command where you can [00:08:03] start staging your packages. This will [00:08:06] then put your package into a staged uh [00:08:09] um status where it is private but it's [00:08:12] not listed on the registry yet. Now the [00:08:14] cool thing about this is that we can [00:08:16] then validate that. We can validate your [00:08:18] packages before they get listed on the [00:08:20] registry. That means we can do the [00:08:23] typical Nouga validations, checking for [00:08:25] signing, checking for malware scans, all [00:08:28] of those different types of checks to [00:08:30] make sure that your package is ready for [00:08:32] the public registry listing. Um, [00:08:35] additionally, with this uh feature, you [00:08:37] now have what's called a proven or a [00:08:40] proof of presence check. This is a human [00:08:43] that is making sure that that package is [00:08:45] ready to go out. It's just a human [00:08:47] verification in the loop check that [00:08:49] says, "Hey, I'm the one who did this. I [00:08:51] push these packages. They are ready to [00:08:53] go." Staging allows you to hit that big [00:08:56] green button like you would on an app [00:08:57] store if you were building an iOS or an [00:08:59] Android app. And then those uh packages [00:09:02] will become live. You'll be able to see [00:09:05] them on the listing and you'll be able [00:09:07] to restore them, add them, everything [00:09:09] that you know and love about Nougat. [00:09:11] Now, stage publishing is in the CLI. [00:09:13] It's in net uh 11. Uh we have uh basic [00:09:16] support for staging, grouping, um all of [00:09:19] that type of stuff and uh you'll be able [00:09:22] to create your own groups. However, int [00:09:24] net 11.2 as a future release. On the [00:09:27] server side of things, uh proof of [00:09:30] presence is just your before go live. [00:09:32] You know, you're the you're the owner of [00:09:34] these packages. You'll be able to [00:09:35] confirm that you're already logged in [00:09:37] with 2FA and basically say, "Hey, I'm [00:09:40] ready for these packages to go live." [00:09:42] Now let's see what what uh this looks [00:09:44] like. So you can stage on the left side [00:09:47] you can see these different publish [00:09:49] packages and then you can see a staging [00:09:51] groups. Now the staging groups is how [00:09:53] you'll stage a release. You'll be able [00:09:55] to then promote that in one step. So on [00:09:58] the left side you can create a new [00:09:59] staging group with a single click of a [00:10:01] button. You can call it whatever you [00:10:02] want to. Uh in this case we call it [00:10:04] Ktoso and the the respective version [00:10:07] release that we might be uh having [00:10:09] multiple packages to. Maybe it's three, [00:10:11] maybe it's five. And then on the right [00:10:12] side once you're in once you click on [00:10:15] any of those groups you can use this [00:10:16] button on the right saying promote [00:10:18] group. That promotion is exactly what we [00:10:21] just said is going to promote the group [00:10:23] to then be released. [00:10:26] Now let's talk about some other uh [00:10:28] enhancements that we've added into uh [00:10:30] new.org as well. Now with the kind of uh [00:10:33] boom of AI agents, uh the many many [00:10:37] restores that are happening as we speak, [00:10:40] uh we see a lot of different uh bad [00:10:43] packages that come through. Um whether [00:10:45] they're malware, whether they're [00:10:46] something we can't understand because it [00:10:48] was generated with AI, obuscated, [00:10:51] whatever it might be. Uh we want these [00:10:53] packages to come down a little bit [00:10:54] faster. So uh we have taken a lot of [00:10:57] steps to basically provide less exposure [00:11:00] to any bad package that is going to be [00:11:01] on the registry. There's nothing for you [00:11:03] to configure. This is purely on the [00:11:04] registry side. But on every upload we [00:11:08] now check for malware basically every [00:11:10] single type of malware that we um have [00:11:12] scanners for. Um these uploads whether [00:11:15] they're through the traditional um [00:11:17] pushing mechanisms or whether that's [00:11:19] through staging um package staging, we [00:11:22] will check for malware. The second thing [00:11:24] is that when we do detect some type of [00:11:26] malicious package or some type of [00:11:28] pattern that we haven't really quite [00:11:30] understood yet, these come down in [00:11:32] minutes. They used to take uh hours or [00:11:35] even days just due to the nature of uh [00:11:38] people reporting them or us uh seeing [00:11:40] them. They this is quite quite cool in [00:11:43] my eyes because I've been working in [00:11:45] this space, but now they come down so [00:11:47] much quicker. Uh the third thing that [00:11:49] we've added is the ability to basically [00:11:51] just recover. you know there are [00:11:53] mistakes that happen when we don't [00:11:55] understand a pattern or a package gets [00:11:57] removed in an error or what it might be [00:12:00] and so all these packages they can [00:12:02] basically be restored within 30 days uh [00:12:04] we can revert all those different [00:12:06] detections we work directly with um uh [00:12:09] any uh publisher just to understand the [00:12:11] package and more or less uh get those uh [00:12:14] mistakes corrected. So uh cool part [00:12:17] thing uh cool part here is that you know [00:12:20] the report to removal is now taking [00:12:22] minutes and if you spot something [00:12:24] suspicious ever uh there is a on the [00:12:27] nougat.org or details page of that [00:12:29] package. There is a report package [00:12:31] button. Hit that button, send us a [00:12:34] report and uh we will do our best um [00:12:36] with it. [00:12:38] Now let's talk about building for AI [00:12:41] agents. This is what is called secure my [00:12:44] supply chain. This is a new [00:12:46] functionality that we have developed uh [00:12:48] with an MCP or model context protocol. [00:12:51] Uh and this is a new tool that we've [00:12:53] created. So there's three different [00:12:55] entry points of using this MCP tool. Um, [00:12:57] it's called secure my supply chain. It's [00:12:58] in Visual Studio. Uh, you could use this [00:13:00] in the package manager UI. You can use [00:13:03] this in the settings of the package [00:13:05] sources and even from the error list of [00:13:07] just getting MS build errors. Uh, you [00:13:09] can fix things from a vulnerability [00:13:10] warning nowadays. This will set up a new [00:13:13] agent that will audit all of your [00:13:15] sources, your packages, your um, project [00:13:18] files, your uh, if you're using central [00:13:21] package management, it'll look through [00:13:22] that file as well. uh and it will [00:13:25] restore and check all your packages for [00:13:27] vulnerability data. It'll use all the [00:13:29] best practices of Nougat such as uh um [00:13:32] different um source mapping. Uh really [00:13:34] if there's anything that we think might [00:13:36] be a good suggestion to help uh improve [00:13:38] your security uh posture, we will [00:13:41] recommend it and ask you if you want to [00:13:43] turn it on. Uh I showed you that feature [00:13:45] of Nougat cool downs. It can also turn [00:13:46] that on as well. [00:13:49] So here's a demo of uh this agent. Um [00:13:52] we've been working hard to make sure [00:13:53] that this agent can secure your solution [00:13:55] faster than ever. This uh this MCP has [00:13:59] more or less replaced you know this [00:14:00] modelled research with a direct [00:14:02] assessment. Now uh foundation models can [00:14:05] help you uh with basically uh you know [00:14:08] uh understanding your supply chain risk [00:14:10] and you know giving you generic advice [00:14:12] but this gives you a direct assessment. [00:14:14] It uses nougata.org directly. um it uses [00:14:17] all the different tools and it provides [00:14:19] all that context that we know about uh [00:14:22] to your solutions. Now we have improved [00:14:24] this significantly where uh this will [00:14:27] provide an answer in say anywhere from [00:14:29] about 11 to 16 seconds or 18 seconds. Um [00:14:33] there are uh we also optimize for token [00:14:36] usage so that you don't have to use uh [00:14:38] many tokens just to get an answer and uh [00:14:41] if there's any incorrect diagnosis uh [00:14:43] you know you can use a different model [00:14:45] you can um you know try try the [00:14:47] different models to see what uh results [00:14:49] you get. So let's look at this demo [00:14:50] really quick. [00:14:54] Now you can see that we are opened a [00:14:57] project here um and we are using the uh [00:15:00] MCT. It has uh four different servers [00:15:02] connected and now we're doing the review [00:15:05] supply chain security. You'll see that [00:15:07] uh it now says, "Hey, Nougat audit, [00:15:09] vulnerability data, related settings, [00:15:12] etc. They're all um enabled. Looks like [00:15:14] you're good. We checked all your [00:15:16] production CS files, your [00:15:17] directory.packages.props, [00:15:19] your Nougat config, all that different [00:15:21] type of stuff." So, it's going to give [00:15:23] you a good posture for your uh projects. [00:15:26] And of course with the larger projects [00:15:28] this might take a little bit more time [00:15:30] but um we have definitely optimized it [00:15:32] for um for your security needs. [00:15:38] Okay. Uh the next thing that we've added [00:15:40] is uh the ability to add skills into [00:15:43] your packages. Now int net 11 you can [00:15:46] ship what is called a skill.md in your [00:15:49] package. Uh for example, this is a [00:15:51] Kontoso package and you can now have a [00:15:53] skills folder where you can add a [00:15:55] skill.md. So a skill.md is basically a [00:15:58] way that you know cloud code or um codec [00:16:02] or open AI codecs or any of your [00:16:04] different AI uh tools that you use every [00:16:07] single day can understand how an agent [00:16:09] should use your package. For example, [00:16:12] you might give some type of skills to [00:16:14] this package saying, "Hey, you should [00:16:15] always create new clients with an add [00:16:18] Kontoso HTTP client. Uh, never disable [00:16:21] certificate uh validation and any other [00:16:24] type of skills or or basically [00:16:25] instructions that you want to ship with [00:16:27] your packages. This is really helpful [00:16:29] because uh you don't have to add these [00:16:31] yourself. You don't have to do any [00:16:33] prompt engineering or context [00:16:34] engineering. They come directly with a [00:16:36] package and you as a package publisher [00:16:38] or author can provide the skills that [00:16:41] you want to uh promote the best [00:16:43] practices for agents and also for for [00:16:46] the developers who are using those [00:16:48] agents. [00:16:50] Now let's talk about what's next. [00:16:55] Now we're working on many different [00:16:56] features. There is a lot of different [00:16:58] features uh on Nougat home. Um and we [00:17:01] always want to hear from you. So, uh, go [00:17:03] to Nuke at home if you have a feature [00:17:05] request or something that, uh, like an [00:17:07] issue or a challenge that you have that [00:17:09] we still haven't addressed yet, we [00:17:11] really want to, uh, know about those. [00:17:12] Now, the first thing that we're going to [00:17:14] be adding is a concept called package [00:17:16] end of life status. Now, in uh, the [00:17:19] supply chain uh, and also with uh, [00:17:21] software releases, there is kind of this [00:17:24] concept of when something goes out of [00:17:25] support or when a package will go out of [00:17:28] maintenance mode or some means of it. [00:17:31] Now this is a industry-wide uh concept [00:17:34] that is starting to be adopted as well [00:17:35] but you can more or less be able to mark [00:17:37] a package of saying like hey I'm not [00:17:40] maintaining this anymore or this [00:17:42] specific version of this package is no [00:17:44] longer maintained. Now Nougat does [00:17:46] support a concept called deprecated but [00:17:48] this is a little bit different. This is [00:17:50] saying that this has run out of the [00:17:52] support or the m maintenance uh life [00:17:55] cycle. Uh we will be able to show this [00:17:58] in VS the CLI nougat.org or etc. to show [00:18:02] when a package is actually being [00:18:04] maintained or not. Um the second thing [00:18:07] that we're adding is Nougat signing v2. [00:18:10] This is detached signatures and being [00:18:12] able to sign without having to change [00:18:14] the package. Uh this is a big leap from [00:18:17] how signing is done today. Uh and we're [00:18:19] excited to um uh release that soon. Uh [00:18:22] the third thing is uh updates available. [00:18:25] So when there are new uh versions that [00:18:27] exist, whether that's for the CLI, [00:18:30] Nougata.exe, the actual tools that you [00:18:33] you know and love to uh restore or uh [00:18:36] manage your packages, you'll be able to [00:18:38] start seeing that there are new updates [00:18:40] for those. And then last but not least, [00:18:42] I talked about this a little bit already [00:18:44] about how there how we have improved [00:18:46] this third party third party uh [00:18:48] vulnerability reporting. you know, we [00:18:50] want to ensure that everything is [00:18:52] streamlined for reporting any type of [00:18:54] vulnerabilities to us uh and and uh [00:18:57] understanding when there are packages [00:18:58] that might be malicious on the registry [00:19:00] and they shouldn't be. So, [00:19:03] so I want you to take away from this uh [00:19:07] talk a few different things that you can [00:19:09] do this week. Okay, the first thing I [00:19:12] want you to do is go turn on cooldown. [00:19:15] This is your best defense against any [00:19:18] fastmoving attack. For developers or [00:19:21] companies who really like to stay [00:19:22] against the latest uh or the N minus one [00:19:25] version of packages, you now have [00:19:27] something built in to protect you from [00:19:29] that. You can you can figure out what [00:19:31] your policy will be. But this is your [00:19:33] best defense against any active supply [00:19:36] chain attack for popular packages or [00:19:39] packages that you rely on. The second [00:19:41] thing is for anyone who publishes uh a [00:19:44] package um to the especially to the [00:19:46] public registry na.org go move to [00:19:48] trusted publishing. Your API keys will [00:19:51] start to expire um after 30 days and [00:19:54] November 1st. We really want uh people [00:19:56] to adopt trusted publishing. So you [00:19:58] don't have to worry about API keys any [00:20:00] anymore and uh more or less you can feel [00:20:02] um safe with all your publishes. The [00:20:05] third thing is that uh if you are um [00:20:08] using like more uh like you're in an [00:20:10] enterprise or you're using more legacy [00:20:11] type of packages or maintaining .NET [00:20:13] framework uh check all of your packages [00:20:16] that will rely on an install script. [00:20:18] This is uh especially important for [00:20:20] entity framework or other packages that [00:20:23] have a type of autoexecutable script. Uh [00:20:26] if you do update to VS18.14, [00:20:29] you will need to provide some type of [00:20:32] approval and say that this um this [00:20:35] package is okay to install every time I [00:20:38] open up the IDE. Uh the last thing is go [00:20:41] use that MCP, run the secure my supply [00:20:44] chain, use it in the PM UI, use in your [00:20:47] settings, the error list. Uh go to [00:20:48] Nougat. Uh we have a great Nougat uh [00:20:51] documentation uh just the Nougat MCP [00:20:53] server uh docs. uh go use that. Give us [00:20:56] your feedback how we can improve it. [00:20:58] Again, this uses a direct feed to [00:21:01] nouga.org to understand the latest. It [00:21:03] you it looks through all of your [00:21:04] packages in your projects and solutions [00:21:07] and it gives you the best advice [00:21:09] possible. [00:21:10] Now, that's it for my talk. Uh if you [00:21:12] have any uh comments, feedback, or [00:21:15] anything about Nougat, go to Nougat [00:21:18] uhome on GitHub, open up an issue, uh uh [00:21:22] comment on a proposal, anything like [00:21:24] that. Uh we'd love to hear from you. [00:21:26] Thank you so much.