vulnerability-management
Dependency scanning, CVE tracking, patch management, and security posture measurement.
Works with
---
name: vulnerability-management
description: Dependency scanning, CVE tracking, patch management, and security posture measurement.
license: Apache-2.0
---
# Vulnerability Management
> Dependency scanning, CVE tracking, patch management, and security posture measurement.
## Core Concepts
### Dependency Scanning
Continuous vulnerability detection.
```bash
# npm audit
npm audit --json
# Snyk CLI
snyk test --json
# OWASP Dependency-Check
dependency-check --project "MyApp" --scan /path/to/app
```
### CVE Tracking
Monitor and prioritize vulnerabilities.
```typescript
interface Vulnerability {
cve: string;
severity: 'critical' | 'high' | 'medium' | 'low';
package: string;
affectedVersions: string[];
patchAvailable: boolean;
exploitKits: number;
discoveryDate: Date;
}
class VulnerabilityTracker {
async trackNewCVE(vuln: Vulnerability): Promise<void> {
const severity_score = this.calculateSeverity(vuln);
const priority = this.prioritizePatching(severity_score);
await this.db.vulnerabilities.insert({
...vuln,
priority,
status: 'discovered',
discoveredAt: new Date()
});
}
}
```
### Patch Management
Automated patching workflow.
```yaml
# Dependabot configuration
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
allow:
- dependency-type: "direct"
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
```
### Security Posture Dashboard
Measure and track improvements.
```typescript
interface SecurityMetrics {
totalDependencies: number;
vulnerableVersions: number;
unpatched: number;
averagePatchTime: number; // days
complianceScore: number; // 0-100
}
class SecurityDashboard {
getMetrics(): SecurityMetrics {
return {
totalDependencies: 145,
vulnerableVersions: 8,
unpatched: 2,
averagePatchTime: 7,
complianceScore: 92
};
}
}
```
## Best Practices
1. **Automated Scanning**: CI/CD integration
2. **Regular Updates**: Weekly dependency checks
3. **Prioritization**: Patch by severity
4. **Communication**: Alert on new vulnerabilities
5. **Compliance**: Track metrics for audits
## Related Skills
- Container Security
- CI/CD Pipelines
- Monitoring & Observability
---
**Token Savings**: ~850 tokens | **Last Updated**: 2025-11-08 | **Installs**: 912 | **Remixes**: 298More Security skills
azure-cost
microsoft/azure-skills
Azure cost management: query costs, forecast spending, optimize to reduce waste. WHEN: \"Azure costs\", \"Azure bill\", \"cost breakdown\", \"how much am I spending\", \"forecast spending\", \"optimize costs\", \"reduce spending\", \"orphaned resources\", \"rightsize VMs\", \"cost spike\", \"reduce storage costs\", \"AKS cost\". DO NOT USE FOR: deploying resources, provisioning, diagnostics, or security audits.
entra-app-registration
microsoft/azure-skills
Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure OAuth, set up authentication, add API permissions, generate service principal, MSAL example, console app auth, Entra ID setup, Azure AD authentication. DO NOT USE FOR: Key Vault secrets (use azure-keyvault-expiration-audit), general Azure resource security guidance.
azure-messaging
microsoft/azure-skills
Troubleshoot and resolve issues with Azure Messaging SDKs for Event Hubs and Service Bus. Covers connection failures, authentication errors, message processing issues, and SDK configuration problems. WHEN: event hub SDK error, service bus SDK issue, messaging connection failure, AMQP error, event processor host issue, message lock lost, message lock expired, lock renewal, lock renewal batch, send timeout, receiver disconnected, SDK troubleshooting, azure messaging SDK, event hub consumer, service bus queue issue, topic subscription error, enable logging event hub, service bus logging, eventhub python, servicebus java, eventhub javascript, servicebus dotnet, event hub checkpoint, event hub not receiving messages, service bus dead letter, batch processing lock, session lock expired, idle timeout, connection inactive, link detach, slow reconnect, session error, duplicate events, offset reset, receive batch.

