Microsoft provides an API for programmatic access to security update details using Common Vulnerability Reporting Format. View our blog post for more info.
The Microsoft Security Update Guide is the web experience to find security update detail.
This repository contains sample code and documentation for the Microsoft Security Updates API (https://portal.msrc.microsoft.com/en-us/developer), including:
- source code for the MsrcSecurityUpdates PowerShell module
- sample code for using the MsrcSecurityUpdates PowerShell module
- OpenAPI/Swagger definition for the Microsoft Security Updates CVRF API
Getting started with the MsrcSecurityUpdates module can be done like this:
### Install the module from the PowerShell Gallery
Install-Module -Name MsrcSecurityUpdates -Scope CurrentUser
### Load the module if PowerShell is at least version 5.1
if ($PSVersionTable.PSVersion -gt [version]'5.1') {
Import-Module -Name MsrcSecurityUpdates
}
Once the module is loaded, check out our PowerShell samples
For up to date major changes, please read the psd1 included in the src folder. This can also be seen on the Microsoft Powershell Gallery.
Customers should treat this repository as custom code. Bug fixes or enhancements can be requested by opening a new issue from the Issues tab.
For questions about CVEs, security updates and patches, please visit Microsoft Support
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
It is Microsoft’s mission to empower every person and every organization on the planet to achieve more. We thank you for helping shape that future by keeping the world a more secure place by tooling security into your organization’s practices. We would love to hear your feedback on features to add or bugs to fix.